
Page
43
of
77
Copyright © Access-IS 2020
MIFARE command bytes
Command header
Command code
Block number
[0x86]
or
[0xC6]
RF select, authenticate and read block (Key A)
[0x96]
or
[0xD6]
RF select, authenticate and read block (Key B)
7.4.2 MIFARE response bytes
MIFARE response bytes
Response header
Response code
Block number
Block data (1)
Status bytes
[0x00]
Any one of the following
values
(Command code + 1)
[0x07]
or
[0x17]
[0x47]
or
[0x57]
[0x87]
or
[0xC7]
[0x97]
or
[0xD7]
Block number
16 bytes
[0x90][0x00]
Success
Failure
(1)
This field is present only if the command is successful. Refer to page 55 for information on
MIFARE failure status codes.
7.4.3 Example
This command successfully reads block number 0, using the loaded key authenticated against Key
A in the media.
USB
Command:
[0x00][0x46][0x00]
Response:
[0x00][0x47][0x00][0x02][0x0A][0xA8][0x9C][0x3C][0x98][0x02]
[0x00][0x64][0x5D][0x04][0x11][0x5D][0x50][0x44][0x01][0x90]
[0x00]
Serial
Command:
[0x6F][0x03][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x46][0x00]
Response:
[0x80][0x15][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x47][0x00][0x02][0x0A][0xA8][0x9C][0x3C][0x98][0x02]
[0x00][0x64][0x5D][0x04][0x11][0x5D][0x50][0x44][0x01][0x90]
[0x00]
7.5 MIFARE write 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 write the specified data into that 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 write block’ command (on