CN109378877A - Charging circuit, charging method, electronic equipment and storage medium - Google Patents

Charging circuit, charging method, electronic equipment and storage medium Download PDF

Info

Publication number
CN109378877A
CN109378877A CN201811348643.XA CN201811348643A CN109378877A CN 109378877 A CN109378877 A CN 109378877A CN 201811348643 A CN201811348643 A CN 201811348643A CN 109378877 A CN109378877 A CN 109378877A
Authority
CN
China
Prior art keywords
charging
voltage
input
output
interface
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.)
Pending
Application number
CN201811348643.XA
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201811348643.XA priority Critical patent/CN109378877A/en
Publication of CN109378877A publication Critical patent/CN109378877A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits

Abstract

It includes charging interface, first switching element and control module that the embodiment of the present application, which provides a kind of charging circuit, charging method, electronic equipment and storage medium, the charging circuit,.Charging interface is used to connect external charging unit;First switching element includes first input end, the first output end and the first control terminal, and the power input pin connection of first input end and charging interface, the first output end ground connection, the first control terminal is used to control first input end and the first output end is turned on or off;Control module is connect with charging interface, and control module is connect with the first control terminal, and when the difference between the input voltage of charging interface and the output voltage of charging unit is greater than preset difference value threshold value, first input end is connect by control module with the first output end.When charging interface may have foreign matter or feed liquor body, lead to micro-short circuit in charging interface, at this point, the power input pin of charging interface is grounded, stops charging, protect charging interface.

Description

