2020-02-28 01:13 AM
Hi,
We are testing the ST25R3916 to read Mifare 1K classic UID's.
We manage to initialize the chip and to send an REQA command (We get 00 04 back from the card so communication works!).
But we need to know the UID.
To do this I found the APDU command:
Class = 0xFF
INS = 0xCA
P1 = 0x00
P2 = 0x00
Le = 0x00
So following the datasheet we do this:
What could we be doing wrong?
Thx for any help,
Marvin
Solved! Go to Solution.
2020-02-28 04:09 AM
Hi Marvin,
If it is a Mifare Classic 1K tag then no APDUs or even ISO14443-A layer4 are supported. Mifare Classic will require proprietary cryptography to read/write data.
To get the UID of ISO14443-3 type A tags (including Mifare Classic) you need to perform so called anticollision which starts with first command 93 20 (no CRC used!). Please refer to ISO14443-3 or NFC Forum Digital.
I would however go the easy way and use NUCLEO-L476 + X-NUCLEO-NFC05A + X-CUBE-NFC5 which implements and show cases all the needed procedures.
Regards, Ulysses
2020-02-28 04:09 AM
Hi Marvin,
If it is a Mifare Classic 1K tag then no APDUs or even ISO14443-A layer4 are supported. Mifare Classic will require proprietary cryptography to read/write data.
To get the UID of ISO14443-3 type A tags (including Mifare Classic) you need to perform so called anticollision which starts with first command 93 20 (no CRC used!). Please refer to ISO14443-3 or NFC Forum Digital.
I would however go the easy way and use NUCLEO-L476 + X-NUCLEO-NFC05A + X-CUBE-NFC5 which implements and show cases all the needed procedures.
Regards, Ulysses
2020-02-28 06:05 AM
Thank you so much 0x93 0x20 works perfect!!!