Document Version 1.00
Last revised on
Page 70 of 87
2020-04-10
Reference Manual for uTrust 3720F and uTrust 3721F Readers
6.3.7.5.
Write Multiple Blocks
This APDU writes 4 bytes of data to each consecutive block, for number of blocks, starting from block
number specified.
Command APDU:
CLA
INS
P1
P2
Lc
Data
Le
0xFF 0xFC 0x00 0x00 3 + (4 *
number
of
blocks)
0x24 Start Block
(1 byte)
Number of
blocks – 1
(1 byte)
Data to be written to
each block;
(4 * number of blocks)
bytes
-
Response:
Data
Status Word
-
SW1 SW2
Example to write “AA AA AA AA BB BB BB BB” to 02 consecutive blocks starting at block number 0x10
APDU: FF FC 00 00 0B 24 10 01 AA AA AA AA BB BB BB BB
RESPONSE: 90 00
6.3.7.6.
Write AFI
This APDU writes the AFI value specified into card’s memory.
Command APDU:
CLA
INS
P1
P2
Lc
Data
Le
0xFF 0xFC 0x00 0x00 0x02 0x27 AFI value (1 byte)
-
Response:
Data
Status Word
-
SW1 SW2
Example to write AFI value 0xF0
APDU: FF FC 00 00 02 27 F0
RESPONSE: 90 00