CN106300512A - A kind of method and apparatus controlling portable power source discharge and recharge - Google Patents

A kind of method and apparatus controlling portable power source discharge and recharge Download PDF

Info

Publication number
CN106300512A
CN106300512A CN201610702809.8A CN201610702809A CN106300512A CN 106300512 A CN106300512 A CN 106300512A CN 201610702809 A CN201610702809 A CN 201610702809A CN 106300512 A CN106300512 A CN 106300512A
Authority
CN
China
Prior art keywords
power source
portable power
discharge
described portable
control
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.)
Granted
Application number
CN201610702809.8A
Other languages
Chinese (zh)
Other versions
CN106300512B (en
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.)
Goertek Techology Co Ltd
Original Assignee
Qingdao Goertek 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 Qingdao Goertek Co Ltd filed Critical Qingdao Goertek Co Ltd
Priority to CN201610702809.8A priority Critical patent/CN106300512B/en
Publication of CN106300512A publication Critical patent/CN106300512A/en
Application granted granted Critical
Publication of CN106300512B publication Critical patent/CN106300512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/446Initial charging measures
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/448End of discharge regulating measures
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a kind of method and apparatus controlling portable power source discharge and recharge, the method includes: whether detection portable power source is simultaneously connected with external power source and mobile terminal;When detecting that portable power source only connects external power source or mobile terminal, control that portable power source is single is charged or discharges;When detecting that portable power source is simultaneously connected with external power source and mobile terminal, it is power supply adaptor or indirect power supply unit by USB enumeration condition adjudgement external power source;If power supply adaptor, control portable power source and carry out discharge and recharge simultaneously;If power supply unit indirectly, determine whether that whether portable power source discharge current is more than presetting discharge threshold.Visible, the present invention can with automatic decision its connect be indirect charger or power supply adaptor, achieve effective control its charging current, it is possible not only to single be charged or discharge, can also control to carry out discharge and recharge or the function of rotation discharge and recharge, it is achieved that the intelligent management of portable power source charging/discharging function switching simultaneously.

Description

