CL CONTROL instruction

Use this command to finely control the behaviour of the contactless (NFC/RFID HF) slot.

Command format

Field Value Remark
CLA FF
INS FB
P1 Sub command selection See table below
P2 Sub command selection See table below
Lc Depend on the sub command
DataIn Depend on the sub command
Le 00

Sub command selection

NFC/RFID field control and advanced ISO/IEC 14443 operation

P1 P2 Function Remark
00 00 Resume card tracking
01 00 Suspend card tracking Use this feature if the card's authentication state is cleared by the tracking frames sent by the coupler
10 00 RF field OFF
10 01 RF field ON
10 02 RF reset The RF field is switch OFF for about 10ms, then ON again
10 03 RF reset after removal When the card currently present will be removed, the RF field will reset

Advanced ISO/IEC 14443-4 operation

P1 P2 Function Remark
20 00 DESELECT ISO/IEC 14443-4: send the DESELECT command to the card
20 01 RATS ISO/IEC 14443 type A: send the RATS command to the card
20 02 ATTRIB ISO/IEC 14443 type B: send the ATTRIB command to the card
20 03 Reset T=CL ISO/IEC 14443-4: DESELECT+RATS or DESELECT+ATTRIB sequence
20 04 Disable T=CL (once) After the next SCardDisconnect, the card resets in ISO/IEC 14443-3 (not -4)
20 05 Disable T=CL (all) Same as above, but persistent until the coupler is reseted
20 06 Enable T=CL Restore the default behaviour (cards are operated at ISO/IEC 14443-4)
20 07 Leave T=CL now Do a RF reset and keep the card in ISO/IEC 14443-3 (not -4)

ISO/IEC 14443-4 statistics

P1 P2 Function Remark
21 00 TCL Short stats ISO/IEC 14443-4: get number of blocks exchanged during the last exhange (2 bytes) and the its duration in ms (4 bytes)

ISO/IEC 14443 type A runtime parameters

P1 P2 Function DataIn
FA RFU

The values that are set using these instructions are persistent until the coupler is reseted. Startup values are read from the non-volatile memory's NFC-A specific options register.

ISO/IEC 14443 type B runtime parameters

P1 P2 Function DataIn
FB 10 Set AFI ISO/IEC 14443-2 type B AFI (1 byte)

The values that are set using these instructions are persistent until the coupler is reseted. Startup values are read from the non-volatile memory's NFC-B specific options register.

FeliCa runtime parameters

P1 P2 Function Remark
FC 01 Set READ Service Code Service Code (2 bytes) to be used by the READ BINARY instruction with FeliCa cards
FC 02 Set WRITE Service Code Service Code (2 bytes) to be used by the UPDATE BINARY instruction with FeliCa cards
FC 10 Set System Code System Code or SENS_RES (2 bytes) to be used for FeliCa polling
FC 11 Set Request Code Request Code or SENS_REQ (1 byte) to be used for FeliCa polling

The values that are set using these instructions are persistent until the coupler is reseted. Startup values are read from the non-volatile memory's NFC-F specific options register.

ISO/IEC 15693 runtime parameters

The values that are set using these instructions are persistent until the coupler is reseted. Startup values are read from the non-volatile memory's NFC-F specific options register.

P1 P2 Function DataIn
FD 10 Set AFI ISO/IEC 15693-3 AFI (1 byte)

Response

Field Value Remark
SW 9000 on success Other values are documented in Status Words