Technical Manual

East Wind Technologies, Inc.
Copyright ©
2022 East Wind Technologies, Inc. All rights reserved.
50/66
Status: status code returned from the card.
Please reference:
DESFire Returned State Code.
Data: data returned from the card.
Failure:
Frame
0x5B
Checksum
3.7.3.2 DESFire Write Data
Function: Write specified Data File (Standard Data File or Backup Fata File) in current
application. For Backup Data File, Commit is needed to take effect after write, refer to:
DESFire
Commit Transaction please.
Host sends:
Frame
0xA5
FID
Offset
Length
Data
Checksum
FID: 1 byte.
Offset: 3 bytes (LSB in first), offset in the file.
Length: 3 bytes (LSB in first), bytes need to be read.
Data: The data to be written.
Success:
Frame
0xA5
Status
Checksum
Status: status code returned from the card.
Please reference:
DESFire Returned State Code.
Failure:
Frame
0x5A
Checksum
3.7.3.3 DESFire Get Value
Function: Read current value of specified Value File in current application.
Host sends:
Frame
0xA6
FID
Checksum
FID: 1 byte.
Success:
Frame
0xA6
Status
Data
Checksum
Status: status code returned from the card.
Please reference:
DESFire Returned State Code.
Data: There are two lengths, depending on whether encryption.
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.
Failure:
Frame
0x59
Checksum
3.7.3.4 DESFire Credit
Function: Increase value in specified Value File in current application. Commitment is
needed to take effect after this operation, refer to:
DESFire Commit Transaction please.