Value Block Operation (Inc, Dec, Store) - ACS ACR3x mobile Reference Manual

Hide thumbs Also See for ACR3x mobile:
Table of Contents

Advertisement

9.2.5.

Value Block Operation (INC, DEC, STORE)

The Value Block Operation command is used in manipulating value-based transactions, such as
incrementing a value of the value block.
Value Block Operation APDU Format (10 bytes)
Command
Value Block
Operation
Where:
Block Number
VB_OP
VB_Value
Example 1: Decimal –4 = {FFh, FFh, FFh, FCh}
MSB
FFh
Example 2: Decimal 1 = {00h, 00h, 00h, 01h}
MSB
00h
Value Block Operation Response Format (2 bytes)
Response
Result
Value Block Operation Response Codes
Results
SW1 SW2
Success
Error
ACR3x – Reference Manual
Version 1.03
Class
INS
P1
FFh
D7h
00h
1 byte. The value block to be manipulated.
1 byte.
00h = Store the VB_Value into the block. The block will then be
converted to a value block.
01h = Increment the value of the value block by the VB_Value. This
command is only valid for value block.
02h = Decrement the value of the value block by the VB_Value. This
command is only valid for value block.
4 bytes. The value used for value manipulation. The value is a signed
long integer.
VB_Value
FFh
FFh
VB_Value
00h
00h
Data Out
SW1
SW2
90 00h
The operation was completed successfully.
63 00h
The operation failed.
P2
Le
Block
05h
Number
LSB
FCh
LSB
01h
Meaning
Data In
VB_Value
(4 bytes)
VB_OP
{MSB .. LSB}
Page 64 of 77
info@acs.com.hk
www.acs.com.hk

Advertisement

Table of Contents
loading

Table of Contents