Forum › MIFARE and NFC Reader IC`s › CLRC663 Authentication Failed – 0x0201 › Reply To: CLRC663 Authentication Failed – 0x0201
Hi NFCuser,
I cannot say anything to the NXP Reader Library, but you can program the CLRC663 directly via writing and reading the registers. To authenticate with a MIFARE key you have to do the following steps:
I hope it helps.
Kind regards,
The MIFARE Team
I cannot say anything to the NXP Reader Library, but you can program the CLRC663 directly via writing and reading the registers. To authenticate with a MIFARE key you have to do the following steps:
- 1. Write the key (the default key is FFFFFFFFFFFF) into the Fifo (register 05),
command: FF into 05, - command: FF into 05,
command: FF into 05, - 2. Send the LoadKey
command: 02 into 00. - 3. Maybe wait.
- 4. Write the value 60 into Fifo,
command: 60 into 05,
command: 00 into 05. - 5. Write the first four bytes of UID into Fifo,
command: UID0 into 05,
command: UID1 into 05,
command: UID2 into 05,
command: UID3 into 05. - 6. Start MIFARE Authenticate
command: 03 into 00. - 7. Maybe wait.
- 8. Read error register
command read 0A. - 9. Check length of reply
command: read 04 - 10. Read reply bytes (length previously read)
command: read 05 x times (x is the length)
command: FF into 05,
command: FF into 05,
command: FF into 05.
I hope it helps.
Kind regards,
The MIFARE Team
+ 0
|
- 0