User manual

SCM3712 REFERENCE MANUAL 48
8.2.5. STORAGE_CARD_CMDS_VALUE_BLOCK
8.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.
8.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
B0
0xC0
Increment
0xC1
Decrement
B1 Block number
B2-B5
Value (LSB first)
8.2.5.3. Response
Data Out
SW1 + SW2
8.2.5.4. Status Words
SW1
SW2
Description
0x90
0x00
NO ERROR
0x69
0x82
Security status not satisfied
8.2.5.5. Example
CLA
INS
P1
P2
Lc
Data in
0xFF 0xF0 0x00 0x1E 0x06 0xC0 0x1E 0x01 0x00 0x000x00
Will increment block number 0x1E of a MIFARE Classic-based user token by a value of 0x01.