APDU for UID (MIFARE 1K CLASSIC) no response
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:
- Clear FIFO (0xDB)
- Write Define the number of transmitted bytes in 2 registers.
- This is not 100% clear
- The APDU has 5 bytes so we do this?
- Number of transmitted bytes register 1: 0x00
- Number of transmitted bytes register 2: 0x28
- Then we write the 5 bytes to the FIFO:
- i2c tx: 0x80 (FIFO write) 0xFF 0xCA 0x00 0x00 0x00
- Then send With CRC => 0xC4
- We get interrupt that TX happened but no response from the chip while REQA works fine
What could we be doing wrong?
Thx for any help,
Marvin
