SCL3711
R
EFERENCE
M
ANUAL
37
6.2.5. STORAGE_CARD_CMDS_VALUE_BLOCK
6.2.5.1. Description
This APDU is used to interact with MIFARE Classic e-purse applications. Please refer to
MIFARE Classic documentation available from NXP Semiconductors for further details on
MIFARE classic memory mapping and commands.
6.2.5.2. Format
CLA
INS
P1
P2
Lc
Data in
0xFF
0xF0
0x00
Block #
Lc
Increment/Decrement,
Block number, Value
Where P1, P2 code the address of the block number addressed
Where the data field is structured as follow
Byte #
Value
Description
0xC0
Increment
B0
0xC1
Decrement
B1
Block number
B2-B5
Value (LSB first)
6.2.5.3. Response
Data Out
SW1 + SW2
6.2.5.4. Status Words
SW1
SW2
Description
0x90
0x00
NO ERROR
0x67
0x00
Length incorrect
0x68
0x00
CLA byte incorrect
0x6A
0x81
Function not supported
0x6B
0x00
Wrong P1, P2 parameters
6.2.5.5. Example
CLA
INS
P1
P2
Lc
Data in
0xFF
0xF0
0x00
0x1E
0x06
0xC0 0x1E 0x01 0x00 0x00 0x00
Will increment block number 0x1E of a MIFARE Classic-based user token by a value of 0x01.