The present invention will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only, and thus are not limitative of the present invention, and wherein:
The present invention will be apparent from the following detailed description, which proceeds with reference to the accompanying drawings, wherein the same references relate to the same elements.
When any USB device is connected to a computer host (e.g., when a USB thumb disk is inserted into the computer host, a driver of the OS of the computer host detects the existence of the USB thumb disk, and then outputs a control transfer command (CTC) to the USB thumb disk. Thus, the operation firmware of the USB thumb disk makes the OS identify the existence of the USB thumb disk and the attribute of this device (a USB storage device in this case) in response to the computer host, so that a storage device of the USB thumb disk may be accessed. Under the standard communication protocol, such as a bulk transfer command (BTC), the data in the USB thumb disk may be transferred to the computer host and executed therein.
Similarly, if the USB device is a keyboard or a mouse, the driver of the OS of the computer host detects the existence of the USB human interface device, and then outputs the CTC to the USB human interface device. Thus, the operation firmware of the USB human interface device makes the OS identify the existence of the USB human interface device and the device attribute thereof (a USB human interface device in this case) in response to the host so that a signal outputted from the USB human interface device may be read. Under the standard communication protocol, such as an interrupt transfer command (ITC), the input signal of the USB human interface device may be transferred to the computer host and executed therein.
According to the two examples mentioned hereinabove, it is found that the USB devices with different attributes have a common feature that the USB devices may be communicated with substantially the same CTC. The invention solves the above-mentioned problems according to this common CTC communication protocol. The invention adopts the CTC to command the signal generator, such as a fingerprint sensor, to get the signal and to transfer a lot of signal data, such as fingerprint image data. This may be done because the CTC is a communication protocol, which is common to any USB device, and may transfer a lot of data under the CTC communication protocol through suitable hardware and software designs. Consequently, any non-standard USB external signal generator corresponding to a driver which is not built in the OS may be simulated as a storage device, such as a BTC device, or a USB human interface device (ITC device), such as a keyboard or a mouse, corresponding to a driver built in the OS. In this case, the OS treats this signal generator as a standard known-device and uses the build-in driver to communicate with the device so that the driver transfers the signal generated by the external signal generator to the OS and the signal can be processed therein. According to this control method, no driver for the signal generator has to be certified and written so that the driverless signal generator can be obtained. In the following, the application and the method thereof will be described with reference to several embodiments.
The signal generating apparatus 2 includes a signal generator 22 and an interface controller 23. The signal generator 22 generates an external signal SE in response to external excitation. In this embodiment, the interface controller 23 is a USB controller. The interface controller 23 is connected to the signal generator 22 and is to be connected to the computer host 1. The interface controller 23 stores operation firmware 25. A device interface 24 of the signal generating apparatus 2 corresponds to the host interface 13, which is a USB interface in this embodiment and may be a PCI-Express interface, an IEEE 1394 interface, a SATA interface or any other standard interface in another embodiment. The signal generator 22 may be a biometrics sensor, such as a fingerprint sensor, a microphone, an optical image reader or a smart card reader or a subscriber identity module (SIM) card reader, or even a RF ID reader or any other known device. Similarly, each of the microphone and the optical image reader may serve as the biometrics sensor for sensing the user's biometrics data, such as the voice, iris, face and capillary. The smart card reader may read the smart card carried by the user.
In order to achieve the effect of the invention, the operation firmware 25 simulates the signal generating apparatus 2 as a standard device, and the driver 12 corresponding to the standard device has been built in the OS 11 so that the OS 11 regards the signal generating apparatus 2 as the standard device, such as a human interface device (HID) or a storage device. The HID may be a keyboard or a mouse. In addition, the operation firmware 25 receives a first command C1 outputted from the OS 11 through the driver 12, and makes the OS 11 identify an attribute of the signal generating apparatus 2 in response to the first command C1. Then, the AP 14 may be executed in the OS 11 to generate a second command C2. Each of the first command C1 and the second command C2 pertains to the CTC for enabling the control transfer. Finally, the operation firmware 25 receives the second command C2 and thus controls the signal generator 22 to generate the external signal SE and to send the external signal SE back to the OS 11.
The operation firmware 25 and the AP 14 are configured to execute the steps S1 to S5, as shown in
In step S1, the operation firmware 25 simulates the signal generating apparatus 2 as the standard device, such as the human interface device or the storage device, so that the OS 11 regards the signal generating apparatus 2 as the standard device.
In step S2, the operation firmware 25 receives the first command C1 outputted from the OS 11 through the build-in driver 12 for the human interface device or the storage device, and makes the OS 11 identify the attribute of the signal generating apparatus 2 in response to the first command C1.
Then, in step S3, the AP 14 is executed in the OS 11. The AP 14 may be executed by the user manually or may be executed automatically. In another embodiment, the AP may already be executed in the OS environment before the signal generating apparatus is connected to the computer host. At this condition, the AP keeps polling the existence of the signal generating apparatus 2.
Next, in step S4, the second command C2 is generated according to the executed AP 14.
Then, in step S5, the second command C2 is received to control the signal generator 22 of the signal generating apparatus 2 to generate the external signal SE and to send the external signal SE back to the OS 11 so that the subsequent process may be performed.
The maximum feature of the invention is to optimize the CTC communication according to the specific command architecture predefined in the AP and the operation firmware. Thus, the OS communicates with the signal generator 22 through the CTC. This may effectively overcome the restriction of the need of the specific driver.
According to the embodiments of the invention, it is possible to obtain the signal generating function of the signal generating apparatus without the need of the specific driver so that the complicated driver certification procedure has to be performed. Because the AP does not need to be certified, the procedure of writing the AP can be simplified.
While the invention has been described by way of examples and in terms of preferred embodiments, it is to be understood that the invention is not limited thereto. To the contrary, it is intended to cover various modifications. Therefore, the scope of the appended claims should be accorded the broadest interpretation so as to encompass all such modifications.
Number | Date | Country | Kind |
---|---|---|---|
095138155 | Oct 2006 | TW | national |