
Page
42
of
77
Copyright © Access-IS 2020
7.3.2 MIFARE response bytes
MIFARE response bytes
Response header
Response code
Block number
Status bytes
[0x00]
Any one of the following
values (Command code + 1)
[0x05]
or
[0x45]
[0x15]
or
[0x55]
[0x85]
or
[0xC5]
[0x95]
or
[0xD5]
Block number
[0x90][0x00]
Success
Failure
Refer to page 55 for information on MIFARE failure status codes.
7.3.3 Example
This command successfully authenticates block number 0 against Key A in the media.
USB
Command:
[0x00][0x04][0x00]
Response:
[0x00][0x05][0x00][0x90][0x00]
Serial
Command:
[0x6F][0x03][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x04][0x00]
Response:
[0x80][0x05][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x05][0x00][0x90][0x00]
7.4 MIFARE read block (key A or key B)
Use this command to authenticate the specified MIFARE block against the MIFARE media’s internal
Key A or B and then read the contents of the block.
You must load the MIFARE key using
(on page 40) before sending this command.
Note: This command is NOT applicable to MIFARE Ultralight cards and fails if executed on
Ultralight cards. To write to an Ultralight card use the ‘MIFARE Ultralight read block’ command (on
page 49).
7.4.1 MIFARE command bytes
MIFARE command bytes
Command header
Command code
Block number
[0x00]
[0x06]
Read block (Key A)
Block number
[0x16]
Read block (Key B)
[0x46]
Authenticate and read block (Key A)
[0x56]
Authenticate and read block (Key B)