Host Protocols Direct Protocol CONTROL class NFC modes NFC LISTENER
April 13, 2023 at 2:39 AMNFC_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 b 0 : The content of the cardlet’s memory is undefinedb 1 : Load default data into the cardlet’s memory |
4 | Combined NFC+PC/SC operation b 0 : Disabled - the cardled is available only through NFCb 1 : Expose the cardlet as a virtual card in the PC/SC slot as well |
3-0 | Mode and cardlet selection b 0001 : HCE operation (no cardlet)b 0100 : NFC Forum type 4 Tag cardletb 1111 : Loopback cardletAll 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