PCSC Operation APDU Interpreter Vendor instructions RFID
April 13, 2023 at 2:39 AMRFID instruction and subinstructions
The RFID MEMORY CONTROL instruction gives access to some functions of RFID wired-logic PICCs or VICCs that have no equivalent in the smartcard world.
For instance, Reading to / Writing from a RFID memory chip maps to READ BINARY / UPDATE BINARY which are “standards” instructions defined by ISO 7816. But ISO 7816 has no equivalentfor a lot of functions defined in ISO 15693, such as “Write DSFID”, “Lock AFI”, and much more.
Therefore, the RFID MEMORY CONTROL instruction is a SpringCard-defined function that easesoperating ISO 15693 and related VICCs, such as EM4134.
Read Single Block
This function is available for ISO 15693 and EM4134 VICCs.
This function is a low-level alternative to READ BINARY.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 20 |
|
P2 | 00 |
|
Lc | 01 |
|
DataIn | Address | 1 Byte |
Le | 00 |
Read Single Block
This function is available for ISO 15693 and EM4134 VICCs.
This function is a low-level alternative to UPDATE BINARY.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 21 |
|
P2 | 00 |
|
Lc | 01 + Len |
|
DataIn | Address | 1 Byte |
Data | Len | |
Le | absent |
Lock Block
This function is available for ISO 15693 and EM4134 VICCs.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 22 |
|
P2 | 00 |
|
Lc | 01 |
|
DataIn | Address | 1 Byte |
Le | absent |
Read Multiple Blocks
This function is available for ISO 15693 VICCs only.
This function is a low-level alternative to READ BINARY.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 23 |
|
P2 | 00 |
|
Lc | 02 |
|
DataIn | Address | 1 Byte |
Count | 1 Byte | |
Le | 00 |
Write Multiple Blocks
This function is available for ISO 15693 VICCs only.
This function is a low-level alternative to UPDATE BINARY.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 24 |
|
P2 | 00 |
|
Lc | 02 + Len |
|
DataIn | Address | 1 Byte |
Count | 1 Byte | |
Data | Len | |
Le | absent |
Select
Write AFI
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 27 |
|
P2 | 00 |
|
Lc | 01 + Len |
|
DataIn | AFI | 1 Byte |
Le | absent |
Lock AFI
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 28 |
|
P2 | 00 |
|
Lc | 00 |
|
Le | absent |
Write DSFID
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 29 |
|
P2 | 00 |
|
Lc | 01 |
|
DataIn | DSFID | 1 Byte |
Le | absent |
Lock DSFID
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 2A |
|
P2 | 00 |
|
Lc | 00 |
|
Le | absent |
Get System Information
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 2B |
|
P2 | 00 |
|
Lc | absent | |
Le | 00 |
Note: the firmware always sends the Get system information command to the VICC, as part of the discovery process. Invoke the GET DATA instruction to retrieve the value already returned by the VICC to the firmware.
Get Multiple Block Security
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 2C |
|
P2 | 00 |
|
Lc | 02 |
|
DataIn | Address | 1 Byte |
Count | 1 Byte | |
Le | absent |
Extended Read Single Block
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 30 |
|
P2 | 00 |
|
Lc | 02 |
|
DataIn | Address | 2 Bytes, MSB First |
Le | 00 |
Extended Write Single Block
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 31 |
|
P2 | 00 |
|
Lc | 02 + Len |
|
DataIn | Address | 2 Bytes, MSB First |
Data | Len | |
Le | 00 |
Extended Lock Block
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 32 |
|
P2 | 00 |
|
Lc | 02 |
|
DataIn | Address | 2 Bytes, MSB First |
Le | 00 |
Extended Read Multiples Blocks
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 33 |
|
P2 | 00 |
|
Lc | 04 |
|
DataIn | Address | 2 Bytes, MSB First |
Count | 2 Bytes, MSB First | |
Le | 00 |
Extended Write Multiples Block
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 34 |
|
P2 | 00 |
|
Lc | 04 + Len |
|
DataIn | Address | 2 Bytes, MSB First |
Count | 2 Bytes, MSB First | |
Data | Len | |
Le | 00 |
Get Multiples Blocks Security
This function is available for ISO 15693 VICCs only.
Command format
Field | Value | Remark |
---|---|---|
CLA | FF |
|
INS | F6 |
|
P1 | 3C |
|
P2 | 00 |
|
Lc | 04 |
|
DataIn | Address | 2 Bytes, MSB First |
Count | 2 Bytes, MSB First | |
Le | 00 |