CN207946808U - USB OTG device - Google Patents

USB OTG device Download PDF

Info

Publication number
CN207946808U
CN207946808U CN201820115157.2U CN201820115157U CN207946808U CN 207946808 U CN207946808 U CN 207946808U CN 201820115157 U CN201820115157 U CN 201820115157U CN 207946808 U CN207946808 U CN 207946808U
Authority
CN
China
Prior art keywords
signal
resistance
module
switch
usb
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
Application number
CN201820115157.2U
Other languages
Chinese (zh)
Inventor
吴胜广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Weibu Information Co Ltd
Original Assignee
Shenzhen Weibu Information Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Weibu Information Co Ltd filed Critical Shenzhen Weibu Information Co Ltd
Priority to CN201820115157.2U priority Critical patent/CN207946808U/en
Application granted granted Critical
Publication of CN207946808U publication Critical patent/CN207946808U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The utility model discloses a kind of USB OTG device, including the first usb interface unit, first switch module, second switch module, hub module, secondary USB interface unit, OTG interface units and power supply module;First switch module, for selecting to be connected to first usb interface unit and secondary USB interface unit or being connected to first usb interface unit and hub module;Second switch module, for being connected to or disconnecting secondary USB interface unit and hub module;Hub module, for first switch module, second switch module and OTG interface unit threes to be interconnected;Power supply module, for, to give secondary USB interface unit to provide corresponding charging either supply voltage, and to OTG interface units providing corresponding supply voltage according to the level at the first control signal end of secondary USB interface unit height.

Description