A kind of method and apparatus controlling portable power source discharge and recharge
Technical field
The present invention relates to power supply discharge and recharge technical field, particularly to a kind of method controlling portable power source discharge and recharge and dress Put.
Background technology
Along with mobile electronic product throughout, peripheral hardware charger also quickly grows, particularly portable power source be born vertical Carve the favor receiving users.Portable power source such as charger baby, because it is simple, portable, application scenarios is wide, has become as One of requisite equipment of people.Although the product of existing portable power source is varied, but its control structure is simple, fills Power mode is single, still suffers from a lot of defect.When portable power source is charged, especially portable power source is simultaneously connected with external power source The when of with mobile terminal (such as mobile phone, earphone etc. are with the peripheral hardware of USB interface), because existing portable power source can not district automatically Dividing external power source is indirect charger or power supply adaptor, and then can not effectively control its charging current, causes itself Service life reduction, or can not realize carrying out the function of discharge and recharge simultaneously, lack of wisdom management and function switching.
Summary of the invention
In view of portable power source of the prior art cannot distinguish between the type of external power source, and then can not effectively control its charging Electric current, or the problem that can not simultaneously carry out discharge and recharge, it is proposed that a kind of method controlling portable power source discharge and recharge of the present invention And device, in order to solve or solve the problems referred to above at least in part.
According to an aspect of the invention, it is provided a kind of method controlling portable power source discharge and recharge, described method includes:
Detect whether described portable power source is simultaneously connected with external power source and mobile terminal;
When detecting that described portable power source only connects external power source or mobile terminal, control described portable power source single It is charged or discharges;
When detecting that described portable power source is simultaneously connected with external power source and mobile terminal, enter one by USB enumeration state Step judges that described external power source is power supply adaptor or indirect power supply unit;
If judging it is power supply adaptor, controlling described portable power source and carrying out discharge and recharge simultaneously;
If judging it is indirect power supply unit, determine whether that mobile terminal is put by described portable power source according to USB Whether electricity electric current, more than presetting discharge threshold, being preset discharge threshold if being not more than, being controlled described portable power source and carrying out charge and discharge simultaneously Electricity, if more than presetting discharge threshold, controlling described portable power source rotation and carry out discharge and recharge.
Alternatively, the rotation of described control described portable power source carries out discharge and recharge and includes:
The battery electric quantity of described portable power source is monitored in real time, it is judged that the battery electric quantity of described portable power source is the lowest In default low power threshold;
If being not less than default low power threshold, controlling described portable power source and carrying out discharging until the battery of described portable power source Electricity is less than presetting low power threshold, and time-out electric discharge controls described portable power source further and is charged;
If less than presetting low power threshold, control described portable power source and be charged until the battery of described portable power source is electric Amount is not less than default high power threshold, suspends the charging described portable power source of control further and discharges.
Alternatively, the rotation of described control described portable power source carries out discharge and recharge and also includes:
First judge whether the battery electric quantity of mobile terminal is full of, be then, control described portable power source and terminate electric discharge, further Control described portable power source to be charged;
Judge whether the battery electric quantity of described portable power source is full of again, be then, control described portable power source complete charge.
Alternatively, the described portable power source of described control carries out discharge and recharge simultaneously and includes:
Judge whether the battery electric quantity of mobile terminal is full of, be then, control described portable power source and terminate electric discharge;
And, judge whether the battery electric quantity of described portable power source is full of simultaneously, be then, control described portable power source and terminate Charging.
Alternatively, presetting discharge threshold described in foundation USB2.0 specification is 500mA.
According to another aspect of the present invention, it is provided that a kind of device controlling portable power source discharge and recharge, it is characterised in that Described device includes detection module, control module and judge module:
Described detection module, is used for detecting whether described portable power source is simultaneously connected with external power source and mobile terminal;
When described detection module, described control module, for detecting that described portable power source only connects external power source or shifting During dynamic terminal, control that described portable power source is single to be charged or discharge;
When detection module, described judge module, for detecting that described portable power source is simultaneously connected with external power source and moves eventually During end, determine whether that described external power source is power supply adaptor or indirect power supply unit by USB enumeration state;And sentencing Disconnected is indirect power supply unit, determines whether that described portable power source is the biggest to the discharge current of mobile terminal according to USB In default discharge threshold;
Described control module, if being additionally operable to described judge module to judge that described external power source is power supply adaptor or sentences Break and described portable power source and the discharge current of mobile terminal is not more than when presetting discharge threshold, control described portable power source simultaneously Carry out discharge and recharge;If described judge module judges that the described portable power source discharge current to mobile terminal is more than presetting electric discharge threshold During value, control described portable power source rotation and carry out discharge and recharge.
Alternatively, described judge module, it is additionally operable to: the battery electric quantity of described portable power source is monitored in real time, it is judged that Whether the battery electric quantity of described portable power source is less than presetting low power threshold;
Described control module, if being additionally operable to described judge module, to judge that the battery electric quantity of described portable power source is not less than default Low power threshold, controls described portable power source and carries out discharging until the battery electric quantity of described portable power source is less than presetting low electricity threshold Value, suspends the electric discharge described portable power source of control further and is charged;
Described control module, if being additionally operable to described judge module to judge that the battery electric quantity of described portable power source is low less than presetting Power threshold, controls described portable power source and is charged until the battery electric quantity of described portable power source is not less than default high electricity threshold Value, suspends the charging described portable power source of control further and discharges.
Alternatively, when the described portable power source rotation of control of described control module carries out discharge and recharge, described judge module is also Judge whether the battery electric quantity of mobile terminal is full of for first, then judge the battery electric quantity of portable power source described in described portable power source Whether it is full of;
Described control module, judges when the battery electric quantity of described mobile terminal is full of if being additionally operable to described judge module, Control described portable power source and terminate electric discharge, control described portable power source further and be charged, until described judge module judges The battery electric quantity going out described portable power source is full of, and controls described portable power source complete charge.
Alternatively, when the described control module described portable power source of control carries out discharge and recharge simultaneously, described judge module, also Judge whether the battery electric quantity of mobile terminal and described portable power source is full of for simultaneously;
Described control module, judges when the battery electric quantity of described mobile terminal is full of if being additionally operable to described judge module, Control described portable power source and terminate electric discharge;If described judge module is judged when the battery electric quantity of described portable power source is full of, control Make described portable power source complete charge.
Alternatively, presetting discharge threshold described in foundation USB2.0 specification is 500mA.
In sum, if detecting in the method for the invention, portable power source is simultaneously connected with external power source and mobile terminal Time, the type of the external power source of connection can be detected further by USB enumeration state;When detecting that external power source is indirectly to supply The when of electricity equipment, also can determine whether that whether the portable power source discharge current to mobile terminal is more than pre-according to USB If discharge threshold, and then control portable power source carries out discharge and recharge simultaneously or rotation carries out discharge and recharge.Visible, the technology of the present invention What scheme can connect automatically according to it is indirect charger or power supply adaptor, it is achieved effectively control its charging current, It is possible not only to single be charged or discharge, additionally it is possible to control to carry out discharge and recharge simultaneously and rotation carries out the merit of discharge and recharge Can, it is achieved that the intelligent management of portable power source charging/discharging function switching.
Accompanying drawing explanation
A kind of method flow diagram controlling portable power source discharge and recharge that Fig. 1 provides for the embodiment of the present invention;
A kind of control flow chart controlling portable power source discharge and recharge that Fig. 2 provides for the embodiment of the present invention;
A kind of device schematic diagram controlling portable power source discharge and recharge that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
The mentality of designing of the present invention is: for realizing the intelligent management that the charging/discharging function to portable power source switches, work as movement The when that power supply being simultaneously connected with external power source and mobile terminal, increase the step of the type of the external power source of detection connection portable power source Suddenly, the available size of current of external power source is judged accordingly;Increase big to the discharge current of mobile terminal of detection portable power source Little step, it is achieved the portable power source control to charging current, in order to realize carrying out discharge and recharge simultaneously and rotation carries out charge and discharge The function of electricity.For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
A kind of method flow diagram controlling portable power source discharge and recharge that Fig. 1 provides for the embodiment of the present invention.As it is shown in figure 1, The method controlling portable power source discharge and recharge includes:
Step S110, whether detection portable power source is simultaneously connected with external power source and mobile terminal.
Step S120, when detecting that portable power source only connects external power source or mobile terminal, controls portable power source list One is charged or discharges.
Step S130, when detecting that portable power source is simultaneously connected with external power source and mobile terminal, by USB enumeration state Determine whether that external power source is power supply adaptor or indirect power supply unit.
In this step, because at portable power source connecting indirect power supply unit when, being different from power supply adaptor, indirectly The electric current that power supply unit provides typically requires and meets interface standard, it is provided that size of current limited.Judge the type of external power source, Just can detect that the electric current that external power source provides has been whether that size limits.
Step S140, if judging is power supply adaptor, controls portable power source and carries out discharge and recharge simultaneously.
According to USB, step S150, if judging is indirect power supply unit, determines whether that portable power source is to mobile terminal Discharge current whether more than presetting discharge threshold, preset discharge threshold if being not more than, then control portable power source and fill simultaneously Electric discharge, if more than presetting discharge threshold, then controlling portable power source rotation and carry out discharge and recharge.
In this step, the discharge threshold preset is according to the available electricity meeting USB interface specification of indirect power supply unit Stream size sets.If discharge current is not more than default discharge threshold, portable power source will control to fill mobile terminal Electricity, and control the extracurrent supply shifting met in the electric current that indirect power supply unit provides beyond the required electric current of mobile terminal Galvanic electricity source itself, is charged for portable power source, is effectively controlled charging current, and then realizes carrying out discharge and recharge simultaneously Function.
If more than presetting discharge threshold, then the electric current that power supply unit provides indirectly cannot meet portable power source and fill simultaneously Electric discharge, then control portable power source rotation and carry out discharge and recharge.
In one embodiment of the invention, the control portable power source rotation in step S150 carries out discharge and recharge and includes:
The battery electric quantity of portable power source is monitored in real time, it is judged that the battery electric quantity of portable power source is the lowest less than presetting Power threshold;If being not less than default low power threshold, controlling portable power source and carrying out discharging until the battery electric quantity of portable power source is low In default low power threshold, suspend electric discharge control portable power source further and be charged;If less than presetting low power threshold, controlling Portable power source is charged until the battery electric quantity of portable power source is not less than default high power threshold, suspends charging and controls further Portable power source discharges.
Because portable power source continues to be charged to mobile terminal in the case of battery low-electricity quantity, portable power source can be affected Service life, for ensure portable power source battery electric quantity, rotation carries out discharge and recharge when, be to the battery of portable power source Electricity is monitored in real time, and sets power threshold low, high, and once the battery electric quantity of portable power source is less than presetting low power threshold When, portable power source need to be controlled and suspend electric discharge, be charged until battery electric quantity is not less than default high power threshold, then control Portable power source suspends charging, discharges.Because the battery electric quantity to portable power source is to detect in real time, the low electricity threshold of setting Value is to control whether portable power source carries out the standard of preferential discharge, is also to control portable power source discharging function is switched to merit of charging The standard of energy;The high power threshold set is to control portable power source charge function is switched to the standard of discharging function;Set simultaneously Fixed power threshold low, high is to prevent electric discharge and charge function switching the most frequent, it is to avoid in default low power threshold with pre- If carrying out discharge and recharge switching in the interval of high power threshold, it is ensured that the stability of charging/discharging function.Visible, the method for the present invention can With realize portable power source charging and discharging function switching intelligent management.
Further, the control portable power source rotation in step S150 carries out discharge and recharge and also includes:
First judge whether the battery electric quantity of mobile terminal is full of, be then, control portable power source and terminate electric discharge, control further Portable power source is charged;Judge that the battery electric quantity of portable power source is full of again, be then, control portable power source complete charge.
In this process, because being that the battery electric quantity to portable power source monitors in real time, battery electric quantity once occurs Less than the situation of default low power threshold, portable power source will be controlled and suspend electric discharge, be charged function, it is ensured that portable power source Mobile terminal is charged in the case of being not less than default high power threshold by battery electric quantity.So controlling portable power source electric discharge During if there is portable power source battery electric quantity less than preset low power threshold situation, be that rotation carries out discharge and recharge in fact Function, until after the battery electric quantity of mobile terminal is full of, then control portable power source and be carried out continuously charging, until portable power source Electricity be full of, terminate whole program.
In one embodiment of the invention, the control portable power source in step S140 carries out discharge and recharge simultaneously and includes: sentence Whether the battery electric quantity of disconnected mobile terminal is full of, and is then, controls portable power source and terminates electric discharge;And, judge portable power source simultaneously Battery electric quantity whether be full of, be then, control portable power source complete charge.
Because be all control portable power source to carry out charging/discharging function, so the control portable power source in step S150 is same simultaneously Shi Jinhang discharge and recharge also includes: judge whether the battery electric quantity of mobile terminal is full of, and is then, controls portable power source and terminates electric discharge; And, it is judged that whether the battery electric quantity of portable power source is full of, and is then, controls portable power source complete charge.
The power supply interface of the indirect power supply unit in currently available technology is generally USB2.0 standard, and its permission is passed through Electric current is not more than 500mA.In order to meet USB2.0 standard, in one embodiment of the invention, will be pre-according to USB2.0 specification If discharge threshold is set to 500mA.
Method flow for making the present invention is clearer, and Fig. 2 shows that a kind of control that the embodiment of the present invention provides is moved The control flow chart of power supply discharge and recharge.As in figure 2 it is shown, after program starts, whether first detection portable power source is simultaneously connected with outside Power supply and mobile terminal.If connection external power source or a mobile terminal being detected, then control that portable power source is single is charged Or electric discharge, and judge whether portable power source or mobile terminal are full of, it is then, controls portable power source complete charge or put Electricity.
If detecting, portable power source is simultaneously connected with external power source and mobile terminal, is determined whether by USB enumeration state External power source is power supply adaptor or indirect power supply unit.If judging it is power supply adaptor, controlling portable power source and filling simultaneously Electric discharge, and judge whether the battery electric quantity of mobile terminal is full of, it is then, controls portable power source and terminate electric discharge;And, judge simultaneously Whether the battery electric quantity of portable power source is full of, and is then, controls portable power source complete charge.
If judging it is indirect power supply unit, determine whether the portable power source electric discharge electricity to mobile terminal according to USB Whether stream is more than presetting discharge threshold.Presetting discharge threshold if being not more than, controlling portable power source and carrying out discharge and recharge simultaneously, and judging Whether the battery electric quantity of mobile terminal is full of, and is then, controls portable power source and terminates electric discharge;And, judge portable power source simultaneously Whether battery electric quantity is full of, and is then, controls portable power source complete charge.
If more than presetting discharge threshold, control portable power source rotation and carry out discharge and recharge.The process of discharge and recharge is carried out in rotation In, in real time the battery electric quantity of portable power source is monitored, carries out discharge and recharge rotation according to the battery electric quantity of portable power source.First Whether the battery electric quantity of monitoring portable power source is less than presetting low power threshold.If less than presetting low power threshold, control mobile electricity Source is charged, if being not less than default low power threshold, controlling portable power source and discharging.If the battery electric quantity of portable power source It is not less than default low power threshold, carries out discharging until the battery electric quantity of portable power source is less than presetting low electricity with regard to controlling portable power source Amount threshold value, just suspends electric discharge control portable power source further and is charged, and the battery electric quantity once charging to portable power source is the lowest In default high power threshold, discharge with regard to suspending charging control portable power source further, thus preferentially ensure mobile terminal Normal work.During rotation carries out discharge and recharge, first judge whether mobile terminal is full of.If judging, mobile terminal does not fill Full, still provide for whether monitoring the battery electric quantity of portable power source less than the step presetting low power threshold;If judging, mobile terminal fills Full electricity, controls portable power source and terminates electric discharge, be charged, then judge that portable power source is the most fully charged, be then, complete charge.
The control process controlling portable power source discharge and recharge as shown in Figure 2 is a real-time detection and the process of switching, no Only single can be charged or discharge, additionally it is possible to control to carry out discharge and recharge simultaneously and rotation carries out the function of discharge and recharge, Achieve the intelligent management of portable power source charging/discharging function switching.
A kind of device schematic diagram controlling portable power source discharge and recharge that Fig. 3 provides for the embodiment of the present invention.As it is shown on figure 3, The device 300 controlling portable power source discharge and recharge includes detection module 310, control module 320 and judge module 330:
Detection module 310, is used for detecting whether portable power source is simultaneously connected with external power source and mobile terminal;
When detection module 310, control module 320, for detecting that portable power source only connects external power source or mobile terminal Time, control that portable power source is single is charged or discharges.
When detection module 310, judge module 330, for detecting that portable power source is simultaneously connected with external power source and mobile terminal Time, determine whether that external power source is power supply adaptor or indirect power supply unit by USB enumeration state;And between judging to be Connect power supply unit, determine whether that whether the portable power source discharge current to mobile terminal is more than presetting electric discharge according to USB Threshold value.
Control module 320, if being additionally operable to judge module 330 to judge that external power source is power supply adaptor or judges to move When galvanic electricity source is not more than default discharge threshold to the discharge current of mobile terminal, controls portable power source and carry out discharge and recharge simultaneously;If Judge module 330 judges that the portable power source discharge current to mobile terminal, more than when presetting discharge threshold, controls portable power source Rotation carries out discharge and recharge.
In one embodiment of the invention, it is judged that module 330, it is additionally operable to: the battery electric quantity of portable power source is carried out reality Time monitoring, it is judged that whether the battery electric quantity of portable power source less than presetting low power threshold.
Control module 320, if being additionally operable to judge module 330 to judge that the battery electric quantity of portable power source is not less than default low electricity Threshold value, control portable power source carry out discharging until portable power source battery electric quantity less than preset low power threshold, suspend discharge into One step controls portable power source and is charged.
Control module 320, if being additionally operable to judge module 330 to judge that the battery electric quantity of portable power source is less than presetting low electricity threshold Value, controls portable power source and is charged until the battery electric quantity of portable power source is not less than default high power threshold, suspend charge into One step controls portable power source and discharges.
Further, control module 320 control portable power source rotation carry out discharge and recharge time, it is judged that module 230, be additionally operable to First judge whether the battery electric quantity of mobile terminal is full of, then judge whether the battery electric quantity of portable power source is full of.
Control module 320, judges when the battery electric quantity of mobile terminal is full of if being additionally operable to judge module 330, controls to move Electric discharge is terminated in galvanic electricity source, controls portable power source further and is charged, until judge module 330 judges the battery of portable power source Electricity is full of, and controls portable power source complete charge.
In one embodiment of the invention, control module 320 control portable power source carry out discharge and recharge simultaneously time, it is judged that Module 330, is additionally operable to judge whether the battery electric quantity of mobile terminal and portable power source is full of simultaneously.
Control module 320, judges when the battery electric quantity of mobile terminal is full of if being additionally operable to judge module 330, controls to move Electric discharge is terminated in galvanic electricity source;If judge module 330 is judged when the battery electric quantity of portable power source is full of, control portable power source and terminate to fill Electricity.
In one embodiment of the invention, presetting discharge threshold according to USB2.0 specification is 500mA.
It should be noted that each embodiment of the control flow shown in Fig. 2 and Fig. 3 shown device and method shown in Fig. 1 Each embodiment correspondence is identical, is the most described in detail, does not repeats them here.
In sum, if detecting in the method for the invention, portable power source is simultaneously connected with external power source and mobile terminal Time, the type of the external power source of connection can be detected further by USB enumeration state;When detecting that external power source is indirectly to supply The when of electricity equipment, also can determine whether that whether the portable power source discharge current to mobile terminal is more than pre-according to USB If discharge threshold, and then control portable power source carries out discharge and recharge simultaneously or rotation carries out discharge and recharge.Visible, the technology of the present invention Scheme can be indirect charger or power supply adaptor automatically according to connect portable power source, it is achieved effectively controls its charging Electric current, is possible not only to single be charged or discharge, additionally it is possible to control to carry out discharge and recharge simultaneously and rotation carries out discharge and recharge Function, it is achieved that portable power source charging/discharging function switching intelligent management.
The above, the only detailed description of the invention of the present invention, under the above-mentioned teaching of the present invention, those skilled in the art Other improvement or deformation can be carried out on the basis of above-described embodiment.It will be understood by those skilled in the art that above-mentioned tool Body describes simply preferably explains the purpose of the present invention, and protection scope of the present invention should be as the criterion with scope of the claims.

