CN206237152U - OTG charging control circuits - Google Patents

OTG charging control circuits Download PDF

Info

Publication number
CN206237152U
CN206237152U CN201621146976.0U CN201621146976U CN206237152U CN 206237152 U CN206237152 U CN 206237152U CN 201621146976 U CN201621146976 U CN 201621146976U CN 206237152 U CN206237152 U CN 206237152U
Authority
CN
China
Prior art keywords
equipment
otg
control circuits
pin
spdt
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.)
Expired - Fee Related
Application number
CN201621146976.0U
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.)
Shanghai Yude Information Technology Co Ltd
Original Assignee
Shanghai Yude Information Technology 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 Shanghai Yude Information Technology Co Ltd filed Critical Shanghai Yude Information Technology Co Ltd
Priority to CN201621146976.0U priority Critical patent/CN206237152U/en
Application granted granted Critical
Publication of CN206237152U publication Critical patent/CN206237152U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The utility model is related to the communications field, discloses a kind of OTG charging control circuits.The OTG charging control circuits are built in the first equipment;First equipment has processor, charging chip and USB connector;Be compared for the cell voltage and threshold voltage of the first equipment when the first equipment is in pressure limiting discharge condition by OTG charging control circuits;When the cell voltage of the first equipment is more than or equal to threshold voltage, the power pin for controlling charging chip to pass through USB connector is the second equipment charge to processor.The utility model implementation method is in terms of existing technologies, first equipment is before to the second equipment charge, the size of first comparative cell voltage and threshold voltage, and when cell voltage is more than or equal to threshold voltage, it is just the second equipment charge, advantageously ensure that after charging terminates, still can normally use the first equipment.

Description

