ACR122T – Application Programming Interface
Version 2.02
www.acs.com.hk
Page 20 of 45
block.
Restore Value Block APDU Format (7 Bytes)
Command
Class INS P1
P2
Lc
Data In
Value Block
Operation
FFh D7h 00h Source Block Number 02h 03h
Target Block
Number
Where:
Source Block Number:
1 Byte. The value of the source value block will be copied to the
target value block.
Target Block Number:
1 Byte. The value block to be restored. The source and target value
blocks must be in the same sector.
Restore Value Block Response Format (2 Bytes)
Response
Data Out
Result
SW1 SW2
Response Codes
Results SW1 SW2 Meaning
Success
90 00h
The operation completed successfully.
Error
63 00h
The operation failed.
Example:
1. Store a value “1” into block
0x05h
APDU = {
FF D7
00
05
05
00
00 00 00 01h}
Answer: 90 00h
2. Read the value block
0x05h
APDU = {
FF B1
00
05
00h}
Answer: 00 00 00 01 90 00h [9000h]
3. Copy the value from value block
0x05h
to value block
0x06h
APDU = {
FF D7
00
05
02
03
06h
}
Answer: 90 00h [9000h]
4. Increment the value block
0x05h
by “5”
APDU = {
FF D7
00
05
05
01
00 00 00 05h}
Answer: 90 00h [9000h]