USB OTG device
Technical field
The utility model is related to field of information transmission, more particularly to a kind of USB OTG device.
Background technology
With the development of universal serial bus (USB, Universal Serial Bus) technology so that PC (PC, Personal Computer) and external equipment can be linked together by simple mode, and into line number under the control of PC According to exchange, but this exchanged form just can not realize data exchange once leaving PC between two or more equipment, This is because peripheral hardware cannot serve as the function of main equipment (host) as PC.And in order to solve this problem, there is OTG (on the go) technology.
OTG technologies refer to having the equipment of USB interface in the case where no main equipment controls, and can also realize equipment room Data exchange.Such as mobile phone and USB flash disk, in the case of no main equipment, USB flash disk can directly be connect with mobile phone by OTG lines, hand Machine can read the data stored in USB flash disk, and the data in mobile phone can also be sent in USB flash disk and preserved, this facilitates ours Life.
Equipment with OTG functions, such as there is usually one USB interfaces for mobile phone, tablet external equipment, can only connect one Platform peripheral hardware only has OTG functions when carrying out OTG connections and it is necessary to use special OTG connecting lines, be set if to connect master Standby (host) must just gain USB connecting lines, could realize charging and data-transformation facility.During this, it would be desirable to root The selection connection of OTG lines, USB line is carried out according to the function to be realized of existing equipment, it is cumbersome, moreover, existing OTG connections Line and USB connecting lines can only realize its respective function, and it is common to cannot be satisfied multiple external equipments in the case of no PC Connection is to improve the demand of working efficiency.
Utility model content
The main purpose of the utility model is to propose a kind of USB OTG device, it is intended to realize while have both USB and OTG work( Can, and meet the needs of multiple external equipments are connected to improve working efficiency jointly in the case of no PC.
To achieve the above object, the utility model proposes USB OTG device include the first usb interface unit, first open Close module, second switch module, hub module, secondary USB interface unit, OTG interface units and power supply module;
The first switch module has common end and selects end with the first choice end of common end gating and second, It includes the first feeder ear that the hub module, which has first end, second end and the third end being connected with each other, the power supply module, With the first charging end, the secondary USB interface unit further includes first control signal end;The common end of the first switch module It is connect with first usb interface unit, the first choice end of the first switch module connects with the secondary USB interface unit It connects, the second selection end of the first switch module is connect with the first end of the hub module, the hub module Second end is connect through the second switch module with the secondary USB interface unit;The third end of the hub module and institute State the connection of OTG interface units;
First feeder ear of the power supply module, the power end of the secondary USB interface unit and the OTG interfaces list The power end connection of member, the first control signal end of the first charging end of the power supply module and the secondary USB interface unit Connection;
The first switch module is connected to first usb interface unit and the secondary USB interface list for selecting Member or connection first usb interface unit and hub module;
The second switch module, for being connected to or disconnecting the secondary USB interface unit and the hub module;
The hub module is used for the first switch module, the second switch module and the OTG interfaces Unit three is interconnected;The power supply module is used for the electricity at the first control signal end according to the secondary USB interface unit Flat height to provide corresponding charging either supply voltage to the secondary USB interface unit, and gives the OTG interfaces list Member provides corresponding supply voltage.
Preferably, first switch module includes first switch chip, first resistor, second resistance, 3rd resistor, the 4th electricity Resistance, the 5th resistance, the 6th resistance, the first capacitance, first control signal end and power end;The first switch chip includes first Signal pins anode, the first signal pins cathode, third signal pins, fourth signal foot, the 5th signal pins, the 6th signal pins, grounding leg, First control signal foot, supply pin and level foot;
Common end, first choice end and the second selection end of the first switch module all have anode and cathode;
First signal pins of the first switch chip connect with the first end of the first resistor and are opened for described first The common end anode of module is closed, the first signal pins cathode of the first switch chip is connect with the first end of the second resistance And it is the common end cathode of the first switch module, third signal pins and the second resistance of the first switch chip Second end connect and for the first switch module first choice rectify pole, the fourth signal foot of the first switch chip with The second end of the first resistor connects and is the first choice end cathode of the first switch module, the first switch chip The 5th signal pins be that pole is rectified in the second selection of the first switch module, the 6th signal pins of the first switch chip are Second selection end cathode of the first switch module, the grounding leg ground connection of the first switch chip, the first switch core The first control signal foot of piece, the first end of the 3rd resistor are connected with the first end of the 4th resistance, and described first opens The first end of the supply pin, the 5th resistance that close chip is connected with the first end of first capacitance, the first switch core The level foot of piece is connected with the first end of the 6th resistance;The second end of the 3rd resistor is the first switch module First control signal end;The second end of 4th resistance is grounded;The second end of 5th resistance is the first switch mould The power end of block;The second end of first capacitance is grounded;The second end of 6th resistance is grounded.
Preferably, the second switch module includes second switch chip, the 7th resistance, the 8th resistance, the 9th resistance, Ten resistance, the second capacitance, first control signal end and power end;The second switch chip includes the first signal pins, the second letter Number foot, third signal pins, fourth signal foot, the 5th signal pins, the 6th signal pins, grounding leg, first control signal foot, supply pin With level foot;
First signal end of the second switch module, second signal end all have anode and cathode;
First signal pins of the second switch chip are the first signal end anode of the second switch module, described the The second signal foot of two switch chips is the first signal end cathode of the second switch module, the of the second switch chip Three signal pins are hanging, and the fourth signal foot of the second switch chip is hanging, and the 5th signal pins of the second switch chip are The second signal of the second switch module rectifies pole, and the 6th signal pins of the second switch chip are the second switch mould The second signal end cathode of block, the grounding leg ground connection of the second switch chip, the first control letter of the second switch chip Number foot, the 7th resistance first end connected with the first end of the 8th resistance, the power end of the second switch chip, The first end of 9th resistance is connected with the first end of second capacitance, the level foot of the second switch chip and described The first end of tenth resistance connects;The second end of 7th resistance is grounded;The second end of 8th resistance is described second The first control signal end of switch module;The second end of 9th resistance is the power end of the second switch module;It is described The second end of second capacitance is grounded;The second end of tenth resistance is grounded.
Preferably, secondary USB interface unit includes eleventh resistor, twelfth resistor, thirteenth resistor, the 14th electricity Resistance, the first diode, the second diode, third diode, the 4th diode, third capacitance, the 4th capacitance, the 5th capacitance, One inductor, the first USB terminals, the first power end, first control signal end and the first signal end;First inductor includes First signal transmission end, second signal transmission end, third signal transmission end and fourth signal transmission end;The first USB terminals Including grounding leg, peripheral hardware signal identification foot, the first signal pins anode, the first signal pins cathode and supply pin;
First signal end of secondary USB interface unit includes anode and cathode;
The grounding leg of the first USB terminals is grounded, the first USB terminal peripheral hardware signal identifications foot, the described 1st The first end of pole pipe is connected with the first end of the eleventh resistor, and the first signal pins of the first USB terminals are positive, described First signal transmission end of the first end of twelfth resistor, the first end of second diode and first inductor connects Connect, the first signal pins cathode of the first USB terminals, the first end of the thirteenth resistor, the third diode One end is connected with the second signal transmission end of first inductor, the supply pin of the first USB terminals, the 14th electricity It hinders, the first end of the 4th diode is connected with the first end of the third capacitance;The third signal of first inductor Transmission end connects with the second end of the twelfth resistor and is altogether the first signal end anode of the secondary USB interface unit, The fourth signal transmission end of first inductor connects with the second end of the thirteenth resistor and is that the 2nd USB connects altogether First signal end cathode of mouth unit;The second end of the third capacitance is grounded;
The second end of the eleventh resistor is the first control signal end of the secondary USB interface unit;Described first The second end of diode, the second end of second diode, the second end of the third diode, the 4th diode Second end is grounded;The first of the second end of 14th resistance, the first end of the 4th capacitance and the 5th capacitance End connects and is altogether the first power end of the secondary USB interface unit;The second end of 4th capacitance and the 5th electricity The second end of appearance is grounded.
Preferably, the OTG interface units include the 15th resistance, the 16th resistance, the 17th resistance, the 18th electricity Resistance, the 19th resistance, the 5th diode, the 6th diode, the 7th diode, the 8th diode, the 9th diode, the 6th electricity Appearance, the 7th capacitance, the 8th capacitance, the second inductor, the 2nd USB terminals, the first power end, the first signal end and the first control Signal end;Second inductor includes the first signal transmission end, second signal transmission end, third signal transmission end and the 4th letter Number transmission end;The 2nd USB terminals include grounding leg, peripheral hardware signal identification foot, the first signal pins are positive, the first signal pins are negative Pole and supply pin;
First signal end of the OTG interface units includes anode and cathode;
The grounding leg of the 2nd USB terminals is grounded, the 2nd USB terminal peripheral hardware signal identifications foot, the described 5th 2 The first end of pole pipe is connected with the first end of the 15th resistance, and the first signal pins of the 2nd USB terminals are positive, described First signal transmission end of the first end of the 16th resistance, the first end of the 6th diode and second inductor connects Connect, the first signal pins cathode of the 2nd USB terminals, the first end of the 7th diode, the 17th resistance One end is connected with the second signal transmission end of second inductor, supply pin, the 6th capacitance of the first USB terminals First end, the first end of the 8th diode connects with the first end of the 18th resistance;
The third signal transmission end of second inductor connects with the second end of the 16th resistance and is altogether described The first signal end anode of OTG interface units, the fourth signal transmission end of second inductor and the 17th resistance Second end connects and is altogether the first signal end cathode of the OTG interface units;The second end of 6th capacitance is grounded;
The second end of 15th resistance is the first control signal end of the OTG interface units;Five or two pole The second of the second end of pipe, the second end of the 6th diode, the second end of the 7th diode, the 8th diode End is grounded;
The second end of 18th resistance, the first end of the 19th resistance, the first end of the 9th diode, The first end of 7th capacitance is connected with the first end of the 8th capacitance;The second end of 19th resistance and described The second end of nine diodes connects and is altogether the first power end of the OTG interface units;The second end of 7th capacitance and The second end of 8th capacitance is grounded.
Preferably, the hub module includes the first signal exchange chip, driving circuit, the first drive signal receiving terminal With the second drive signal receiving terminal;
The first end of the hub module includes the positive first end of the hub module, the hub module Cathode first end;The second end of the hub module includes the positive second end of the hub module, the hub mould The cathode second end of block;The third end of the hub module includes the positive third end of the hub module, the line concentration The cathode third end of device module;
The first signal exchange chip include the first signal pins, second signal foot, third signal pins and fourth signal foot, 5th signal pins, the 6th signal pins, the first driving foot and the second driving foot;The driving circuit include the first drive output and Second drive output;
First signal pins of the first signal exchange chip be the hub module positive first end, described first The second signal foot of signal exchange chip is the cathode first end of the hub module, the of the first signal exchange chip Three signal pins are the positive second end of the hub module, and the fourth signal foot of the first signal exchange chip is the collection The cathode second end of line device module, the 5th signal pins of the first signal exchange chip are the anode the of the hub module Three ends, the 6th signal pins of the first signal exchange chip are the cathode third end of the hub module, first letter First driving foot of number exchange chip is connected with the first drive output of the driving circuit, the first signal exchange chip Second driving foot connected with the second drive output of the driving circuit;
The driving circuit provides driving voltage for the first signal exchange chip operation.
Preferably, the driving circuit includes the first crystal oscillator, the 20th resistance, the 9th capacitance and the tenth capacitance;Described One crystal oscillator includes the first signal end, second signal end, third signal end and fourth signal end;First signal of first crystal oscillator It holds, the first end of the 9th capacitance is connected with the first end of the 20th resistance and is the first drive of the driving circuit altogether Dynamic output end, the second signal end ground connection of first crystal oscillator, the third signal end of first crystal oscillator, the 20th resistance Second end connected with the first end of the tenth capacitance and altogether be the driving circuit the second drive output, described first The fourth signal end of crystal oscillator is grounded;The second end of 9th capacitance and the second end of the tenth capacitance are grounded.
Preferably, the power supply module includes the first power supply chip, the tenth diode and first switch;The power supply chip Including the first boosting output pin and the second reduced output voltage foot;First boosting output pin of the power supply chip and the 12nd pole The anode connection of pipe, the second reduced output voltage foot of the power supply chip, the first end and secondary USB interface list of the first switch The first control signal end connection of member;The cathode of tenth diode is the first feeder ear of the power supply module;Described The second end of one switch is the first charging end of the power supply module.
Preferably, first usb interface unit includes USB micro interfaces.
Technical solutions of the utility model by using the first usb interface unit, first switch module, second switch module, Hub module, secondary USB interface unit, OTG interface units and power supply module composition USB, OTG device.Wherein, described One switch module, second switch module detect signal according to the USB_ID of the 2nd USB interface units and OTG interface units Switch corresponding connecting path, corresponding operating mode, the utility model can be switched according to the difference of external equipment type Only realized with a device to being connected from equipment OTG connections with the USB of main equipment.The hub module by device all the way Usb signal is divided into two-way usb signal, realizes data exchange of the platforms such as mobile phone, tablet to multiple external equipments.The power supply mould Block can decide whether to power for the secondary USB interface unit, OTG interface units according to ID_PIN signals, drive its work Make, facilitates the data exchange between control device and equipment, and be switched to charge mode at the time of suitable.First USB Interface unit, secondary USB interface unit and OTG interface units with equipment for connecting.Therefore, basis may be implemented in this programme The connection device type signal of the secondary USB interface unit and OTG interface units switches first switch module, second opens in time The connection type for closing module, changes the power supply state of power supply module, realizes that USB connections are connected with OTG in same attachment device Be switched fast and under OTG patterns increase connection external equipment interface quantity, be convenient for multiple equipment collective effect.
Description of the drawings
In order to illustrate the embodiment of the utility model or the technical proposal in the existing technology more clearly, below will be to embodiment Or attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only It is some embodiments of the utility model, for those of ordinary skill in the art, in the premise not made the creative labor Under, the structure that can also be shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the modular structure schematic diagram of the utility model USB OTG device;
Fig. 2 is the first switch module circuit diagram of the utility model USB OTG device;
Fig. 3 is the second switch module circuit diagram of the utility model USB OTG device;
Fig. 4 is the secondary USB interface element circuit figure of the utility model USB OTG device;
Fig. 5 is the OTG interface unit circuit diagrams of the utility model USB OTG device;
Fig. 6 is the hub module circuit diagram of the utility model USB OTG device;
Fig. 7 is the power supply module circuit diagram of the utility model USB OTG device.
The embodiments will be further described with reference to the accompanying drawings for the realization, functional characteristics and advantage of the utility model aim.
Specific implementation mode
The following will be combined with the drawings in the embodiments of the present invention, carries out the technical scheme in the embodiment of the utility model Clearly and completely describing, it is clear that described embodiment is only a part of the embodiment of the utility model, rather than all Embodiment.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
If it is to be appreciated that related in the utility model embodiment directionality instruction (such as upper and lower, left and right, it is preceding, Afterwards ...), then directionality instruction be only used for explain it is opposite between each component under a certain particular pose (as shown in the picture) Position relationship, motion conditions etc., if the particular pose changes, directionality instruction also correspondingly changes correspondingly.
If, should " first ", " the in addition, relate to the description of " first ", " second " etc. in the utility model embodiment Two " etc. description is used for description purposes only, and is not understood to indicate or imply its relative importance or is implicitly indicated meaning The quantity of the technical characteristic shown." first " is defined as a result, the feature of " second " can explicitly or implicitly include at least one A this feature.In addition, the technical solution between each embodiment can be combined with each other, but must be with ordinary skill Personnel can be implemented as basis, will be understood that this technical side when the combination of technical solution appearance is conflicting or cannot achieve The combination of case is not present, also not within the protection domain of the requires of the utility model.
The utility model proposes a kind of USB OTG device.
In one embodiment of the utility model, as shown in Figure 1, the utility model proposes USB OTG device include first Usb interface unit 100, first switch module 101, second switch module 102, hub module 103, secondary USB interface unit 104, OTG interface units 105 and power supply module 106.
Specifically, first switch module 101 has common end and is selected with the first choice end of common end gating and second End, it includes the first feeder ear that hub module 103, which has first end, second end and the third end being connected with each other, power supply module 106, With the first charging end, secondary USB interface unit 104 further includes first control signal end;The common end of first switch module 101 with First usb interface unit 100 connects, and the first choice end of first switch module 101 is connect with secondary USB interface unit 104, the Second selection end of one switch module 101 is connect with the first end of hub module 103, the second end warp of hub module 103 Second switch module 102 is connect with secondary USB interface unit 104;The third end of hub module 103 and OTG interface units 105 Connection;The electricity of first feeder ear of power supply module 106, the power end and OTG interface units 105 of the 2nd USB interface units 104 Source connects, and the first charging end of power supply module 106 is connected with the first control signal end of secondary USB interface unit 104.
In the present embodiment, hub module 103, will when receiving the signal that the first usb interface unit 100 transmits The signal is divided into two-way, and is transferred to second switch module and OTG interface units 105 respectively, and hub module 103 is receiving When the signal transmitted to OTG interface units 105, split the signal into two-way, and be transferred to respectively second switch module and First usb interface unit 100.
In the present embodiment, the first usb interface unit 100 and secondary USB interface unit 104 may be used various types of USB joint is realized, certainly, signal transmission, the first usb interface unit 100 and the 2nd USB is carried out in order to connect different equipment USB inequality, i.e. the first usb interface units 100 as possible used by interface unit 104 use USB-micro connectors, USB- When the realizations such as Mini connectors or Type-C connectors, secondary USB interface unit 104 then uses Standard-A type USB joints, this Sample, for the first usb interface unit 100 for connecting the equipment such as mobile phone, tablet, secondary USB interface unit 104 can connect PC etc., The equipment such as mobile phone, tablet, smart camera and the connection of PC thus may be implemented.Wherein, OTG interface units 105 can connect Mobile phone, tablet, intelligent phase so may be implemented in equipment with Standard-A type USB joints, such as USB flash disk, keyboard, mouse etc. The connection of the equipment such as the equipment such as machine and USB flash disk, keyboard, mouse.
Since OTG interface units 105 and secondary USB interface unit 104 connect power supply module, then by OTG interface units 105 and secondary USB interface unit 104 execute master-slave equipment identification action.
In the present embodiment, we are used with the first usb interface unit 100Type-C connectors, secondary USB interface unit 104 Standard-A male connectors, OTG interface units 105 are Standard-A females, it is notable that these are only the excellent of this programme Select embodiment, in actual life, because of the diversification of USB transport protocol, we can take a variety of different realization methods.
Specifically, when the first usb interface unit 100 and secondary USB interface unit 104 are separately connected electronic equipment, the Two usb interface units 104 identify the equipment that is connected, by taking mobile phone connect with PC as an example, when secondary USB interface unit 104 and PC connections, after connection, PC can send out a peripheral type signal from the ID pins of included USB interface, and industry usually defines this A signal is low level, is as main equipment by PC after secondary USB interface unit 104 identifies the low level signal.At this point, the Two usb interface units 104 control first switch module 101 and act, and second switch module 102 is failure to actuate, first switch module 101 connect the first usb interface unit 100 with secondary USB interface unit 104, and second switch module 102 keeps the 2nd USB to connect Disconnection between mouth unit 104 and hub module 103 connects in this way, just realizing PC (main equipment) with mobile phone (from equipment) It connects, can charge the phone, and mutual data transmission between the two.(can be other support OTG functions with mobile phone and USB flash disk Equipment) connection for, the first usb interface unit 100 of the USB OTG device is connect with mobile phone, secondary USB interface unit 104 It is connect with USB flash disk.It should be noted that when secondary USB interface unit 104 is mother's USB mouth, then the male connector directly with keyboard USB Connection then needs to turn the crossover sub of USB by an OTG come the company of realization when secondary USB interface unit 104 is USB male joint Keyboard is connect, when being connected certainly with computer, does not then need adapter.After connection, detect that the ID pins of the USB interface of USB flash disk are hanging, Industry is normally defined high level, at this point, the 2nd USB interface units 104 identification USB flash disk is from equipment.At this point, control first is opened Close module 101, second switch module 102 and hub module 103 act, first switch module 101 is by the first USB interface list Member 100 is connected with hub module 103, and second switch module 102 is by hub module 103 and secondary USB interface unit 104 Connection, to make mobile phone (main equipment) and USB flash disk (from equipment) mutual data transmission.
When the first usb interface unit 100 and OTG interface units 105 are separately connected electronic equipment, OTG interface units 105 pairs of equipment identifications connected, by taking mobile phone is connected with PC as an example, (need connection one when OTG interface units 105 are connect with PC A Standard-A females turn Standard-A male connectors crossover sub), after connection, PC can be from the ID pins of included USB interface A peripheral type signal is sent out, it is low level that industry, which usually defines this signal, and OTG interface units 105 identify the low level It is as main equipment by PC after signal.It is acted at this point, OTG interface units 105 control first switch module 101, second switch mould Block 102 is failure to actuate, and first switch module 101 connects the first usb interface unit 100 with secondary USB interface unit 104, and second Switch module 102 keeps the disconnection between OTG interface units 105 and hub module 103.It (can be for other with mobile phone and U disks Support OTG functions equipment) connection for, the first USB interface units 100 of the USB OTG device are connect with mobile phone, and OTG connects Mouth unit 105 is connect with USB flash disk, and after connection, OTG interface units 105 detect that the ID pins of the USB interface of USB flash disk are hanging, and industry is logical It often is defined as high level, at this point, OTG interface units 105 identify that USB flash disk is from equipment.At this point, control first switch module 101, Second switch module 102 and hub module 103 act, and first switch module 101 is by the first usb interface unit 100 and line concentration Device module 103 is connected, and hub module 103 is connected to by second switch module 102 with secondary USB interface unit 104, to make Mobile phone (main equipment) and USB flash disk (from equipment) mutual data transmission.
It is set when the first usb interface unit 100, OTG interface units 105 and secondary USB interface unit 104 are separately connected electronics When standby, by taking mobile phone, keyboard (can be the equipment of other support OTG functions) and USB flash disk as an example, when the first usb interface unit 100 connects Mobile phone, secondary USB interface unit 104 connect PC, OTG interface units 105 connect USB flash disk when, when secondary USB interface unit 104 with PC connections, when OTG interface units 105 are connect with USB flash disk, PC can send out a peripheral type from the ID pins of included USB interface Signal, it is low level that industry, which usually defines this signal, after secondary USB interface unit 104 identifies the low level signal, by PC For as main equipment, USB flash disk can send out a peripheral type signal from the ID pins of included USB interface, and industry usually defines this A signal is high level, is to be used as from equipment by USB flash disk after secondary USB interface unit 104 identifies the high level signal.At this point, the Two usb interface units 104 control first switch module 101 and act, and it is dynamic that OTG interface units 105 control second switch module 102 Make, first switch module 101 connects the first usb interface unit 100 with secondary USB interface unit 104, second switch module Connection between 102 holding OTG interface units 105, hub module 103 and OTG interface units 105 just realizes first PC (main equipment) is connect with mobile phone (from equipment), can be charged the phone, and mutual data transmission between the two.It is worth mentioning , after connection is built, mobile phone can give a high level signal to disconnect first switch module 101 and secondary USB interface unit 104 Connection, at this point, first switch module 101 acts, the first usb interface unit 100 connect with hub module 103, i.e., first Switch module 101 connects the first USB interface units 100 with hub module 103, and second switch module 102 is by hub mould Block 103 is connected to OTG interface units 105, at this point, the first usb interface unit 100 and OTG interface units 105 are opened by first It closes module 101 and hub module 103 carries out data exchange.
By taking mobile phone, keyboard (can be the equipment of other support OTG functions) are connected with USB flash disk as an example, the of the USB OTG device One usb interface unit 100 is connect with mobile phone, and secondary USB interface unit 104 is connected with keyboard, and OTG interface units 105 connect with USB flash disk It connects.It should be noted that when secondary USB interface unit 104 is mother's USB mouth, then directly it is connect with the male connector of keyboard USB, when When secondary USB interface unit 104 is USB male connectors, then need to turn the crossover sub of USB by an OTG to realize connecting key Disk when being connected certainly with computer, does not then need adapter.After three interfaces all connect, the USB interface of USB flash disk, keyboard is detected ID pins are hanging, and industry is normally defined high level, at this point, second switch module 102, OTG interface units 105 identification keyboard, U Disk is from equipment.At this point, control first switch module 101, second switch module 102 and hub module 103 act, first opens It closes module 101 to connect secondary USB interface unit 104 with hub module 103, second switch module 102 is by hub module 103 are connected to OTG interface units 105, to make mobile phone (main equipment) and USB flash disk (from equipment), keyboard (from equipment) mutually transmit Data.
It should be noted that hub module 103 and first switch module 101 and 102 three of second switch module are mutual Connection, the signal transmitted at this time through the first usb interface unit 100 can be for transmission to secondary USB interface unit 104 and OTG Interface unit 105, the signal transmitted from secondary USB interface unit 104 can be transferred to 100 He of the first usb interface unit OTG interface units 105, the first usb interface unit 100 and the can be transferred to by being transmitted through the signal come from OTG interface units 105 Two usb interface units 104, that is, realize
USB and OTG functions are had both simultaneously, in this way, when multiple equipment connects mutually communication, mobile phone, flat can be solved Occurs switching inconvenient problem when OTG lines, USB line connection when the equipment such as the equipment such as plate connection PC, USB flash disk, keyboard.
On this device limited extension can also be carried out to OTG interface units again according to above-mentioned technical proposal, rationally increased Add OTG interface unit quantity.
Optionally, first switch module 101 includes first switch chip 1111, first resistor R1, second resistance R2, third Resistance R3, the 4th resistance R4, the 5th resistance R5, the 6th resistance R6, the first capacitance C1, first control signal end USB__SW1 and electricity Source VBAT1;First switch chip 1111 includes the first signal pins 1, second signal foot 2, third signal pins 4, fourth signal foot 5, the 5th signal pins 6, the 6th signal pins 7, grounding leg 3, first control signal foot 10, supply pin 9 and level foot 8;
Common end, first choice end and the second selection end of first switch module 101 all have anode and cathode;
First signal pins 1 of first switch chip 1111 connect with the first end of first resistor R1 and are first switch module 101 common end anode DP1, the second signal foot 2 of first switch chip 1111 connect with the first end of second resistance R2 and are The of the common end cathode DM1 of first switch module 101, the third signal pins 4 of first switch chip 1111 and second resistance R2 Two ends connect and rectify pole DP2, the fourth signal foot 5 of first switch chip 1111 for the first choice of first switch module 101 The first choice end cathode DM2 of first switch module 101, first switch chip are connect and are with the second end of first resistor R2 1111 the 5th signal pins 6 be first switch module 101 second selection rectify pole DP3, the 6th of first switch chip 1111 the Signal pins 7 are the second selection end cathode DM4 of first switch module 101, and the grounding leg 3 of first switch chip 1111 is grounded, the The first control signal foot 10 of one switch chip 1111, the first end of 3rd resistor R3 are connected with the first end of the 4th resistance R4, The supply pin 9 of first switch chip 1111, the first end of the 5th resistance R5 are connected with the first end of the first capacitance C1, first switch The level foot 8 of chip 1111 is connected with the first end of the 6th resistance R6;The second end of 3rd resistor R3 is first switch module 101 first control signal end USB_SW1;The second end of 4th resistance R4 is grounded;The second end of 5th resistance R5 is opened for first Close the power end of module 101;The second end of first capacitance C1 is grounded;The second end of 6th resistance R6 is grounded.
Wherein, the peripheral type signal that the first control signal end USB_SW1 of first switch module 101 is received passes through third Resistance R3 is transferred to the first control signal foot 10 of first switch chip 1111, and first switch chip 1111 is according to this peripheral hardware class Type signal judges, and makes connecting moves.When peripheral type signal is high level, the first of first switch chip 1111 Signal pins anode 1 is connect with the 5th signal pins 6 of first switch chip 1111, and the first signal pins of first switch chip 1111 are negative Pole 2 is connect with the 6th signal pins 7 of first switch chip 1111, third signal pins 4, the fourth signal of 1111 chip of first switch First USB units 100 are connected to by 5 non-output signal of foot, i.e. first switch module 101 with hub module 103.Work as peripheral type When signal is low level, the third signal of the first signal pins anode 1 and first switch chip 1111 of first switch chip 1111 Foot 4 connects, and the first signal pins cathode 2 of first switch chip 1111 is connect with the fourth signal foot 5 of first switch chip 1111, 5th signal pins of first switch chip 1111, the 6th signal pins non-output signal, i.e. first switch module 101 are by the first USB Unit 100 is connected to the 2nd USB units 104, is connected to, is realized to the selection of the access of chip interior according to peripheral type signal The function of switch.The power end VBAT1 connection power supplies of first switch module 101, and opened by 3rd resistor R3 and first The supply pin 9 for closing chip 1111 connects.
Optionally, second switch module 102 includes second switch chip 1112, the 7th resistance R7, the 8th resistance R8, the 9th Resistance R9, the tenth resistance R10, the second capacitance C2, first control signal end USB_SW2, the first signal end, second signal end and Power end VBAT2;Second switch chip 1112 includes the first signal pins 1, second signal foot 2, third signal pins 4, fourth signal Foot 5, the 5th signal pins 6, the 6th signal pins 7, grounding leg 3, first control signal foot 10, supply pin 9 and level foot 8;
First signal end of second switch module 102 and second signal end include anode and cathode;
First signal pins 1 of second switch chip 1112 are the first signal end anode DP4 of second switch module 102, the The second signal foot 2 of two switch chips 1112 is the first signal end cathode DM4 of second switch module 102, second switch chip 1112 third signal pins 4 are hanging, and the fourth signal foot 5 of second switch chip 1112 is hanging, and the of second switch chip 1112 Five signal pins 6 are that the second signal of second switch module 102 rectifies pole DP5, the 6th signal pins 7 of second switch chip 1112 Grounding leg 3 for the second signal end cathode DM5 of second switch module 102, second switch chip 1112 is grounded, second switch The first control signal foot 10 of chip 1112, the first end of the 7th resistance R7 are connected with the first end of the 8th resistance R8, and second opens The first end of the supply pin 9, the 9th resistance R9 that close chip 1112 is connected with the first end of the second capacitance C2, second switch chip 1112 level foot 8 is connected with the first end of the tenth resistance R10;The second end of 7th resistance R7 is grounded;The of 8th resistance R8 Two ends are the first control signal end SUB_SW2 of second switch module 102;The second end of 9th resistance R9 is second switch mould The power end VBAT2 of block 102;The second end of second capacitance C2 is grounded;The second end of tenth resistance R10 is grounded.
Wherein, the peripheral type signal that the first control signal end SUB_SW2 of second switch module 102 is received passes through the 8th Resistance R8 is transferred to the first control signal foot 10 of second switch chip 1112, and second switch chip 1112 is according to this peripheral hardware class Type signal judges, and makes corresponding connecting moves.When peripheral type signal is high level, second switch chip 1112 The first signal pins 1 connect with the 5th signal pins 6 of second switch chip 1112, the second signal foot of second switch chip 1112 It is connect with the 6th signal pins 7 of second switch chip 1112, the third signal pins 4 of second switch chip 1112, fourth signal foot 5 No signal is transmitted, i.e., hub module 103 is connected to by second switch module 102 with the second USB module 104.When peripheral type is believed Number be low level when, the first signal pins 1 of second switch chip 1112, the second signal foot 2, second of second switch chip 1112 The of the third signal pins 3 of switch chip 1112, the fourth signal foot 4 of second switch chip 1112, second switch chip 1112 The 7 equal no signal transmission of the 6th signal pins of five signal pins 6 and second switch chip 1112,102 internal transmission of second switch module Access disconnects.102 power end VBAT2 connection power supplies of the second switch module, and opened with second by the 9th resistance R9 The supply pin 8 for closing chip 1112 connects.
Optionally, secondary USB interface unit 104 includes eleventh resistor R11, twelfth resistor R12, thirteenth resistor R13, the 14th resistance R14, the first diode D1, the second diode D2, third diode D3, the 4th diode D4, third electricity Hold C3, the 4th capacitance C4, the 5th capacitance C5, the first inductor L1, the first USB terminals 1113, the first power end VBUS1, first Control signal end USB_ID1 and the first signal end;
First inductor L1 includes the first signal transmission end 1, second signal transmission end 2, third signal transmission end 3 and the 4th Signal transmission end 4;First USB terminals 1113 include grounding leg 5, peripheral hardware signal identification foot 4, the first signal pins anode 3, first letter Number foot cathode 2 and supply pin 1;
First signal end of secondary USB interface unit 104 includes anode DP6 and cathode DM6;
The grounding leg 5 of first USB terminals 1113 is grounded, 1113 peripheral hardware signal identification foot 4 of the first USB terminals, the one or two pole The first end of pipe D1 is connected with the first end of eleventh resistor R11, the first signal pins anode 3 of the first USB terminals 1113, First signal transmission end 1 of the first end of 12 resistance R12, the first end of the second diode D2 and the first inductor L1 connects, First signal pins cathode 2 of the first USB terminals 1113, the first end of thirteenth resistor R13, the first end of third diode D3 and The second signal transmission end 2 of first inductor L1 connects, the supply pins 1 of the first USB terminals 1113, the 14th resistance R14, the 4th The first end of diode D4 is connected with the first end of third capacitance C3;The third signal transmission end 3 and the tenth of first inductor L1 The second end of two resistance R12 connects and is altogether the first signal end anode DP6 of secondary USB interface unit 104, the first inductor The fourth signal transmission end 4 of L1 connects with the second end of thirteenth resistor R13 and is the first of secondary USB interface unit 104 altogether Signal end cathode DM6;The second end of third capacitance C3 is grounded;
The second end of eleventh resistor R11 is the first control signal end USB_ID1 of secondary USB interface unit 104;The The second end of one diode D1, the second end of the second diode D2, the second end of third diode D3, the 4th diode D4 Second end is grounded;The second end of 14th resistance R14, the first end of the 4th capacitance C4 are connected with the first end of the 5th capacitance C5 And altogether be secondary USB interface unit 104 the first power end VBUS1;The of the second end of 4th capacitance C4 and the 5th capacitance C5 Two ends are grounded.
Wherein, the first control signal end USB_ID1 of secondary USB interface unit 104 receives peripheral type signal, and first This signal is identified in USB terminals 1113.The the first power end VBUS1 and power supply module of secondary USB interface unit 104 106 the first feeder ear connection.When peripheral type signal is low level, secondary USB interface unit 104 connect with PC and only makees USB functions, the 2nd USB interface units 104 are in data exchange and charged state, and signal passes through secondary USB interface unit 104 The first signal end anode DP6, the first signal end cathode DM6 be transferred to the first inductor L1 and by the first USB terminals 1113 The first signal pins anode 3, the first signal pins cathode 2 carry out data exchange, the electricity that charging passes through the first USB terminals 1113 with PC 5 mouthfuls of power end, eleventh resistor R11, the secondary USB interface unit of source foot 4, the 14th resistance R14, the first USB terminals 1113 The circuit that 104 first control signal end USB_ID1 and the peripheral hardware signal identification foot 4 of the first USB terminals 1113 are composed in series to Equipment charge.When peripheral type signal is high level, secondary USB interface unit 104 is in OTG states, and signal passes through at this time The first signal end anode DP6, the first signal end cathode DM6 of secondary USB interface unit 104 are transferred to the first inductor L1 and lead to Cross the first signal pins anode 3 of the first USB terminals 1113, the first signal pins cathode 2 and PC carries out data exchange, eleventh resistor R11, secondary USB interface unit 104 first control signal end USB_ID1 and the first USB terminals 1113 peripheral hardware signal identification No signal is transmitted between the circuit that foot 4 is composed in series, the first power end VBUS1 of secondary USB interface unit 104, the 14th electricity Resistance R14, the circuit driving USB that the supply pin 1 of the first USB terminals 1113 is composed in series are in OTG working conditions.
Optionally, OTG interface units 105 include the 15th resistance R15, the 16th resistance R16, the 17th resistance R17, the 18 resistance R18, the 19th resistance R19, the 5th diode D5, the 6th diode D6, the 7th diode D7, the 8th diode D8, the 9th diode D9, the 6th capacitance C6, the 7th capacitance C7, the 8th capacitance C8, the second inductor L2, the 2nd USB terminals 1114, the first power end V_BOOST1, the first signal end and first control signal end USB_ID2;Second inductor L2 includes the One signal transmission end 1, second signal transmission end 2, third signal transmission end 3 and fourth signal transmission end 4;2nd ends USB Son 1114 includes grounding leg 5, peripheral hardware signal identification foot 4, the first signal pins anode 3, the first signal pins cathode 2 and supply pin 1;
105 first signal end of OTG interface units includes anode DP7 and cathode DM7;
The grounding leg 5 of 2nd USB terminals 1114 is grounded, 1114 peripheral hardware signal identification foot 4 of the 2nd USB terminals, the five or two pole The first end of pipe D5 is connected with the first end of the 15th resistance R15, the first signal pins anode 3 of the 2nd USB terminals 1114, First signal transmission end 1 of the first end of 16 resistance R16, the first end of the 6th diode D6 and the second inductor L2 connects, First signal pins cathode 2 of the 2nd USB terminals 1114, the first end of the 7th diode D7, the first end of the 17th resistance R17 and The second signal transmission end 2 of second inductor L2 connects, the supply pin 1 of the first USB terminals 1113, the first of the 6th capacitance C6 It holds, the first end of the 8th diode D8 is connected with the first end of the 18th resistance R18;
The third signal transmission end 3 of second inductor L2 connects with the second end of the 16th resistance R16 and is OTG interfaces altogether First signal end anode DP7 of unit 105, the fourth signal transmission end 4 of the second inductor L2 and the second of the 17th resistance R17 End connects and is altogether the first signal end cathode DM7 of OTG interface units 105;The second end of 6th capacitance C6 is grounded;
The second end of 15th resistance R15 is the first control signal end USB_ID2 of OTG interface units 105;Five or two The second of the second end of pole pipe D5, the second end of the 6th diode D6, the second end of the 7th diode D7, the 8th diode D8 End is grounded;
The second end of 18th resistance R18, the first end of the 19th resistance R19, the first end of the 9th diode D9, The first end of seven capacitance C7 is connected with the first end of the 8th capacitance C8;The second end and the 9th diode D9 of 19th resistance R19 Second end connection and altogether be OTG interface units 105 the first power end V_BOOST1;The second end and the 8th of 7th capacitance C7 The second end of capacitance C8 is grounded.
Wherein, the first power end V_BOOST1 of OTG interface units 105 is connect with the first feeder ear of power supply module 106, Signal is transferred to the second inductor L2 by the first signal end anode DP7, the first signal end cathode DM7 of OTG interface units 105 And data exchange is carried out with external equipment by the first signal pins anode 3 of the 2nd USB terminals 1114, the first signal pins cathode 2, The first control signal that 2nd USB terminals, 1114 peripheral hardware signal identification foot 4 passes through the 15th resistance R15, OTG interface unit 105 End USB_ID2 is connected with the first control signal end USB_ID1 of secondary USB interface unit 104.When OTG interface units 105 When first control signal end USB_ID2 signals are low level, OTG interface units 105 do not receive any data, are not involved in data It exchanges.When the peripheral hardware signal identification foot signal of OTG interface units 105 is high level, OTG interface units 105 receive data Signal participates in data exchange.
Optionally, hub module 103 includes the first signal exchange chip 1115, driving circuit 1116;
The first end of hub module 103, second end, third end include anode and cathode;
First signal exchange chip 1115 includes the first signal pins 1, second signal foot 2, the letter of third signal pins 3 and the 4th Number foot 4, the 5th signal pins 5, the 6th signal pins 6, first driving foot 7 and second drive foot 8;Driving circuit 1116 includes first Drive output GL1 and the second drive output GL2;
First signal pins 1 of the first signal exchange chip 1115 be hub module 103 positive first end DP8, first The second signal foot 2 of signal exchange chip 1115 is the cathode first end DM8 of hub module 103, the first signal exchange chip 1115 third signal pins 3 are the positive second end DP9 of hub module 103, the 4th letter of the first signal exchange chip 1115 Number foot 4 is the cathode second end DM9 of hub module 103, and the 5th signal pins 5 of the first signal exchange chip 1115 are hub The 6th signal pins 6 of the positive third end DP10 of module 103, the first signal exchange chip 1115 are the negative of hub module 103 Pole second end DM10, the first drive output of the first driving foot 7 and driving circuit 1116 of the first signal exchange chip 1115 GL1 connections, the second driving foot 8 of the first signal exchange chip 1115 and the second drive output GL2 of driving circuit 1116 connect It connects.
Wherein, driving circuit 1116 provides driving voltage for the work of the first signal exchange chip 1115, when the first signal is handed over It changes after the acquisition driving voltage of chip 1115, the signal passed through by the first end of hub module 103 is divided into two-way, is flowed respectively The second end of second end and hub module 103 through hub module 103.
Optionally, driving circuit 1116 includes the first crystal oscillator XU1, the 20th resistance R20, the electricity of the 9th capacitance C9 and the tenth Hold C10;First crystal oscillator XU1 includes the first signal end 1, second signal end 2, third signal end 3 and fourth signal end 4;First is brilliant The first signal end 1 of XU1, the first end of the 9th capacitance C9 of shaking connect with the first end of the 20th resistance R20 and are altogether driving electricity The second signal end 2 of first the drive output GL1, the first crystal oscillator XU1 on road 1116 is grounded, the third signal of the first crystal oscillator XU1 The second end of the 3, the 20th resistance R20 of end connects with the first end of the tenth capacitance C10 and is altogether the second drive of driving circuit 1116 The fourth signal end 4 of dynamic output end GL2, the first crystal oscillator XU1 are grounded;The of the second end of 9th capacitance C9 and the tenth capacitance C10 Two ends are grounded.
Optionally, power supply module 106 includes the first power supply chip 1117, first control signal end USB_ID3, the 12nd Pole pipe D10 and first switch SW1;First power supply chip 1117 includes the first boosting output pin 1 and the second reduced output voltage foot 2;The The anode connection of the first boosting output pin 1 and the tenth diode D10 of one power supply chip 1117, the of the first power supply chip 1117 The first control signal end SW_ID1 of two reduced output voltage feet 2, the first end of first switch SW1 and secondary USB interface unit 104 connects It connects;The cathode of tenth diode D10 is the first feeder ear V_BOOST2 of power supply module 106;The second end of first switch is to supply First charging end V_BUS2 of electric module 106.
Wherein, when first control signal end USB_ID3 is high level, first switch SW1 is disconnected, the first power supply core First boosting output pin 1 of piece 1117 is connect with secondary USB interface unit 104 and OTG interface units respectively, the first power supply core Second reduced output voltage foot 2 of piece 1117 disconnects, and supplies driving voltage at this time.When first control signal end USB_ID3 is low When level, first switch SW1 conducting, the first boosting output pin 1 of the first power supply chip 1117 respectively with secondary USB interface list Member 104 is connected with OTG interface units, the second reduced output voltage foot 2 of the first power supply chip 1117 respectively with secondary USB interface list Member 104 is connected with OTG interface units, is charged at this time for secondary USB interface unit 104.
Based on above-mentioned all embodiments, carried out in detail below in conjunction with the circuit theory of pair USB OTG device of Fig. 1,2,3,4,5 It illustrates:
After the secondary USB interface unit 104 of USB OTG device connects equipment, the peripheral hardware letter of the first USB terminals 1113 Number identification foot 4 receive a peripheral hardware level signal, meanwhile, this level signal can also be transferred to first switch module 101 First control signal end USB_SW1, the first control signal end USB_SW2 of second switch module 102 and power supply module 106 First control signal end USB_ID3.
When the equipment that secondary USB interface unit 104 connects is PC, the peripheral hardware signal identification foot of the first USB terminals 1113 The peripheral hardware level signal received is low level (0), at this point, PC, as main equipment, mobile phone and tablet etc. are used as from equipment, together When, this level signal can also be transferred to the first control signal end USB_SW1 of first switch module 101.The first switch The control signal that module 101 receives is low level (0), and the first signal pins anode 1 of first switch chip 1111 is opened with first The third signal pins 4 for closing chip 1111 connect, the first signal pins cathode 2 and the first switch chip 1111 of first switch chip Fourth signal foot 5 connects, and the 5th signal pins 6 of first switch chip 1111, the transmission of 7 no signal of the 6th signal pins, OTG connects at this time Mouth unit 105 can also connect the peripheral hardwares such as keyboard, USB flash disk, camera, printer together, be carried out under the selection index system of the chip of mobile phone The independent connection of PC or keyboard, USB flash disk, camera, printer etc..When the equipment that secondary USB interface unit 104 connects is keyboard, U When the peripheral hardwares such as disk, camera, printer, the peripheral hardware level signal that the peripheral hardware signal identification foot of the first USB terminals 1113 receives is High level (1) is sent to first control signal end USB_SW1, USB_SW2 and power supply module 106 of first switch module 101 First control signal end USB_ID3 signal also be high level.At this point, the first signal pins anode of first switch chip 1111 1 connect with the 5th signal pins 6 of first switch chip 1111, the first signal pins cathode 2 and first switch of first switch chip 6th signal pins 7 of chip 1111 connect, and third signal pins 4,5 no signal of fourth signal foot of first switch chip 1111 pass It is defeated.As main equipment, the external equipment of connection is used as from equipment for mobile phone, tablet.Meanwhile OTG interface units 105 can also connect Keyboard, USB flash disk, camera, printer etc., the equipment collaboration effect for allowing it to be connect with secondary USB interface unit 104.
When the equipment that OTG interface units 105 connect is USB flash disk, the first control signal end of the second switch module 102 For high level, the first signal pins anode 1 and the third signal pins 4 of second switch chip 1112 of second switch chip 1112 connect It connecing, the first signal pins cathode 2 of second switch chip 1112 is connect with the fourth signal foot 5 of second switch chip 1112, and second 5th signal pins 6 of switch chip 1112, the transmission of 7 no signal of the 6th signal pins.At this point, the signal input part of power supply module 106 For high level when, the first feeder ear V_BOOST2 give OTG interface units 105 supply driving power, the first charging end V_ BUS2 is without output.When the equipment that OTG interface units 105 connect is PC, the peripheral hardware signal identification foot of the 2nd USB terminals The peripheral hardware level signal received is low level (0), and the first control signal end of the second switch module 102 is low level, The first signal pins anode 1 of second switch chip 1112 is connect with the third signal pins 4 of second switch chip 1112, second switch First signal pins cathode 2 of chip 1112 is connect with the fourth signal foot 5 of second switch chip 1112, second switch chip 1112 The 5th signal pins 6,7 no signal of the 6th signal pins transmission.
When secondary USB interface unit 104 and OTG interface units be all connected with keyboard, USB flash disk, camera, printer etc. can be used as from When the device of equipment, secondary USB interface unit 104 and the detection of OTG interface units are high level, at this point, first switch chip 1111 the first signal pins anode 1 is connect with the 5th signal pins 6 of first switch chip 1111, the first letter of first switch chip Number foot cathode 2 is connect with the 6th signal pins 7 of first switch chip 1111, the third signal pins 4 of first switch chip 1111, Four signal pins, 5 no signal is transmitted.The third of the first signal pins anode 1 and second switch chip 1112 of second switch chip 1112 Signal pins 4 connect, the fourth signal foot 5 of the first signal pins cathode 2 and second switch chip 1112 of second switch chip 1112 Connection, the 5th signal pins 6 of second switch chip 1112, the transmission of 7 no signal of the 6th signal pins.Meanwhile the letter of power supply module 106 When number input terminal is high level, the first feeder ear V_BOOST2 gives OTG interface units 105 to supply driving power, and described first fills Electric end V_BUS2 is without output.
Technical solutions of the utility model are real by the way that first switch module 101 and second switch module 102 are arranged in a device The timely switching of transmission channel is showed, then by connecting secondary USB interface unit 104 and OTG interface units after transmission channel 105, that is, realize the switching freely of USB functions and OTG functions, greatly meet people's daily need, solve USB functions and The problem of connecting line being needed to frequently replace during OTG function switch, while the required control signal of handoff procedure derives from Secondary USB interface unit 104 controls switching without installing other switch or sending the pulse signal of exception, improves The intelligence degree of device.In addition, the confession by power supply module 106 to secondary USB interface unit 104, OTG interface units 105 Electricity or charging are realized instant switching of the secondary USB interface unit 104 in power supply and data exchange mode and OTG patterns, are increased The reliability of device is believed in secondary USB interface unit 104 without detection accordingly even when being be mistakenly inserted OTG interface units 105 In the case of number, it also can ensure the safety of equipment by controlling power supply module 106, will not be caused because of wrong interface outer The damage of portion's equipment and existing equipment.In addition, considering hub module 103, OTG interface units 105, power supply module 106 Particular interface and its connection type, moreover it is possible to by the third output end of OTG interface units 105 and the 4th output end connection collection The mode of line device module 103 goes limited increase USB interface quantity.
The above is only the preferred embodiment of the present invention, and it does not limit the scope of the patent of the present invention, It is every under the inventive concept of the utility model, equivalent structure made based on the specification and figures of the utility model becomes It changes, or directly/be used in other related technical areas indirectly and be included in the scope of patent protection of the utility model.

Claims (9)

1. a kind of USB OTG device, which is characterized in that the USB OTG device includes the first usb interface unit, first switch Module, second switch module, hub module, secondary USB interface unit, OTG interface units and power supply module;
The first switch module has common end and selects end with the first choice end of common end gating and second, described It includes the first feeder ear and that hub module, which has first end, second end and the third end being connected with each other, the power supply module, One charging end, the secondary USB interface unit further include first control signal end;The common end of the first switch module and institute The connection of the first usb interface unit is stated, the first choice end of the first switch module is connect with the secondary USB interface unit, Second selection end of the first switch module is connect with the first end of the hub module, and the second of the hub module End is connect through the second switch module with the secondary USB interface unit;The third end of the hub module and the OTG Interface unit connects;
First feeder ear of the power supply module, the secondary USB interface unit power end and the OTG interface units electricity Source connects, and the first charging end of the power supply module is connected with the first control signal end of the secondary USB interface unit;
The first switch module, for select to be connected to first usb interface unit and the secondary USB interface unit or It is connected to first usb interface unit and hub module;
The second switch module, for being connected to or disconnecting the secondary USB interface unit and the hub module;
The hub module is used for the first switch module, the second switch module and the OTG interface units three Person is interconnected;
The power supply module, for according to the level at the first control signal end of secondary USB interface unit height come to institute It states secondary USB interface unit and corresponding charging either supply voltage is provided, and is corresponding to OTG interface units offer Supply voltage.
2. USB OTG device as described in claim 1, which is characterized in that the first switch module includes first switch core Piece, first resistor, second resistance, 3rd resistor, the 4th resistance, the 5th resistance, the 6th resistance, the first capacitance, the first control letter Number end and power end;The first switch chip include the first signal pins, second signal foot, third signal pins, fourth signal foot, 5th signal pins, the 6th signal pins, grounding leg, first control signal foot, supply pin and level foot;
Common end, first choice end and the second selection end of the first switch module all have anode and cathode;
First signal pins of the first switch chip connect with the first end of the first resistor and are the first switch mould The common end anode of block, the second signal foot of the first switch chip connect with the first end of the second resistance and are described The common end cathode of first switch module, the third signal pins of the first switch chip connect with the second end of the second resistance It connects and rectifies pole, the fourth signal foot of the first switch chip and described first for the first choice of the first switch module The second end of resistance connects and believes for the first choice end cathode of the first switch module, the 5th of the first switch chip Number foot is that pole is rectified in the second selection of the first switch module, and the 6th signal pins of the first switch chip are described first Second selection end cathode of switch module, the grounding leg ground connection of the first switch chip, the first of the first switch chip Control signal pins, the first end of the 3rd resistor are connected with the first end of the 4th resistance, the first switch chip Supply pin, the 5th resistance first end connected with the first end of first capacitance, the level of the first switch chip Foot is connected with the first end of the 6th resistance;The second end of the 3rd resistor is the first control of the first switch module Signal end;The second end of 4th resistance is grounded;The second end of 5th resistance is the power supply of the first switch module End;The second end of first capacitance is grounded;The second end of 6th resistance is grounded.
3. USB OTG device as described in claim 1, which is characterized in that the second switch module includes second switch core Piece, the 7th resistance, the 8th resistance, the 9th resistance, the tenth resistance, the second capacitance, first control signal end, the first signal end, Binary signal end and power end;The second switch chip includes the first signal pins, second signal foot, third signal pins, the 4th letter Number foot, the 5th signal pins, the 6th signal pins, grounding leg, first control signal foot, supply pin and level foot;
First signal end of the second switch module and second signal end all have anode and cathode;
First signal pins of the second switch chip are the first signal end anode of the second switch module, and described second opens The second signal foot for closing chip is the first signal end cathode of the second switch module, the third letter of the second switch chip Number foot is hanging, and the fourth signal foot of the second switch chip is hanging, and the 5th signal pins of the second switch chip are described The second signal of second switch module rectifies pole, and the 6th signal pins of the second switch chip are the second switch module Second signal end cathode, the grounding leg ground connection of the second switch chip, the first control signal foot of the second switch chip, The first end of 7th resistance is connected with the first end of the 8th resistance, the power end of the second switch chip, described The first end of 9th resistance is connected with the first end of second capacitance, the level foot of the second switch chip and the described tenth The first end of resistance connects;The second end of 7th resistance is grounded;The second end of 8th resistance is the second switch The first control signal end of module;The second end of 9th resistance is the power end of the second switch module;Described second The second end of capacitance is grounded;The second end of tenth resistance is grounded.
4. USB OTG device as described in claim 1, which is characterized in that the secondary USB interface unit includes the 11st electricity Resistance, twelfth resistor, thirteenth resistor, the 14th resistance, the first diode, the second diode, third diode, the four or two pole Pipe, third capacitance, the 4th capacitance, the 5th capacitance, the first inductor, the first USB terminals, the first power end, first control signal End and the first signal end;
First inductor includes the first signal transmission end, second signal transmission end, third signal transmission end and fourth signal Transmission end;
The first USB terminals include grounding leg, peripheral hardware signal identification foot, the first signal pins anode, the first signal pins cathode and Supply pin;
First signal end of the secondary USB interface unit includes anode and cathode;
The grounding leg of the first USB terminals is grounded, the first USB terminal peripheral hardware signal identifications foot, first diode First end connected with the first end of the eleventh resistor, the first signal pins of the first USB terminals anode, the described tenth The first end of two resistance, the first end of second diode are connected with the first signal transmission end of first inductor, institute State the first signal pins cathode of the first USB terminals, the first end of the thirteenth resistor, the first end of the third diode and The second signal transmission end of first inductor connects, the supply pin of the first USB terminals, the 14th resistance, institute The first end for stating the 4th diode is connected with the first end of the third capacitance;The third signal transmission end of first inductor Connect and be altogether the first signal end anode of the secondary USB interface unit with the second end of the twelfth resistor, described the The fourth signal transmission end of one inductor connects with the second end of the thirteenth resistor and is the secondary USB interface unit altogether The first signal end cathode;The second end of the third capacitance is grounded;
The second end of the eleventh resistor is the first control signal end of the secondary USB interface unit;One or two pole The second of the second end of pipe, the second end of second diode, the second end of the third diode, the 4th diode End is grounded;The first end of the second end of 14th resistance, the first end of the 4th capacitance and the 5th capacitance connects Connect and be altogether the first power end of the secondary USB interface unit;The second end of 4th capacitance and the 5th capacitance Second end is grounded.
5. USB OTG device as described in claim 1, which is characterized in that the OTG interface units include the 15th resistance, 16th resistance, the 17th resistance, the 18th resistance, the 19th resistance, the 5th diode, the 6th diode, the 7th diode, 8th diode, the 9th diode, the 6th capacitance, the 7th capacitance, the 8th capacitance, the second inductor, the 2nd USB terminals, first Power end, the first signal end and first control signal end;Second inductor includes the first signal transmission end, second signal biography Defeated end, third signal transmission end and fourth signal transmission end;The 2nd USB terminals include grounding leg, peripheral hardware signal identification foot, First signal pins anode, the first signal pins cathode and supply pin;
First signal end of the OTG interface units includes anode and cathode;
The grounding leg of the 2nd USB terminals is grounded, the 2nd USB terminal peripheral hardware signal identifications foot, the 5th diode First end connected with the first end of the 15th resistance, the first signal pins of the 2nd USB terminals anode, the described tenth The first end of six resistance, the first end of the 6th diode are connected with the first signal transmission end of second inductor, institute State the first signal pins cathode of the 2nd USB terminals, the first end of the 7th diode, the first end of the 17th resistance and The second signal transmission end of second inductor connects, the supply pin of the first USB terminals, the first of the 6th capacitance It holds, the first end of the 8th diode is connected with the first end of the 18th resistance;
The third signal transmission end of second inductor connects with the second end of the 16th resistance and is that the OTG connects altogether The first signal end anode of mouth unit, the second end of the fourth signal transmission end of second inductor and the 17th resistance Connect and be altogether the first signal end cathode of the OTG interface units;The second end of 6th capacitance is grounded;
The second end of 15th resistance is the first control signal end of the OTG interface units;5th diode Second end, the second end of the 6th diode, second end, the second end of the 8th diode of the 7th diode are equal Ground connection;
It is the second end of 18th resistance, the first end of the 19th resistance, the first end of the 9th diode, described The first end of 7th capacitance is connected with the first end of the 8th capacitance;The second end and the described 9th 2 of 19th resistance The second end of pole pipe connects and is altogether the first power end of the OTG interface units;The second end of 7th capacitance and described The second end of 8th capacitance is grounded.
6. USB OTG device as described in claim 1, which is characterized in that the hub module module includes the first signal Exchange chip, driving circuit, the first drive signal receiving terminal and the second drive signal receiving terminal;
The first end of the hub module, second end, third end include anode and cathode;
The first signal exchange chip includes the first signal pins, second signal foot, third signal pins and fourth signal foot, the 5th Signal pins, the 6th signal pins, the first driving foot and the second driving foot;The driving circuit includes the first drive output and second Drive output;
First signal pins of the first signal exchange chip are the positive first end of the hub module, first signal The second signal foot of exchange chip is the cathode first end of the hub module, the third letter of the first signal exchange chip Number foot is the positive second end of the hub module, and the fourth signal foot of the first signal exchange chip is the hub The cathode second end of module, the 5th signal pins of the first signal exchange chip are the positive third of the hub module End, the 6th signal pins of the first signal exchange chip are the cathode third end of the hub module, first signal First driving foot of exchange chip is connected with the first drive output of the driving circuit, the first signal exchange chip Second driving foot is connected with the second drive output of the driving circuit;
The driving circuit provides driving voltage for the first signal exchange chip operation.
7. USB OTG device as claimed in claim 6, which is characterized in that the driving circuit includes the first crystal oscillator, the 20th Resistance, the 9th capacitance and the tenth capacitance;First crystal oscillator includes the first signal end, second signal end, third signal end and the Four signal ends;The first of first signal end of first crystal oscillator, the first end of the 9th capacitance and the 20th resistance End connection and be altogether the driving circuit the first drive output, the second signal end ground connection of first crystal oscillator, described the The third signal end of one crystal oscillator, the 20th resistance second end connect with the first end of the tenth capacitance and be altogether described Second drive output of driving circuit, the fourth signal end ground connection of first crystal oscillator;The second end of 9th capacitance and The second end of tenth capacitance is grounded.
8. USB OTG device as described in claim 1, which is characterized in that the power supply module includes the first power supply chip, the Ten diodes and first switch;The power supply chip includes the first boosting output pin and the second reduced output voltage foot;The power supply core The anode connection of the first boosting output pin and the tenth diode of piece, the second reduced output voltage foot of the power supply chip, institute The first end for stating first switch is connected with the first control signal end of the secondary USB interface unit;Tenth diode Cathode is the first feeder ear of the power supply module;The second end of the first switch is the first charging of the power supply module End.
9. such as claim 1 to 8 any one of them USB OTG device, which is characterized in that the first usb interface unit packet Include USB micro interfaces.
CN201820115157.2U 2018-01-23 2018-01-23 USB OTG device Active CN207946808U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201820115157.2U CN207946808U (en) 2018-01-23 2018-01-23 USB OTG device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201820115157.2U CN207946808U (en) 2018-01-23 2018-01-23 USB OTG device

Publications (1)

Publication Number Publication Date
CN207946808U true CN207946808U (en) 2018-10-09

Family

ID=63702305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201820115157.2U Active CN207946808U (en) 2018-01-23 2018-01-23 USB OTG device

Country Status (1)

Country Link
CN (1) CN207946808U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110098541A (en) * 2019-05-28 2019-08-06 睿思半导体(重庆)有限公司 The USB Hub and implementation method for having interface blind plugging function
CN110175143A (en) * 2019-05-13 2019-08-27 晶晨半导体(上海)股份有限公司 A kind of USB interface device and control method for supporting more HOST He list OTG
CN113438546A (en) * 2021-07-06 2021-09-24 深圳市绘王动漫科技有限公司 Multifunctional video signal expansion interface
CN114372013A (en) * 2021-12-31 2022-04-19 深圳微步信息股份有限公司 USB interface expansion circuit and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175143A (en) * 2019-05-13 2019-08-27 晶晨半导体(上海)股份有限公司 A kind of USB interface device and control method for supporting more HOST He list OTG
CN110098541A (en) * 2019-05-28 2019-08-06 睿思半导体(重庆)有限公司 The USB Hub and implementation method for having interface blind plugging function
CN113438546A (en) * 2021-07-06 2021-09-24 深圳市绘王动漫科技有限公司 Multifunctional video signal expansion interface
CN113438546B (en) * 2021-07-06 2024-02-13 深圳市绘王动漫科技有限公司 Multifunctional video signal expansion interface
CN114372013A (en) * 2021-12-31 2022-04-19 深圳微步信息股份有限公司 USB interface expansion circuit and terminal
CN114372013B (en) * 2021-12-31 2023-12-12 深圳微步信息股份有限公司 USB interface expansion circuit and terminal

Similar Documents

Publication Publication Date Title
CN207946808U (en) USB OTG device
CN202268816U (en) Power converter and electronic device
CN106849230B (en) Fast charge method for converting protocol and data line
CN102025510A (en) Ethernet power supply unit and network
CN101752760A (en) Multiplex USB cable connector
CN108933627A (en) A kind of optical module and optical network system
CN206116826U (en) USB data line of compatible OTG function
CN102270860B (en) Filling soon of intelligent mobile phone is put
CN209534769U (en) A kind of shared charging pile
CN208477322U (en) POE network interface expanded circuit, repeater and network monitoring system
CN109379196A (en) Network interface POE power supply circuit, power supply circuit, monitoring system and method for supplying power to
CN117318220A (en) Charging chip, charging device and mobile terminal
CN202111716U (en) Power over ethernet device and power over ethernet network
CN209543327U (en) The communicating circuit and signal transmission apparatus of compatible multiple signal source
CN107180176A (en) The control system and its operating system switching method of portable mobile termianl, medium
CN208227214U (en) A kind of wireless adapter and wireless transmitting system
CN108880878A (en) NB-IOT network switching device
US11211817B1 (en) Uninterruptible power supply capable of intelligently controlling direct current output
CN108681289A (en) A kind of intelligent radio switch
CN207968510U (en) A kind of PoE interchangers with USB interface
CN207939393U (en) A kind of powering mode converter
CN207098196U (en) Socket
CN202050289U (en) Network exchange type distribution automatic measurement and control apparatus
CN109388601A (en) A kind of OTG power supply, charging automatic switching module and its control method
CN218587193U (en) Photoelectric interface multiplexing device and system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant