NFC_LISTENER

Role

Enter NFC emulation mode.

Access condition

Free.

Command

Field Value
CLA 58 (CONTROL)
INS 63
Data 1 byte: card emulation mode and flags, see below

Card emulation mode and flags

Bits Description / remark
7-6 RFU
5 Load default data
b0: The content of the cardlet’s memory is undefined
b1: Load default data into the cardlet’s memory
4 Combined NFC+PC/SC operation
b0: Disabled - the cardled is available only through NFC
b1: Expose the cardlet as a virtual card in the PC/SC slot as well
3-0 Mode and cardlet selection
b0001: HCE operation (no cardlet)
b0100: NFC Forum type 4 Tag cardlet
b1111: Loopback cardlet
All other values are RFU and shall not be used

HCE operation

Choosing this mode enables Host-based Card Emulation (HCE).

Bit 4 “expose the cardlet as a virtual card in the PC/SC slot” must be set for HCE operation.

After having enabled HCE using this CONTROL command, a virtual card appears as present in the contactless slot. Invoke the APDU interpreter’s HCE POLL, PUSH and CONTROL instructions through SCardTransmit.

NFC Forum type 4 Tag cardlet

This cardlet emulates a NFC Forum T4A Tag.

If bit 4 “expose the cardlet as a virtual card in the PC/SC slot” is set, a virtual card appears as present in the contactless slot. Invoke the APDU interpreter’s READ BINARY and UPDATE BINARY instructions through SCardTransmit to access the Tag’s content from the host.

If bit 4 is not set, the Tag’s content can only be accessed from the NFC interface.

Loopback cardlet

This cardlet is used to test the NFC interface.

Bit 4 “expose the cardlet as a virtual card in the PC/SC slot” must NOT be set with this cardlet.

Response

None