CLOUD
47
X
0
F
R
EFERENCE
M
ANUAL
40
6.2.9. PAPDU_MIFARE_VALUE_BLK_NEW
This command increments or decrements the value of a data object if the card supports
it. Refer to section 3.2.2.1.10 of [PCSC3-AMD1] for further details.
Command APDU:
Command
CLA
INS
P1
P2
Lc
Data
Le
Increment/
Decrement
FF
C2
00
03
xx
BER-
TLV
00
The data object consists of a TLV structure that defines, which action should be performed,
which block the actions pertain to (the destination(s)) and which value should be applied for the
action.
Tags for the action include:
0xA0: Increment
0xA1: Decrement
The Tag to define the destination is:
0x80: Destination
The Tag to define the value is:
0x81: value to increment or decrement Destination by, LSB first
Example
:
Increment block 5 by 100
FF C2 00 03 0B
A0 09
increment
80 01 05
block 5
81 04 64 00 00 00 by 100
00
This command returns a Response APDU according to section 2.2 of [PCSC3-SUP2].
Response APDU:
Data
Status Word
C0 03 Error status, see below
SW1, SW2 (card itself
will send SW1, SW2)