Pyscan NFC/Rfid reading Issue
-
Good evening,
I'm getting an Issue when trying to read a standard ISO 14443-3A tag.
I'm using attached main.py with latest MFRC630
I'm getting correct Uid but after authentication the tag return every block at ZERO.
The tag is properly written on sector 2 (see dump.png and is perfectly readable with a variety of tag readers.
Tried with Lopy and Wipy.. no way.
Any ideas?
Thanks.
SaverioA card has been detected, reading its UID ... UID has length 4 1 UID [4]: E6 51 3D 30 Sector 00 : Block: 00 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 00 : Block: 01 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 00 : Block: 02 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 00 : Block: 03 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ________________________________ Sector 01 : Block: 00 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 01 : Block: 01 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 01 : Block: 02 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 01 : Block: 03 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ________________________________ Sector 02 : Block: 00 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 02 : Block: 01 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 02 : Block: 02 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Sector 02 : Block: 03 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............ -
Hi,
Could you instantiate the MFRC card reader with the flagdebug=True, this should give more debug output on what is actually happening. I was not able to find a readable card in the office at this time, so. I cannot check it for you right now. -
@Gijs Here the debug:
attached to pyscan_debug.py -
@Gijs here is the bug in MFRC630: you are printing the lenght of response instead of the value...

On line 374 it should be:return dest -
Great work! I was indeed expecting the issue to be something like this, but had a hard time testing without a working sample. Let me know if that works for you, and I'll have it changed in the libraries!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login