Update binary blocks, Value block related commands, Value block operation – ACS AET62 NFC Reader with Fingerprint Sensor User Manual
Page 16: Table 19, Update binary apdu format (4 or 16 + 5 bytes), Table 20, Update binary block response codes (2 bytes), Table 21, Value block operation apdu format (10 bytes)
6.4. Update Binary Blocks
The “Update Binary Blocks command” is used for writing “data blocks” into the PICC. The data
block/trailer block must be authenticated.
Command
Class
INS
P1
P2
Lc
Data In
Update
Binary
Blocks
FF D6
00
Block
Number
Number
of
Bytes
to
Update
Block Data
4 Bytes for
Mifare
Ultralight
or
16 Bytes for
Mifare 1K/4K
Table 19: Update Binary APDU Format (4 or 16 + 5 Bytes)
where:
Block Number (1 Byte):The starting block to be updated.
Number of Bytes to Update (1 Byte):
16 bytes for Mifare 1K/4K
4 bytes for Mifare Ultralight.
Block Data (4 or 16 Bytes):
The data to be written into the binary block/blocks.
Results
SW1
SW2
Meaning
Success 90 00
The operation completed
successfully.
Error
63 00
The operation failed.
Table 20: Update Binary Block Response Codes (2 Bytes)
Example:
1. Update the binary block
0x04
of Mifare 1K/4K with Data {00 01 .. 0F}
APDU = {FF D6 00
04
10 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E
0F
}
2. Update the binary block
0x04
of Mifare Ultralight with Data {00 01 02 03}
APDU = {FF D6 00
04
04 00 01 02 03
}
6.5. Value Block Related Commands
The data block can be used as value block for implementing value-based applications.
6.5.1.
Value Block Operation
The “Value Block Operation command” is used for manipulating value-based transactions. E.g.
Increment a value of the value block etc.
Command
Class INS P1
P2
Lc
Data In
Value
Block
Operation
FF D7
00
Block
Number
05
VB_OP
VB_Value
(4 Bytes)
{MSB .. LSB}
Table 21: Value Block Operation APDU Format (10 Bytes)
Block Number (1 Byte): The value block to be manipulated.
VB_OP (1 Byte):
Document Title Here
Document Title Here
Document Title Here
AET62 Reference Manual
Version 1.00
Page 16 of 35
www.acs.com.hk