Charging circuit, charging method, electronic equipment and storage medium
Technical field
This application involves electronic technology field more particularly to a kind of charging circuit, charging method, electronic equipment and deposit Storage media.
Background technique
Currently, the charging interface of electronic equipment such as mobile phone has been able to integrate data transmission and charge function.In electricity Sub- equipment by charging interface with outside charging unit connect charged when, since the spacing between charging interface pin compares It is small, when charging interface has foreign matter or feed liquor body, it is be easy to cause micro-short circuit, and then be easily damaged charging interface.
Summary of the invention
The embodiment of the present application provides a kind of charging circuit, charging method, electronic equipment and storage medium, can be effective Whether accurate detection charging interface is short-circuit, and is protected.
The embodiment of the present application provides a kind of charging circuit comprising:
Charging interface, the charging interface are used to connect external charging unit;
First switching element, the first switching element include first input end, the first output end and the first control terminal, institute It states first input end to connect with the power input pin of the charging interface, the first output end ground connection, first control End is turned on or off for controlling the first input end and first output end;
Control module, the control module are connect with charging interface, and the control module is connect with first control terminal, When the difference between the input voltage of the charging interface and the output voltage of the charging unit is greater than preset difference value threshold value, The first input end is connect by the control module with the first output end.
The embodiment of the present application provides a kind of charging method, is applied to charging equipment, the charging equipment packet Charging interface is included, the charging interface is for connecting charging unit, which comprises
Obtain the input voltage of the charging interface;
Obtain the output voltage of the charging unit;
When the difference of the output voltage and the input voltage is greater than preset difference value threshold value, by the charging interface Power input ground connection, to stop charging.
The embodiment of the present application also provides a kind of electronic equipment comprising charging circuit and battery, the charging circuit with The battery connection, charging circuit charging circuit as described above.
The embodiment of the present application also provides a kind of computer readable storage mediums, are stored thereon with computer program, described The step of charging method as described above is realized when program is executed by processor.
Charging circuit, charging method, electronic equipment and storage medium provided by the embodiments of the present application, can detecte and fill Difference between the input voltage of electrical interface and the output voltage of charging unit.When the input voltage and charging unit of charging interface Output voltage between difference be zero or be less than preset difference value threshold value when, charging interface is normal, charges normal.It is filled when detecting When difference between the input voltage of electrical interface and the output voltage of charging unit is greater than preset difference value threshold value, charging interface may There are foreign matter or feed liquor body, lead to micro-short circuit in charging interface, at this point, the power input pin of charging interface is grounded, stops Charging interface is protected in charging.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described.It should be evident that the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the structural schematic diagram of the first state of electronic equipment provided by the embodiments of the present application.
Fig. 2 is another structural schematic diagram of the first state of electronic equipment provided by the embodiments of the present application.
Fig. 3 is the structural schematic diagram of the second state of electronic equipment provided by the embodiments of the present application.
Fig. 4 is another structural schematic diagram of the second state of electronic equipment provided by the embodiments of the present application.
Fig. 5 is the structural schematic diagram of charging equipment provided by the embodiments of the present application and charging unit.
Fig. 6 is another structural schematic diagram of charging equipment provided by the embodiments of the present application and charging unit.
Fig. 7 is the flow diagram of charging method provided by the embodiments of the present application.
Fig. 8 is the module frame chart schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, should not be by It is considered as limitation the application other specific embodiments not detailed herein.
The embodiment of the present application provides a kind of charging circuit, charging method, electronic equipment and storage medium.It will divide below It is not described in detail.Wherein electronic equipment can be the equipment such as smart phone, tablet computer, can also be game station, AR (Augmented Reality, augmented reality) equipment, audio playing apparatus, video play device etc..
Fig. 1 is the structural schematic diagram of the first state of electronic equipment provided by the embodiments of the present application referring to FIG. 1 to FIG. 4, Fig. 2 is another structural schematic diagram of the first state of electronic equipment provided by the embodiments of the present application, and Fig. 3 mentions for the embodiment of the present application The structural schematic diagram of second state of the electronic equipment of confession, Fig. 4 are the second state of electronic equipment provided by the embodiments of the present application Another structural schematic diagram.Wherein, first state can not open the state of camera function for electronic equipment 100, such as can be Standby mode, bright screen do not open camera state.Wherein, the second state is shape when electronic equipment 100 opens camera function State.
In some embodiments, electronic equipment 100 may include display screen 12, electronic circuit board 13, battery 14, shell 15, front camera 161, rear camera 162.It should be noted that electronic equipment 100 is not limited to the above content.
In some embodiments, electronic equipment 100 can also include sliding equipment 18, and sliding equipment 18 and shell 15 connect It connects, sliding equipment 18 can be slided relative to shell.Front camera 161 and rear camera 162 are arranged on sliding equipment 18, And it is located at opposite two sides.
When electronic equipment 100 is in first state, sliding equipment 18 is in original state, i.e. sliding equipment 18 is located at shell It is interior.
When electronic equipment 100 is in the second state, i.e., when opening camera function, sliding equipment 18 skids off shell 15, sliding Motivation structure 18 is equipped with front camera 161 and rear camera 162.It is preposition to take the photograph when sliding equipment 18 does not skid off shell 15 As first 161 and rear camera 162 are hidden in shell, when electronic equipment 100 is the second state, sliding equipment 18 skids off shell 15, front camera 161 can be used and rear camera 162 is taken pictures, imaged.
Wherein, display screen 12 is mounted in shell 15.Display screen 12 is electrically connected on electronic circuit board 13, to form electronics The display surface of equipment 100.Display screen 12 can cover whole for the shape of rule, such as rectangular parallelepiped structure, display screen 12 On the display surface of a electronic equipment 100, that is, realize the full screen display of electronic equipment 100.
In some embodiments, display screen 12 can for liquid crystal display (Liquid Crystal Display, LCD) or Person's organic light-emitting diode (OLED) display screen (Organic Light-Emitting Diode, OLED).
Wherein, electronic circuit board 13 is mounted in shell 15, and electronic circuit board 13 can be the mainboard of electronic equipment 100, Motor, microphone, loudspeaker, earphone interface, Universal Serial Bus Interface, preposition camera shooting are can integrate on electronic circuit board 13 First 161, in the functional units such as rear camera 162, receiver 171, range sensor, ambient light sensor and processor One, it is two or more.It should be noted that the meaning of " plurality " is two or more in the description of the present application, remove It is non-separately to have clearly specific restriction.
In some embodiments, electronic circuit board 13 can be screwed in shell 15 by screw, can also be using buckle Mode card be fitted in shell 15.It should be noted that the embodiment of the present application electronic circuit board 13 is specifically fixed in shell 15 Mode be not limited to this, can be with other way, such as by way of buckling and screw fixes jointly.
Wherein, electronic equipment 100 can also include cover board, and cover board is installed on display screen 12, to cover display screen 12.Lid Plate can be transparent glass cover plate, so that 12 euphotic cover plate of display screen is shown.In some embodiments, cover board can be use Glass cover-plate made of the materials such as sapphire.
Wherein, shell 15 can form the exterior contour of electronic equipment 100.In some embodiments, shell 15 can be The metals such as metal shell component, such as magnesium alloy, stainless steel.It should be noted that the material of the embodiment of the present application shell 15 is simultaneously It is without being limited thereto, such as: shell 15 can be plastic casing, ceramic shell, glass shell etc..
It should be noted that the electronic equipment of the application can also only have first state, i.e. electronic equipment does not slide Mechanism 18, electronic equipment have non-display area, front camera 161, receiver 171, range sensor, ambient light sensor etc. It can be set in non-display area.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of charging equipment provided by the embodiments of the present application and charging unit.To Charging equipment 300 includes charging circuit, and charging circuit includes charging interface 310, first switching element 360 and control module 380. Charging equipment 300 can be the electronic equipment in above-described embodiment.Charging unit 200 can be adapter, charging base etc. Device.
Wherein, charging interface 310 is for connecting external recharging apparatus 200.Charging interface 310 can be universal serial bus (Universal Serial Bus, USB) interface.Specifically, charging interface 310 can be Micro USB interface or Type-C Interface etc., certainly, charging interface 310 or other interfaces.Charging interface 310 connects external charging by charging cable line Device 200, and electric energy is obtained from external recharging apparatus 200.External recharging apparatus 200 can be the devices such as adapter.
First switching element 360 includes first input end 361, the first output end 362 and the first control terminal 363, and first is defeated Enter end 361 to connect with the power input pin VBUS of charging interface 310, the first output end 362 ground connection, the first control terminal 363 is used It is turned on or off in control first input end 361 and the first output end 362, to realize that the power input of charging interface 310 is drawn Being turned on or off between foot VBUS and ground.The power input pin VBUS connection external recharging apparatus 200 of charging interface 310 Power pins obtain the charging signals of external recharging apparatus 200 by power input pin VBUS.Wherein, first switch Element 360 can be triode, or field-effect tube, or controllable switch.
Control module 380 is connect with charging interface 310, universal input/output pin (General of control module 380 Purpose Input Output, GPIO) it is also connect with the first control terminal 363, input voltage and charging when charging interface 310 When difference between the output voltage of device 200 is greater than preset difference value threshold value, control module 380 is by first input end 361 and the The connection of one output end 362.
The input voltage of charging interface 310 is obtained, the voltage of charging interface 310, charging are detected inside charging equipment 300 The input terminal of the power input pin VBUS connection battery 330 of interface 310, can be in the power input pin of charging interface 310 Any point detection between the input terminal of battery 330 obtains the input voltage of charging interface 310.Obtain charging unit 200 Output voltage, the output voltage can be obtained in the output port of charging unit 200, can also charging unit 200 with fill The output voltage is obtained on cable between electrical interface 310.Obtain the input voltage and charging unit 200 of charging interface 310 Output voltage after, the difference that both calculates.If charging interface 310 is normal, the input voltage of charging interface 310 and charging The output voltage of device 200 is equal.If the difference of the two is larger, being greater than difference threshold, (difference threshold can be according to difference Charging interface 310 different values, such as 0.1V, 0.3V, 0.5V are set), then it is assumed that charging interface 310 is abnormal, then by first The first input end 361 of switch element 360 and the connection of the first output end 362, that is, by the power input pin of charging interface 310 With ground short circuit, to make 200 overcurrent protection of charging equipment 300 or external recharging apparatus, stopping is filled to charging equipment 300 Electricity, protection charging interface 310 will not damage.
For example, charging interface 310 is Type-C interface, since the pin of Type-C interface is more, and Type-C interface Limited width, therefore the spacing between Type-C interface pin is smaller, feed liquor body or it is dirty when, be easy to cause micro-short circuit, thus Cause the temperature of Type-C interface to rise, Type-C interface and charging equipment 300 is caused to burn out.When Type-C interface is micro- When short-circuit, the input voltage that will cause Type-C interface is lower than the output voltage of charging unit 200.
In some embodiments, control module 380 obtains the input voltage and charging unit 200 of charging interface 310 Output voltage, and the difference being calculated between the input voltage of charging interface 310 and the output voltage of charging unit 200.
After charging unit 200 obtains its output voltage, which is sent to the control module of charging equipment 300 380, the difference between the input voltage of charging interface 310 and the output voltage of charging unit 200 is calculated in control module 380 Value.
In some embodiments, control module 380 includes communication port, and communication port is used to obtain by charging interface 310 Take the input voltage of charging unit 200.
Control module 380 includes communication port, is communicated by the communication port with charging unit 200, and obtains charging dress The information of 200 transmissions is set, which includes its output voltage that the detection of charging unit 200 obtains.
Charging interface 310 includes communications pins D+, D-, and there are two communication port for the corresponding tool of control module 380, respectively with its In the connection of communications pins.
In some embodiments, control module 380 obtains the input voltage of charging interface 310, and input voltage is sent To charging unit 200;
Control module 380 is used to obtain the control information of charging unit 200, and according to the control information by first input end 361 connect with the first output end 362, wherein control information is according to the input voltage of charging interface 310 and charging unit 200 Difference between output voltage generates.
After control module 380 obtains the input voltage of charging interface 310, the corresponding value of the input voltage is sent to charging Device 200, the detection of charging unit 200 obtain its output voltage, then obtain the voltage difference of input voltage and output voltage, when When voltage difference is greater than difference threshold, illustrate that charging interface 310 is abnormal, at this point, the production control information of charging unit 200, and will Control information is sent to charging equipment 300, and charging equipment 300 receives the control information, and according to the control information by the One input terminal 361 is connect with the first output end 362, so that the power input pin VBUS of charging interface 310 and ground are shorted, thus Make 200 overcurrent protection of charging equipment 300 or charging unit, stops charging.
Referring to Fig. 6, Fig. 6 is another structural representation of charging equipment provided by the embodiments of the present application and charging unit Figure.Control module 380 includes control chip, and control chip includes that voltage calculates pin 3822, and voltage calculates pin 3822 and connects The power input pin VBUS of charging interface 310, and the input voltage of charging interface 310 is calculated.
There is the control chip of control module 380 voltage to calculate pin 3822, and voltage calculates pin 3822 and is directly connected to fill The power input pin VBUS of electrical interface 310, and the input voltage of charging interface 310 is calculated.The voltage calculates pin 3822 can be ADC pin, obtain corresponding voltage value by analog-to-digital conversion.In attached drawing, control chip is battery management chip 382, in some other embodiment, control chip can also be with fast charge managing chip 381 or other chips.
In some embodiments, charging circuit further includes the third switch element 260 and second in charging unit 200 Control module 230.
Third switch element 260 includes third input terminal 261, third output end 262 and third control terminal 263, and third is defeated Enter end 261 and connects the power input pin VBUS of charging interface 310, third control terminal for connecting power supply, third output end 262 263 are turned on or off between third input terminal 261 and third output end 262 for controlling;
Second control module 230 connects third control terminal 263 and power input pin VBUS, when the second control module 230 When detecting power input pin VBUS ground connection, by the separated of third input terminal 261 and third output end 262.
It include third switch element 260 and the second control module 230, the detection of the second control module 230 in charging unit 200 When to power input pin VBUS ground connection, by the separated of third input terminal 261 and third output end 262, thus make power supply with The power input pin VBUS of charging interface 310 is disconnected, and protects charging equipment 300 and charging unit 200.Third switch element 260 can be field-effect tube, triode and controllable switch etc..
In the description of the present application, it is to be understood that term " first ", " second " are used for description purposes only, and cannot It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include one or more feature.
Wherein, analog-to-digital conversion (AC-DC) module is equipped in charging unit 200, for (such as 220V to be handed over by the alternating current of alternating current Galvanic electricity) it is converted into the direct current (direct current of such as 5V) to charge to charging equipment 300.It further include electricity in charging equipment 300 Pond 330.It can have DC-DC voltage transformation module in control module 380, can need to adjust its output according to battery 330 To the voltage and or current of battery 330.Wherein, the third input terminal 261 of third switch element 260 connects the defeated of AC-DC module Outlet.
In some embodiments, a resistance R1 can be concatenated in charge cable 210 between power supply VBUS line and CC line, Being used to indicate external recharging apparatus (such as power supply adaptor) is a source device.It can also be in the power supply of external recharging apparatus 200 A resistance R1 is concatenated between VOUT pin and CC pin, being used to indicate external recharging apparatus (such as power supply adaptor) is that a source is set It is standby.Battery protecting plate can be equipped in the battery 330 of charging equipment 300, short circuit, overcurrent protection may be implemented in battery protecting plate Etc. functions.
Charging equipment 300 supports commonly to charge or fast charge both of which, external recharging apparatus 200 can also be supported commonly Charging and fast charge both of which.External recharging apparatus 200 under fast charge mode provides higher charge power, for example, can mention For than the higher voltage and or current that commonly charges.Under fast charge mode, external recharging apparatus 200 provides the first charge power Electric energy is to charging equipment 300, under normal charging mode, external recharging apparatus 200 provide the electric energy of the second charge power to Charging equipment 300, the second charge power is less than the first charge power.For example, providing 5V, 1A, charging function under normal charging mode Rate is the charging current of 5W.Under fast charge mode, provide 9V, 2A, charge power be 18W charging current, can also provide 5V, 3A, the charging current that charge power is 15W.Under fast charge mode, voltage can be only improved, electric current is only improved, improves electricity simultaneously The modes such as pressure and electric current improve charge power, and the charge power of raising reaches as high as 50W, even higher.
Wherein, charging equipment 300 can not only be charged by charging interface 310 and external recharging apparatus 200, also It can be communicated by the communications pins (D+, D-) of charging interface 310.Control module 380 can be obtained by charging interface 310 The charge information of external recharging apparatus 200 is taken, then obtains whether the external recharging apparatus 200 is supported fastly according to charge information It fills, if external recharging apparatus 200 supports fast charge, the first charging can be selected in the first charge power and the second charge power Power is as target charge power.If external recharging apparatus 200 does not support fast charge, can be filled in the first charge power and second Select the second charge power as target charge power in electrical power.After control module 380 determines target charge power, according to mesh It marks charge power and generates control charge information, and control charge information is sent to external recharging apparatus 200, control charging letter Breath charges for controlling external recharging apparatus 200 according to target charge power.That is, control module 380 is filled according to outside Content of Communication between electric installation 200, control external recharging apparatus 200 select fast charge mode or normal charging mode.
It should be noted that the parameter of the available battery 330 of external recharging apparatus 200 is such as remaining under fast charge mode The information such as electricity, cell voltage, battery current, external recharging apparatus 200 adjust its output voltage according to the parameter of battery 330 And/or output electric current.For example, external recharging apparatus 200 exports not in the case where trickle state, constant current state or pressure constant state are different Same output voltage and/or output electric current.Under normal charging mode, the control module 380 in charging equipment 300 can change Become the voltage and current that external recharging apparatus 200 inputs, to meet the demand of battery 330.
In some embodiments, control module 380 may include fast charge managing chip 381 and battery management chip 382.When When target charge power is the first charge power, the power input pin VBUS of charging interface 310 is for being directly connected to or passing through Second switch element 371 connects battery 330;When target charge power is the second charge power, the power supply of charging interface 310 is defeated Enter pin VBUS and battery 330 is connected by battery management chip 382.
Wherein, when external recharging apparatus 200 and charging equipment 300 are normal charging mode, i.e., when target charging function When rate is the second charge power, the power input pin VBUS of charging interface 310 connects battery by battery management chip 382 330.Battery management chip 382 includes protection circuit, can be stopped directly by the power pins VBUS ground short circuit of Type-C interface It only charges, realizes the temperature decline of type-C interface.
When external recharging apparatus 200 and charging equipment 300 are fast charge mode, i.e., when target charge power fills for first When electrical power, the power input pin VBUS connection external recharging apparatus 200 of charging interface 310 connects or passes through second switch member Part 371 connects battery 330.The electric energy of external recharging apparatus 200 is directly filled to the battery 330 of charging equipment 300, can be realized big The fast charge of power.Meanwhile without passing through battery management core between external recharging apparatus 200 and the battery 330 of charging equipment 300 Piece 382, if when such as Type-C interface has foreign matter or feed liquor body to charging interface 310, between the pin of Type-C interface Will appear short circuit, since under straight mold filling formula, the pin of charging interface 310 is directly electrically connected with battery 330, charging interface 310 with There is no battery management chip 382 to be protected between battery 330, short circuit, which occurs, for Type-C interface will lead to electric current in a short time It is excessive and easy to burn Type-C interface and charging equipment 300.If when Type-C interface exception, such as the temperature of Type-C interface When spending information more than reliability temperature threshold (such as 60 degrees Celsius), Type-C interface and the separated of battery 330 are first exited into fast charge, Then the power pins VBUS ground short circuit of Type-C interface is stopped into charging again, realizes the temperature decline of Type-C interface, protects Protect Type-C interface.In this way, can prevent under fast charge mode, the power pins VBUS ground short circuit of Type-C interface is made At the power pins of battery 330, also ground short circuit to make the voltage VBAT 0 of battery 330 causes charging equipment 300 The problem of system entirety power down.
In some embodiments, second switch element 371 includes the second input terminal 3711, second output terminal 3712 and second Control terminal 3713.Second switch element 371 may include first switch tube 372 and second switch 374, first switch tube 372 Input terminal as first input end 3711, the output end of second switch 374 is as the first output end 3712, first switch tube 372 output end is connect with the input terminal of second switch 374, control terminal and the second switch 374 of first switch tube 372 Control terminal connection, and as the first control terminal 3713.
First switch tube 372 and second switch 374 can be field-effect tube or triode.By taking field-effect tube as an example, the The input terminal of one switching tube 372 is source electrode, and the output end of first switch tube 372 is drain electrode, and the control terminal of first switch tube 372 is Grid, the input terminal of second switch 374 are drain electrode, and the output end of second switch 374 is source electrode, second switch 374 Control terminal is grid.Two field-effect tube connections can prevent the signal of battery 330 from flowing backward.
Referring to Fig. 7, Fig. 7 is the flow diagram of charging method provided by the embodiments of the present application.Incorporated by reference to Fig. 5 and Fig. 6, the charging method are applied to charging equipment 300, and charging equipment 300 includes charging interface 310, charging interface 310 for connecting charging unit 200.The charging method can specifically include:
101, obtain the input voltage of charging interface.
Wherein, charging interface 310 is for connecting external recharging apparatus 200.Charging interface 310 can be universal serial bus (Universal Serial Bus, USB) interface.Specifically, charging interface 310 can be Micro USB interface or Type-C Interface etc., certainly, charging interface 310 or other interfaces.Charging interface 310 connects external charging by charging cable line Device 200, and electric energy is obtained from external recharging apparatus 200.External recharging apparatus 200 can be the devices such as adapter.
Charging interface 310 includes multiple pins, includes at least power input pin in multiple pins, charging interface 310 Power input pin connects the input terminal of battery 330, can be in the defeated of power input pin and the battery 330 of charging interface 310 Enter the input voltage that any point detection between end obtains charging interface 310.
102, obtain the output voltage of charging unit.
The output voltage for obtaining charging unit 200, can obtain the output voltage in the output port of charging unit 200, The output voltage can also be obtained on cable between charging unit 200 and charging interface 310.Charging unit 200 and wait fill Can communicate between electric equipment 300, such as communicated by the communications pins of charging interface 310, can also by WIFI, The wireless communications such as bluetooth, and then obtain the output voltage of charging unit 200.
103, when the difference of the output voltage of charging interface and the input voltage of charging unit is greater than preset difference value threshold value, The power input pin of charging interface is grounded, to stop charging.
After obtaining the input voltage of charging interface 310 and the output voltage of charging unit 200, the difference of the two is calculated. If charging interface 310 is normal, the input voltage of charging interface 310 and the output voltage of charging unit 200 are equal.If the two Difference it is larger, being greater than difference threshold, (difference threshold according to different charging interface 310 or different to be charged can be set For 300 or different charging units 200, different values, such as 0.1V, 0.3V, 0.5V are set), then it is assumed that charging interface 310 is different Often, and then by the power input pin of charging interface 310 it is grounded, to stop charging.
Specifically, charging equipment 300 further includes first switching element 360, first switching element 360 includes the first input Hold the 361, first output end 362 and the first control terminal 363, the power input pin company of first input end 361 and charging interface 310 Connect, the first output end 362 ground connection, the first control terminal 363 for control first input end 361 and the first output end 362 conducting or It disconnects.By controlling the first control terminal 363, realization connects first input end 361 and the first output end 362, that is, by charging The power input pin and ground short circuit of mouth 310 stop to make 200 overcurrent protection of charging equipment 300 or external recharging apparatus It charges to charging equipment 300, protection charging interface 310 will not damage.
In some embodiments, when the difference of output voltage and input voltage is greater than preset difference value threshold value, by charging The power input ground connection of mouth can specifically include with stopping the step of charging:
Interval acquiring multiple groups output voltage and input voltage, every group of output voltage and input voltage are the acquisition of same time 's;
Obtain multiple groups output voltage and the corresponding multiple voltage differences of input voltage;
Multiple voltage differences are averaged, when average value is greater than preset difference value threshold value, by the power supply of charging interface 310 Input grounding, to stop charging.
Interval acquiring multiple groups output voltage and input voltage, for example, being obtained every the times such as 1 second, 5 seconds or 10 seconds.Then Every group of output voltage and the corresponding voltage difference of input voltage are obtained, is finally averaged, when average value is greater than preset difference value threshold When value, the power input of charging interface 310 is grounded, to stop charging.There may be errors for the data that single obtains, and repeatedly survey The average value of amount can be more accurate.
In some embodiments, when the difference of output voltage and input voltage is greater than preset difference value threshold value, by charging The power input ground connection of mouth can specifically include with stopping the step of charging:
Interval acquiring multiple groups output voltage and input voltage, every group of output voltage and input voltage are the acquisition of same time 's;
Multiple groups output voltage and the corresponding multiple voltage differences of input voltage are obtained, and multiple voltage differences are temporally arranged Sequence;
When at least two continuous voltage differences are greater than preset difference value threshold value, the power input of charging interface 310 is connect Ground, to stop charging.
Interval acquiring multiple groups output voltage and input voltage, for example, being obtained every the times such as 1 second, 5 seconds or 10 seconds.Then Every group of output voltage and the corresponding voltage difference of input voltage are obtained, according to time sequence by multiple voltage differences finally, when at least When two continuous voltage differences are greater than preset difference value threshold value, the power input of charging interface 310 is grounded, to stop charging. There may be error, at least two continuous voltage differences to be greater than preset difference value threshold value for the data that single obtains, and illustrates obviously to go out Problem is showed, has needed quickly to be grounded the power input of charging interface 310, stop charge protection charging interface 310.
In some embodiments, which can also include:
The power input of charging interface 310 is grounded, while sending open command to charging unit 200, is filled for controlling Electric installation 200 disconnects the power input pin of power supply and charging interface 310.
While the power input ground connection of charging interface 310 in charging equipment 300, also transmission open command extremely charges The power input pin of power supply and charging interface 310 is disconnected for controlling charging unit 200, can be filled from charging by device 200 It is directly separated with power supply to set 200 ends, energy consumption can be reduced, safety is also high.
Wherein, power supply can be alternating current, and alternating current can be 220V, 50Hz, alternating current by controllable switch or field-effect tube or Triode is connect with the power input pin of charging interface 310.Specifically, having AC-DC module in charging unit 200, it is used for The alternating current (such as 220V alternating current) of alternating current is converted into the direct current (direct current of such as 5V) to charge to charging equipment 300. Controllable switch or field-effect tube or triode can be set between alternating current and AC-DC module, also can be set in AC-DC module Between the power input pin of charging interface 310.
Referring to Fig. 8, Fig. 8 is the module frame chart schematic diagram of electronic equipment provided by the embodiments of the present application.The electronic equipment 100 can be the charging equipment in above-described embodiment, which may include control circuit, which can To include storage and processing circuit 61.The storage and processing circuit 61 may include memory, volatile memory etc., storage and Processing circuit in processing circuit 61 can be used for the operating of controlling electronic devices 100.Storage and processing circuit 61 can be used for transporting Software in row electronic equipment 100.
Electronic equipment 100 can also include input-output circuit 62.Input-output circuit 62 can be used for making electronic equipment 100 realization data are output and input, i.e. permission electronic equipment 100 allows electronic equipment from outer equipment receiving data and also 100 export data to external equipment from electronic equipment 100.Input-output circuit 62 may further include sensor 63, with And one or more displays (such as display 64).
Electronic equipment 100 can also include audio component 65 and telecommunication circuit 66.Audio component 65 can be used for for electricity Sub- equipment 100 provides audio input and output function, and telecommunication circuit 66 can be used for providing for electronic equipment 100 and external equipment The ability of communication.
Electronic equipment 100 can further include other input-output units 67.Input-output unit 67 can wrap Button is included, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, light emitting diode and other states refer to Show device etc..
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
The embodiment of the present application also provides a kind of storage medium, which is stored with computer program, when the computer When program is run on computers, so that the computer executes the charging method in any of the above-described embodiment, such as: it obtains The input voltage of the charging interface;Obtain the output voltage of the charging unit;When the output voltage and input electricity When the difference of pressure is greater than preset difference value threshold value, the power input pin of the charging interface is grounded, to stop charging.
In the embodiment of the present application, storage medium can be magnetic disk, CD, read-only memory (Read Only Memory, ) or random access memory (Random Access Memory, RAM) etc. ROM.
It should be noted that for the charging method of the embodiment of the present application, this field common test personnel can be with Understand all or part of the process for realizing the charging method of the embodiment of the present application, is that can be controlled by computer program Relevant hardware is completed, and the computer program can be stored in a computer-readable storage medium, be such as stored in electronics It in the memory of equipment, and is executed by least one processor in the electronic equipment, in the process of implementation may include such as charging The process of the embodiment of processing method.Wherein, the storage medium can be magnetic disk, CD, read-only memory, arbitrary access note Recall body etc..
It is situated between above to a kind of charging circuit, charging method provided by the embodiment of the present application, electronic equipment and storage Matter is described in detail, and specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art Member, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as the limitation to the application.

