
Version 1.00 www.acs.com.hk
Page 3 of 48
www.acs.com
.hk
Table of Contents
1.0. Introduction .............................................................................................................5
2.0. Features...................................................................................................................6
3.0. Supported Card Types............................................................................................7
4.0. Smart Card Interface...............................................................................................8
5.0. Card Type Selection................................................................................................9
6.0. USB Interface.........................................................................................................10
7.0. USB Communication Protocol (CCID)..................................................................11
7.1. PC to Reader.......................................................................................................................11
7.1.1. PC_to_RDR_IccPowerOn...........................................................................................11
7.1.2. PC_to_RDR_IccPowerOff...........................................................................................11
7.1.3. PC_to_RDR_XfrBlock.................................................................................................12
7.1.4. PC_to_RDR_GetParameters......................................................................................12
7.1.5. PC_to_RDR_ResetParameters..................................................................................12
7.1.6. PC_to_RDR_SetParameters ......................................................................................13
7.1.7. PC_to_RDR_Escape ..................................................................................................15
7.1.8. PC_to_RDR_Secure...................................................................................................19
7.2. Reader to PC.......................................................................................................................23
7.2.1. RDR_to_PC_DataBlock..............................................................................................23
7.2.2. RDR_to_PC_SlotStatus..............................................................................................23
7.2.3. RDR_to_PC_Parameters............................................................................................24
7.2.4. RDR_to_PC_Escape ..................................................................................................25
7.2.5. RDR_to_PC_NotifySlotChange ..................................................................................29
7.2.6. RDR_to_PC_HardwareError.......................................................................................29
8.0. PC-linked Operation Mode....................................................................................30
8.1. SCardConnect API ..............................................................................................................30
8.2. SCardTransmit API..............................................................................................................30
8.3. SCardControl API ................................................................................................................30
8.4. SECURE PIN VERIFY.........................................................................................................30
8.5. SECURE PIN MODIFY........................................................................................................31
8.6. Escape Commands .............................................................................................................32
8.7. Get Firmware Version..........................................................................................................32
8.8. Display LCD Message .........................................................................................................32
8.9. Read Key.............................................................................................................................32
8.10. Write Display........................................................................................................................32
8.11.Buzzer Beep ........................................................................................................................32
8.12. Get Key................................................................................................................................32
9.0. Device Control.......................................................................................................33
9.1. Operation Flow (PC/SC 2.0 Part 10) ...................................................................................33
9.2. Specific ScardControl ..........................................................................................................34
9.3. Smart Card Device IOCTLs.................................................................................................34
9.3.1. CM_IOCTL_GET_FEATURE_REQUEST..................................................................34
9.3.2. FEATURE_VERIFY_PIN_DIRECT.............................................................................35
9.3.3. FEATURE_MODIFY_PIN_DIRECT............................................................................36
9.3.4. FEATURE_IFD_PIN_PROP .......................................................................................38
9.3.5. IOCTL_SMARTCARD_GET_FIRMWARE_VERSION ...............................................39
9.3.6. IOCTL_SMARTCARD_DISPLAY_LCD_MESSAGE ..................................................40
9.3.7. IOCTL_SMARTCARD_READ_KEY ...........................................................................41
9.3.8. FEATURE_IFD_DISPLAY_PROPERTIES.................................................................42
9.3.9. FEATURE_WRITE_DISPLAY ....................................................................................42
9.3.10. FEATURE_GET_KEY.................................................................................................43