OTG charging control circuits
Technical field
The utility model is related to the communications field, more particularly to a kind of OTG charging control circuits.
Background technology
One new technology of OTG (On-The-Go) rising in recent years.Can be real in the case of no PC using OTG technologies The data transfer of existing equipment room.For example, by OTG technologies, the USB interface of digital camera can be made directly to be connect with the USB of printer Mouth connection, so that real there are currently no two direct transmission of equipment room data in the case of computer hosted.
In no band charger or without in the case of power supply, it is also possible to utilize OTG technologies, the mutual of two equipment rooms is realized Charge.But in the prior art, the electronic equipment is carried out to another electronic equipment as charging equipment During charging, no matter the cell voltage of charging equipment is how many, as long as OTG lines are not pulled out, as the electronic equipment of charging equipment Will be charged to another electronic equipment always.If user extracts OTG lines not in time, it is possible to charging equipment occur Electricity is all exhausted so as to lead to not the situation of start.This can not only influence user to use the normal of electronic equipment, long This is conventional, it is also possible to can influence the service life of electronic equipment.
Utility model content
The purpose of this utility model is to provide a kind of OTG charging control circuits so that set as the electronics of charging equipment Standby, when cell voltage is more than or equal to preset value, is charged, so as to reduce electricity to other external electronic equipments The output influence for using normal to charging equipment, lifts the experience of user.
In order to solve the above technical problems, implementation method of the present utility model provides a kind of OTG charging control circuits, it is built-in In in the first equipment;First equipment has processor, charging chip and USB connector;OTG charging control circuits set first During in pressure limiting discharge condition, the cell voltage and threshold voltage of the first equipment are compared;Processor is in the first equipment Cell voltage when being more than or equal to threshold voltage, it is second by the power pin VBUS of USB connector control charging chip Equipment charge.
The utility model implementation method is to be provided with limit as the first equipment of power supply unit in terms of existing technologies Electricity condition is pressed, when the first equipment is in pressure limiting discharge condition, the first equipment first compares before to the second external equipment charge Compared with cell voltage and the size of threshold voltage, and when cell voltage is more than or equal to threshold voltage, just set to external second It is standby to charge.This mode is conducive to the influence that the output for reducing electricity is normally used the first equipment, it is ensured that after charging terminates, Normally using the first equipment or some functions of the first equipment can still help to lift the experience of user.
Further, OTG charging control circuits have:Cell voltage input, threshold voltage input, control signal are defeated Enter end and feedback end;Cell voltage input receives the cell voltage of input;Threshold voltage input receives the thresholding electricity of input Pressure;Processor has control end and receiving terminal;Control end is connected with control signal input, controls the electric discharge shape of the first equipment State;Wherein, discharge condition includes pressure limiting discharge condition and not pressure limiting discharge condition;Receiving terminal is connected with the feedback end, judges Whether OTG lines insert.Two kinds of discharge conditions are set so that user can flexibly select according to the need for itself, are conducive to further Lift the practicality of present embodiment.
Further, OTG charging control circuits include:Voltage comparator, the first single-pole double-throw switch (SPDT) and the second hilted broadsword are double Throw switch;Cell voltage input, threshold voltage input are respectively two inputs of voltage comparator;Voltage comparator Output end connects the Chang Lianguan pin NC (Normal Close) of the second single-pole double-throw switch (SPDT);Control signal input is the second hilted broadsword The input pin IN of commutator, the control end of processor is a GPIO interface;The common pin COM of the second single-pole double-throw switch (SPDT) It is connected with the input pin IN of the first single-pole double-throw switch (SPDT);The common pin COM of the first single-pole double-throw switch (SPDT) and USB connector State-detection pin ID is connected;Feedback end is the normally opened pin NO (Normal Open) of the first single-pole double-throw switch (SPDT), the first hilted broadsword The Chang Lianguan pin NO of commutator is connected with the receiving terminal of processor, there is provided a kind of OTG charging control circuits.
Further, the common pin COM of the second single-pole double-throw switch (SPDT) the first equipment be in not pressure limiting discharge condition when, It is connected with normally opened pin NO;The common pin COM of the second single-pole double-throw switch (SPDT) is in pressure limiting discharge condition in the first equipment, and normal Connecting leg pin NC is connected.
Further, threshold voltage is provided by power management chip.
Further, threshold voltage is provided by low pressure difference linear voltage regulator.
Further, the first equipment is mobile phone or panel computer.
Brief description of the drawings
Fig. 1 is the structured flowchart of the OTG charging control circuits according to the utility model first embodiment;
Fig. 2 is the structured flowchart being connected with the second equipment according to the first equipment of the utility model first embodiment;
Fig. 3 is the structural frames being connected with processor according to the OTG charging control circuits of the utility model second embodiment Figure;
Fig. 4 is the structural representation of the OTG charging control circuits according to the implementation method of the utility model the 3rd.
Specific embodiment
It is new to this practicality below in conjunction with accompanying drawing to make the purpose of this utility model, technical scheme and advantage clearer Each implementation method of type is explained in detail.However, it will be understood by those skilled in the art that each in the utility model In implementation method, in order that reader more fully understands the application and proposes many ins and outs.But, even if without these skills Art details and many variations based on following implementation method and modification, it is also possible to realize the application technical side required for protection Case.
First embodiment of the present utility model is related to a kind of OTG charging control circuits.The OTG charging control circuits are built-in In in the first equipment.
As shown in figure 1, the first equipment also includes processor, charging chip and USB connector.Specifically, present embodiment In, first equipment is set includes pressure limiting discharge condition.Under pressure limiting discharge condition, if by OTG lines, being external the Two equipment charges, the first equipment can first pass through OTG charging control circuits and compare the cell voltage of itself with default threshold voltage Size, and the cell voltage of itself be more than or equal to default threshold voltage when, be just the second equipment charge.
When threshold voltage is set for the first equipment, should ensure that the first equipment can normal work or extremely under the threshold voltage Make less some softwares of the first equipment or certain this function can also normal work, this depend on user itself need, can be according to individual The actual conditions of people are set, and present embodiment is not limited.In addition, setting threshold voltage, can be set for threshold voltage Specific numerical value, such as 3.8V;Threshold voltage is set also dependent on total battery electric quantity, threshold voltage is such as set to total electricity Cell voltage corresponding to the 20% of pond electricity, the cell voltage ... corresponding to 30%.In actual applications, user can pass through Upper layer software (applications) come set pressure limiting discharge condition lower limit press electricity point (i.e. threshold voltage), present embodiment is without limitation.
As shown in Fig. 2 when the first equipment is the second equipment charge by OTG lines, can be before second equipment that accesses, by the One equipment is placed in pressure limiting discharge condition;Also after second equipment that accesses, then the first equipment can be placed in pressure limiting discharge condition.Detection When being in pressure limiting discharge condition to the first equipment, OTG charging control circuits enter the cell voltage and threshold voltage of the first equipment Row compares.If current cell voltage is more than or equal to threshold voltage, processor will control charging chip defeated to USB connector Go out electricity, USB connector is exported to the second equipment by the electricity that its power pin VBUS will be received through OTG lines, so as to reach To the purpose to the second equipment charge.If current cell voltage be less than threshold voltage, not to the second equipment charge, and to Family sends prompting.
It is noted that during to the second equipment output electricity, OTG charging control circuits can also compare in real time The cell voltage of the first equipment and the size of threshold voltage.When cell voltage be less than threshold voltage when, processor will stop to Outer output electricity.
It is seen that, present embodiment is as the first equipment of charging equipment there is provided pressure limiting discharge condition, when first When equipment is in pressure limiting discharge condition, the first equipment before to the second external equipment charge, first comparative cell voltage and thresholding The size of voltage, and when cell voltage is more than or equal to threshold voltage, just to the second external equipment charge.This mode has Beneficial to the influence that the output for reducing electricity is normally used the first equipment, it is ensured that normally can still be set using first after charging terminates Some functions of standby or the first equipment, help to lift the experience of user.
Second embodiment of the present utility model is related to a kind of OTG charging control circuits.Second embodiment is first The further improvement done on the basis of implementation method, mainly thes improvement is that:Second embodiment is to further define OTG The annexation of each part in charging control circuit and the first equipment, is conducive to further improving being capable of achieving for present embodiment Property.
Specifically, as shown in figure 3, in present embodiment, OTG charging control circuits have:Cell voltage input 11, door Voltage limit input 12, control signal input 13 and feedback end 14.
Wherein, cell voltage input 11 is used to be input into cell voltage;Threshold voltage input 12 is rationed the power supply for input gate Pressure.The threshold voltage can be provided by power management chip, i.e., threshold voltage is first set in power management chip, then by power supply pipe The threshold voltage that reason chip will set is provided to OTG charging control circuits.Right not limited to this, the threshold voltage also can be by low pressure Difference linear constant voltage regulator is provided.
Control signal input 13 can be connected with the control end 21 of processor.The control end can be a GPIO ends of processor Mouthful, can by the control end 21 control the first equipment discharge condition (discharge condition may include pressure limiting discharge condition and not limit Press electricity condition), then by the annexation between control end 21 and control signal input 13, the first equipment is presently in Discharge condition notify OTG charging control circuits.
Feedback end 14 can be connected with the receiving terminal 22 of processor.The control end is alternatively a GPIO port of processor. When thering are OTG lines to insert, the state-detection pin ID short circuit GND of USB connector, now, the state of receiving terminal 22 can change, Low level is such as changed into from high level.Processor is after the state change is recognized, you can knowing has OTG lines to insert, now, treatment Device just can notify charging chip output+5V, so as to be embodied as the second equipment charge.If the state of receiving terminal 22 maintains high level not Become, processor is just known without the insertion of OTG lines, you can notify that charging chip stops output+5V, so as to stop being filled for the second equipment Electricity.
In the present embodiment, the discharge condition of the first equipment can be set by the control end of processor, if first is set Standby discharge condition is set to pressure limiting discharge condition, and OTG charging control circuits will compare the cell voltage and door of the first equipment The size of voltage limit, if cell voltage be more than or equal to threshold voltage, the common pin COM of the first single-pole double-throw switch (SPDT) with it is normally opened Pin NO is connected, at this moment the insertion of OTG lines, and processor just can perceive the state change of receiving terminal 22, such as be changed into low from high level Level, so that judge that OTG lines are inserted, so that charging chip output+5V is notified, to the second equipment charge.Now OTG lines are not inserted Enter, receiving terminal 22 maintains high level constant, so as to judge that OTG lines are not inserted into, so as to notify that charging chip stops output+5V, stop Only to the second equipment charge.If cell voltage is less than threshold voltage, the first single-pole double-throw switch (SPDT) common pin COM and Chang Lianguan pin NC is connected, and in spite of there is OTG lines to insert, receiving terminal 22 maintains high level all the time, therefore the first equipment cannot be second all the time Equipment charge.If the discharge condition of the first equipment is set into not pressure limiting discharge condition, whether processor is then by judging OTG lines Insertion come determine charging chip whether export+5V (processor can with charging chip pass through I2C bus communications) filled to the second equipment Electricity.
Present embodiment, is that the first equipment sets two kinds of discharge conditions so that user can flexibly select according to the need for itself Select, be conducive to further being lifted the practicality of present embodiment.
3rd implementation method of the present utility model is related to a kind of OTG charging control circuits.3rd implementation method is first The further improvement done on the basis of implementation method or second embodiment, mainly thes improvement is that:3rd implementation method is entered One step defines the composition of OTG charging control circuits, is conducive to progressive one realizability for improving present embodiment.
Specifically, as shown in figure 4, the OTG charging control circuits include:Voltage comparator U1, the first single-pole double-throw switch (SPDT) U2 and the second single-pole double-throw switch (SPDT) U3.
Cell voltage input, threshold voltage input in present embodiment be respectively voltage comparator U1 two are defeated Enter end (i.e. VBAT and VGP in Fig. 4);The output end (VOUT) of voltage comparator U1 connects the normal of the second single-pole double-throw switch (SPDT) U3 Connecting leg pin NC.Control signal input in present embodiment is the input pin IN of the second single-pole double-throw switch (SPDT) U3, itself and place The control end connection of device is managed, the control end can be a GPIO interface (i.e. GPIO1 in Fig. 4).The common pin COM of U3 and first The input pin IN connections of double-pole double throw switch U2;The common pin COM of the first single-pole double-throw switch (SPDT) U2 and the state of USB connector The ID connections of detection pin.Feedback end in present embodiment is the normally opened pin NO of the first single-pole double-throw switch (SPDT) U2, itself and treatment Receiving terminal (i.e. USBID_CPU in Fig. 4) connection of device.
In present embodiment, when cell voltage is more than or equal to threshold voltage, voltage comparator U1 output high level will GPIO1 be arranged to second electrical level (second electrical level is differed with the first level, present embodiment will with the first level as high level, Second electrical level be low level as a example by illustrate), now the input pin IN of U3 is low level;The common pin COM of U3 with Chang Lianguan pin NC is connected, and exports high level.The input pin IN of U2 is high level, and common pin COM is connected with normally opened pin NO. Now, if accessing OTG lines on USB connector, the state-detection pin ID of USB connector can with earth terminal GND short circuits, with first The receiving terminal (USBID_CPU) of the processor of the normally opened pin NO connections of single-pole double-throw switch (SPDT) U2 is changed into low level from high level. After processor detects receiving terminal level jump side, processor is controllable charging chip IC output+5V, so as to realize to external The purpose of the second equipment charge.
If cell voltage is less than threshold voltage, will GPIO1 be arranged to low level, now the input pin IN of U3 is the Two level;The common pin COM of U3 is connected with Chang Lianguan pin NC, and the common pin COM states of U3 are high-impedance state.The input pipe of U2 Pin IN is high-impedance state, and common pin COM is connected with Chang Lianguan pin NC.Now, the receiving terminal (USBID_CPU) of processor remains high Level.When processor detects receiving terminal for high level, that is, stop outwards charging.
As can be seen here, when GPIO1 interfaces are second electrical level, the first equipment is in pressure limiting discharge condition.
If needing the first equipment to be in not pressure limiting discharge condition, GPIO1 interfaces directly can be arranged at the first level (electricity i.e. high It is flat), now, the common pin COM of the second single-pole double-throw switch (SPDT) U3 is connected with Chang Lianguan pin NO, is changed into high level;Meanwhile, first The input pin IN of the U2 of single-pole double-throw switch (SPDT) is also changed into high level, and common pin COM is connected with Chang Lianguan pin NO, in OTG lines During insertion, the receiving terminal (USBID_CPU) of processor is changed into low level from high level, is not influenceed by cell voltage, processor Charging chip can always be controlled to the second external equipment charge.That is, only GPIO1 interfaces need to be set to the first level, First equipment just can be at not pressure limiting discharge condition.
In present embodiment, the level of GPIO1 interfaces need to be only controlled, so that it may which (such as mobile phone, flat board are electric to select the first equipment Brain) discharge condition.This design also helps the workload for reducing processor while convenient and swift, lifts processor Operating efficiency.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific implementation of the present utility model Example, and in actual applications, can to it, various changes can be made in the form and details, without departing from spirit of the present utility model And scope.