Claims (12)

1. a kind of charging circuit characterized by comprising
Charging interface, the charging interface are used to connect external charging unit;
First switching element, the first switching element include first input end, the first output end and the first control terminal, and described One input terminal is connect with the power input pin of the charging interface, and the first output end ground connection, first control terminal is used It is turned on or off in the control first input end and first output end;
Control module, the control module are connect with charging interface, and the control module is connect with first control terminal, work as institute It is described when stating the difference between the input voltage of charging interface and the output voltage of the charging unit greater than preset difference value threshold value The first input end is connect by control module with the first output end.
2. charging circuit according to claim 1, which is characterized in that the control module obtains the defeated of the charging interface Enter the output voltage of voltage and the charging unit, and be calculated the charging interface input voltage and the charging Difference between the output voltage of device.
3. charging circuit according to claim 2, which is characterized in that the control module includes control chip, the control Coremaking piece includes that voltage calculates pin, and the voltage calculates pin and connects the power input pin of the charging interface, and calculates Obtain the input voltage of the charging interface.
4. charging circuit according to claim 2, which is characterized in that the control module includes communication port, described logical Letter port is used to obtain the output voltage of the charging unit by the charging interface.
5. charging circuit according to claim 1, which is characterized in that the control module obtains the defeated of the charging interface Enter voltage, and the input voltage is sent to the charging unit;
The control module is used to obtain the control information of the charging unit, and defeated by described first according to the control information Enter end to connect with the first output end, wherein the control information is filled according to the input voltage of the charging interface and the charging Difference between the output voltage set generates.
6. charging circuit according to claim 1, which is characterized in that the charging circuit further includes being located at the charging to fill Third switch element and the second control module in setting;
The third switch element includes third input terminal, third output end and third control terminal, and the third input terminal is used for Power supply is connected, the third output end connects the power input pin of the charging interface, and the third control terminal is for controlling It is turned on or off between the third input terminal and the third output end;
Second control module connects the third control terminal and the power input pin, when second control module is examined When measuring power input pin ground connection, by the separated of the third input terminal and the third output end.
7. a kind of charging method is applied to charging equipment, the charging equipment includes charging interface, the charging Mouth is for connecting charging unit, which is characterized in that the described method includes:
Obtain the input voltage of the charging interface;
Obtain the output voltage of the charging unit;
When the difference of the output voltage and the input voltage is greater than preset difference value threshold value, by the power supply of the charging interface Input pin ground connection, to stop charging.
8. charging method according to claim 7, which is characterized in that described to work as the output voltage and the input When the difference of voltage is greater than preset difference value threshold value, the power input of the charging interface is grounded, to stop the step of charging, packet It includes:
Output voltage described in interval acquiring multiple groups and the input voltage, output voltage described in every group and the input voltage are same What one time obtained;
Obtain output voltage and the corresponding multiple voltage differences of the input voltage described in multiple groups;
Multiple voltage differences are averaged, when the average value is greater than preset difference value threshold value, by the charging interface Power input ground connection, to stop charging.
9. charging method according to claim 7, which is characterized in that described to work as the output voltage and the input When the difference of voltage is greater than preset difference value threshold value, the power input of the charging interface is grounded, to stop the step of charging, packet It includes:
Output voltage described in interval acquiring multiple groups and the input voltage, output voltage described in every group and the input voltage are same What one time obtained;
Output voltage and the corresponding multiple voltage differences of the input voltage described in multiple groups are obtained, and by multiple voltage differences According to time sequence;
When at least two continuous voltage differences are greater than preset difference value threshold value, the power input of the charging interface is connect Ground, to stop charging.
10. charging method according to claim 7, which is characterized in that the method also includes:
The power input of the charging interface is grounded, while sending open command to the charging unit, described in controlling Charging unit disconnects the power input pin of power supply and the charging interface.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes charging circuit and battery, the charging circuit with The battery connection, the charging circuit charging circuit as described in any one in claim 1-5.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed The step of charging methods as described in any item such as claim 7 to 11 are realized when device executes.
CN201811348643.XA 2018-11-13 2018-11-13 Charging circuit, charging method, electronic equipment and storage medium Pending CN109378877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811348643.XA CN109378877A (en) 2018-11-13 2018-11-13 Charging circuit, charging method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811348643.XA CN109378877A (en) 2018-11-13 2018-11-13 Charging circuit, charging method, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109378877A true CN109378877A (en) 2019-02-22

