Document Version 1.0
Last revised on
2018-‐10-‐22
Page 46 of 79
Reference Manual for uTrust 5501 F Reader/Writer Module
6.3.3.1.
READER_SETMODE
This escape command sets the current mode of the reader. Applications may call this function to set
the desired mode. Typically, this call is used to switch between the ISO 7816, EMV, memory card, and
NFC test mode operations. Upon power on, the reader will reset to the default ISO 7816 mode.
Input:
The first byte of the input buffer contains the escape code value and the second byte contains the
value for the desired mode of operation. The output buffer field shall be NULL.
Byte0
Byte1
Escape code (0x01) Mode
The following table defines the values for the mode parameter:
Mode
Value
Remarks
ISO 7816
0x00
ISO 7816 mode – Applicable for both contact and contactless slots
EMV
0x01
EMV – Applicable only for contact slot and ignored by contactless
interface
Synchronous 0x02
Memory card mode (synchronous) – Applicable only for contact slot
and ignored by contactless interface
NFC Test
0x04
NFC test mode – Applicable only for contactless interface
ISO mode uses APDU mode of data transfer and is used for normal operation. This is the default mode
of the reader on power up.
EMV mode also uses APDU mode of data transfer and is used for EMV test purposes. This mode has
more stringent checks for smartcard detection and communication as per EMV4.2 spec.
Synchronous mode is used for communicating only with memory cards.
NFC test mode is used to ignore deactivate-‐activate sequence during SCardConnect.
(PC_TO_RDR_ICCPOWERON -‐ 0x62, and PC_TO_RDR_ICCPOWEROFF – 0x63).
Output:
Output buffer
NULL