
Page
41
of
77
Copyright © Access-IS 2020
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 55 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.
USB
Command:
[0x00][0x02][0xFF][0xFF][0xFF][0xFF][0xFF][0xFF]
Response:
[0x00][0x03][0x90][0x00]
Serial
Command:
[0x6F][0x08][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x02][0xFF][0xFF][0xFF][0xFF][0xFF][0xFF]
Response:
[0x80][0x04][0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]
[0x00][0x03][0x90][0x00]
7.3 MIFARE au
t
henticate block (key A or key B)
Use this comman
d to authenticate the specified MIFARE block against the MIFARE media’s internal
Key A or B.
You must load the MIFARE key using
(on page 40) before sending this command.
The MIFARE authenticate block command is largely used for test purposes. The other MIFARE
commands use this command internally to check that the key is loaded and responds. It checks
whether the MIFARE keys are correctly loaded.
Note: This command is NOT applicable to MIFARE Ultralight cards and fails if executed on
Ultralight cards. Ultralight cards do not support the authenticate command.
7.3.1 MIFARE command bytes
MIFARE command bytes
Command header
Command code
Block number
[0x00]
[0x04]
or
[0x44]
- Authenticate block (Key A)
Block number
[0x14]
or
[0x54]
- Authenticate block (Key B)
[0x84]
or
[0xC4]
- RF select and authenticate block (Key A)
[0x94]
or
[0xD4]
- RF select and authenticate block (Key B)