User's Manual

41 | P a g e www.eccel.co.uk
Access
rights
2
X
Please refer to the NXP documentation for more information
File size
3
X
file size, LSB first
Backup file 1
X
0x00
Standard file
0x01 – Backup file
Response description
ACK
1
0x00
Command ID
1
0x6
C
MFDF_CREATE_DATA_FILE
Example:
HOST=>READER: 0x6C – MFDF_CREATE_DATA_FILE
0x01 – file number
0xEE 0xEE – access rights
0x40 0x00 0x00 – file 64-bytes long
0x01 – backup file
READER=>HOST: 0x00 – ACK byte
0x6C – related command code MFDF_CREATE_DATA_FILE
5.5.14 Write data (0x6D)
This command writes data to standard data files or backup data files. It takes three arguments: the file number,
the offset in the file where data should be stored, and the data bytes to be written. To store data on the TAG,
a commit transaction command is required.
Command description
Argument
Size
Value
Description
Command ID
1
0x6D
MFDF_WRITE_DATA
File number
1
X
File number inside application
File offset
3
X
file offset, 3
-
bytes LSB value
Data
N
X
Data
bytes to write
Response description
ACK
1
0x00
Command ID
1
0x6D
MFDF_WRITE_DATA
Example:
HOST=>READER: 0x6D – MFDF_WRITE_DATA
0x01 – file number
0x00 0x00 0x00 – zero offset
0x01 0x02 0x03 0x04 0x05 0x06 0x07 - data
READER=>HOST: 0x00 – ACK byte
0x6D – related command code MFDF_WRITE_DATA
5.5.15 Read data (0x6E)
This command reads data from standard data files or backup data files. It takes three arguments: the file
number, the offset in the file where data is stored, and the number of bytes to be read. The returned ACK
response contains the data that has been read.