Appendix c. mifare commands – MagTek IntelliStripe 320 99875168 User Manual
Page 123

117
APPENDIX C. MIFARE COMMANDS
Tag: DF 78
Len: VAR
Scope: DO
Object description: This object is used in order to send MIFARE command to the PICC. The
Data consists of a 1-byte command Number (Op Code) and optional data bytes. Response will be
in the same format including the Op Code before optional data.
Please note: When referring to “Mode” in the Table below, please use the scheme represented
here:
Mode (binary) 0 0 0 0 0 AB KS1 KS2
AB – 0 authentication with key A, AB – 1 authentication with key B
KS1, KS2 key set: 00-set 0, 01-set1, 10-set2
Table 11 Mifare OPCODEs
OpCode
Name: Read
Description: Read block command
Data structure: Op Code (one byte), Block # (one byte)
A5
Data Response structure: Op Code (one byte), 16 bytes of Read block Data
Name: Write
Description: Write block (16 bytes) command
Data structure: Op Code (one byte), Block # (one byte), 16 bytes of Write to
block Data
A6
Data Response structure: Op Code (one byte)
Name: Write Ultra Light
Description: Write 4 bytes into selected Ultra Light block
Data structure: Op Code (one byte), Block # (one byte), 4 bytes of Write to
block Data
A7
Data Response structure: Op Code (one byte)
Name: Load Key
Description: Replace and load new key
Data structure: Op Code (one byte), Mode (one byte), Sector # (one byte),
Transport key (6 bytes), New key (6 bytes)
A9
Data Response structure: Op Code (one byte)
Name: Increment
Description: Increment value of block in RAM
Data structure: Op Code (one byte), Block # (one byte), Value (4 bytes)
AA
Data Response structure: Op Code (one byte)