Open hitriy opened 3 years ago
I'm also having issues with authentication of mifare classic 7-byte uid. I do get an ACK however. Do you wait for interrupt or work polling based? You use command 0x61 (MIFARE_CMD_AUTH_B), have you tried AUTH_A? And are you sure that block 0x10 is in valid range? How about block 0 or 4?
My current issue (using the last 4 bytes of UID, that was new information for me), is that I get 0x00 0x00 0xFD 0x03 0xFD 0xD5 0x41 0x20 => so seems like error code 0x20.
I've managed to get data from block 0x10, and yes, since it's mifare classic 4k block 16 is within addresses range. Sending last four bytes of UID works fine. I've used some direct editing, however it would be nice to have 7 and 10 bytes UID cards out of the box
Okay I was using an incorrect authentication key, I now got it working as well. The library itself can be easily adapted (even though the table in the documentation doesn't mention 10-bytes UID?)
I can do the code change byt I'm not using an arduino, hence not really the direct library. If you are, I can send the code change for validation?
Hello. I'm trying to read data from Micare Classic card with 7-byte UID. I'm using mifareclassic_memdump as reference. To get data from card I've added new condition to length check
if (uidLength == 4 || uidLength == 7)
However this doesn't work. According to the documentation I must use byte 4,5,6,7 of the 7-byte UID, but still no luck: