-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mifare classic 7-byte UID authentication #93
Comments
I'm also having issues with authentication of mifare classic 7-byte uid. My current issue (using the last 4 bytes of UID, that was new information for me), is that I get |
I've managed to get data from block 0x10, and yes, since it's mifare classic 4k block 16 is within addresses range. |
Okay I was using an incorrect authentication key, I now got it working as well. 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? |
Thanks for informations! It helped
uint8_t offset = 0;
if (_uidLen == 7)
offset = 3;
for (i = 0; i < 4; i++) {
pn532_packetbuffer[10 + i] = _uid[i + offset]; /* 4 byte card ID or last 4 byte of a 7 byte card ID */
}
if (!sendCommandCheckAck(pn532_packetbuffer, 14))
return 0; |
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:
The text was updated successfully, but these errors were encountered: