APDU Basic Commands
APDU Basic Commands
Command APDU
Length
Field name Description
(bytes)
Instruction class - indicates the type of command, e.g. interindustry or
CLA 1
proprietary
INS 1 Instruction code - indicates the specific command, e.g. "write data"
Instruction parameters for the command, e.g. offset into file at which to write
P1-P2 2
the data
Encodes the number (Nc) of bytes of command data to follow
Command
Nc Nc bytes of data
data
Encodes the maximum number (Ne) of response bytes expected
Response APDU
# Write Binary
80 20 07 00 08 41 43 4F 53 54 45 53 54
80 A4 00 00 02 FF 04
80 D0 00 00 04 01 02 03 04
# Read Record
80 20 07 00 08 41 43 4F 53 54 45 53 54
80 A4 00 00 02 FF 04
80 B2 00 00 10
# Write Record
80 20 07 00 08 41 43 4F 53 54 45 53 54
80 A4 00 00 02 FF 04
80 B2 00 00 10
80 D2 00 00 10 01 02 03 04 50 53 02 20 02 23 43 35 35 34 44 54
80 B2 00 00 10
Some of the screenshot for the Code Runner are given below :-
The Below code Shows the Card Serial number while selecting the File FF 00