Page
39
of
77
Copyright © Access-IS 2020
7. MIFARE media commands and responses
This section describes the MIFARE media commands and responses for the NFC module.
In serial mode, all MIFARE commands use a CCID
PC_to_RDR_XferBlock
message to
communicate with the module/card. The application software should be aware of this and it should
add/remove the CCID header from the command/responses.
Note: All of the MIFARE commands for a serial device have an attached CCID header, which is
shown in black text in the examples. The header is always 10 bytes in length; the second byte
indicates the length of the command or response. The example commands and responses omit
trailing zeroes.
The command bytes have a command code, which is bit encoded as follows:
Bit
7
6
5
4
3
2
1
0
1 - RF selection prior to
command operation
1 - Authentication after RF
selection (if enabled) but
before the command operation
Command function code
0 - No RF selection
0 - No authentication *
* Some commands will automatically perform authentication if you enable RF selection.
When you enable RF selection, the reader resets each time it polls.
When you disable RF selection, the reader polls using the Universally Unique Identifier (UUID) that
it had last time it polled; the reader looks for the same card.
Note:
The MIFARE command code has two possible values depending on whether the command
includes authentication (bit 6). For example, RF select and no authentication: binary =
10000000
,
hex =
[0x80]
, RF select with authentication: binary =
11000000
, hex =
[0xC0]
. Authentication
may or may not apply depending on the command.
7.1 MIFARE get media type
Use this command to return the MIFARE media type.
7.1.1 MIFARE command bytes
MIFARE command bytes
Command header
Command code
[0x00]
[0x00]
or
[0x40]
Get type
[0x80]
or
[0xC0]
RF select and get type (No authentication performed)