Claims (7)

1. a kind of OTG charging control circuits, it is characterised in that be built in the first equipment;First equipment have processor, Charging chip and USB connector;
The OTG charging control circuits first equipment be in pressure limiting discharge condition when, by the battery of first equipment Voltage and threshold voltage are compared;
The processor controls the charging core when the cell voltage of first equipment is more than or equal to the threshold voltage The power pin VBUS that piece passes through the USB connector is the second equipment charge.
2. OTG charging control circuits according to claim 1, it is characterised in that the OTG charging control circuits have: Cell voltage input, threshold voltage input, control signal input and feedback end;
The cell voltage input receives the cell voltage of input;
The threshold voltage input receives the threshold voltage of input;
The processor has control end and receiving terminal;
The control end is connected with the control signal input, controls the discharge condition of first equipment;Wherein, it is described to put Electricity condition includes pressure limiting discharge condition and not pressure limiting discharge condition;
The receiving terminal is connected with the feedback end, judges whether OTG lines insert.
3. OTG charging control circuits according to claim 2, it is characterised in that the OTG charging control circuits include: Voltage comparator, the first single-pole double-throw switch (SPDT) and the second single-pole double-throw switch (SPDT);
The cell voltage input, threshold voltage input are respectively two inputs of the voltage comparator;The electricity Press the Chang Lianguan pin NC of output end second single-pole double-throw switch (SPDT) of connection of comparator;
The control signal input is the input pin IN of second single-pole double-throw switch (SPDT), and the control end of the processor is One GPIO interface;The input pin of the common pin COM of second single-pole double-throw switch (SPDT) and first single-pole double-throw switch (SPDT) IN is connected;
The common pin COM of first single-pole double-throw switch (SPDT) is connected with the state-detection pin ID of the USB connector;It is described Feedback end is the normally opened pin NO of first single-pole double-throw switch (SPDT), the normally opened pin NO of the first single-pole double-throw switch (SPDT) U2 with The receiving terminal connection of the processor.
4. OTG charging control circuits according to claim 3, it is characterised in that
The common pin COM of second single-pole double-throw switch (SPDT) is and normal when first equipment is in not pressure limiting discharge condition Open pipe pin NO is connected;
The common pin COM of second single-pole double-throw switch (SPDT) first equipment be in pressure limiting discharge condition when, with Chang Lian Pin NC is connected.
5. OTG charging control circuits according to claim 1, it is characterised in that the threshold voltage is by power management core Piece is provided.
6. OTG charging control circuits according to claim 1, it is characterised in that the threshold voltage is by low pressure difference linearity Voltage-stablizer is provided.
7. OTG charging control circuits according to claim 1, it is characterised in that first equipment is mobile phone or flat board Computer.
CN201621146976.0U 2016-10-21 2016-10-21 OTG charging control circuits Expired - Fee Related CN206237152U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201621146976.0U CN206237152U (en) 2016-10-21 2016-10-21 OTG charging control circuits

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201621146976.0U CN206237152U (en) 2016-10-21 2016-10-21 OTG charging control circuits

