
Page
37
of
70
Copyright © Access-IS 2016
7.1.3 Example
This command successfully retrieves the MIFARE media type (MIFARE Classic 4K) and the Unique
Identifier (UID) of the card.
Command:
[0x00][0x00]
Response:
[0x00][0x01][0x04][0x02][0x0A][0xA8][0x9C][0x90][0x00]
7.2 MIFARE load key
Use this command to load the MIFARE key to access the protected sectors of the MIFARE media.
You must execute this command before any operation that involves MIFARE authentication.
Note:
This command format is different from other MIFARE command formats as the block number
is not required.
7.2.1 MIFARE command bytes
MIFARE command bytes
Command header
Command code
MIFARE key
[0x00]
[0x02]
or
[0x42]
Load key
6 bytes of MIFARE key
[0x82]
or
[0xC2]
RF select and load key (No authentication performed)
7.2.2 MIFARE response bytes
MIFARE response bytes
Response header
Response code
Status bytes
[0x00]
Any one of the following values
(Command code + 1)
[0x03]
or
[0x43]
[0x83]
or
[0xC3]
[0x90][0x00]
Success
Failure
Refer to page 48 for information on MIFARE failure status codes.
7.2.3 Example
This command successfully loads the 6-byte key into the NFC module for MIFARE authentication.
Command:
[0x00][0x02][0xFF][0xFF][0xFF][0xFF][0xFF][0xFF]
Response:
[0x00][0x03][0x90][0x00]