User's Manual

45 | P a g e www.eccel.co.uk
Command description
Argument
Size
Value
Description
Command ID
1
0x74
MFDF_CREATE_RECORD_FILE
File number
1
X
File number
inside application
Access rights
2
X
Please refer to the NXP documentation for more information
Record size
2
X
Record size, 16
-
bits LSB value
Number of records
2
X
Number of records, 16
-
bits LSB value
Cyclic flag 1 X
If cyclic file is full:
0x00 - further writing is not possible unless it is cleared
0x01 - the new record overwrites oldest record
Response description
ACK
1
0x00
Command ID
1
0x74
MFDF_CREATE_RECORD_FILE
Example:
HOST=>READER: 0x74 – MFDF_CREATE_RECORD_FILE
0x03 – file number
0xEE 0xEE – access rights
0x08 0x00 – 8-bytes for every record
0x40 0x00 – 64 records
0x01 – cyclic flag
READER=>HOST: 0x00 – ACK byte
0x74 – related command code MFDF_CREATE_VALUE_FILE
5.5.22 Write record (0x75)
This command writes data to a record file. It takes two arguments: the file number 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
0x75
MFDF_WRITE_RECORD_DATA
File number
1
X
File number inside application
Data
N
X
Data bytes to write
Response description
ACK
1
0x00
Command ID
1
0x75
MFDF_WRITE_DATA
Example:
HOST=>READER: 0x75 – MFDF_WRITE_DATA
0x01 – file number
0x01 0x02 0x03 0x04 0x05 0x06 0x07 - data
READER=>HOST: 0x00 – ACK byte
0x75 – related command code MFDF_WRITE_RECORD_DATA
5.5.23 Read record (0x76)
This command reads data from a record file. It takes three arguments: the file number, the record number,
and the number of bytes to be read. The returned ACK response contains the data that has been read.