User's Manual

Table Of Contents
SDI011 REFERENCE MANUAL 56
6.6. Escape commands for the contact interface
6.6.1. Sending escape commands to SDI011
A developer can use the following method to send escape commands to SDI011 for the contact
interface
SCardControl method defined in PC/SC API
6.6.2. Escape command codes
Escape commands can be used by an application to configure SDI011 to function in a mode
that is not its default configured mode or to get specific information. To put the SDI011 back
into its default mode, either the SDI011 has to be unplugged and plugged again or the
application can send again the same escape command.
The following escape commands are supported by SDI011 for the contact interface
Escape command
Code
READER_SETMODE
0x01
READER_GETMODE
0x02
READER_APDU_TRANSFER
0x08
READER_SWITCH_SPEED
0x0A
READER_SWITCH_PROTOCOL
0x0C
READER_DISABLE_PPS
0x0F
READER_GETIFDTYPE
0x12
READER_GETINFO_EXTENDED
0X1E
6.6.3. READER_SETMODE
This escape command may be used to set the mode of the reader. Applications may call this
function, to set the desired mode. Typically, this call is used to switch between the EMV,
ISO7816 and the memory card modes of operation.
The input buffer is
Byte #
Value
Description
B0
0x01
Escape command code
B1
0x00
ISO 7816 mode
0x01
EMV mode
0x02
Memory card mode
The output buffer is
Output buffer
NULL