CN102063400B - Switching device for general serial bus equipment - Google Patents
Switching device for general serial bus equipment Download PDFInfo
- Publication number
- CN102063400B CN102063400B CN 201110002187 CN201110002187A CN102063400B CN 102063400 B CN102063400 B CN 102063400B CN 201110002187 CN201110002187 CN 201110002187 CN 201110002187 A CN201110002187 A CN 201110002187A CN 102063400 B CN102063400 B CN 102063400B
- Authority
- CN
- China
- Prior art keywords
- pin
- signal
- usb
- level conversion
- main control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
The invention provides a switching device for general serial bus equipment, which comprises a serial interface connected to a host computer and a USB interface used for connecting USB equipment. The switching device also comprises a control module, wherein the control module is connected with a TXD (Transmit Data) pin and an RXD (Receive Data) pin of the serial interface and a first pin of the USB interface and used for receiving a serial signal through the TXD pin and carrying out level conversion on the serial signal as well as outputting an I/O signal through a D+ or D- pin of the USB interface, wherein the I/O signal is obtained through the level conversion and needs to be sent to USB equipment; the control module is also used for receiving the I/O signal through the first pin and carrying out level conversion on the I/O signal needing to be sent to the host computer as well as outputting the serial signal obtained through the level conversion through the RXD pin; and the control module is also connected with the USB interface through a connecting detection signal wire and used for outputting high level to the first pin when detecting that the USB equipment is inserted through the connecting detection signal wire.
Description
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of USB (Universal Serial Bus, USB (universal serial bus)) equipment switching device.
Background technology
Because but USB interface has the characteristics such as the fast plug and play of speed, the equipment (USB is from equipment, hereinafter to be referred as USB device) that adopts USB interface to link to each other with main frame (USB main equipment) is popularized rapidly on market; Simultaneously, also exist the main frame that does not possess in a large number the USB interface ability on the market, this class main frame only provides the interfaces such as serial ports, parallel port usually, if wish USB device is connected to this class main frame, needs to use the switching device of USB device.Above-mentioned switching device provides a USB slot, connects for USB device, and has serial ports or parallel port joint, in order to be connected with main frame.By above-mentioned switching device, USB device can be connected on the main frame that USB interface is not provided, and USB device self also None-identified to go out main frame be not to carry out data interaction with it by USB interface.
At present, also exist a kind of have at hardware multiple connected mode is identified USB device with adaptive ability, this USB device has following characteristics:
1) has USB mechanical interface shape and the pin of standard, can link to each other with the USB interface of host side;
2) USB interface D+ and D-pin had USB standard and non-USB standard two class use-patterns; USB standard use-pattern meets the electric and protocol specification of usb protocol, and non-USB standard use-pattern does not meet the electric and protocol specification of usb protocol;
3) equipment can identify the use-pattern different with the D-pin to D+ at hardware view.
Application number is 201010142982.X, the Chinese patent application that name is called " USB Key device and utilize USB interface to realize the method for smart card communications " put down in writing a kind of have multiple connected mode is identified USB device with adaptive ability.What the USB device that this patent is put down in writing was identified its connection by the level on D+ or the D-pin is USB main equipment (standard use-pattern) or USB card reader (non-standard use-pattern).
Fig. 1 is the circuit theory diagrams of the USB Key that puts down in writing in the above-mentioned patented claim.Among the USBKey shown in Figure 1, the D+ of USB interface links to each other with the D-pin with the D+ of usb circuit respectively with the D-pin, and the D+ of USB interface also links to each other with input interface with the bidirectional interface of I/O interface circuit respectively with the D-pin; The interface processing unit is judged the level (judging the level of D+ pin) of bidirectional interface when USB Key powers on, if be low level, then open usb circuit, makes safety chip carry out data interaction by USB interface and USB main equipment; If be high level, then close usb circuit, make safety chip pass through I/O interface circuit and external equipment, carry out data interaction such as IC (Integrate Circuit, integrated circuit) card reader.
Among the USB Key shown in Figure 1, when using I/O interface circuit and external equipment to carry out data interaction, the D+ pin that links to each other with the bidirectional interface of I/O interface circuit is identical with the I/O pin effect in the IC-card standard, and the D-pin that links to each other with the input interface of I/O interface circuit and the RST pin in the IC-card standard (being used for sending reset signal) effect is identical; External equipment (such as the IC-card card reader) only need be transformed simply and this USB Key can be used as an IC-card and use.
Because the safety chip of USB Key shown in Figure 1 can identify whether carry out data interaction by USB interface and external equipment, safety chip can be implemented different security strategies accordingly.For example, when USB Key by USB interface and external equipment (being generally the personal computer of being invaded by virus or wooden horse than being easier to) when carrying out data interaction, it as fly-by-night external equipment, is implemented strict security strategy, only start the application lower to security requirement; When USB Key by I/O interface circuit and external equipment (for example, IC-card card reader, automatic teller machine etc.) when carrying out data interaction, with it as external equipment trusty, implement loose security strategy, can start the application higher to security requirement.
USB Key shown in Figure 1 is widely used in the field such as E-Payment at present, and the security tool of be used for signing electronically making, electron underwriting authentication, data encryption, deciphering is commonly called Electronics Cryptographic Keys or electric signing tools.Along with the continuous expansion of function, except with traditional personal computer links to each other, the external equipments such as various transaction terminals (for example, automatic teller machine) that USB Key also needs to provide with bank link to each other.Because the most automatic teller machine does not provide USB interface, but major part all provides serial ports, so USB Key need to be coupled by the switching device ability of USB device.
If adopt the switching device of existing USB device to link to each other with automatic teller machine, USB Key shown in Figure 1 can carry out data interaction by usb circuit and automatic teller machine, safety chip will be implemented strict security strategy, start the application lower to security requirement.But, the reliability and the security that it has been generally acknowledged that automatic teller machine self are very high, USB Key shown in Figure 1 should carry out data interaction by I/O interface circuit and automatic teller machine, in order to implement loose security strategy, starts the application higher to security requirement.Obviously, serial ports of the prior art turns the USB switching device and can't satisfy above-mentioned requirements.
Summary of the invention
Technical matters to be solved by this invention is, overcomes the deficiencies in the prior art, and a kind of serial ports that USB device shown in Figure 1 can be connected to main frame is provided, and uses the D+ of USB interface or the USB device switching device of D-pin transmission I/O signal.
In order to address the above problem, the invention provides a kind of switching device for general serial bus equipment, comprise: be used for being connected to the serial interface of main frame, with the USB interface that is connected connecting USB device; This device also comprises: control module; Wherein:
Described control module links to each other with the RXD pin with the TXD pin of described serial interface, and link to each other with the first pin of described USB interface, be used for receiving rs 232 serial interface signal by described TXD pin, described rs 232 serial interface signal is carried out level conversion, and the needs that level conversion is obtained are sent to the I/O signal of USB device by described the first pin output;
Described control module also is used for receiving the I/O signal by described the first pin, and the I/O signal that needs is sent to main frame carries out level conversion, and the rs 232 serial interface signal that level conversion obtains is exported by described RXD pin;
Described control module also links to each other with described USB interface by connecting signal lines, is used for when having detected the USB device insertion by described connection signal lines, to described the first pin output high level;
Wherein, in described the first pin D+ pin that is described USB interface and the D-pin.
In addition, described control module also links to each other with the second pin of described USB interface, is used for by described the second pin output reset signal;
Wherein, another except described the first pin in described the second pin D+ pin that is described USB interface and the D-pin.
In addition, described device also comprises power module, and described power module links to each other by power supply output line with the VBUS pin of described USB interface, is used for by described VBUS pin out-put supply.
In addition, described control module also links to each other with described power module, is used for sending the opening power signal connecting described power supply output line to described power module, or sends the powered-down signal to disconnect described power supply output line;
Described control module sends described opening power signal to described power module when having detected the USB device insertion by described connection signal lines; Described control module sends described powered-down signal to described power module when having detected USB device by described connection signal lines and extract.
In addition, described control module comprises: level conversion unit connects detecting unit and main control unit;
Described level conversion unit in the described control module links to each other with the RXD pin with described TXD pin, and links to each other with described main control unit; Described main control unit links to each other with described the first pin with described level conversion unit;
Described level conversion unit is used for receiving described rs 232 serial interface signal by described TXD pin, carries out described level conversion, and the described I/O signal that level conversion is obtained exports described main control unit to; Described main control unit is used for behind the I/O signal that receives described level conversion unit output, described needs is sent to the I/O signal of USB device by described the first pin output;
Described main control unit also is used for receiving the I/O signal by described the first pin, the I/O signal that described needs is sent to main frame is sent to described level conversion unit, described level conversion unit also is used for the I/O signal of described main control unit output is carried out level conversion, and the rs 232 serial interface signal that level conversion obtains is exported by described RXD pin;
Connection detecting unit in the described control module links to each other with described USB interface by connecting signal lines, and link to each other with described main control unit, be used for when having detected the USB device insertion by described connection signal lines, inserting signal to described main control unit transmitting apparatus; Described main control unit also is used for when the equipment that receives described connection detecting unit transmission inserts signal, to described the first pin output high level.
In addition, described main control unit also links to each other with the second pin of described USB interface, is used for by described the second pin output reset signal;
Wherein, another except described the first pin in described the second pin D+ pin that is described USB interface and the D-pin.
In addition, described device also comprises power module, and described power module links to each other by power supply output line with the VBUS pin of described USB interface, is used for by described VBUS pin out-put supply;
Described main control unit also links to each other with described power module, is used for sending the opening power signal connecting described power supply output line to described power module, or sends the powered-down signal to disconnect described power supply output line;
When described main control unit inserts signal at the equipment that receives described connection detecting unit transmission, send described opening power signal to described power module; When described main control unit is extracted signal at the equipment that receives described connection detecting unit transmission, send described powered-down signal to described power module.
In addition, described control module is resolved, to the received signal if comprise the signal of serial ports initialization command after receiving described rs 232 serial interface signal by described TXD pin, then comprise the rs 232 serial interface signal that the serial ports initialization is replied by described RXD pin transmission, to finish the serial ports initialization.
In addition, described control module sends the rs 232 serial interface signal that has inserted for to the main frame reporting facility by described RXD pin when having detected the USB device insertion by described connection signal lines; When having detected USB device by described connection signal lines and extract, send by described RXD pin and to be used for the rs 232 serial interface signal extracted to the main frame reporting facility.
In addition, described connection detecting unit also is used for extracting signal to described main control unit transmitting apparatus when having detected USB device by described connection signal lines and extract;
Described main control unit also is used for when the equipment that receives described connection detecting unit transmission inserts signal, export the I/O signal that has inserted for to the main frame reporting facility to level conversion unit, when the equipment that receives described connection detecting unit transmission is extracted signal, export the I/O signal of having extracted for to the main frame reporting facility to level conversion unit.
In sum, USB device switching device of the present invention can be connected to USB device shown in Figure 1 the serial ports of main frame, and the employing mode different from the usb protocol standard used D+ and the D-pin of USB interface, make USB device shown in Figure 1 can adopt multiple pin use-pattern and main frame to carry out data interaction on the one hand, and then implement different security strategies according to the difference of pin use-pattern, start different application; Also need not on the other hand in the USB switching device, to realize the function of USB master controller, reduced the cost of USB switching device.
Description of drawings
Fig. 1 is that application number is the circuit theory diagrams of the USB Key that puts down in writing in the patented claim of 201010142982.X;
Fig. 2 is the structural representation of switching device first embodiment of universal serial bus device of the present invention;
Fig. 3 is the structural representation of switching device second embodiment of universal serial bus device of the present invention;
Fig. 4 is the structural representation of switching device the 3rd embodiment of universal serial bus device of the present invention;
Fig. 5 is the structural representation of switching device the 4th embodiment of universal serial bus device of the present invention.
Embodiment
Core of the present invention is, serial interface, control module and USB interface are set in the switching device of USB device, this control module links to each other with TXD, the RXD pin of serial interface, and link to each other with D+ (or D-) pin of USB interface, control module is carried out level conversion to the rs 232 serial interface signal that receives by the TXD pin, will be converted to I/O (input and output) signal and export D+ (or D-) pin to; Control module exports the rs 232 serial interface signal that is converted to the RXD pin after the I/O signal that receives by D+ (or D-) pin is carried out level conversion.
Describe the present invention below in conjunction with drawings and Examples.
The first embodiment
Fig. 2 is the structural representation of switching device first embodiment of universal serial bus device of the present invention.As shown in Figure 2, this device comprises: serial interface, USB interface, control module and power module; Wherein:
Serial interface, be used for main frame (for example, automatic teller machine) in the serial ports slot link to each other, comprise: TXD pin and RXD pin.
In addition, can also comprise in the serial interface: the pins such as DTR, RTX.
USB interface is used for linking to each other with USB device, comprises: D+ pin and D-pin.
In addition, can also comprise in the USB interface: the pins such as VBUS.
Control module, link to each other with the TXD pin of serial interface and the D+ pin of RXD pin, USB interface, be used for receiving rs 232 serial interface signal by the TXD pin, the rs 232 serial interface signal that receives is resolved, if what receive is the rs 232 serial interface signal (namely need not to be sent to the rs 232 serial interface signal of USB device) that comprises the serial ports initialization command, then comprise the rs 232 serial interface signal that the serial ports initialization is replied by the RXD pin to the main frame transmission, finish the serial ports initialization; If what receive is the rs 232 serial interface signal (namely needing to be sent to the rs 232 serial interface signal of USB device) that comprises equipment control and read write command, then it is carried out level conversion, export the I/O leg signal that meets the IC-card regulation and stipulation (being called for short the I/O signal) that is converted to USB device by the D+ pin.
In addition, control module also can receive rs 232 serial interface signal, and it is carried out resolving after the level conversion, if comprise the signal of serial ports initialization command, then comprise the rs 232 serial interface signal that the serial ports initialization is replied by the RXD pin to the main frame transmission, finish the serial ports initialization; If what receive is the signal that comprises equipment control and read write command, export USB device to by the D+ pin.
Above-mentioned serial ports initialization command comprises be used to the order that the serial communication parameters such as baud rate, data bit, position of rest, check bit are set; If use the default serial communication parameter that sets in advance between main frame and the USB device switching device of the present invention, then can omit the serial ports function of initializing of control module.
Strictly USB device is as shown in Figure 1 used as IC-card if need, control module also needs to finish interfacing equipment (IFD) function of IC-card, comprise: circuit activates, PPS (Protocol and Parameter Selection, agreement and parameter are selected) exchange, the function such as reset, therefore control module also links to each other with the D-pin of USB interface, the operation requirements to the RST pin according to IC-card standard defined, by the D-pin to USB device output signal (being about to the RST pin that the D-pin of USB interface is used as in the IC-card standard uses), for example: the reset signal by D-pin output IC-card standard defined comprises cold reset signal and hot reset signal.
Control module also is used for receiving the I/O signal by the D+ pin, and it is resolved, if this I/O signal need not to be sent to main frame (for example, reset answer, PPS replys etc.), then carries out respective handling; If need to be sent to main frame, then it is carried out level conversion (converting the serial ports level to, for example the RS232 level) after, export the rs 232 serial interface signal that is converted to main frame by the RXD pin.
Control module also links to each other with USB interface by connecting signal lines, whether the equipment insertion is arranged or extracts for detection of USB interface; When having detected the USB device insertion (when USB device powers on), to the D+ pin output high level (level when being higher than the standard USB device and powering on its D+ pin, for example, the corresponding high level of I/O pin of IC-card regulation and stipulation), in order to make USB device know that the current mode of standard that do not adopt uses the D+ pin, and send by the RXD pin and to be used for the rs 232 serial interface signal that inserted to the main frame reporting facility; When having detected USB device and extract, send by the RXD pin and to be used for the rs 232 serial interface signal extracted to the main frame reporting facility.
Power module links to each other with control module by the first power supply output line, is used to control module that power supply is provided.
Power module can by battery and corresponding the electric circuit constitute, provide power supply by battery; Power module also can be comprised of the serial ports power-supply circuit, with one or more the linking to each other in the DTR pin of serial interface, RTX pin, the TXD pin, and obtains power supply.
In addition, power module can also link to each other with the VBUS pin of USB interface by the second source output line, is used for by the VBUS pin to USB device out-put supply (soon the VBUS pin of the USB interface VCC pin of being used as the IC-card standard uses).
In addition, control module can also link to each other with power module by switch signal line, sending power switch signal by switching signal alignment power module (comprising: the opening power signal, the powered-down signal), with be connected (the second source output line) between the VBUS pin that is switched on or switched off power module and USB interface, and then make power module pass through VBUS pin out-put supply, or stop by VBUS pin out-put supply.
Control module can send the opening power signal by switching signal alignment power module when having detected USB device and insert, with the indication power module connect with the VBUS pin between be connected, by VBUS pin out-put supply; Control module sends the powered-down signal by switching signal alignment power module when detecting USB device and extract, with the indication power module disconnect with the VBUS pin between be connected, stop by VBUS pin out-put supply.
In the first embodiment of the present invention, control module can be comprised of one chip, mainly finish following functions: the serial ports function of initializing, level conversion function (between serial ports level and IC-card level, changing), be connected measuring ability, IC-card interfacing equipment function (for example, circuit activates, PPS exchanges, resets etc.).
The second embodiment
The difference of second embodiment of the invention and the first embodiment is, the control module of the first embodiment further is subdivided into the three functions unit: level conversion unit, connect detecting unit, and main control unit is described in detail below with reference to accompanying drawing.
Fig. 3 is the structural representation of switching device second embodiment of universal serial bus device of the present invention; As shown in Figure 3, control module comprises: level conversion unit connects detecting unit, main control unit; Wherein:
Level conversion unit links to each other with the RXD pin with the TXD pin of serial interface, and links to each other with main control unit, is used for receiving rs 232 serial interface signal by the TXD pin, passes through level conversion, and exports the I/O signal that is converted to main control unit; Level conversion unit also is used for receiving the I/O signal of main control unit output, and it is carried out level conversion (converting the serial ports level to, for example the RS232 level), exports the rs 232 serial interface signal that is converted to main frame by the RXD pin.
Connect detecting unit, link to each other with USB interface by connecting signal lines, and link to each other with main control unit, be used for detecting USB interface and whether having equipment to insert or extract by connecting signal lines, and to main control unit output connection status signal (comprising that equipment inserts signal and equipment is extracted signal).
Main control unit, link to each other with the D+ pin of level conversion unit and USB interface, the I/O signal that is used for the output of incoming level converting unit, and the I/O signal that receives resolved, if comprise the I/O signal of serial ports initialization command, then comprise the I/O signal that the serial ports initialization is replied to level conversion unit output, finish the serial ports initialization; If what receive is the I/O signal that comprises equipment control and read write command, then export USB device to by the D+ pin.
Strictly USB device is as shown in Figure 1 used as IC-card if need, main control unit also needs to finish interfacing equipment (IFD) function of IC-card, comprise: circuit activates, PPS (Protocol and Parameter Selection, agreement and parameter are selected) exchange, the function such as reset, therefore, main control unit also links to each other with the D-pin of USB interface, the operation requirements to the RST pin according to IC-card standard defined, by the D-pin to the USB device output signal, for example: the reset signal by D-pin output IC-card standard defined comprises cold reset signal and hot reset signal.
Main control unit also is used for receiving the I/O signal by the D+ pin, and it is resolved, if this I/O signal need not to be sent to main frame (for example, reset answer signal, PPS answer signal etc.), then carries out respective handling; If need to be sent to main frame, then export it to level conversion unit.
Main control unit also is used for after receiving the connection status signal that connects the detecting unit transmission, is used for the I/O signal that has inserted or extracted to the main frame reporting facility to level conversion unit output.In addition, main control unit also is used for when receiving the equipment insertion signal that connects the detecting unit transmission, to the D+ pin output high level (level when being higher than the standard USB device and powering on its D+ pin, for example, the corresponding high level of I/O pin of IC-card regulation and stipulation), in order to make USB device know that the current mode of standard that do not adopt uses the D+ pin.
In addition, main control unit can also link to each other with power module by switch signal line, sending power switch signal by switching signal alignment power module (comprising: the opening power signal, the powered-down signal), with be connected (the second source output line) between the VBUS pin that is switched on or switched off power module and USB interface, and then make power module pass through VBUS pin out-put supply, or stop by VBUS pin out-put supply.
Main control unit can send the opening power signal by switching signal alignment power module receiving when connecting equipment that detecting unit sends and inserting signal, with the indication power module connect with the VBUS pin between be connected, by VBUS pin out-put supply; Main control unit can send the powered-down signal by switching signal alignment power module receiving when connecting equipment that detecting unit sends and extracting signal, with the indication power module disconnect with the VBUS pin between be connected, stop by VBUS pin out-put supply.
The function of other module is identical with the first embodiment in the present embodiment, repeats no more.
The 3rd embodiment
Fig. 4 is the structural representation of switching device the 3rd embodiment of universal serial bus device of the present invention; Unique difference of the 3rd embodiment and the first embodiment is: the D+ pin output reset signal of control module by USB interface (being about to the RST pin that the D+ pin of USB interface is used as in the IC-card standard uses), and the D-pin transmission I/O signal by USB interface (soon the I/O pin be used as in the IC-card standard of the D-pin of USB interface uses).In addition, each functional module and annexation are identical with the first embodiment among the 3rd embodiment, repeat no more.
The 4th embodiment
Fig. 5 is the structural representation of switching device the 4th embodiment of universal serial bus device of the present invention; Unique difference of the 4th embodiment and the second embodiment is: main control unit is exported reset signal by the D+ pin of USB interface, and transmits the I/O signal by the D-pin of USB interface.In addition, each functional module/unit and annexation are identical with the second embodiment among the 4th embodiment, repeat no more.
In sum, USB device switching device of the present invention can be connected to USB device shown in Figure 1 the serial ports of main frame, and the employing mode different from the usb protocol standard used D+ and the D-pin of USB interface, make USB device shown in Figure 1 can adopt multiple pin use-pattern and main frame to carry out data interaction on the one hand, and then implement different security strategies according to the difference of pin use-pattern, start different application; Also need not on the other hand in the USB switching device, to realize the function of USB master controller, reduced the cost of USB switching device.
Claims (10)
1. a switching device for general serial bus equipment comprises: be used for being connected to the serial interface of main frame, with the USB interface that is connected connecting USB device; It is characterized in that this device also comprises: control module; Wherein:
Described control module links to each other with the RXD pin with the TXD pin of described serial interface, and link to each other with the first pin of described USB interface, be used for receiving rs 232 serial interface signal by described TXD pin, described rs 232 serial interface signal is carried out level conversion, and the needs that level conversion is obtained are sent to the I/O signal of USB device by described the first pin output;
Described control module also is used for receiving the I/O signal by described the first pin, and the I/O signal that needs is sent to main frame carries out level conversion, and the rs 232 serial interface signal that level conversion obtains is exported by described RXD pin;
Described control module also links to each other with described USB interface by connecting signal lines, is used for when having detected the USB device insertion by described connection signal lines, to described the first pin output high level;
Wherein, described high level to the first pin output, the level when being higher than the standard USB device and powering on its pin is in order to make USB device know that the current mode of USB standard that do not adopt uses the first pin;
Wherein, in described the first pin D+ pin that is described USB interface and the D-pin.
2. device as claimed in claim 1 is characterized in that,
Described control module also links to each other with the second pin of described USB interface, is used for by described the second pin output reset signal;
Wherein, another except described the first pin in described the second pin D+ pin that is described USB interface and the D-pin.
3. device as claimed in claim 1 is characterized in that,
Described device also comprises power module, and described power module links to each other by power supply output line with the VBUS pin of described USB interface, is used for by described VBUS pin out-put supply.
4. device as claimed in claim 3 is characterized in that,
Described control module also links to each other with described power module, is used for sending the opening power signal connecting described power supply output line to described power module, or sends the powered-down signal to disconnect described power supply output line;
Described control module sends described opening power signal to described power module when having detected the USB device insertion by described connection signal lines; Described control module sends described powered-down signal to described power module when having detected USB device by described connection signal lines and extract.
5. device as claimed in claim 1 is characterized in that,
Described control module comprises: level conversion unit connects detecting unit and main control unit;
Described level conversion unit in the described control module links to each other with the RXD pin with described TXD pin, and links to each other with described main control unit; Described main control unit links to each other with described the first pin with described level conversion unit;
Described level conversion unit is used for receiving described rs 232 serial interface signal by described TXD pin, carries out described level conversion, and the described I/O signal that level conversion is obtained exports described main control unit to; Described main control unit is used for behind the I/O signal that receives described level conversion unit output, described needs is sent to the I/O signal of USB device by described the first pin output;
Described main control unit also is used for receiving the I/O signal by described the first pin, the described I/O signal that needs is sent to main frame is sent to described level conversion unit, described level conversion unit also is used for the I/O signal of described main control unit output is carried out level conversion, and the rs 232 serial interface signal that level conversion obtains is exported by described RXD pin;
Connection detecting unit in the described control module links to each other with described USB interface by connecting signal lines, and link to each other with described main control unit, be used for when having detected the USB device insertion by described connection signal lines, inserting signal to described main control unit transmitting apparatus; Described main control unit also is used for when the equipment that receives described connection detecting unit transmission inserts signal, to described the first pin output high level.
6. device as claimed in claim 5 is characterized in that,
Described main control unit also links to each other with the second pin of described USB interface, is used for by described the second pin output reset signal;
Wherein, another except described the first pin in described the second pin D+ pin that is described USB interface and the D-pin.
7. device as claimed in claim 5 is characterized in that,
Described device also comprises power module, and described power module links to each other by power supply output line with the VBUS pin of described USB interface, is used for by described VBUS pin out-put supply;
Described main control unit also links to each other with described power module, is used for sending the opening power signal connecting described power supply output line to described power module, or sends the powered-down signal to disconnect described power supply output line;
When described main control unit inserts signal at the equipment that receives described connection detecting unit transmission, send described opening power signal to described power module; When described main control unit is extracted signal at the equipment that receives described connection detecting unit transmission, send described powered-down signal to described power module.
8. device as claimed in claim 1 is characterized in that,
After described control module receives described rs 232 serial interface signal by described TXD pin, resolve to the received signal, if comprise the signal of serial ports initialization command, then comprise the rs 232 serial interface signal that the serial ports initialization is replied by described RXD pin transmission, to finish the serial ports initialization.
9. device as claimed in claim 1 is characterized in that,
Described control module sends the rs 232 serial interface signal that has inserted for to the main frame reporting facility by described RXD pin when having detected the USB device insertion by described connection signal lines; When having detected USB device by described connection signal lines and extract, send by described RXD pin and to be used for the rs 232 serial interface signal extracted to the main frame reporting facility.
10. device as claimed in claim 5 is characterized in that,
Described connection detecting unit also is used for extracting signal to described main control unit transmitting apparatus when having detected USB device by described connection signal lines and extract;
Described main control unit also is used for when the equipment that receives described connection detecting unit transmission inserts signal, export the I/O signal that has inserted for to the main frame reporting facility to level conversion unit, when the equipment that receives described connection detecting unit transmission is extracted signal, export the I/O signal of having extracted for to the main frame reporting facility to level conversion unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110002187 CN102063400B (en) | 2011-01-06 | 2011-01-06 | Switching device for general serial bus equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110002187 CN102063400B (en) | 2011-01-06 | 2011-01-06 | Switching device for general serial bus equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102063400A CN102063400A (en) | 2011-05-18 |
CN102063400B true CN102063400B (en) | 2013-03-13 |
Family
ID=43998682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110002187 Active CN102063400B (en) | 2011-01-06 | 2011-01-06 | Switching device for general serial bus equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102063400B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521186B (en) * | 2011-11-22 | 2015-01-14 | 飞天诚信科技股份有限公司 | USB (Universal Serial Bus) key and method for communicating with terminal thereof |
CN103701452A (en) * | 2012-09-27 | 2014-04-02 | 深圳市朗驰欣创科技有限公司 | Multifunctional communication interface signal converter |
CN102929824B (en) * | 2012-10-15 | 2016-01-06 | 天地融科技股份有限公司 | A kind of system of multiplexing USB interface transmission data |
CN102929825B (en) * | 2012-10-15 | 2016-04-13 | 天地融科技股份有限公司 | A kind of method of multiplexing USB interface transmission data and electric signing tools |
CN103077151A (en) * | 2013-01-25 | 2013-05-01 | 上海斐讯数据通信技术有限公司 | Device for switching universal serial bus (USB) interface and standard serial port |
CN104216851A (en) * | 2013-06-05 | 2014-12-17 | 苏州坤宏电子有限公司 | Universal serial interface device achieving plug and play of HID through USB |
CN108628787B (en) * | 2017-03-22 | 2023-02-07 | 鸿富锦精密工业(武汉)有限公司 | Interface control circuit |
CN109189705B (en) * | 2018-08-09 | 2021-01-01 | 北京东土科技股份有限公司 | USB extension method, device, equipment, storage medium and system |
CN110162497A (en) * | 2019-04-15 | 2019-08-23 | 深圳市普威技术有限公司 | Interconnecting device, adapting system, host system and the terminal system of data-interface |
CN110502381B (en) * | 2019-08-19 | 2023-09-19 | 惠州Tcl移动通信有限公司 | Mobile terminal, serial port debugging method thereof and computer readable medium |
CN111143140B (en) * | 2019-12-09 | 2020-12-11 | 江苏云涌电子科技股份有限公司 | Data maintenance port detection system and method |
TWI768355B (en) * | 2020-05-28 | 2022-06-21 | 瑞昱半導體股份有限公司 | Interface connection device, system and method thereof |
CN114595175B (en) * | 2022-01-24 | 2023-11-21 | 深圳市有方科技股份有限公司 | Self-level-adaptive serial port adaptation method and USB (universal serial bus) to serial port board |
CN114860520B (en) * | 2022-04-22 | 2023-03-21 | 珠海海奇半导体有限公司 | USB slave equipment extraction detection circuit |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2837917Y (en) * | 2005-10-21 | 2006-11-15 | 深圳同方融达科技有限公司 | The USB converter that is used for tax-control cash register |
CN101030185A (en) * | 2006-02-28 | 2007-09-05 | 鸿富锦精密工业(深圳)有限公司 | Device for updating USB switching cascade line |
CN101404001A (en) * | 2008-11-10 | 2009-04-08 | 深圳华为通信技术有限公司 | Serial port signal and USB signal compatible control circuit board and communication data cable |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201638205U (en) * | 2010-04-29 | 2010-11-17 | 湖南文理学院 | Data transmission circuit of USB interface and RS-232 interface |
CN101937039B (en) * | 2010-05-21 | 2015-01-28 | 天地融科技股份有限公司 | Connecting detection method |
-
2011
- 2011-01-06 CN CN 201110002187 patent/CN102063400B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2837917Y (en) * | 2005-10-21 | 2006-11-15 | 深圳同方融达科技有限公司 | The USB converter that is used for tax-control cash register |
CN101030185A (en) * | 2006-02-28 | 2007-09-05 | 鸿富锦精密工业(深圳)有限公司 | Device for updating USB switching cascade line |
CN101404001A (en) * | 2008-11-10 | 2009-04-08 | 深圳华为通信技术有限公司 | Serial port signal and USB signal compatible control circuit board and communication data cable |
Also Published As
Publication number | Publication date |
---|---|
CN102063400A (en) | 2011-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102063400B (en) | Switching device for general serial bus equipment | |
CN101840387B (en) | USB Key device and method for realizing smart card communication by using USB interface | |
US7413129B2 (en) | USB device with secondary USB on-the-go function | |
CN101719211B (en) | IC card reader and method for safely reading and writing IC card | |
CN100447700C (en) | Multi-function portable device for electronic processors | |
CN204945996U (en) | USB (universal serial bus) conversion fit line | |
CN104794788B (en) | Internet application system and its implementation based on radio RF recognition technology | |
CN201044100Y (en) | USB interface converter | |
CN104102871A (en) | Electronic signature verification extension equipment and information processing method | |
CN104102870B (en) | Electron underwriting authentication expansion equipment and information processing method | |
CN102148631A (en) | Dismountable wireless communication module and startup method thereof | |
KR101803286B1 (en) | Smartcard Interface Conversion Device, Embedded system having the same device and Method used in the same device | |
CN101727418A (en) | Bridged device with electricity saving function | |
CN104102869B (en) | Electron underwriting authentication expansion equipment and information processing method | |
CN101187970A (en) | Adapter for 2-G identity card reader | |
CN201004233Y (en) | A RF card reading device with RS485 interface | |
CN102223227B (en) | Safe and intelligent code memory chip and automatic communication file reestablishing method thereof | |
CN201974819U (en) | Electronic signature tool | |
CN104123257A (en) | Universal serial bus devices, communication method, and computer readable storage medium | |
CN203243339U (en) | Data transmission system | |
CN201465131U (en) | Multi-standard radio frequency card read-write device capable of updating program in system | |
CN201072557Y (en) | Adapter of second generation identity card reading device | |
CN205229976U (en) | KVM system of compatible multiple mouse type | |
CN105320215A (en) | Split-body or integrated host framework integrated with card-stamping function | |
CN202758370U (en) | Multifunctional card reader |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent for invention or patent application | ||
CB02 | Change of applicant information |
Address after: 102211 Beijing city Changping District Baishan town 100 Ge Road No. 9 Building No. 2 hospital Applicant after: Tendyron Technology Co., Ltd. Address before: 100083, B, block 17, golden building, No. 1810 Qinghua East Road, Beijing, Haidian District Applicant before: Beijing Tendyron Technology Co., Ltd. |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |