Instructions

NFC &
MIFARE & ISO14443AB & ISO15693 & ISO18000 & ISO7816 IC Card Module www.quio-rfid.de
Copyright © 2003-2022 Quick Ohm Küpper & Co. GmbH. All rights reserved. 68/101
5.8.3.6 DESFire Limited Credit
Function: Increase a limited value in specified Value File in current application without
having full Read&Write permissions to the file. Commitment is needed to take effect after this
operation, refer to: DESFire Commit Transaction please.
Host sends:
Frame 0xA9 FID Data Checksum
FID: 1 byte.
Data: There are two lengths, depending on whether it is encrypted.
Plaintext: 4 bytes value (LSB in first).
Encryption: 8 bytes encrypted data, After decryption: 4 bytes value (LSB first)
+ 2 bytes CRC + 2 bytes 0x00.
Success:
Frame 0xA9 Status Checksum
Status: status code returned from the card.
Please reference: DESFire Returned State Code.
Failure:
Frame 0x56 Checksum
Example:
Send: 0x00 09 00 A9 01 01 00 00 00 A0
Return: 0x00 05 01 A9 00 AD
5.8.3.7 DESFire Write Record
Function: Write data to specified Data File in current application. The data file could be
Linear Record or Cyclic Record file. This command appends one record at the end of the record
file. The status will show an error when the linear record file is full. In case of cyclic record file is
already full, it erases and overwrites the oldest record. Commitment is needed to take effect after
this operation, refer to: DESFire Commit Transaction please.
Host sends:
Frame 0xAA FID Offset Length Data Checksum
FID: 1 byte.
Offset: 3 bytes (LSB in first), offset in the record.
Length: 3 bytes (LSB in first), greater than 0 and less than or equal Record Size subtract
the offset in the record.
Data: The data to be written.
Success:
Frame 0xAA Status Checksum
Status: status code returned from the card.
Please reference: DESFire Returned State Code.
Failure:
Frame 0x55 Checksum
Example:
Send: 0x00 1B 00 AA 06 00 00 00 10 00 00 00 11 22 33 44 55 66 77 88 99 AA BB CC DD
EE FF A7
Return: 0x00 05 01 AA 00 AE