
Page
40
of
77
Copyright © Access-IS 2020
7.1.2 MIFARE response bytes
MIFARE response bytes
Response header
Response code(1) MIFARE type (2)
Media UID (2)
Status bytes
[0x00]
Any one of the
following values
[0x01]
[0x41]
[0x81]
[0xC1]
[0x03]
MIFARE Classic
1K
[0x04]
MIFARE Classic
4K
[0x05]
MIFARE Ultralight
4 bytes for
cascade level 1
7 bytes for
cascade level 2
10 bytes for
cascade level 3
[0x90][0x00]
Success
Failure
(1)
The response code is the command code plus one (for example, command
[0x00]
- response
[0x01]
).
(2)
This field is only present if the command is successful. Refer to page 55 for
information on MIFARE failure status codes.
7.1.3 Example
This command successfully retrieves the MIFARE media type (MIFARE Classic 4K) and the UID of
the card.
USB
Command:
[0x00][0x00]
Response:
[0x00][0x01][0x04][0x02][0x0A][0xA8][0x9C][0x90][0x00]
Serial
Command:
[0x6f][0x02][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x00]
Response:
[0x80][0x09][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[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)