Claims (10)

1. the method controlling portable power source discharge and recharge, it is characterised in that described method includes:
Detect whether described portable power source is simultaneously connected with external power source and mobile terminal;
When detecting that described portable power source only connects external power source or mobile terminal, control that described portable power source is single to be carried out Charge or discharge;
When detecting that described portable power source is simultaneously connected with external power source and mobile terminal, sentenced further by USB enumeration state Disconnected described external power source is power supply adaptor or indirect power supply unit;
If judging it is power supply adaptor, controlling described portable power source and carrying out discharge and recharge simultaneously;
If judging it is indirect power supply unit, determine whether the described portable power source electric discharge electricity to mobile terminal according to USB Whether stream, more than presetting discharge threshold, being preset discharge threshold if being not more than, being controlled described portable power source and carrying out discharge and recharge simultaneously, if More than presetting discharge threshold, control described portable power source rotation and carry out discharge and recharge.
2. the method for claim 1, it is characterised in that described control described portable power source rotation carries out discharge and recharge bag Include:
The battery electric quantity of described portable power source is monitored in real time, it is judged that whether the battery electric quantity of described portable power source is less than pre- If low power threshold;
If being not less than default low power threshold, controlling described portable power source and carrying out discharging until the battery electric quantity of described portable power source Less than presetting low power threshold, time-out electric discharge controls described portable power source further and is charged;
If less than preset low power threshold, control described portable power source be charged until the battery electric quantity of described portable power source not Less than presetting high power threshold, time-out charging controls described portable power source further and discharges.
3. method as claimed in claim 2, it is characterised in that described control described portable power source rotation carries out discharge and recharge and also wraps Include:
First judge whether the battery electric quantity of mobile terminal is full of, be then, control described portable power source and terminate electric discharge, control further Described portable power source is charged;
Judge whether the battery electric quantity of described portable power source is full of again, be then, control described portable power source complete charge.
4. the method for claim 1, it is characterised in that the described portable power source of described control carries out discharge and recharge bag simultaneously Include:
Judge whether the battery electric quantity of mobile terminal is full of, be then, control described portable power source and terminate electric discharge;
And, judge whether the battery electric quantity of described portable power source is full of simultaneously, be then, control described portable power source and terminate to fill Electricity.
5. the method for claim 1, it is characterised in that presetting discharge threshold described in foundation USB2.0 specification is 500mA.
6. the device controlling portable power source discharge and recharge, it is characterised in that described device include detection module, control module and Judge module:
Described detection module, is used for detecting whether described portable power source is simultaneously connected with external power source and mobile terminal;
When described detection module, described control module, for detecting that described portable power source only connects external power source or moves eventually During end, control that described portable power source is single to be charged or discharge;
When described detection module, described judge module, for detecting that described portable power source is simultaneously connected with external power source and moves eventually During end, determine whether that described external power source is power supply adaptor or indirect power supply unit by USB enumeration state;And sentencing Disconnected is indirect power supply unit, determines whether that described portable power source is the biggest to the discharge current of mobile terminal according to USB In default discharge threshold;
Described control module, if being additionally operable to described judge module to judge that described external power source is power supply adaptor or judges When described portable power source is not more than default discharge threshold to the discharge current of mobile terminal, controls described portable power source and carry out simultaneously Discharge and recharge;If described judge module judges that the described portable power source discharge current to mobile terminal is more than presetting discharge threshold Time, control described portable power source rotation and carry out discharge and recharge.
7. device as claimed in claim 6, it is characterised in that described judge module, is additionally operable to the electricity to described portable power source Pond electricity is monitored in real time, it is judged that whether the battery electric quantity of described portable power source is less than presetting low power threshold;
Described control module, if being additionally operable to described judge module to judge that the battery electric quantity of described portable power source is not less than default low electricity Amount threshold value, controls described portable power source and carries out discharging until the battery electric quantity of described portable power source is less than presetting low power threshold, Suspend the electric discharge described portable power source of control further to be charged;
Described control module, if being additionally operable to described judge module to judge that the battery electric quantity of described portable power source is less than presetting low electricity Threshold value, controls described portable power source and is charged until the battery electric quantity of described portable power source is not less than default high power threshold, Suspend the charging described portable power source of control further to discharge.
8. device as claimed in claim 7, it is characterised in that control described portable power source rotation in described control module and carry out During discharge and recharge, described judge module, it is additionally operable to first judge whether the battery electric quantity of mobile terminal is full of, then judges described mobile electricity Whether the battery electric quantity in source is full of;
Described control module, judges when the battery electric quantity of described mobile terminal is full of if being additionally operable to described judge module, controls Described portable power source terminates electric discharge, controls described portable power source further and is charged;Until described judge module judges institute The battery electric quantity stating portable power source is full of, and controls described portable power source complete charge.
9. device as claimed in claim 6, it is characterised in that control described portable power source in described control module and carry out simultaneously During discharge and recharge, described judge module, it is additionally operable to judge whether the battery electric quantity of mobile terminal and described portable power source is full of simultaneously;
Described control module, judges when the battery electric quantity of described mobile terminal is full of if being additionally operable to described judge module, controls Described portable power source terminates electric discharge;If described judge module is judged when the battery electric quantity of described portable power source is full of, control institute State portable power source complete charge.
10. device as claimed in claim 6, it is characterised in that be according to presetting discharge threshold described in USB2.0 specification 500mA。
CN201610702809.8A 2016-08-22 2016-08-22 A kind of method and apparatus controlling mobile power source charge and discharge Active CN106300512B (en)

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 true CN106300512A (en) 2017-01-04
CN106300512B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN109309399A (en) * 2018-11-13 2019-02-05 深圳市蓝禾技术有限公司 The charging method of mobile power source and mobile power source
CN110829521A (en) * 2019-10-29 2020-02-21 宁波龙图通讯科技有限公司 Two-partition charging circuit
WO2020097801A1 (en) * 2018-11-13 2020-05-22 深圳市蓝禾技术有限公司 Mobile power supply and discharging method for same

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN109309399A (en) * 2018-11-13 2019-02-05 深圳市蓝禾技术有限公司 The charging method of mobile power source and mobile power source
WO2020097801A1 (en) * 2018-11-13 2020-05-22 深圳市蓝禾技术有限公司 Mobile power supply and discharging method for same
CN109309399B (en) * 2018-11-13 2021-01-05 深圳市蓝禾技术有限公司 Mobile power supply and discharging method thereof
CN110829521A (en) * 2019-10-29 2020-02-21 宁波龙图通讯科技有限公司 Two-partition charging circuit

