
Page
48
of
70
Copyright © Access-IS 2016
7.13.1 MIFARE command bytes
MIFARE command bytes
Command header
Command code
Block number
Data bytes
[0x00]
[0x28]
MIFARE transceive direct
Ignored
Bytes to send to the MIFARE media
7.13.2 MIFARE response bytes
MIFARE response bytes
Response header
Response code
Block number
Response bytes
(1)
Status bytes
[0x00]
[0x29]
Same as
command
Response bytes
from the MIFARE
media
[0x90][0x00]
Success
Failure
(1)
This field is present only if command is successful. Refer to page 48 for information on MIFARE
failure status codes.
7.13.3 Example
This command reads block 0 on an Ultralight-C card.
Command:
[0x00][0x28][0x00][0x30][0x00]
Response:
[0x00][0x29][0x00][0x04][0xC7][0x64][0x2F][0x00][0x00][0x00]
[0x00][0x00][0x48][0x00][0x00][0x00][0x00][0x00][0x00][0x90]
[0x00]
This co
mmand fails with an error ‘MIFARE direct transceive failed’.
Command:
[0x00][0x28][0x00][0x30][0x00]
Response:
[0x00][0x29][0x00][0x69][0x8D]
7.14 MIFARE failure status codes
The following table gives the status codes for MIFARE command failures.
Table 15. MIFARE failure status codes
MIFARE failure code
Failure description
[0x80]
Missing parameters
[0x81]
Invalid command header; command header is not
[0x00]
[0x82]
Invalid command
[0x83]
Authentication failed
[0x84]
Read block failed
[0x85]
Write block failed
[0x86]
Restore value block failed (this is an internal command failure)
[0x87]
Create value block failed