Patent ID: 7945710

Claim:
A method for operating an apparatus for enabling a human interface device (HID) to provide a smart card interface, the apparatus being a virtual reader driver layer comprising a monitoring module for monitoring connection and disconnection of the HID and obtaining a name of a human interface device object, a Personal Computer/Smartcard (PC/SC) interface module for providing a driver interface complying with a PC/SC Specification Version 2.01.3 to an application layer, receiving an I/O Request Package (IRP) sent from the application layer, and transmitting it to a data processing module, and the data processing module for receiving and process the IRP sent from the application layer through the PC/SC interface module, and sending the IRP to a HID device class driver layer in accordance with the name of the human interface device object obtained by the monitoring module, the method comprising: the monitoring module monitoring if the HID is connected; if the HID is connected, the monitoring module obtaining the name of the human interface device object at lower-level; the monitoring module determining if the connected HID needs to be processed; the monitoring module initializing variables in a program and notifying a smart card service system of the connection of a smart card; the monitoring module monitoring if the HID is disconnected; if so, the monitoring module releasing system resources occupied by the HID since its connection, and notifying the smart card service system of the disconnection of the smart card; the data processing module receiving the IRP relating to the HID, which is sent from the application layer, and reorganizing the IRP in accordance with a HID data transfer protocol; and the data processing module sending the reorganized IRP to the HID device class driver layer at lower-level for data interacting, and returning the result to the application layer.