Also Published As

Publication number Publication date
CN106300512B (en) 2019-04-30

Similar Documents

Publication Publication Date Title
CN105914839B (en) A kind of Double-battery mobile phone and its battery control method and system
JP6198258B2 (en) Power supply terminal, and charging control method and apparatus
CN106300512A (en) A kind of method and apparatus controlling portable power source discharge and recharge
EP3327892A2 (en) Charging and discharging control circuit and battery pack
CN105680510A (en) Charging control method and charging control device used for electronic equipment
CN104092262B (en) Charging control device and charging control method
CN104993534B (en) A kind of mobile terminal and its charge control method
CN102055037A (en) Mobile electronic device and electric quantity managing method of battery module thereof
TWI634722B (en) Control method for battery parallel connection
CN102751762A (en) Line inspection robot as well as charging method, charging device and parameter collocation method thereof
CN103944230A (en) Charging system and method for mobile terminal and charger
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
CN105490349A (en) Power supply system and power supply method of mobile terminal
CN110994769A (en) Double-battery system and mobile terminal equipment
CN114744728A (en) Management and control method, charger and system based on android balance charging
CN104300605B (en) Power circuit and control method thereof
CN109149746A (en) A kind of control system of energy accumulation current converter, method, electronic equipment and storage medium
CN203850872U (en) Charger
WO2017113896A1 (en) Combined power supply device and combined power supply method
CN201639327U (en) Lithium battery voltage control device and testing system utilizing same
TWI460959B (en) Charging system of battery module and charging method thereof
CN202268715U (en) Charging device possessing overcharge detection protection function
CN102299550A (en) Power supply method of electronic device
WO2014190831A1 (en) Battery control method and device, terminal and computer storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20240511

Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong

Patentee after: GOERTEK TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 266061 5, 3 building, Fortune Plaza, 18 Qinling Mountains Road, Laoshan District, Qingdao, Shandong.

Patentee before: QINGDAO GOERTEK TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right