Family

ID=65384393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811348643.XA Pending CN109378877A (en) 2018-11-13 2018-11-13 Charging circuit, charging method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109378877A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888168A (en) * 2019-11-20 2020-03-17 歌尔科技有限公司 Interface detection circuitry charges, intelligent wearing equipment and charging system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101254A1 (en) * 2014-12-26 2016-06-30 华为技术有限公司 Connector and charging system
CN205610274U (en) * 2016-04-29 2016-09-28 维沃移动通信有限公司 Short -circuit protection circuit and electronic equipment charge
CN205901363U (en) * 2016-07-20 2017-01-18 昆达电脑科技(昆山)有限公司 Apparatus for controlling charge
CN106602513A (en) * 2017-01-13 2017-04-26 顺丰科技有限公司 Short circuit protection charging interface and control method thereof
CN107069843A (en) * 2017-01-13 2017-08-18 顺丰科技有限公司 Short-circuit protection charging inlet and its control method
US20170271897A1 (en) * 2014-12-31 2017-09-21 Huawei Technologies Co., Ltd. Charging protection method and apparatus
CN108536055A (en) * 2018-03-21 2018-09-14 维沃移动通信有限公司 A kind of mobile terminal and detection method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101254A1 (en) * 2014-12-26 2016-06-30 华为技术有限公司 Connector and charging system
US20170271897A1 (en) * 2014-12-31 2017-09-21 Huawei Technologies Co., Ltd. Charging protection method and apparatus
CN205610274U (en) * 2016-04-29 2016-09-28 维沃移动通信有限公司 Short -circuit protection circuit and electronic equipment charge
CN205901363U (en) * 2016-07-20 2017-01-18 昆达电脑科技(昆山)有限公司 Apparatus for controlling charge
CN106602513A (en) * 2017-01-13 2017-04-26 顺丰科技有限公司 Short circuit protection charging interface and control method thereof
CN107069843A (en) * 2017-01-13 2017-08-18 顺丰科技有限公司 Short-circuit protection charging inlet and its control method
CN108536055A (en) * 2018-03-21 2018-09-14 维沃移动通信有限公司 A kind of mobile terminal and detection method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110888168A (en) * 2019-11-20 2020-03-17 歌尔科技有限公司 Interface detection circuitry charges, intelligent wearing equipment and charging system

