The utility model content
In view of the above problems, the utility model embodiment provides a kind of USB Key device, can connect external unit in many ways and communicate connection, realizes exchanges data, improves the ease for use as the USB Key device of electric signing tools.
The purpose of this utility model is achieved through the following technical solutions:
The utility model embodiment provides a kind of USB Key device, comprising: casing, digital certificate module and USB interface, and each parts all is arranged in the casing; Also comprise:
Wireless communication module, battery, IC-card Communications Processor Module and IC-card card reader;
Described wireless communication module is electrically connected with described digital certificate module, is used to make described digital certificate module and communication terminal to carry out communication with wireless mode, will convert the data exchange agreement of described digital certificate inside modules with the communications protocol of communication terminal to;
Described battery is electrically connected with described wireless communication module and digital certificate module respectively, is used for providing electric power for each module when communicating with communication terminal;
Described IC-card Communications Processor Module is connected with described USB interface, be used for when described USB Key device when described USB interface connects exterior I C card reader, communicate to connect with described IC-card card reader, carry out exchanges data;
Described IC-card card reader is connected with described digital certificate module, is used for communicating to connect with outside IC-card, carries out exchanges data.
Described USB Key device also comprises: energy supply control module and switch;
Described battery is electrically connected with each module by described energy supply control module, is used for controlling described battery and providing electric power for each module when USB Key device connects outside communication terminal by wireless communication module;
Described switch is connected with described energy supply control module, is used for manually controlling energy supply control module, and making energy supply control module connect and/or cut off battery is each module for power supply.
Described wireless communication module adopts any in bluetooth communication module, infrared communication module or the radio-frequency communication module.
Described battery adopts rechargeable battery.
Described IC-card Communications Processor Module comprises: usb circuit, IO interface circuit, interface processing unit, clock and clock frequency are provided with the unit;
Described usb circuit and described IO interface circuit all are electrically connected with described digital certificate module and described USB interface, and described USB interface is electrically connected with described digital certificate module through described usb circuit and described IO interface circuit respectively;
Described usb circuit is provided with D+ pin and D-pin, and described D+ pin is used to connect the D+ pin of described USB interface, and described D-pin is used to connect the D-pin of described USB interface;
Described clock and clock frequency configuration unit all are electrically connected with described digital certificate module;
Described IO interface circuit comprises a bidirectional interface and an input interface, and described bidirectional interface is used for being electrically connected with the D+ pin or the D-pin of described USB interface, and a described input interface is used for being electrically connected with the D-pin or the D+ pin of described USB interface;
Described interface processing unit, be connected between described usb circuit and the described IO interface circuit, the described bidirectional interface that is used for described IO interface circuit is set to input pattern, and judge the level of this bidirectional interface, and open or close described usb circuit according to the level state of this bidirectional interface.
A bidirectional interface in the described IO interface circuit comprises: an input interface and an output interface.
Described interface is handled unit pack and is drawn together: module, judge module and control module are set;
The described module that is provided with, the bidirectional interface that is used for described IO interface circuit is set to input pattern;
Described judge module, be used for described the described bidirectional interface of module be set be set to input pattern after, judge whether described bidirectional interface is low level;
Described control module is used for closing described usb circuit when described judge module judges that described bidirectional interface is high level; When described judge module judges that described bidirectional interface is low level, open described usb circuit.
Described IO interface circuit is arranged in the described digital certificate module.
Described digital certificate module adopts intelligent card chip.
Described clock setting is in described digital certificate module; The frequency that described clock frequency is provided with the set clock in unit is the 9600bps baud rate.
The technical scheme that provides by the utility model embodiment as can be seen, among the utility model embodiment by wireless communication module and IC-card Communications Processor Module are set in the USBKey device simultaneously, make this USB Key device carry out the function of communication by wireless communication module and external communications terminals, thus make USB Key device can matching with mobile phone etc. communication terminal realize that digital certificate uses.By the IC-card Communications Processor Module, make this USB Key device when judgement connects different external units (USB interface of PC or IC-card card reader), to carry out data communication with the equipment that is connected with USB device communication mode or IC-card communication mode.This USB Key apparatus structure is simple, easy to use, is easy to realize, is not changing under the prerequisite that has cell phone type communication terminal structure now, cooperates with communication terminal to make communication terminal can easily realize the digital certificate application; And this USB Key device is IC-card communication exchange data well, and do not need existing IC-card card reader is carried out mass upgrade and transformation, only need connect into the USB interface shape and get final product intelligent card interface is parallel; Practical, be convenient to popularize.
Embodiment
The utility model is described in further detail below in conjunction with specific embodiment.
Embodiment
A kind of USB Key of present embodiment device, this USB Key device had both been supported wireless telecommunications, can be connected through the IC-card card reader of USB interface again with the outside, communicate with the IC-card card reader, as shown in Figure 1, this USB Key device comprises: shell, digital certificate module 1, USB interface 2, wireless communication module 3, battery 4, IC-card Communications Processor Module and IC-card card reader 8, and each module all is provided with in the enclosure;
Wherein, digital certificate module 1 is electrically connected with USB interface 2, digital certificate module 1 is used to realize the various functions of digital certificate, can adopt with existing electric signing tools (USB Key) in digital certificate module identical functions module, this digital certificate module can comprise functions such as demonstration, voice, button; USB interface 2 adopts general USB interface, is complementary with USB interface on the common computer mainboard;
Described wireless communication module 3 is electrically connected with described digital certificate module 1, is used for outside communication terminal and carries out communication with wireless mode, and the communications protocol that will communicate by letter with communication terminal converts the data exchange agreement of described digital certificate inside modules to; Wireless communication module 3 can adopt any in bluetooth communication module, infrared communication module or the radio-frequency communication module etc., thereby realizes carrying out wireless telecommunications with external communications terminals (as mobile phone, palm PC etc.) with bluetooth, mode infrared or radio frequency;
Described battery 4 can be electrically connected with described wireless communication module 3 and digital certificate module 1 respectively, is used for providing electric power for each module when the communication terminal with the outside communicates.Described battery 4 can adopt rechargeable battery, as button cell etc.;
Described IC-card Communications Processor Module 7 is connected with described USB interface 2, be used for when described USB Key device when described USB interface 2 connects exterior I C card readers, communicate to connect with described IC-card card reader, carry out exchanges data;
Described IC-card card reader is connected with described digital certificate module, is used for communicating to connect with outside IC-card, carries out exchanges data.This IC-card card reader can adopt Contact Type Ic Card card reader or Contactless IC Card Reader.
On above-mentioned USB Key device basic, energy supply control module 5 can also be set, described battery 4 is electrically connected with each module (wireless communication module 3, digital certificate module 1 and USB interface 2) by this energy supply control module 5; Be used for when the USBKey device carries out radio communication by wireless communication module 1 and outside communication terminal (as mobile phone, palm PC etc.), the control battery provides electric power for each module.And, when USB Key device is connected on the computing machine USB interface 2, can also charge to battery 4 by energy supply control module 5.When not using USB Key device for a long time, can start the park modes of low-power consumption by energy supply control module 5 automatically to wireless communication module and digital certificate module, thus save battery power.
In above-mentioned USB Key device switch 6 can also be set, switch 6 and described energy supply control module 5 are used for manually controlling energy supply control module 5, energy supply control module 5 are connected and/or cut off battery 4 to be each module for power supply.
The USB Key device that the utility model embodiment provides, not only can connect common PC by USB interface uses, cooperate PC to realize the digital certificate application, also can connect outside communication terminal simultaneously by wireless communication module, can't directly connect the communication terminal of USB interface equipment as mobile phone, palm PC etc., cooperate the communication terminal that is connected to realize the application of digital certificate.
Make this USB Key device can be used as IC-card by the IC-card Communications Processor Module in the above-mentioned USB Key device and use, as shown in Figure 2, this IC-card Communications Processor Module comprises:
Usb circuit 71, IO interface circuit 72, interface processing unit 73, clock 74 and clock frequency are provided with unit 75,
Wherein, described usb circuit 71 and described IO interface circuit 72 are electrically connected with digital certificate module 1 and described USB interface 2 respectively, make this USB interface 2 be electrically connected with digital certificate module 1 by described usb circuit 71 and described IO interface circuit 72 respectively; Digital certificate module 1 can adopt intelligent card chip in the reality, as adopting SHC1216S chip etc.;
Described usb circuit 71 is provided with D+ pin and D-pin, and the D+ pin of described usb circuit 71 is electrically connected with the D+ pin of described USB interface 2, and the D-pin of described usb circuit 71 is electrically connected with the D-pin of described usb 1;
Described clock 74 and clock frequency configuration unit 75 all are electrically connected with digital certificate module 1, and clock 74 provides the work clock frequency for digital certificate module 1, and clock frequency is provided with the frequency that unit 75 is used to be provided with clock 74;
Described IO interface circuit 72 comprises a bidirectional interface A and an input interface B; Wherein, bidirectional interface A can be made of an input interface and an output interface; The bidirectional interface A of described IO interface circuit 72 can be electrically connected with the D+ pin or the D-pin of described USB interface 2, and the input interface B of described IO interface circuit 72 can be electrically connected with the D-pin or the D+ pin of described USB interface 2; The D+ pin that is USB interface 2 can be electrically connected with the bidirectional interface A of IO interface circuit 72 or any among the input interface B, and the D-pin of USB interface 2 also can be electrically connected with the input interface B of IO interface circuit 72 or any among the bidirectional interface A, as long as the D-pin is not connected on the same interface of IO interface circuit 72 simultaneously with the D+ pin, in the USB Key device of Fig. 2 signal, the D+ pin of USB interface 2 is electrically connected with the bidirectional interface A of IO interface circuit 72, and the D-pin of USB interface 2 is electrically connected with the input interface B of IO interface circuit 72; In the USB Key device of Fig. 3 signal, the D+ pin of USB interface 2 is electrically connected with the input interface B of IO interface circuit 72, and the D-pin of USB interface 2 is electrically connected with the bidirectional interface A of IO interface circuit 72;
Described interface processing unit 73, the bidirectional interface A that is used for described IO interface circuit 72 is set to input pattern, and judges the level of this bidirectional interface A, and opens or close described USB interface 2 according to the level state of this bidirectional interface A.As shown in Figure 4, interface processing unit 73 specifically comprises:
Module 731, judge module 732 and control module 733 are set;
Wherein, describedly the bidirectional interface A that module 731 is used for described IO interface circuit 72 is set is set to input pattern;
Described judge module 732 be used for described module 731 described bidirectional interface A be set be set to input pattern after, judge whether described bidirectional interface A is low level;
Described control module 733 is used for closing described usb circuit 71 when described judge module 732 judges that described bidirectional interface A is low level; When described judge module 732 judges that described bidirectional interface A is high level, open described usb circuit 71.
Can know that each module of the interface processing unit 73 in the above-mentioned USB Key device can adopt the form of hardware module, also can adopt the form of software module, as long as can realize function corresponding.
IO interface circuit 72 in the above-mentioned USB Key device can be integrated in the described digital certificate module 1.
Usb circuit 71, IO interface circuit 72 and clock frequency in the above-mentioned USB Key device is provided with module 75 and all can be arranged in the same chip, as the ST7267 chip.
Module 75 is set usb circuit 71, IO interface circuit 72, clock frequency in the above-mentioned USB Key device and digital certificate module 1 all can be arranged in the same chip, as the SHC1408 chip.
Clock in the above-mentioned USB Key device can be arranged in the described digital certificate module, the frequency that clock frequency is provided with the set clock in unit is the 9600bps baud rate, can be consistent with the clock frequency of general IC-card card reader, clock 74 also can be set be other frequency, as long as keep set frequency consistent with the clock frequency of external IC-card card reader.
When above-mentioned USB Key device connects the use of exterior I C card reader, the D+ pin of the USB interface of USB Key device and D-pin respectively with the IC-card card reader on USB interface in D+ pin and D-pin corresponding, if the D+ pin of the USB interface of USB Key device is connected with the bidirectional interface of IO interface circuit in the USB Key device, the D-pin is connected with the input interface of IO interface circuit in the USB Key device, D+ pin in the USB interface on the IC-card card reader is connected with DATA pin in the IC-card communication interface circuit, and the D+ pin is connected with RST pin in the IC-card communication interface circuit;
Otherwise, if the D+ pin of the USB interface of USB Key device is connected with the input interface of IO interface circuit in the USB Key device, the D-pin is connected with the bidirectional interface of IO interface circuit in the USB Key device, D+ pin in the USB interface on the IC-card card reader is connected with RST pin in the IC-card communication interface circuit, and the D+ pin is connected with DATA pin in the IC-card communication interface circuit.
USB Key device among the utility model embodiment is generally as the USB slave unit, IO interface circuit (comprising at least one bidirectional interface and an input interface) is set in this USB Key device, this IO interface circuit can be the IO interface circuit that is integrated in the digital certificate inside modules, D+ with USB interface, the D-pin is parallel to respectively on two IO interfaces of the IO interface circuit that is provided with in the USB Key device (wherein at least one is a bidirectional interface), when USB Key device powers on, the bidirectional interface of the IO interface circuit that it is inner is set to input pattern (being high-impedance state this moment), judge the level of this bidirectional interface, if low level, what can confirm this USB Key device connection is USB main equipment (as the USB interface of PC), just carries out communication by USB device; If high level, what can confirm this USB Key device connection is the Contact Type Ic Card card reader, just usb circuit is closed, USB interface is connected with the digital certificate module through the IO interface circuit, wherein, the pin of the USB interface of the bidirectional interface of connection IO interface circuit is as the DATA pin in the Contact Type Ic Card interface, the pin of the USB interface of the input interface of connection IO interface circuit is as the RST pin in the Contact Type Ic Card interface, and frequency and IC-card card reader that clock is set in the USB Key device are complementary, like this, USB Key device is communicated according to the standard of the IC-card of ISO7816, and this USB Key device side circuit connects can be referring to Fig. 5, circuit diagram shown in Figure 6.
The USB Key device of present embodiment is by being provided with the IC-card Communications Processor Module, by the IO interface circuit is set in the IC-card Communications Processor Module, the digital certificate module both was connected with USB interface through usb circuit, be connected with USB interface by the IO interface circuit again, make this USB Key device when judgement connects different external units (USB interface of PC or IC-card card reader), to carry out data communication with the equipment that is connected with USB device communication mode or IC-card communication mode.This USB Key apparatus structure is simple, be easy to realize, make well IC-card communication exchange data of USB Key device, and do not need existing IC-card card reader is carried out mass upgrade and transformation, only need connect into the USB interface shape and get final product intelligent card interface is parallel; Practical, be convenient to popularize.
The USB Key device that the foregoing description provides is when communication, and detailed process is as follows:
In having the USB Key device of USB interface, the IO interface circuit with a two-way IO interface and an input interface is set, described USB interface is electrically connected with the digital certificate module by described IO interface circuit and usb circuit respectively;
When USB Key device powers on, the bidirectional interface of described IO interface circuit is set to input pattern, judge that this bidirectional interface is a low level?
If low level makes the digital certificate module be electrically connected with USB interface through described usb circuit, make USB Key device carry out data communication with the USB device communication mode;
Be to be high level if not, close usb circuit, the digital certificate module is electrically connected with described USB interface through described IO interface circuit, make USB Key device carry out data communication with the contact intelligent card communication mode; In the reality, clock frequency is set simultaneously, the clock frequency of USB Key device is complementary with the clock frequency of the outside IC-card card reader that is connected, the clock frequency of general IC-card card reader is the 9600bps baud rate.
In sum, in the USB Key device among the utility model embodiment, by wireless communication module and battery are set, make this wireless communication module to communicate with wireless mode with existing mobile phone, communications protocol with mobile communication can be converted to the data exchange agreement of USB Key device inside, make under this USB Key device cooperates, make mobile phone can easily realize that digital certificate uses, thus the security when having improved communication terminals such as utilizing mobile phone and carrying out internet bank trade.And, in this USB Key device, the IC-card Communications Processor Module is set, by the IO interface circuit in this IC-card Communications Processor Module, the USB interface of USB Key device is electrically connected with USB Key device internal digital certificate module through IO interface circuit and usb circuit respectively, make this USB Key device when judgement connects different external units (USB interface of PC or IC-card card reader), to carry out data communication with the equipment that is connected with USB device communication mode or IC-card communication mode.This USB Key apparatus structure is simple, is easy to realize, only need increase some elements in USB Key device and Control Software gets final product, and does not change existing handset structure, and this USB Key device and mobile phone are used.It is practical, has increased to utilize cell phone platform to carry out the compatibility that digital certificate is used, and is convenient to popularize.And this USB Key device is good IC-card communication exchange data also, and do not need existing IC-card card reader is carried out mass upgrade and transformation, only need connect into the USB interface shape and get final product intelligent card interface is parallel; Practical, be convenient to popularize.
The above; it only is the preferable embodiment of the utility model; but protection domain of the present utility model is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the utility model discloses; the variation that can expect easily or replacement all should be encompassed within the protection domain of the present utility model.Therefore, protection domain of the present utility model should be as the criterion with the protection domain of claims.