Page
47
of
70
Copyright © Access-IS 2016
7.12.2 MIFARE Ultralight-C response bytes
MIFARE Ultralight-C response bytes
Response header
Response code
Block number
Response
cryptogram (1)
Status bytes
[0x00]
[0x25]
Ignored
9 bytes starting
with
[0x00]
[0x90][0x00]
Success
Failure
(1)
This field is present only if the command is successful. Refer to page 48 for information on
MIFARE failure status codes.
Note:
Once the NFC module receives a command, it waits for 250 milliseconds for another
command to arrive. If no command arrives, it resets the MIFARE card. This interval, the ‘Command
Wait Time’, is configurable using the ‘Set NFC timings command’ (on page 52).
The NFC reader resets the MIFARE card after the ‘Command Wait Time’ has expired, and any
authentication done before this event is lost.
This means that you must send the next Authenticate part-2 command after a successful
Authenticate part-
1 command before the ‘Command Wait Time’ expires.
If you want to preserve the authentication for a longer period, without changing the ‘Command Wait
Time’, send the ‘MIFARE get media type command’ (on page 36) periodically to keep the session
active.
7.12.3 Example
This command performs authentication (part 2) on an Ultralight-C card.
Command:
[0x00][0x26][0x00][0x6C][0x29][0x02][0x40][0x6B][0x7C][0x74]
[0x02][0x5A][0xCE][0x65][0x93][0xD8][0x4E][0x36][0xA1]
Response:
[0x00][0x27][0x00][0x00][0x21][0x65][0x40][0x23][0xCF][0xD5]
[0x46][0xEB][0x90][0x00]
This command fails to authenticate with an error ‘MIFARE Ultralight-C Authentication Part 2 failed’.
Command:
[0x00][0x26][0x00][0x6C][0x29][0x02][0x40][0x6B][0x7C][0x74]
[0x02][0x5A][0xCE][0x65][0x93][0xD8][0x4E][0x36][0xA1]
Response:
[0x00][0x27][0x00][0x69][0x8C]
7.13 MIFARE transceive direct
Use this command to send commands directly to the MIFARE media.
Warning:
This is for advanced users only and provides low-level access to send and receive
raw data. It is applicable to all MIFARE card types. Refer to the MIFARE card datasheet for
data specifications.