ACR122T – Application Programming Interface
Version 2.02
www.acs.com.hk
Page 19 of 45
Results SW1 SW2
Meaning
Error
63 00h
The operation failed.
5.5.2.
Read Value Block
The “Read Value Block command” is used for retrieving the value from the value block. This
command is only valid for value block.
Read Value Block APDU Format (5 Bytes)
Command
Class INS P1
P2
Le
Read Value Block FFh B1h 00h Block Number 04h
Where:
Block Number:
1 Byte. The value block to be accessed.
Read Value Block Response Format (4 + 2 Bytes)
Response
Data Out
Result
Value
{MSB .. LSB}
SW1 SW2
Where:
Value:
4 Bytes. The value returned from the card. The value is a signed long integer (4
bytes).
Example 1:
Decimal –4 = {0xFFh, 0xFFh, 0xFFh, 0xFCh}
Value
MSB
LSB
FFh FFh FFh FCh
Example 2:
Decimal 1 = {0x00h, 0x00h, 0x00h, 0x01h}
Value
MSB
LSB
00h 00h 00h 01h
Response Codes
Results SW1 SW2 Meaning
Success
90 00h
The operation completed successfully.
Error
63 00h
The operation failed.
5.5.3.
Restore Value Block
The “Restore Value Block command” is used to copy a value from a value block to another value