User's Manual

Table Of Contents
SDI011 REFERENCE MANUAL 67
7.3. Annex C - SCM Proprietary CLA bytes
CLA Byte
Function
0xF0
Contact Memory cards
0xFF
MIFARE-TCL Switching
T=CL User command
Escape command APDU
The second SCM Proprietary APDU is blocked for the application layer. This is used for internal
communication i.e. between the driver and the firmware.
Function
CLA byte PC/SC1.0
CLA byte PC/SC2.0
T=CL User Command APDU
0xFC
0xFF
MIFARE DESFire APDU
0xFC
0xFF
Escape Command APDU
0xFD
0xFF
In order to maintain compatibility with some customer applications which use the CLA bytes of
PC/SC 1.0 architecture, the following switching mechanism can be used.
Option1: Use the CLA byte of PC/SC1.0 architecture
Option2: Use the CLA byte of PC/SC2.0 architecture
The above two options can be controlled by
Configuring the firmware
INF/registry entry
Vendor IOCTL.
By default, option #2 is set in the firmware binary.
The entry System\CurrentControlSet\Services\SCM\ProprietaryAPDUOption is kept disabled in
the INF by default. Enabling this key and setting this entry to 0 will override the firmware setting
with option #1. Enabling this key and setting this entry to 1 will override the firmware setting
with option #2.
Vendor IOCTL_SWITCH_PROPRIETARY_APDU_OPTION (0x856) can also be used to switch
between the two options. Input buffer with value 0x00 will switch to option#1 and input buffer
with value 0x01 will switch to option#2.