Summary of the invention
The invention provides a kind of USB connector, exist USB connector and can not realize two problems from the transfer of data between equipment to solve prior art.
A kind of USB connector is provided, and for transmit data between the first equipment and the second equipment, described the second equipment has OTG interface.Described USB connector comprises first interface, the second interface and switch, described first interface is used for connecting described the first equipment, described the second interface is for connecting the OTG interface of described the second equipment, described first interface comprises the first data pin, the second data pin, the first grounding pin and the first voltage pin, described the second interface comprises the 3rd data pin, the 4th data pin, the second grounding pin, second voltage pin and identification pin, described the first data pin is connected to described the 3rd data pin, described the second data pin is connected to described the 4th data pin, described the first grounding pin is connected to described the second grounding pin, described the first voltage pin is connected to described second voltage pin, described identification pin is connected to described the second grounding pin by described switch, control described identification pin and whether be connected to described the second grounding pin by opening and closing described switch.
In the possible implementation of the first, when described switch is during in opening, described identification pin disconnects and being connected of described the second grounding pin, and described identification pin is in vacant state.
In the possible implementation of the second, when described switch is during in closed condition, described identification pin is connected with described the second grounding pin, thereby makes described identification pin shorted to earth.
In the third possible implementation, described USB connector also comprises the 3rd interface, described the 3rd interface is for auxiliary power supply, described the 3rd interface comprises the 3rd grounding pin and tertiary voltage pin, described the 3rd grounding pin is connected to described the first grounding pin, and described tertiary voltage pin is connected to described the first voltage pin.
In the 4th kind of possible implementation, described first interface is USB interface, and described the second interface is minitype USB interface.
In conjunction with the 4th kind of possible execution mode, in the 5th kind of possible implementation, described first interface is female seat USB interface.
In conjunction with the 4th kind of possible execution mode, in the 6th kind of possible implementation, described first interface is male seat USB interface.
USB connector provided by the invention, controls described identification pin by open-close on-off and whether is connected to described the second grounding pin, to control the operating state of the second equipment, thereby can realize two from the transfer of data between equipment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please also refer to Fig. 1 and Fig. 2, USB connector 100 provided by the invention, for transmitting data between the first equipment and the second equipment.USB connector 100 comprises first interface 10, the second interface 30, the 3rd interface 50 and switch 70.
In the present embodiment, the first equipment does not have OTG (On-The-Go) interface.The second equipment has OTG interface.
First interface 10 is USB interface, for connecting the first equipment.First interface 10 comprises the first voltage pin 11, the first data pin 12, the second data pin 13 and the first grounding pin 15.
In the present embodiment, first interface 10 is female seat USB interface.
In other embodiments, first interface 10 is male seat USB interface.
The second interface 30 is minitype USB interface, for connecting the OTG interface of the second equipment.The second interface 30 comprises second voltage pin 31, the 3rd data pin 32, the 4th data pin 33, the second grounding pin 35 and identification pin 34, described the first data pin 12 is connected to described the 3rd data pin 32, described the second data pin 13 is connected to described the 4th data pin 33, described the first grounding pin 15 is connected to described the second grounding pin 35, described the first voltage pin 11 is connected to described second voltage pin 31, and described identification pin 34 is connected to described the second grounding pin 35 by switch 70.
In the present embodiment, the second interface 30 is female seat minitype USB interface.
In other embodiments, the second interface 30 is male seat minitype USB interface.
In other embodiments, the second interface 30 also can be female seat USB interface or male seat USB interface.
The 3rd interface 50 is satellite interfaces, for auxiliary power supply.Described the 3rd interface comprises tertiary voltage pin 51 and the 3rd grounding pin 55, and described the 3rd grounding pin 55 is connected to described the first grounding pin 15, and described tertiary voltage pin 51 is connected to described the first voltage pin 11.When the first equipment connecting when USB connector 100 or the second equipment need to be powered, the 3rd interface 50 will be given the first equipment or the power supply of the second equipment, thereby can reduce the interface that exposes of the first equipment or the second equipment, reduce pcb board area, reduce costs, realize the demand of the first equipment or the second device miniaturization.
Switch 70 is located between described identification pin 34 and described the second grounding pin 35, for controlling the connection between described identification pin 34 and described the second grounding pin 35.Switch 70 comprises opening and closing two states, and when switch 70 is during in opening, described identification pin 34 disconnects and being connected of described the second grounding pin 35, and described identification pin 34 is in vacant state.In this opening, the second equipment is from equipment, and the first equipment is main frame.When switch 70 is during in closed condition, described identification pin 34 is connected with described the second grounding pin 35, thereby makes described identification pin 34 shorted to earths.In this closed condition, the first equipment is from equipment, and the second equipment is main frame.In other words, control described identification pin 34 by open-close on-off 70 and whether be connected to described the second grounding pin 35.
For example, the second equipment connecting when the second interface 30 is from equipment, as PDA, the first equipment that first interface 10 connects is also from equipment, as portable hard drive, as transmitted data between PDA and portable hard drive, switch 70 need be in closed condition, described identification pin 34 is connected with described the second grounding pin 35, described identification pin 34 shorted to earths, now, the first equipment is as from equipment, the second equipment is as main frame, and, in the time that switch 70 cuts out, the second equipment being connected with the second interface 30 is operated in Host Status.The second equipment connecting when the second interface 30 is from equipment, as PDA, the first equipment that first interface 10 connects is main frame, as computer, as transmitted data between PDA and computer, or, the second equipment connecting when the second interface 30 is main frame, as computer, the first equipment that first interface 10 connects is from equipment, as PDA, switch 70 need be in opening, described identification pin 34 disconnections are connected with described the second grounding pin 35, described identification pin 34 is in vacant state, now, the first equipment is as main frame or from equipment, the second equipment is as from equipment or main frame, in the time that switch 70 is opened, the state of the second equipment work being connected with the second interface 30 does not change.In other words, when the first equipment connecting when USB connector 100 and the second equipment are from equipment, by closing switch 70, described identification pin 34 is connected with described the second grounding pin 35, thereby the operating state that can change the second equipment makes the second equipment be operated in Host Status, and then can realize two from the transfer of data between equipment, solve existing USB connector and can not realize two from transmitting the problem of data between equipment; Meanwhile, when one in the first equipment that USB connector 100 connects and the second equipment during for main frame, by opening switch 70, described identification pin 34 is disconnected and being connected of described the second grounding pin 35, the second equipment keeps original operating state.Therefore the present invention controls described identification pin 34 by open-close on-off 70 and whether is connected to described the second grounding pin 35, thus the operating state of second equipment of control, and then can realize two from the transfer of data between equipment.
Because USB connector 100 has the 3rd interface 50, the powerful device being connected with USB connector 100, as portable hard drive, also can normally work.
Above-described execution mode, does not form the restriction to this technical scheme protection range.The amendment done within any spirit at above-mentioned execution mode and principle, be equal to and replace and improvement etc., within all should being included in the protection range of this technical scheme.