ib technology
The first argument is the source block address to load data from, the second argument
specifies which key code to use for sector authentication (0-31) and if it is a KeyA or KeyB
code. The third argument specifies where the data is stored.
B7
B0
Command:
Argument1:
Argument2:
0 1 0 1 0 1 0 0
N N N N N N N N
T x x K K K K K
(Ascii “T”, 0x54)
(N = MF source block address 0 – 255)
(T = Key Type, 0 = KeyA, 1= KeyB)
(K = Key code number, 0 – 31)
(N = MF destination block address 0 – 255)
Argument3:
N N N N N N N N
Acknowledge: 1 F F F F F F X
(F = Status flags)
If the Inc, Dec or Transfer function was unsuccessful (invalid card, card out of field,
authentication failed or data structures are incorrect) then Status flags in acknowledge byte
indicate error. Note that the value manipulation commands operate internally on the Mifare
card and no data is transferred back to the MicroRWD. Note also that Ultralight cards do not
support Value Data Structures or the Inc, Dec, Transfer commands.
Type Identification
Command to return the ATQA (Answer to Request, Type A) two-byte codes and the SAK
(Select Acknowledge) single-byte code after the complete UID has been acquired. As part of
the initial communication with the Mifare card (as defined by ISO 14443A specification), the
Mifare transponder responds to REQA (Request Command, Type A) with ATQA. The two-
byte ATQA contains information that allows particular transponder types to be indentified.
Following on from this the Mifare transponder responds to the SELECT (Select Command,
Type A) with SAK (Select Acknowledge, Type A). The SAK code is a single byte value that
contains further information about the type of transponder and the length of the UID. The
SAK value reported is the final value after all “cascade levels” and the complete UID has
been acquired.
NOTE THAT THIS COMMAND IS INCLUDED FOR DIAGNOSTIC PURPOSES TO
ALLOW THE USER TO DETERMINE THE EXACT TYPE OF MIFARE CARD
PRESENT IN THE FIELD, IF REQUIRED.
B7
B0
Command:
0 1 1 1 1 0 0 0
(Ascii “x”, 0x78)
(F = Status flags)
Acknowledge: 1 F F F F F F X
Data only follows if card was selected OK with no errors detected.
Reply1:
Reply2:
Reply3:
D D D D D D D D
D D D D D D D D
D D D D D D D D
ATQA - MSB
ATQA - LSB
SAK
17