USBKEY equipment
Technical field
The present invention relates to communication technology, more particularly to a kind of USBKEY equipment.
Background technology
Current USBKEY is mainly used in the e-Bank payment on computer, by USB plug or USB connecting lines and computer
On USB port connection, receive computer terminal initiate utility command, provide security signature certification, secondary-confirmation for e-Bank payment
Deng defencive function.At present, different mobile phone model, the audio interface typically all having, and audio interface are unified.
With the popularization of mobile phone, mobile-phone payment flourishes as e-Bank payment before, wirelessly should from initial
With agreement (Wireless Application Protocol, abbreviation Wap) bank, the till now payment on various smart mobile phones
Client, but these apply the hardware security means of payment for all lacking similar USBKEY to be protected, easily by assault.But
It is that the external data-interface of mobile phone is varied, it is difficult to which the security tool of uniform data interface is provided, and, individually for handss
Machine pays the new hardware means of payment of exploitation, and cost consumption is huge.
The content of the invention
The present invention provides a kind of USBKEY equipment, for realizing the secure payment of mobile phone.
The invention provides a kind of USBKEY equipment, wherein, including:
First communication module, for compunication;
Second communication module, for mobile communication;
Central processing module, for selecting logical with the first communication module or second communication module according to subscriber policy
Letter;
Wherein, the second communication module includes:
Audio communication module, is connected, to realize numeral for the audio interface and data processing and transit module with mobile phone
The conversion of signal and analogue signal;
Data processing and transit module, are connected with audio communication module communication and serial interface communication module, are used for
To parse to be instructed from the digital signal of the audio communication module, and send instructions to serial interface communication mould
Block;
Serial interface communication module, for communicating to connect with the central processing module and data processing and transit module,
Changed according to serial communication protocol with the instruction that will be interacted by the serial communication interface of USBKEY equipment.
USBKEY equipment as above, it is preferred that the second communication module also includes:
Supply module is logical with the audio communication module, the data processing and transit module and the serial line interface
Letter module is electrically connected with, for providing electric energy.
USBKEY equipment as above, it is preferred that the audio communication module includes:
Voice communication unit, is connected for the audio interface with mobile phone, to receive the simulation letter of the audio interface transmission
Number;
Demodulating unit, is connected with the voice communication unit and the data processing and transit module, will be from described
Voice communication unit simulation signal switch to digital signal, and send to the data processing and transit module;
Modulating unit, is connected with the voice communication unit and the data processing and transit module, will be from described
The digital signal of data processing and transit module switchs to analogue signal, and sends to the voice communication unit.
USBKEY equipment as above, it is preferred that the data processing and transit module include:
Data processing unit, is connected with audio communication module communication and serial interface communication module, will be from institute
The digital signal for stating audio communication module is parsed to be instructed, and sends instructions to serial interface communication module;
Data relay unit, is connected with audio communication module communication and serial interface communication module, will be from institute
The instruction for stating serial interface communication module is sent to audio communication module.
USBKEY equipment as above, it is preferred that the serial interface communication module includes:
First converting unit, for communicating to connect with the central processing module, by the described first instruction according to serial
Communication Protocol Conversion is the second instruction, and sends to the central processing module;
Second converting unit, for communicating to connect with the central processing module and data processing and transit module, will
The response of the second instruction that the central processing module is returned is converted to the response of the first instruction.The USBKEY that the present invention is provided sets
Standby, compatibility is good, can be based on the USBKEY used before user and modify, you can the demand that satisfaction is used on mobile phone,
And ensure that the safety of mobile-phone payment.
Description of the drawings
Fig. 1 is the USBKEY equipment principle schematic diagrams that the embodiment of the present invention one is provided;
Fig. 2 is the USBKEY environment division principle schematics that the embodiment of the present invention two is provided.
Specific embodiment
Fig. 1 is the USBKEY equipment principle schematic diagrams that the embodiment of the present invention one is provided.
Referring to Fig. 1, the embodiment of the present invention provides a kind of USBKEY equipment, wherein, including first communication module 10, second is logical
Letter module 20 and central processing module 30.First communication module 10 be used for and compunication, second communication module 20 be used for
Mobile communication, central processing module 30 is used to be selected and the first communication module 10 or second communication module according to subscriber policy
20 communications.Herein, second communication module 20 specifically includes audio communication module 1, data processing and transit module 2 and serial interface
Port communications module 3.Audio communication module 1 is used for the audio interface with mobile phone and data processing and transit module 2 is connected, to realize
The conversion of digital signal and analogue signal;Data processing and transit module 2 communicate and serial line interface with the audio communication module 1
Communication module 3 connects, and for parsing to be instructed from the digital signal of the audio communication module 1, and instruction is sent out
Deliver to serial interface communication module 3;Serial interface communication module 3 be used for the central processing module 30 and data processing and in
Revolving die block 2 is communicated to connect, and the instruction interacted by the serial communication interface of USBKEY equipment is turned according to serial communication protocol
Change.
Second communication module is the module newly increased on USBKEY equipment, and first communication module and central processing module are
The module having been provided with existing USBKEY equipment.
Method using above-mentioned USBKEY equipment is as follows:USBKEY equipment is directly connected with mobile phone or computer, it is noted that
During connection mobile phone, it is connected in any one earphone jack of mobile phone;During connection computer, connect the USB of computer.
When carrying out mobile phone checking using above-mentioned USBKEY equipment, checking information is converted to audio frequency through the modulation /demodulation module of interior of mobile phone
Signal;The audio signal is transmitted to the audio communication module 1 of second communication module 20, voice communication via the audio interface of mobile phone
The audio signal is switched to digital signal by module 1;Then the digital signal is transferred to data processing and transit module 2, data
Process and transit module 2 is by the digital signal parsing, to be instructed, then the instruction is reached into serial interface communication module 3;
Serial interface communication module 3 changes the instruction according to serial communication protocol, then sends to central processing module 30.Center
After reason module 30 has been processed, meet with a response, then by the response via serial interface communication module 3 and data processing and middle revolving die
Block 2 reaches audio communication module 1;Audio communication module 1 converts digital signals into audio signal;Then via the audio frequency of mobile phone
Interface reaches mobile phone, and the audio signal is converted to digital signal by the modulation /demodulation module of interior of mobile phone, then reaches chip for cell phone,
So far, the safety verification for paying is realized.
It should be noted that except equipment itself, also need to provide the payment software for supporting USBKEY equipment on mobile phone, can be with
According to the USBKEY interactive instruction agreements on original computer, sent to adapter by audio port and instructed, and reception processing is returned
Result is returned, and transaction is completed after interacting with remote server.Remote server need to only carry out correspondence modification, such as being revised as can
The remote transaction initiated with reception processing mobile phone terminal and USBKEY certification requests etc..
Further, second communication module 20 also includes supply module 4, supply module 4 and the audio communication module 1,
The data processing and transit module 2 and the serial interface communication module 3 are electrically connected with, for providing electric energy.
From the foregoing, the USBKEY equipment that above-mentioned technical proposal is provided, can realize on mobile phone and computer simultaneously
Use, compatibility is good, can also ensure the safety of mobile-phone payment.
Fig. 2 is the USBKEY environment division principle schematics that the embodiment of the present invention two is provided.
Referring to Fig. 2, the embodiment of the present invention two is on the technical scheme basis of above-described embodiment, it is preferred that the sound
Frequency communication module 1 includes voice communication unit 11, demodulating unit 12 and modulating unit 13.Voice communication unit 11 is used for and mobile phone
Audio interface connection, to receive the analogue signal of audio interface transmission;Demodulating unit 12 and the voice communication unit
11 and the data processing and transit module 2 connect, numeral will be switched to from the described analogue signal of voice communication unit 11
Signal, and send to the data processing and transit module 2;Modulating unit 13 and the voice communication unit 11 and the data
Process and transit module 2 connects, analogue signal will be switched to from the digital signal of the data processing and transit module 2, and
Send to the voice communication unit 11.
Demodulating unit and modulating unit can be realized by means of prior art.Herein, it is clear signal, supplies not shown in Fig. 2
Electric module.
Using the audio communication module of above-mentioned implementation, the modulation between digital signal and analogue signal can be effectively realized
Demodulation.
Further, data processing and transit module 2 include data processing unit 21 and data relay unit 22.At data
Reason unit 21 communicates with the audio communication module 1 and serial interface communication module 3 is connected, will be from the voice communication mould
The digital signal parsing of block 1 sends instructions to serial interface communication module 3 to be instructed;Data relay unit 22 with
The audio communication module 1 communicates and serial interface communication module 3 connects, by from the serial interface communication module 3
Instruction is sent to audio communication module 1.
The data processing of above-mentioned implementation and transit module, can effective process data and returned data result.
Yet further, serial interface communication module 3 includes the first converting unit 31 and the second converting unit 32.First turn
Unit 31 is changed for communicating to connect with central processing module 30, the described first instruction is converted to into the according to serial communication protocol
Two instructions, and send to the central processing module;Second converting unit 32 is used for and central processing module 30 and data processing
And transit module 2 is communicated to connect, the response of the second instruction that the central processing module is returned is converted to the first instruction
Response.
First converting unit and the second converting unit can be realized by means of prior art.
The serial interface communication module of above-mentioned implementation, can efficiently generate the instruction for meeting serial communication protocol.
The USBKEY equipment that the embodiment of the present invention two is provided, is improved, so that energy based on existing USBKEY equipment
It is enough to use on mobile phone, it is ensured that the safety of mobile-phone payment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, performs the step of including above-mentioned each method embodiment;And aforesaid storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above only to illustrate technical scheme, rather than a limitation;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
So the technical scheme described in foregoing embodiments can be modified, either which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention technology of appropriate technical solution
The scope of scheme.