Publications (1)

Publication Number Publication Date
CN206237152U true CN206237152U (en) 2017-06-09

Family

ID=58982646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201621146976.0U Expired - Fee Related CN206237152U (en) 2016-10-21 2016-10-21 OTG charging control circuits

Country Status (1)

Country Link
CN (1) CN206237152U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110676913A (en) * 2019-11-11 2020-01-10 Oppo广东移动通信有限公司 Charging method, terminal, conversion device and storage medium
CN112998744A (en) * 2021-03-16 2021-06-22 广州医科大学附属第一医院(广州呼吸中心) Stethoscope capable of being interpreted

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110676913A (en) * 2019-11-11 2020-01-10 Oppo广东移动通信有限公司 Charging method, terminal, conversion device and storage medium
CN110676913B (en) * 2019-11-11 2023-08-04 Oppo广东移动通信有限公司 Charging method, terminal, conversion device and storage medium
CN112998744A (en) * 2021-03-16 2021-06-22 广州医科大学附属第一医院(广州呼吸中心) Stethoscope capable of being interpreted
CN112998744B (en) * 2021-03-16 2023-03-10 广州医科大学附属第一医院(广州呼吸中心) Stethoscope capable of being interpreted

Similar Documents

Publication Publication Date Title
CN202872406U (en) Interface multiplexing circuit and mobile terminal
US9559534B2 (en) Data cable for fast charging
EP3287905B1 (en) Circuit, method and apparatus for usb interface sharing
CN108988431B (en) Multi-protocol charging device and multi-protocol charging method
CN104578277B (en) For the method for charging for electronic equipment and electronic equipment
CN105426332B (en) Communication interface circuit, portable electronic device and electronic system
CN105162213A (en) USB controller, and device
CN109086236A (en) Power source charges path switching circuit and its electronic equipment
CN202196398U (en) Power supply managing circuit of charging/ communication multiplex interface and digital electronic product
CN106451628A (en) OTG charging control circuit and charging control method
CN101567556A (en) Over-voltage charge protective device and method used for charging cell phone
CN104467109A (en) Method for supplying power to electronic equipment and electronic equipment
CN201590669U (en) Portable device and a charging circuit thereof
CN206237152U (en) OTG charging control circuits
CN105375538B (en) Quick charge device
CN106921192A (en) Terminal and electricity sharing method
CN108181978B (en) Power control method and device for electronic equipment
CN108683236A (en) A kind of mobile terminal OTG charging methods and device
US10481576B2 (en) Method and device for implementing connection control
CN104753104A (en) USB charging circuit with current regulating function
CN106412245A (en) Waterproof method for USB interface and mobile terminal
CN203643893U (en) Terminal equipment
CN102544919A (en) Cable
CN101359836A (en) Self-switching charging circuit
CN109066906B (en) Charging circuit and integral type head-mounted apparatus

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170609

Termination date: 20191021

CF01 Termination of patent right due to non-payment of annual fee