ACR1255U-J1 – Reference Manual
Version V1.01
www.acs.com.hk
Page 73 of 73
Appendix A. Access MIFARE DESFire tags (ISO
14443-3)
MIFARE DESFire supports ISO 7816-4 APDU Wrapping and Native modes.
Once the MIFARE
DESFire tag is activated, the first APDU command sent to the MIFARE DESFire tag will determine the
“Command Mode”. If the first APDU is in “Native Mode”, the rest of the APDU commands must be in
“Native Mode” format. Similarly, if the first APDU is “ISO 7816-4 APDU Wrapping Mode”, the rest of
the APDUs must be in “ISO 7816-4 APDU Wrapping Mode” format.
Example 1: MIFARE DESFire ISO 7816-4 APDU Wrapping.
// To read 8 bytes random number from an ISO 14443-4 Type A PICC (DESFIRE)
APDU = {90 0A 00 00 01 00 00}
Class = 90h; INS = 0Ah (DESFire Instruction); P1 = 00h; P2 = 00h
Lc = 01h; Data In = 00h; Le = 00h (Le = 00h for maximum length)
Answer: 7B 18 92 9D 9A 25 05 21 [$91AF]
# Status Code {91 AF} is defined in DESFIRE specification. Please refer to the DESFIRE specification
for more details.
Example 2: MIFARE DESFire Frame Level Chaining (ISO 7816 wrapping mode)
// In this example, the application has to do the “Frame Level Chaining”.
// To get the version of the DESFIRE card.
Step 1: Send an APDU {90 60 00 00 00} to get the first frame. INS=60h
Answer: 04 01 01 00 02 18 05 91 AF [$91AF]
Step 2: Send an APDU {90 AF 00 00 00} to get the second frame. INS=AFh
Answer: 04 01 01 00 06 18 05 91 AF [$91AF]
Step 3: Send an APDU {90 AF 00 00 00} to get the last frame. INS=AFh
Answer: 04 52 5A 19 B2 1B 80 8E 36 54 4D 40 26 04 91 00 [$9100]
Android is a trademark of Google Inc.
Atmel is a registered trademark of Atmel Corporation or its subsidiaries, in the US and/or other countries.
Infineon is a registered trademark of Infineon Technologies AG.
Microsoft is a registered trademark of the Microsoft group of companies.
MIFARE, MIFARE Classic, MIFARE DESFire, MIFARE Mini and MIFARE Ultralight are registered trademarks of NXP B.V. and are used under license.
The Bluetooth® word, mark and logos are registered trademarks owned by Bluetooth SIG, Inc. and any use of such marks by Advanced Card Systems Ltd. is under
license. Other trademarks and trade names are those of their respective owners.