Similar Documents

Publication Publication Date Title
CN109245244A (en) Charging circuit, charging method, electronic equipment and storage medium
US11050286B2 (en) Electronic device, method of controlling charging by electronic device, and method of supplying power by power supply device
US7683573B2 (en) System and method for powering docked portable information handling system
CN105518967B (en) Apparatus and method for changing current limit
US9979220B2 (en) Electronic device and method for controlling charging of the same
CN109286219A (en) Charging circuit, charging method, electronic equipment and storage medium
TW200926629A (en) Mobile terminal aware of external device and control method for the same
CN109412234A (en) Charging circuit, charging method, electronic equipment and storage medium
CN109193878A (en) Charging circuit, charging method, electronic equipment and storage medium
CN109120029A (en) charging circuit, electronic equipment, charging management method and storage medium
US9509358B1 (en) Behavior adaptive battery control system for mobile device case
CN108155623A (en) A kind of terminal USB interface guard method, terminal and external equipment
CN109378877A (en) Charging circuit, charging method, electronic equipment and storage medium
TW201535128A (en) Electric system
CN105098893B (en) A kind of terminal device and its battery
CN109038863A (en) Electronic equipment
CN109378878A (en) Charging circuit, charging method, electronic equipment and storage medium
CN109450023A (en) Charging circuit, charging method, electronic equipment and storage medium
CN208738925U (en) Charging circuit and electronic equipment
CN110474387A (en) Charge control method, electronic equipment and computer storage medium
CN109149709A (en) Electronic equipment
CN207834780U (en) Intelligent charging line
CN109120034A (en) Charging circuit, charging method, electronic equipment and storage medium
CN109286220A (en) Charging circuit, charging method, electronic equipment and storage medium
CN109510259A (en) Charging circuit, charging method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination