Utility model content
The purpose of the utility model is to provide a kind of charging circuit, headset equipment and systems, without changing OTG agreement,
The two-way charging being just able to achieve between headset equipment and mobile terminal by hardware circuit, compatibility and flexibility are high.
In order to solve the above technical problems, the utility model provides a kind of charging circuit, it is applied to headset equipment, packet
It includes:
General-purpose serial bus USB interface;
Support the USB interface of OTG function;
One end with it is described support OTG function USB interface ID foot connect, the other end be grounded controllable switch;
Respectively with the USB interface, it is described support the USB interface of OTG function, the controllable switch control terminal and wear
The power supply switching module of the mainboard connection of formula equipment, is used for when determining that the USB interface is connect with charge power supply, described in control
Controllable switch disconnects, so that the charge power supply is that the mobile terminal and the mainboard fill by the power supply switching module
Electricity;When determining that the USB interface and the charge power supply disconnect, the controllable switch closure is controlled, so that the movement is eventually
End is mainboard charging by the USB interface for supporting OTG function.
Preferably, the power supply switching module includes processor, analog switch, load switch and charge power supply acquisition mould
Block, in which:
The control terminal of the analog switch and the first signal end are connected to the processor, and the second of the analog switch
Signal end is connect with the signal pins of the USB interface, the third signal end of the analog switch and the support OTG function
The signal pins of USB interface connect, wherein the third signal end of the analog switch is according to the signal of the control terminal and described the
One signal end or second signal end connection;
One end of the load switch is connect with the lower margin of the USB interface, the other end of the load switch respectively with
The supply pin of the USB interface for supporting OTG function and the mainboard connection of the headset equipment, the control of the load switch
End is connected to the processor;
The charge power supply acquisition module is connected to the processor, and determines the USB by it for the processor
Whether interface connect with the charge power supply.
Preferably, the charge power supply acquisition module include the first divider resistance and the second divider resistance, described first point
The first end of piezoresistance is connect with the supply pin of the USB interface, the second end of first divider resistance respectively with the place
Manage the first end connection of device and second divider resistance, the second end ground connection of second divider resistance.
Preferably, the load switch includes N-type metal-oxide semiconductor (MOS) NMOS and P type metal oxide semiconductor
PMOS, in which:
The grid of the NMOS is connected to the processor, the source electrode ground connection of the NMOS, the drain electrode of the NMOS and institute
State the grid connection of PMOS, the source electrode of the NMOS connect with the supply pin of the USB interface, the drain electrode of the NMOS respectively with
The supply pin of the USB interface for supporting OTG function and the mainboard connection of the headset equipment.
Preferably, the load switch further includes the first resistor being set between the grid and source electrode of the NMOS and sets
The second resistance being placed between the grid and source electrode of the PMOS.
Preferably, the controllable switch is relay.
In order to solve the above technical problems, the utility model additionally provides a kind of headset equipment, including as described above
Charging circuit.
Preferably, further includes:
The sensing for being connect with the power supply switching module, whether being in wearing state for detecting the headset equipment
Device;
The power supply switching module is also used to connect in the judgement USB interface with charge power supply and the headset equipment
The controllable switch closure is controlled when in wearing state, otherwise, is controlled the controllable switch and is disconnected.
Preferably, the sensor is proximity sensor.
In order to solve the above technical problems, the utility model additionally provides a kind of head-mounted system, including mobile terminal, charging
Power supply and headset equipment as described above;
The headset equipment by supporting the USB interface of OTG function to connect, pass through thereon with the mobile terminal thereon
USB interface is connect with the charge power supply.
The utility model provides a kind of charging circuit, headset equipment and system, including USB interface, supports OTG function
USB interface, controllable switch and power supply switching module.Power supply switching module is when determining that USB interface is connect with charge power supply, meeting
Control supports the ID foot of the USB interface of OTG function to disconnect, and mobile terminal is in peripheral mode at this time, then without changing OTG association
View, charge power supply just can be while charging by USB interface and power supply switching module for the mainboard of headset equipment
Access is mobile terminal charging;When determining that USB interface and charge power supply disconnect, mobile terminal is in power supply switching module at this time
Host mode, mobile terminal can be directly by supporting the USB interface of OTG function for mainboard charging, it is seen then that are provided using the application
Scheme, without changing OTG agreement, be just able to achieve between headset equipment and mobile terminal by hardware circuit two-way fills
Electricity, compatibility and flexibility are high.
Specific embodiment
The core of the utility model is to provide a kind of charging circuit, headset equipment and system, without changing OTG agreement,
The two-way charging being just able to achieve between headset equipment and mobile terminal by hardware circuit, compatibility and flexibility are high.
It is practical new below in conjunction with this to keep the objectives, technical solutions, and advantages of the embodiments of the present invention clearer
Attached drawing in type embodiment, the technical scheme in the utility model embodiment is clearly and completely described, it is clear that is retouched
The embodiment stated is the utility model a part of the embodiment, instead of all the embodiments.Based on the implementation in the utility model
Example, every other embodiment obtained by those of ordinary skill in the art without making creative efforts belong to
The range of the utility model protection.
Fig. 1 is please referred to, Fig. 1 is a kind of structural schematic diagram of charging circuit provided by the utility model, is applied to wear-type
Equipment, the circuit include:
General-purpose serial bus USB interface 1;
The USB interface 2 of headset equipment support OTG function;
The controllable switch 3 that one end is connect with the ID foot for the USB interface 2 for supporting OTG function, the other end is grounded;
Respectively with usb 1, support the USB interface 2 of OTG function, the control terminal of controllable switch 3 and headset equipment
The power supply switching module 4 of mainboard connection is disconnected for when determining that usb 1 is connect with charge power supply, controlling controllable switch 3,
So that charge power supply is that mobile terminal and mainboard charge by power supply switching module 4;Determining that usb 1 and charge power supply are disconnected
When opening, control controllable switch 3 is closed, so that mobile terminal is by supporting the USB interface 2 of OTG function for mainboard charging.
It should be noted that mobile terminal by support OTG function USB interface 2 connect with headset equipment when, just
Under normal working condition, support the USB interface 2 of OTG function ID foot be one directly, OTG agreement can set at this time it is mobile eventually
End is charging side, and headset equipment is that the side of being electrically charged namely mobile terminal are also headset equipment while for power itself
Power supply;When the not enough power supply of mobile terminal needs to charge, charge power supply can be mobile terminal charging by headset equipment, be
It realizes the process, needs to be modified OTG agreement, headset equipment can be set as charging side at this time, by mobile terminal
It is set as the side of being electrically charged.The modification of OTG agreement being related to during this is related with the manufacturer of mobile phone and model, therefore compatibility
It is poor.
When facing the above problem, the application consideration solves above-mentioned compatibility issue by hardware circuit.Specifically, originally
Application, which fully takes into account, can operate when mobile terminal detects the ID foot ground connection for supporting the USB interface 2 of OTG function in host mould
Formula (host mode), mobile terminal at this time can charge for headset equipment, support OTG function when mobile terminal detects
The ID foot of USB interface 2 can be operated when hanging at peripheral mode (client/peripheral mode), support OTG function at this time
The USB interface 2 of energy is equivalent to a common USB interface, and mobile terminal, which is equivalent to, directly to be switched by usb 1 and power supply
Module 4 is connect with charge power supply, therefore it is not necessary to modify OTG agreement charge power supplies just can directly charge for mobile terminal at this time, base
In this, the application is provided with a controllable switch 3 between the ID foot and ground of USB interface 2 for supporting OTG function, passes through control
The closure of controllable switch 3 or shutdown change the operating mode of mobile terminal, and then adjust mobile terminal and headset equipment
Between charging role relation.
In practical applications, when mobile terminal is not inserted into virtual reality device, the ID foot of the USB interface 2 of OTG function is supported
Pulling down to ground namely controllable switch 3 under normal circumstances normally is closure.And in general, charge power supply be with
What headset equipment disconnected.Therefore, when mobile terminal is inserted into the USB interface 2 for supporting OTG function, mobile terminal can be detected
Support the ID foot ground connection of the USB interface 2 of OTG function, mobile terminal can be operated in host mode at this time, and mobile terminal can pass through branch
The USB interface 2 for holding OTG function is directly the main board power supply of headset equipment, makes its booting, mobile after headset equipment booting
Terminal will set up communication with headset equipment.
After headset equipment booting, power supply switching module 4 can detect whether usb 1 connect with charge power supply, if
It is that then power supply switching module 4 can control the disconnection of controllable switch 3 at this time, support the ID foot of the USB interface 2 of OTG function hanging, moves
Dynamic terminal can be operated when detecting that the ID foot for supporting the USB interface 2 of OTG function is hanging in peripheral mode, support OTG at this time
The USB interface 2 of function is equivalent to a common usb 1, and mobile terminal is equivalent to directly through usb 1 and power supply
Switching module 4 is connect with charge power supply, and mobile terminal can stop the host supplying power for headset equipment at this time, meanwhile, power supply
Switching module 4 can be connected a charge tunnel between mobile terminal and usb 1, connect in the host and USB of headset equipment
A charge tunnel is connected between mouth 1, realizing charge power supply simultaneously is that the host of headset equipment and mobile terminal charge.When filling
After power supply is extracted, headset equipment power-off, 4 power down of power supply switching module at this time, and then controllable switch 3 is caused to be closed, mobile phone
Running is in host mode after detecting the ID foot ground connection for supporting the USB interface 2 of OTG function, and the master started as headset equipment
Plate charging, subsequent process are identical with the above process.
It is only to move in charge power supply by above-mentioned introduction it can be appreciated that the controllable switch 3 in the application is normally closed switch
Just disconnected when dynamic terminal charge, other when be all to be closed.In addition, the mobile terminal mentioned in the application can for mobile phone or
The terminals such as person's notebook or tablet computer, the application do not limit particularly herein.In addition, headset equipment can with but not only
It is limited to VR (Virtual Reality, virtual reality) equipment, AR (Augmented Reality, augmented reality) equipment or MR
(Mixed Reality, mixed reality) equipment etc..
Fig. 2 is the structural schematic diagram of another charging circuit provided by the utility model, on the basis of the above embodiments:
As a kind of preferred embodiment, power supply switching module 4 includes processor 41, analog switch 42, load switch 43
And charge power supply acquisition module 44, in which:
The control terminal of analog switch 42 and the first signal end are connect with processor 41, the second signal end of analog switch 42
It is connect with the signal pins of usb 1, the signal pins of the USB interface 2 of the third signal end and support OTG function of analog switch 42
Connection, wherein the third signal end of analog switch 42 connects according to the signal of control terminal and the first signal end or second signal end
It connects;
The lower margin of one end of load switch 43 and usb 1 connects, the other end of load switch 43 respectively with support OTG
The supply pin of the USB interface 2 of function and the mainboard connection of headset equipment, the control terminal and processor 41 of load switch 43 connect
It connects;
Charge power supply acquisition module 44 is connect with processor 41, for processor 41 by its judgement usb 1 whether with
Charge power supply connection.
Specifically, the present embodiment is a kind of specific implementation of power supply switching module 4 provided by the present application, wherein charging electricity
Source acquisition module 44 can acquire corresponding signal (such as voltage signal of the supply pin of usb 1) and be sent to processor 41, with
Just whether processor 41 connect with charge power supply according to the signal determining usb 1.
When processor 41 determines that usb 1 is connect with charge power supply, processor 41 can control the disconnection of controllable switch 3, make
The ID foot of the USB interface 2 of OTG function must be supported hanging, so that the main board power supply that mobile terminal stops as headset equipment,
Meanwhile processor 41 can also control the third signal end of analog switch 42 and second signal end (is mainboard charging in mobile terminal
When, third signal end is connect with the first signal end) connection, and processor 41 can also control the closure of load switch 43, charge power supply
By usb 1, analog switch 42, the USB interface 2 of OTG function is supported to communicate with mobile terminal foundation, charge power supply passes through
Load switch 43 is mainboard charging, while also being charged for mobile terminal.
When processor 41 determines usb 1 and charge power supply disconnects, processor 41 can control the closure of controllable switch 3, make
The ID foot of the USB interface 2 of OTG function must be supported to be grounded, control third signal end is connect with the first signal end, and processor 41 passes through
Analog switch 42 supports the USB interface 2 of OTG function to communicate with mobile terminal foundation, so that mobile terminal starts as mainboard
Power supply, meanwhile, processor 41 can control the disconnection of load switch 43.
Specifically, processor 41 here can with but be not only limited to MCU, can also be single-chip microcontroller etc..In addition, mould here
Quasi- switch 42 can with but be not limited to Fairchild FSA9682.
As a kind of preferred embodiment, charge power supply acquisition module 44 includes the first divider resistance and the second partial pressure electricity
The supply pin of resistance, the first end of the first divider resistance and usb 1 connects, the second end of the first divider resistance respectively with processing
The connection of the first end of device 41 and the second divider resistance, the second end ground connection of the second divider resistance.
Specifically, charge power supply acquisition module 44 here can be voltage sampling circuit, pass through acquisition usb 1
The voltage of supply pin determines whether charge power supply connect with usb 1, when charge power supply is connect with usb 1, charging
Power supply acquisition module 44 can export collection voltages, otherwise, export 0V.The present embodiment carries out voltage letter using voltage sampling circuit
Number acquisition, circuit structure is simple, easily realize.
As a kind of preferred embodiment, load switch 43 includes N-type metal-oxide semiconductor (MOS) NMOS and p-type metal oxygen
Compound semiconductor PMOS, in which:
The grid of NMOS is connect with processor 41, and the source electrode ground connection of NMOS, the drain electrode of NMOS is connect with the grid of PMOS,
The source electrode of NMOS and the supply pin of usb 1 connect, the power supply with the USB interface 2 for supporting OTG function respectively that drains of NMOS
Foot and the connection of the mainboard of headset equipment.
The application is made up of load switch 43 NMOS and PMOS, when processor 41 exports high level, NMOS conducting,
The grid voltage of PMOS is pulled low, and PMOS conducting namely load switch 43 are connected, when processor 41 exports low level, NMOS
Shutdown, the grid of PMOS are high level, and PMOS shutdown namely load switch 43 disconnect, the load switch 43 that the present embodiment uses
Circuit structure it is simple and control precision is higher.
As a kind of preferred embodiment, load switch 43 further includes first be set between the grid of NMOS and source electrode
Resistance and the second resistance being set between the grid of PMOS and source electrode.
The application is by being arranged resistance between the source electrode and grid of NMOS and PMOS, on the one hand, provides for place metal-oxide-semiconductor
On the other hand bias voltage can fall the electrostatic leakage between source electrode and grid, metal-oxide-semiconductor is avoided to malfunction, to play guarantor
Protect the effect of metal-oxide-semiconductor.
As a kind of preferred embodiment, controllable switch 3 is relay.
Specifically, relay here can be normally closed relay, and certainly, controllable switch 3 can also be other kinds of
Switch, such as metal-oxide-semiconductor etc., the application do not limit particularly herein.
The utility model additionally provides a kind of headset equipment, including such as above-mentioned charging circuit.
Above-described embodiment is please referred to for the introduction of the charging circuit in headset equipment, the present embodiment is no longer superfluous herein
It states.
In addition, headset equipment here can be VR equipment or AR equipment or MR equipment etc..It is further preferable that VR
Equipment can be specially that VR shows equipment.
As a kind of preferred embodiment, further includes:
The sensor for being connect with power supply switching module 4, whether being in wearing state for detecting headset equipment;
Power supply switching module 4 is also used to determining that USB interface is connect with charge power supply and headset equipment is in and wears shape
Controllable switch closure is controlled when state, otherwise, control controllable switch disconnects.
Specifically, the application is also provided with the sensor for whether being in wearing state for detecting headset equipment, power supply
Switching module 4 can also be set after determining that usb 1 is connect with charge power supply according to the signal determining wear-type that sensor acquires
It is standby whether to be in wearing state, if it is, control controllable switch 3 is closed, if it is not, then control controllable switch 3 disconnects.It can
See, it is not mobile terminal and mainboard charging that the application, which is realized when headset equipment is in wearing state, only in wear-type
It is just mobile terminal and mainboard charging when equipment is not at wearing state, on the one hand, avoid in charging handoff procedure to wear-type
The influence of equipment work (such as when headset equipment is glasses, is likely to occur wink in the picture of VR glasses when charging switching
Between blank screen) influence to user experience, on the other hand, avoid headset equipment and mobile terminal in charging fever to user's body
The influence tested.
As a kind of preferred embodiment, sensor is proximity sensor.
Specifically, proximity sensor is used to whether detect user close to headset equipment, and then can be used to determine to wear
Whether formula equipment is in wearing state.Proximity sensor has the advantages that precision is high, at low cost.Certainly, sensor here is also
It can be other kinds of sensor, the application is not particularly limited herein.
The utility model additionally provides a kind of head-mounted system, wears including mobile terminal, charge power supply and as above-mentioned
Formula equipment;
Headset equipment is by supporting the USB interface of OTG function to connect with mobile terminal thereon, passing through USB interface thereon
It is connect with charge power supply.
Above-described embodiment is please referred to for the introduction of head-mounted system provided by the present application, details are not described herein by the application.
It should be noted that in the present specification, relational terms such as first and second and the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting
Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments can be realized professional and technical personnel in the field or using originally practical new
Type.Various modifications to these embodiments will be readily apparent to those skilled in the art, and determine herein
The General Principle of justice can be realized in other embodiments without departing from the spirit or scope of the present utility model.Cause
This, the present invention will not be limited to the embodiments shown herein, and is to fit to and principles disclosed herein
The widest scope consistent with features of novelty.