CN106300512B - A kind of method and apparatus controlling mobile power source charge and discharge - Google Patents
A kind of method and apparatus controlling mobile power source charge and discharge Download PDFInfo
- Publication number
- CN106300512B CN106300512B CN201610702809.8A CN201610702809A CN106300512B CN 106300512 B CN106300512 B CN 106300512B CN 201610702809 A CN201610702809 A CN 201610702809A CN 106300512 B CN106300512 B CN 106300512B
- Authority
- CN
- China
- Prior art keywords
- power source
- mobile power
- discharge
- mobile
- power supply
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0068—Battery or charger load switching, e.g. concurrent charging and load supply
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
- H01M10/446—Initial charging measures
-
- H—ELECTRICITY
- H01—ELECTRIC ELEMENTS
- H01M—PROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
- H01M10/00—Secondary cells; Manufacture thereof
- H01M10/42—Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
- H01M10/44—Methods for charging or discharging
- H01M10/448—End of discharge regulating measures
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/00032—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
- H02J7/00034—Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02E60/10—Energy storage using batteries
Abstract
The invention discloses a kind of method and apparatus for controlling mobile power source charge and discharge, this method comprises: whether detection mobile power source connects external power supply and mobile terminal simultaneously;When detecting that mobile power source only connects external power supply or mobile terminal, the single carry out charge or discharge of mobile power source are controlled;When detecting mobile power source while connecting external power supply and mobile terminal, judge that external power supply is power supply adaptor or indirect power supply unit by USB enumeration state;If power supply adaptor, control mobile power source carries out charge and discharge simultaneously;If indirect power supply unit, further judge whether mobile power source discharge current is greater than default discharge threshold.It can be seen that, what the present invention can judge automatically its connection is indirect charging equipment or power supply adaptor, achieve effective control its charging current, it not only can single carry out charge or discharge, the function that can also control while carry out charge and discharge or rotation charge and discharge realizes the intelligent management of mobile power source charging/discharging function switching.
Description
Technical field
The present invention relates to power supply charge and discharge electro-technical field, in particular to a kind of method and dress for controlling mobile power source charge and discharge
It sets.
Background technique
With spreading for mobile electronic product, peripheral hardware charging equipment is also quickly grown, especially mobile power source be born it is vertical
Quarter receives the favor of users.Mobile power source such as charger baby, because its is simple, portable, application scenarios are wide, have become
One of people's essential equipment.Although the product of existing mobile power source is varied, its control structure is simple, fills
Power mode is single, and there are still many defects.When mobile power source is charged, especially mobile power source connects external power supply simultaneously
When with mobile terminal (such as the peripheral hardware with USB interface such as mobile phone, earphone), because existing mobile power source cannot automatic area
Dividing external power supply is indirect charging equipment or power supply adaptor, and then not can be effectively controlled its charging current, causes itself
Service life reduction, or can not achieve while carrying out the function of charge and discharge, lack of wisdom management and function switch.
Summary of the invention
It cannot distinguish between the type of external power supply in view of mobile power source in the prior art, and then not can be effectively controlled its charging
Electric current, or cannot carry out simultaneously the problem of charge and discharge, propose a kind of method of control mobile power source charge and discharge of the invention
And device, to solve or at least be partially solved the above problem.
According to an aspect of the invention, there is provided a kind of method for controlling mobile power source charge and discharge, which comprises
Detect the mobile power source whether and meanwhile connect external power supply and mobile terminal;
When detecting that the mobile power source only connects external power supply or mobile terminal, it is single to control the mobile power source
Carry out charge or discharge;
When detecting the mobile power source while connecting external power supply and mobile terminal, by USB enumeration state into one
Step judges that the external power supply is power supply adaptor or indirect power supply unit;
If judgement is power supply adaptor, controls the mobile power source while carrying out charge and discharge;
If judgement is indirect power supply unit, further judge that the mobile power source puts mobile terminal according to USB specification
Whether electric current is greater than default discharge threshold, if control the mobile power source no more than default discharge threshold while carrying out charge and discharge
Electricity controls the mobile power source rotation and carries out charge and discharge if more than default discharge threshold.
Optionally, the control mobile power source rotation carries out charge and discharge and includes:
Real-time monitoring is carried out to the battery capacity of the mobile power source, judges whether the battery capacity of the mobile power source is low
In default low battery threshold value;
If controlling the mobile power source not less than default low battery threshold value and carrying out electric discharge up to the battery of the mobile power source
Electricity is lower than default low battery threshold value, and pause electric discharge further controls the mobile power source and charges;
If controlling the mobile power source lower than default low battery threshold value and carrying out charging until the battery of the mobile power source is electric
Amount further controls the mobile power source and discharges not less than high power threshold, pause charging is preset.
Optionally, the control mobile power source rotation carries out charge and discharge further include:
First judge whether the battery capacity of mobile terminal is full of, is that then, controlling the mobile power source terminates to discharge, further
The mobile power source is controlled to charge;
Judge whether the battery capacity of the mobile power source is full of again, is that then, controlling the mobile power source terminates to charge.
Optionally, the control mobile power source carries out charge and discharge simultaneously and includes:
Judge whether the battery capacity of mobile terminal is full of, is that then, controlling the mobile power source terminates to discharge;
And while judge whether the battery capacity of the mobile power source is full of, be that then, controlling the mobile power source terminates
Charging.
It optionally, is 500mA according to the USB2.0 specification default discharge threshold.
According to another aspect of the present invention, a kind of device for controlling mobile power source charge and discharge is provided, which is characterized in that
Described device includes detection module, control module and judgment module:
The detection module, for detect the mobile power source whether and meanwhile connect external power supply and mobile terminal;
The control module, for detecting that the mobile power source only connects external power supply or shifting when the detection module
When dynamic terminal, the single carry out charge or discharge of the mobile power source is controlled;
The judgment module, for when detection module detects the mobile power source while connecting external power supply and movement eventually
When end, further judge that the external power supply is power supply adaptor or indirect power supply unit by USB enumeration state;And sentencing
Disconnected is indirect power supply unit, further judges whether the mobile power source is big to the discharge current of mobile terminal according to USB specification
In default discharge threshold;
The control module, if being also used to the judgment module judges that the external power supply is power supply adaptor or sentences
When the disconnected mobile power source out is not more than default discharge threshold to the discharge current of mobile terminal, the mobile power source is controlled simultaneously
Carry out charge and discharge;If the judgment module judges that the mobile power source is greater than default electric discharge threshold to the discharge current of mobile terminal
When value, controls the mobile power source rotation and carry out charge and discharge.
Optionally, the judgment module, is also used to: carrying out real-time monitoring, judgement to the battery capacity of the mobile power source
Whether the battery capacity of the mobile power source is lower than default low battery threshold value;
The control module judges the battery capacity of the mobile power source not less than default if being also used to the judgment module
Low battery threshold value controls the mobile power source and carries out electric discharge until the battery capacity of the mobile power source is lower than default low battery threshold
Value, pause electric discharge further control the mobile power source and charge;
The control module, if being also used to the judgment module judges that the battery capacity of the mobile power source is low lower than presetting
Power threshold controls the mobile power source and carries out charging until the battery capacity of the mobile power source, which is not less than, presets high electricity threshold
Value, pause charging further control the mobile power source and discharge.
Optionally, when the control module controls the mobile power source rotation progress charge and discharge, the judgment module is also
For first judging whether the battery capacity of mobile terminal is full of, then judge the battery capacity of mobile power source described in the mobile power source
Whether it is full of;
The control module, if be also used to the judgment module and judge that the battery capacity of the mobile terminal is full of,
Controlling the mobile power source terminates to discharge, and further controls the mobile power source and charges, until the judgment module judges
The battery capacity of the mobile power source is full of out, and controlling the mobile power source terminates to charge.
Optionally, when the control module controls the mobile power source while carrying out charge and discharge, the judgment module, also
For judging whether the battery capacity of mobile terminal and the mobile power source is full of simultaneously;
The control module, if be also used to the judgment module and judge that the battery capacity of the mobile terminal is full of,
Controlling the mobile power source terminates to discharge;If the judgment module judges that the battery capacity of the mobile power source is full of, control
Making the mobile power source terminates to charge.
It optionally, is 500mA according to the USB2.0 specification default discharge threshold.
If in conclusion detect mobile power source in the method for the invention while connecting external power supply and mobile terminal
When, the type of the external power supply of connection can be further detected by USB enumeration state;When detecting that external power supply is to supply indirectly
When electric equipment, it is pre- also further to judge whether mobile power source is greater than the discharge current of mobile terminal according to USB specification
If discharge threshold, and then control mobile power source and carry out charge and discharge or rotation progress charge and discharge simultaneously.As it can be seen that technology of the invention
Scheme can be indirect charging equipment or power supply adaptor automatically according to its connection, achieve effective control its charging current,
It not only can single carry out charge or discharge, additionally it is possible to which control carries out the function of charge and discharge and rotation progress charge and discharge simultaneously
Can, realize the intelligent management of mobile power source charging/discharging function switching.
Detailed description of the invention
Fig. 1 is a kind of method flow diagram for controlling mobile power source charge and discharge provided in an embodiment of the present invention;
Fig. 2 is a kind of control flow chart for controlling mobile power source charge and discharge provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic device for controlling mobile power source charge and discharge provided in an embodiment of the present invention.
Specific embodiment
Mentality of designing of the invention is: for the intelligent management for realizing the charging/discharging function switching to mobile power source, working as movement
When power supply connects external power supply and mobile terminal simultaneously, increase the step of the type of the external power supply of detection connection mobile power source
Suddenly, the available size of current of external power supply is judged accordingly;Increase the big of the discharge current for detecting mobile power source to mobile terminal
Small step realizes control of the mobile power source to charging current, carries out charge and discharge to realize while carrying out charge and discharge and rotation
The function of electricity.To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is a kind of method flow diagram for controlling mobile power source charge and discharge provided in an embodiment of the present invention.As shown in Figure 1,
Control mobile power source charge and discharge method include:
Whether step S110, detection mobile power source connect external power supply and mobile terminal simultaneously.
Step S120 controls mobile power source list when detecting that mobile power source only connects external power supply or mobile terminal
One carries out charge or discharge.
Step S130 passes through USB enumeration state when detecting mobile power source while connecting external power supply and mobile terminal
Further judge that external power supply is power supply adaptor or indirect power supply unit.
In this step, because being different from power supply adaptor, indirectly in mobile power source when connecting indirect power supply unit
The electric current that power supply unit provides usually requires to meet interface standard, and the size of current provided is limited.Judge the type of external power supply,
The electric current that can detect that external power supply provides has been whether size limitation.
Step S140, if judgement is power supply adaptor, control mobile power source carries out charge and discharge simultaneously.
Step S150 further judges mobile power source to mobile terminal if judgement is indirect power supply unit according to USB specification
Discharge current whether be greater than default discharge threshold, if control mobile power source no more than default discharge threshold while being filled
Electric discharge then controls mobile power source rotation and carries out charge and discharge if more than default discharge threshold.
In this step, preset discharge threshold is according to the available electricity for meeting USB interface specification of indirect power supply unit
Flow size setting.If discharge current is not more than default discharge threshold, mobile power source, which will control, fills mobile terminal
The extracurrent supply met other than the required electric current of mobile terminal in electricity, and the electric current of the indirect power supply unit offer of control moves
Dynamic power supply itself charges for mobile power source, effectively controls charging current, and then realizes while carrying out charge and discharge
Function.
If more than default discharge threshold, then the electric current that indirect power supply unit provides is unable to satisfy mobile power source while being filled
Electric discharge then controls mobile power source rotation and carries out charge and discharge.
In one embodiment of the invention, control mobile power source rotation in step S150 carries out charge and discharge and includes:
Real-time monitoring is carried out to the battery capacity of mobile power source, judge the battery capacity of mobile power source whether be lower than preset it is low
Power threshold;If control mobile power source carries out electric discharge until the battery capacity of mobile power source is low not less than default low battery threshold value
In default low battery threshold value, further control mobile power source charges for pause electric discharge;If lower than default low battery threshold value, control
Mobile power source carries out charging until the battery capacity of mobile power source suspends further control of charging not less than high power threshold is preset
Mobile power source discharges.
Because mobile power source continues to charge to mobile terminal in the case where battery low-electricity quantity, mobile power source will affect
Service life, for guarantee mobile power source battery capacity, rotation carry out charge and discharge when, be to the battery of mobile power source
Electricity carries out real-time monitoring, and sets low, high power threshold, once the battery capacity of mobile power source is lower than default low battery threshold value
When, mobile power source pause electric discharge need to be controlled, carries out charging until battery capacity, which is not less than, presets high power threshold, then controls
Mobile power source pause charging, discharges.Because the battery capacity to mobile power source is real-time detection, the low battery threshold of setting
Value is the standard for controlling mobile power source and whether carrying out preferential discharge, and discharging function is switched to charging function by control mobile power source
The standard of energy;The high power threshold of setting is the standard for controlling mobile power source and charge function being switched to discharging function;It sets simultaneously
Fixed low, high power threshold is that electric discharge in order to prevent and charge function switching are excessively frequent, is avoided in default low battery threshold value and in advance
If carrying out charge and discharge switching in the section of high power threshold, guarantee the stability of charging/discharging function.As it can be seen that method of the invention can
To realize that mobile power source is charged and discharged the intelligent management of function switch.
Further, the control mobile power source rotation in step S150 carries out charge and discharge further include:
First judge whether the battery capacity of mobile terminal is full of, is that then, control mobile power source terminates to discharge, further controls
Mobile power source charges;Judge that the battery capacity of mobile power source is full of again, is that then, control mobile power source terminates to charge.
In this process, because be the battery capacity of mobile power source is monitored in real time, once there is battery capacity
The case where lower than default low battery threshold value, will control mobile power source pause electric discharge, carry out charge function, guarantee mobile power source
Battery capacity is not less than charging to mobile terminal in the case where presetting high power threshold.So control mobile power source electric discharge
The case where being lower than default low battery threshold value if there is the battery capacity of mobile power source in the process is that rotation carries out charge and discharge in fact
Function, it until after the battery capacity of mobile terminal is full of, then controls mobile power source and is carried out continuously charging, until mobile power source
Electricity be full of, terminate entire program.
In one embodiment of the invention, it includes: to sentence that the control mobile power source in step S140, which carries out charge and discharge simultaneously,
Whether the battery capacity of disconnected mobile terminal is full of, and is that then, control mobile power source terminates to discharge;And while judging mobile power source
Battery capacity whether be full of, be then, control mobile power source terminate to charge.
Because be all control mobile power source while carrying out charging/discharging function, the control mobile power source in step S150 is same
Shi Jinhang charge and discharge also include: to judge whether the battery capacity of mobile terminal is full of, and are that then, control mobile power source terminates to discharge;
And judge whether the battery capacity of mobile power source is full of, it is that then, control mobile power source terminates to charge.
The power supply interface of indirect power supply unit in currently available technology is generally USB2.0 standard, allow by
Electric current is not more than 500mA.It, in one embodiment of the invention, will be pre- according to USB2.0 specification in order to meet USB2.0 standard
If discharge threshold is set as 500mA.
To keep method flow of the invention clearer, Fig. 2 shows a kind of control movements provided in an embodiment of the present invention
The control flow chart of power supply charge and discharge.As shown in Fig. 2, whether detection mobile power source connects outside simultaneously first after program starts
Power supply and mobile terminal.If detecting connection external power supply or a mobile terminal, control that mobile power source is single to charge
Perhaps it discharges and judges whether mobile power source or mobile terminal are full of, be that then, control mobile power source terminates to charge or put
Electricity.
If detect mobile power source while connecting external power supply and mobile terminal, further judged by USB enumeration state
External power supply is power supply adaptor or indirect power supply unit.If judgement is power supply adaptor, control mobile power source is filled simultaneously
Electric discharge, and judge whether the battery capacity of mobile terminal is full of, it is that then, control mobile power source terminates to discharge;And judge simultaneously
Whether the battery capacity of mobile power source is full of, and is that then, control mobile power source terminates to charge.
If judgement is indirect power supply unit, further judge mobile power source to the electric discharge electricity of mobile terminal according to USB specification
Whether stream is greater than default discharge threshold.If control mobile power source carries out charge and discharge simultaneously, and judges no more than default discharge threshold
Whether the battery capacity of mobile terminal is full of, and is that then, control mobile power source terminates to discharge;And while judging mobile power source
Whether battery capacity is full of, and is that then, control mobile power source terminates to charge.
If more than default discharge threshold, controls mobile power source rotation and carry out charge and discharge.The process of charge and discharge is carried out in rotation
In, the battery capacity of mobile power source is monitored in real time, the battery capacity according to mobile power source carries out charge and discharge rotation.First
Whether the battery capacity of monitoring mobile power source is lower than default low battery threshold value.If controlling mobile electricity lower than default low battery threshold value
Source is charged, if control mobile power source discharges not less than default low battery threshold value.As long as the battery capacity of mobile power source
Not less than default low battery threshold value, electric discharge is carried out with regard to control mobile power source until the battery capacity of mobile power source, which is lower than, presets low electricity
Threshold value is measured, just further control mobile power source charges for pause electric discharge, once the battery capacity for charging to mobile power source is not low
In presetting high power threshold, with regard to pause charging, further control mobile power source discharges, to preferentially guarantee mobile terminal
It works normally.During rotation carries out charge and discharge, first judge whether mobile terminal is full of.If judging, mobile terminal does not fill
It is full, the step of whether battery capacity of mobile power source is lower than default low battery threshold value be still monitored;If judging, mobile terminal fills
Full electricity, control mobile power source terminate to discharge, charge, then judge whether mobile power source is fully charged, are then, to terminate charging.
The control process of control mobile power source charge and discharge as shown in Figure 2 is the process of a real-time detection and switching, no
It only can single carry out charge or discharge, additionally it is possible to control carries out the function of charge and discharge and rotation progress charge and discharge simultaneously,
Realize the intelligent management of mobile power source charging/discharging function switching.
Fig. 3 is a kind of schematic device for controlling mobile power source charge and discharge provided in an embodiment of the present invention.As shown in figure 3,
The device 300 for controlling mobile power source charge and discharge includes detection module 310, control module 320 and judgment module 330:
Detection module 310, for detect mobile power source whether and meanwhile connect external power supply and mobile terminal;
Control module 320, for detecting that mobile power source only connects external power supply or mobile terminal when detection module 310
When, control the single carry out charge or discharge of mobile power source.
Judgment module 330, for when detection module 310 detects mobile power source while connecting external power supply and mobile terminal
When, further judge that external power supply is power supply adaptor or indirect power supply unit by USB enumeration state;And between judgement is
Power supply unit is connect, further judges whether mobile power source is greater than default electric discharge to the discharge current of mobile terminal according to USB specification
Threshold value.
Control module 320, if being also used to judgment module 330 judges that external power supply is power supply adaptor or judges to move
When dynamic power supply is not more than default discharge threshold to the discharge current of mobile terminal, control mobile power source carries out charge and discharge simultaneously;If
When judgment module 330 judges that mobile power source is greater than default discharge threshold to the discharge current of mobile terminal, mobile power source is controlled
Rotation carries out charge and discharge.
In one embodiment of the invention, judgment module 330 are also used to: being carried out to the battery capacity of mobile power source real
When monitor, judge whether the battery capacity of mobile power source is lower than default low battery threshold value.
Control module 320, if being also used to judgment module 330 judges that the battery capacity of mobile power source is not less than default low battery
Threshold value, control mobile power source carries out electric discharge until the battery capacity of mobile power source is lower than default low battery threshold value, pause discharge into
One step control mobile power source charges.
Control module 320, if being also used to judgment module 330 judges that the battery capacity of mobile power source is lower than default low battery threshold
Value, control mobile power source carries out charging until the battery capacity of mobile power source is not less than presetting high power threshold, pause charge into
One step control mobile power source discharges.
Further, when control module 320 controls mobile power source rotation progress charge and discharge, judgment module 230 is also used to
First judge whether the battery capacity of mobile terminal is full of, then judges whether the battery capacity of mobile power source is full of.
Control module 320, if be also used to judgment module 330 and judge that the battery capacity of mobile terminal is full of, control is moved
Dynamic power supply terminates to discharge, and further controls mobile power source and charges, until judgment module 330 judges the battery of mobile power source
Electricity is full of, and control mobile power source terminates to charge.
In one embodiment of the invention, when control module 320 controls mobile power source while carrying out charge and discharge, judgement
Module 330, is also used to judge simultaneously whether the battery capacity of mobile terminal and mobile power source is full of.
Control module 320, if be also used to judgment module 330 and judge that the battery capacity of mobile terminal is full of, control is moved
Dynamic power supply terminates to discharge;If judgment module 330 judges that the battery capacity of mobile power source is full of, control mobile power source terminates to fill
Electricity.
In one embodiment of the invention, standardizing default discharge threshold according to USB2.0 is 500mA.
It should be noted that method shown in each embodiment of control flow shown in Fig. 2 and Fig. 3 shown device and Fig. 1
Each embodiment corresponds to identical, has been described in detail above, details are not described herein.
If in conclusion detect mobile power source in the method for the invention while connecting external power supply and mobile terminal
When, the type of the external power supply of connection can be further detected by USB enumeration state;When detecting that external power supply is to supply indirectly
When electric equipment, it is pre- also further to judge whether mobile power source is greater than the discharge current of mobile terminal according to USB specification
If discharge threshold, and then control mobile power source and carry out charge and discharge or rotation progress charge and discharge simultaneously.As it can be seen that technology of the invention
Scheme can be indirect charging equipment or power supply adaptor automatically according to connection mobile power source, achieve effective control its charging
Electric current, not only can single carry out charge or discharge, additionally it is possible to which control carries out charge and discharge and rotation progress charge and discharge simultaneously
Function, realize mobile power source charging/discharging function switching intelligent management.
The above description is merely a specific embodiment, under above-mentioned introduction of the invention, those skilled in the art
Other improvement or deformation can be carried out on the basis of the above embodiments.It will be understood by those skilled in the art that above-mentioned tool
Body description only preferably explains that the purpose of the present invention, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of method for controlling mobile power source charge and discharge, which is characterized in that the described method includes:
Detect the mobile power source whether and meanwhile connect external power supply and mobile terminal;
When detecting that the mobile power source only connects external power supply or mobile terminal, the single progress of the mobile power source is controlled
Charge or discharge;
When detecting the mobile power source while connecting external power supply and mobile terminal, further sentenced by USB enumeration state
The external power supply that breaks is power supply adaptor or indirect power supply unit;
If judgement is power supply adaptor, controls the mobile power source while carrying out charge and discharge;
If judgement is indirect power supply unit, further judge the mobile power source to the electric discharge electricity of mobile terminal according to USB specification
Whether stream is greater than default discharge threshold, if control the mobile power source no more than default discharge threshold while carrying out charge and discharge, if
Greater than default discharge threshold, controls the mobile power source rotation and carry out charge and discharge.
2. the method as described in claim 1, which is characterized in that the control mobile power source rotation carries out charge and discharge packet
It includes:
Real-time monitoring is carried out to the battery capacity of the mobile power source, it is pre- to judge whether the battery capacity of the mobile power source is lower than
If low battery threshold value;
If controlling the mobile power source not less than default low battery threshold value and carrying out electric discharge up to the battery capacity of the mobile power source
Lower than default low battery threshold value, pause electric discharge further controls the mobile power source and charges;
If lower than default low battery threshold value, control the mobile power source carry out charging until the battery capacity of the mobile power source not
Lower than high power threshold is preset, pause charging further controls the mobile power source and discharges.
3. method according to claim 2, which is characterized in that the control mobile power source rotation carries out charge and discharge and also wraps
It includes:
First judge whether the battery capacity of mobile terminal is full of, be that then, controlling the mobile power source terminates to discharge, further controls
The mobile power source charges;
Judge whether the battery capacity of the mobile power source is full of again, is that then, controlling the mobile power source terminates to charge.
4. the method as described in claim 1, which is characterized in that the control mobile power source carries out charge and discharge packet simultaneously
It includes:
Judge whether the battery capacity of mobile terminal is full of, is that then, controlling the mobile power source terminates to discharge;
And while judge whether the battery capacity of the mobile power source is full of, be that then, controlling the mobile power source terminates to fill
Electricity.
5. the method as described in claim 1, which is characterized in that the foundation USB2.0 specification default discharge threshold is 500mA.
6. it is a kind of control mobile power source charge and discharge device, which is characterized in that described device include detection module, control module and
Judgment module:
The detection module, for detect the mobile power source whether and meanwhile connect external power supply and mobile terminal;
The control module, for detecting that the mobile power source only connects external power supply or movement eventually when the detection module
When end, the single carry out charge or discharge of the mobile power source is controlled;
The judgment module, for when the detection module detects the mobile power source while connecting external power supply and movement eventually
When end, further judge that the external power supply is power supply adaptor or indirect power supply unit by USB enumeration state;And sentencing
Disconnected is indirect power supply unit, further judges whether the mobile power source is big to the discharge current of mobile terminal according to USB specification
In default discharge threshold;
The control module, if being also used to the judgment module judges that the external power supply is power supply adaptor or judges
When the mobile power source is not more than default discharge threshold to the discharge current of mobile terminal, controls the mobile power source while carrying out
Charge and discharge;If the judgment module judges that the mobile power source is greater than default discharge threshold to the discharge current of mobile terminal
When, it controls the mobile power source rotation and carries out charge and discharge.
7. device as claimed in claim 6, which is characterized in that the judgment module is also used to the electricity to the mobile power source
Pond electricity carries out real-time monitoring, judges whether the battery capacity of the mobile power source is lower than default low battery threshold value;
The control module presets low electricity if being also used to the judgment module and judging that the battery capacity of the mobile power source is not less than
Threshold value is measured, the mobile power source is controlled and carries out electric discharge until the battery capacity of the mobile power source is lower than default low battery threshold value,
Pause electric discharge further controls the mobile power source and charges;
The control module, if being also used to the judgment module judges that the battery capacity of the mobile power source is lower than default low battery
Threshold value controls the mobile power source and carries out charging until the battery capacity of the mobile power source is not less than presetting high power threshold,
Pause charging further controls the mobile power source and discharges.
8. device as claimed in claim 7, which is characterized in that control the mobile power source rotation in the control module and carry out
When charge and discharge, the judgment module is also used to first judge whether the battery capacity of mobile terminal is full of, then judges the mobile electricity
Whether the battery capacity in source is full of;
The control module, if be also used to the judgment module and judge that the battery capacity of the mobile terminal is full of, control
The mobile power source terminates to discharge, and further controls the mobile power source and charges;Until the judgment module judges institute
The battery capacity for stating mobile power source is full of, and controlling the mobile power source terminates to charge.
9. device as claimed in claim 6, which is characterized in that control the mobile power source in the control module and carry out simultaneously
When charge and discharge, the judgment module is also used to judge simultaneously whether the battery capacity of mobile terminal and the mobile power source is full of;
The control module, if be also used to the judgment module and judge that the battery capacity of the mobile terminal is full of, control
The mobile power source terminates to discharge;If the judgment module judges that the battery capacity of the mobile power source is full of, institute is controlled
Stating mobile power source terminates to charge.
10. device as claimed in claim 6, which is characterized in that be according to the USB2.0 specification default discharge threshold
500mA。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610702809.8A CN106300512B (en) | 2016-08-22 | 2016-08-22 | A kind of method and apparatus controlling mobile power source charge and discharge |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610702809.8A CN106300512B (en) | 2016-08-22 | 2016-08-22 | A kind of method and apparatus controlling mobile power source charge and discharge |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106300512A CN106300512A (en) | 2017-01-04 |
CN106300512B true CN106300512B (en) | 2019-04-30 |
Family
ID=57661185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610702809.8A Active CN106300512B (en) | 2016-08-22 | 2016-08-22 | A kind of method and apparatus controlling mobile power source charge and discharge |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106300512B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107171395A (en) * | 2017-06-26 | 2017-09-15 | 联想(北京)有限公司 | A kind of charge/discharge control method, controller and electronic equipment |
CN109309399B (en) * | 2018-11-13 | 2021-01-05 | 深圳市蓝禾技术有限公司 | Mobile power supply and discharging method thereof |
WO2020097801A1 (en) * | 2018-11-13 | 2020-05-22 | 深圳市蓝禾技术有限公司 | Mobile power supply and discharging method for same |
CN110829521B (en) * | 2019-10-29 | 2022-05-20 | 宁波龙图通讯科技有限公司 | Two-partition charging circuit |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202384795U (en) * | 2011-12-23 | 2012-08-15 | 深圳市哈里通实业有限公司 | Movable power supply with self-charging intelligent recognition function |
CN104037884A (en) * | 2014-06-28 | 2014-09-10 | 青岛歌尔声学科技有限公司 | Charging method and device integrating quick-charging rules and USB charging rules |
CN205017026U (en) * | 2015-10-08 | 2016-02-03 | 广州飞毛腿数码技术有限公司 | Digital product uninterrupted power source circuit |
CN105634060A (en) * | 2016-01-27 | 2016-06-01 | 深圳市思远半导体有限公司 | Charge-discharge system and charge-discharge method for mobile power supply |
-
2016
- 2016-08-22 CN CN201610702809.8A patent/CN106300512B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202384795U (en) * | 2011-12-23 | 2012-08-15 | 深圳市哈里通实业有限公司 | Movable power supply with self-charging intelligent recognition function |
CN104037884A (en) * | 2014-06-28 | 2014-09-10 | 青岛歌尔声学科技有限公司 | Charging method and device integrating quick-charging rules and USB charging rules |
CN205017026U (en) * | 2015-10-08 | 2016-02-03 | 广州飞毛腿数码技术有限公司 | Digital product uninterrupted power source circuit |
CN105634060A (en) * | 2016-01-27 | 2016-06-01 | 深圳市思远半导体有限公司 | Charge-discharge system and charge-discharge method for mobile power supply |
Also Published As
Publication number | Publication date |
---|---|
CN106300512A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106300512B (en) | A kind of method and apparatus controlling mobile power source charge and discharge | |
CN105914839B (en) | A kind of Double-battery mobile phone and its battery control method and system | |
CN106026257B (en) | A kind of mobile terminal | |
CN105978093B (en) | A kind of mobile terminal | |
US7772807B2 (en) | Method for charging portable electronic device | |
CN105680510A (en) | Charging control method and charging control device used for electronic equipment | |
CN106849232B (en) | Method and system for realizing automatic switching of multiple battery packs of electric vehicle | |
CN106230077B (en) | A kind of power-supplying circuit of mobile terminal, method for controlling power supply and power management module | |
CN105313718B (en) | Vehicular accumulator cell charging equipment, system and method | |
CN103219769A (en) | Battery charging method, battery charging system and mobile terminal | |
CN104993534B (en) | A kind of mobile terminal and its charge control method | |
CN101399448B (en) | Management device and method for battery charging | |
CN104092262B (en) | Charging control device and charging control method | |
CN106981696B (en) | Charging method for battery, electronic equipment and charger | |
CN107994656A (en) | A kind of intelligent charging system and terminal for improving battery | |
CN104701942B (en) | Low-power-consumption terminal for controlling power-off discharge and control method of terminal | |
CN207753497U (en) | The lithium battery group supply unit for supporting inside and outside cutting to change | |
CN106936172A (en) | A kind of intelligent charger and its control method and control device | |
CN101414758A (en) | Power supply controller and control method | |
CN110994769A (en) | Double-battery system and mobile terminal equipment | |
CN104300605B (en) | Power circuit and control method thereof | |
CN101471582B (en) | Charging method and battery charging system | |
CN103311966A (en) | Battery self-adaptive control device and method for batteries connected in parallel | |
CN110401250A (en) | A kind of path management system and method for battery charging and discharging | |
CN203850872U (en) | Charger |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |