CN113013935B - Control method and system of power supply device, terminal equipment and storage medium - Google Patents

Control method and system of power supply device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113013935B
CN113013935B CN201911327975.4A CN201911327975A CN113013935B CN 113013935 B CN113013935 B CN 113013935B CN 201911327975 A CN201911327975 A CN 201911327975A CN 113013935 B CN113013935 B CN 113013935B
Authority
CN
China
Prior art keywords
battery
charging
power supply
electric quantity
main battery
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
Application number
CN201911327975.4A
Other languages
Chinese (zh)
Other versions
CN113013935A (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.)
Huizhou BYD Electronic Co Ltd
Original Assignee
Huizhou BYD Electronic 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 Huizhou BYD Electronic Co Ltd filed Critical Huizhou BYD Electronic Co Ltd
Priority to CN201911327975.4A priority Critical patent/CN113013935B/en
Publication of CN113013935A publication Critical patent/CN113013935A/en
Application granted granted Critical
Publication of CN113013935B publication Critical patent/CN113013935B/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/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

The application discloses a control method and a system of a power supply device, terminal equipment and a storage medium, wherein the control method comprises the following steps: when the power supply device is connected to a charging power supply, acquiring electric quantity values of a main battery and a standby battery; and determining a current battery charging mode from a plurality of preset battery charging modes according to the electric quantity values of the main battery and the standby battery, and controlling the charging power supply to charge the main battery and the standby battery according to the current battery charging mode. According to the control method and system for the power supply device, the terminal equipment and the storage medium, the plurality of battery charging modes are set, and when the power supply device is connected to the charging power supply, the current battery charging mode is determined from the plurality of battery charging modes according to the electric quantity values of the main battery and the standby battery, and the main battery and the standby battery are charged according to the current charging mode, so that the charging mode of the charging power supply to the power supply device is enriched, and the charging efficiency of the charging power supply to the power supply device is improved.

Description

Control method and system of power supply device, terminal equipment and storage medium
Technical Field
The present invention relates generally to the technical field of power supply devices, and in particular, to the technical field of terminal devices, and more particularly, to a control method and system for a power supply device, a terminal device, and a storage medium.
Background
Currently, terminal devices on the market generally provide electric energy required by themselves in operation through a power supply device. In order to improve the cruising ability of the terminal device, the existing power supply device is generally provided with a main battery and a standby battery for respectively supplying power to the terminal device, wherein the terminal device is charged by the standby battery after the electric quantity of the main battery is exhausted.
When the charging power supply is connected to the power supply device to charge the main battery and the standby battery, the charging mode of the charging power supply to the power supply device is as follows: and simultaneously charges the main battery and the backup battery. However, the charging mode of the charging power supply to the power supply device is relatively single, resulting in a decrease in the charging efficiency of the charging power supply to the power supply device.
Disclosure of Invention
In view of the foregoing drawbacks or shortcomings in the prior art, it is desirable to provide a control method and system of a power supply device, a terminal device, and a storage medium.
In a first aspect, the present application provides a control method of a power supply apparatus, the power supply apparatus including a main battery and a backup battery, the control method including:
When the power supply device is connected to a charging power supply, acquiring electric quantity values of a main battery and a standby battery;
And determining a current battery charging mode from a plurality of preset battery charging modes according to the electric quantity values of the main battery and the standby battery, and controlling the charging power supply to charge the main battery and the standby battery according to the current battery charging mode.
Further, the plurality of battery charging modes includes a first battery charging mode, the first battery charging mode being: charging the main battery is finished firstly, and then charging the standby battery is finished; when the electric quantity value of the main battery is lower than a preset first electric quantity threshold value or when the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the standby battery is above a preset second electric quantity threshold value, the current battery charging mode is a first battery charging mode;
And/or the plurality of battery charging modes includes a second battery charging mode, the second battery charging mode being: firstly, charging the standby battery is completed, and then charging the main battery is completed; when the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the standby battery is lower than a preset second electric quantity threshold value, the current battery charging mode is a second battery charging mode.
Further, the plurality of battery charging modes includes a third battery charging mode, the third battery charging mode being: simultaneously charging the main battery and the standby battery until the charging of the main battery and the standby battery is completed; when the electric quantity value of the main battery is above a preset first electric quantity threshold value and the electric quantity value of the main battery is the same as the electric quantity value of the standby battery, the current battery charging mode is a third battery charging mode.
Further, the control method further includes:
when the power supply device is not connected with a charging power supply, acquiring the electric quantity value of the main battery;
and judging whether the electric quantity value of the main battery is lower than a preset third electric quantity threshold value, and controlling the standby battery to charge the main battery when the electric quantity value of the main battery is lower than the third electric quantity threshold value.
Further, the backup battery includes a plurality of sub-batteries, and controlling the backup battery to charge the main battery includes:
and sequentially controlling the corresponding sub-batteries to charge the main battery according to a preset charging sequence.
In a second aspect, the present application also provides a control system of a power supply apparatus, the power supply apparatus including a main battery and a backup battery, the control system including:
the acquisition unit is used for acquiring the electric quantity values of the main battery and the standby battery when the power supply device is connected to the charging power supply;
a determining unit for determining a current battery charging mode from a plurality of preset battery charging modes according to the electric quantity values of the main battery and the standby battery;
and the processing unit is used for controlling the charging power supply to charge the main battery and the standby battery according to the current battery charging mode.
Further, the plurality of battery charging modes includes a first battery charging mode and/or a second battery charging mode, the first battery charging mode being: charging of the main battery is finished firstly, charging of the standby battery is finished, and the second battery charging mode is as follows: firstly, charging the standby battery is completed, and then charging the main battery is completed;
the determination unit includes:
the judging module is used for judging whether the electric quantity value of the main battery is lower than a preset first electric quantity threshold value or not and judging whether the electric quantity value of the standby battery is above a preset second electric quantity threshold value or not;
The determining module is used for determining that the current battery charging mode is a first battery charging mode when the electric quantity value of the main battery is lower than a first electric quantity threshold value or when the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the standby battery is above a second electric quantity threshold value; and/or determining that the current battery charging mode is the second battery charging mode when the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the standby battery is lower than the second electric quantity threshold value.
Further, the plurality of battery charging modes includes a third battery charging mode, the third battery charging mode being: simultaneously charging the main battery and the standby battery until the charging of the main battery and the standby battery is completed;
the determination unit includes:
The judging module is used for judging whether the electric quantity value of the main battery is above a preset first electric quantity threshold value and judging whether the electric quantity value of the main battery is the same as the electric quantity value of the standby battery;
And the determining module is used for determining that the current battery charging mode is the third battery charging mode when the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the main battery is the same as the electric quantity value of the standby battery.
Further, the obtaining unit is further configured to obtain an electric quantity value of the main battery when the power supply device is not connected to the charging power supply;
the control system further comprises a judging unit, a control unit and a control unit, wherein the judging unit is used for judging whether the electric quantity value of the main battery is lower than a preset third electric quantity threshold value;
the processing unit is further configured to control the backup battery to charge the main battery when the power value of the main battery is lower than the third power threshold.
Further, the standby battery comprises a plurality of sub-batteries, and the processing unit is used for sequentially controlling the corresponding sub-batteries to charge the main battery according to a preset charging sequence.
In a third aspect, the present application also provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the control method when executing the program.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the control method described above.
According to the control method and system for the power supply device, the terminal equipment and the storage medium, the plurality of battery charging modes are set, and when the power supply device is connected to the charging power supply, the current battery charging mode is determined from the plurality of battery charging modes according to the electric quantity values of the main battery and the standby battery, and the main battery and the standby battery are charged according to the current charging mode, so that the charging mode of the charging power supply to the power supply device is enriched, and the charging efficiency of the charging power supply to the power supply device can be improved by matching the appropriate battery charging modes according to the electric quantity values of the main battery and the standby battery.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a control method of a power supply device according to an embodiment of the present application;
fig. 2 is a block diagram of a control system of a power supply device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the application are shown in the drawings.
The power supply device provided by the application is used for providing the electric energy required by operation for the terminal equipment with the power supply device. The main battery 100 and the standby battery 200 in the power supply device may be batteries having a charging function, and the main battery 100 and the standby battery 200 may be, for example, but not limited to, lithium batteries, or the like. The charging power supply can be a power adapter or a mobile power supply such as a charger. The terminal equipment comprises, but is not limited to, a mobile phone, a notebook, a tablet computer, a POS machine and the like. Of course, the application object of the power supply device is not limited to the terminal device, and can be applied to other devices needing power supply.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Referring to fig. 1, the present application provides a control method of a power supply device, the power supply device includes a main battery 100 and a standby battery 200, the control method includes:
Step S10: when the power supply device is connected to a charging power supply, electric quantity values of the main battery 100 and the standby battery 200 are obtained;
Step S20: the current battery charging mode is determined from a preset plurality of battery charging modes according to the electric quantity values of the main battery 100 and the standby battery 200, and the charging power supply is controlled to charge the main battery 100 and the standby battery 200 according to the current battery charging mode.
In this embodiment, the charging power source can be used to charge the main battery 100 and the backup battery 200 in the power supply device when the charging power source is connected to the power supply device. The battery charging mode is a charging mode of the main battery 100 and the backup battery 200 by the charging power source, and at least includes a charging sequence of the main battery 100 and the backup battery 200 by the charging power source, and the like. When the power supply device is connected to the charging power supply, the electric quantity values of the main battery 100 and the standby battery 200 are obtained first, then the current battery charging mode is determined from the battery charging modes according to the electric quantity values of the main battery 100 and the standby battery 200, and then the charging power supply is controlled to charge the main battery 100 and the standby battery 200 according to the determined current battery charging mode.
When the power supply device is connected to the charging power supply, there are various situations in the power supply device for the power values of the main battery 100 and the standby battery 200, that is, there are various situations in the power supply device for the power values. In this embodiment, by setting a plurality of battery charging modes to respectively match the charging modes of the charging power source to the power supply device having different electric quantity values, not only are the charging modes of the charging power source to the power supply device enriched, but also the charging efficiency of the charging power source to the power supply device can be improved by matching the suitable battery charging modes according to the electric quantity values of the main battery 100 and the standby battery 200 in the power supply device.
It should be understood that the charging power source should ensure that the charging power source maintains a normal power supply state during the completion of charging the main battery 100 and the backup battery 200 to avoid a situation in which the charging power source cannot complete charging the main battery 100 and the backup battery 200. If the charging power supply fails to continue charging or the power supply device is pulled out when the charging of the main battery 100 and the standby battery 200 is not completed, the step of controlling the charging power supply to charge the main battery 100 and the standby battery 200 according to the current battery charging mode is stopped. When the power supply device is again connected to the charging power source, the steps in the present embodiment are re-executed.
In some preferred embodiments, the plurality of battery charging modes includes a first battery charging mode, the first battery charging mode being: charging of the main battery 100 is completed first, and then charging of the backup battery 200 is completed; wherein, when the electric quantity value of the main battery 100 is lower than a preset first electric quantity threshold value or when the electric quantity value of the main battery 100 is above the first electric quantity threshold value and the electric quantity value of the standby battery 200 is above a preset second electric quantity threshold value, the current battery charging mode is a first battery charging mode;
And/or the plurality of battery charging modes includes a second battery charging mode, the second battery charging mode being: charging of the spare battery 200 is completed first, and then charging of the main battery 100 is completed; when the electric quantity value of the main battery 100 is above the first electric quantity threshold value and the electric quantity value of the standby battery 200 is below a preset second electric quantity threshold value, the current battery charging mode is the second battery charging mode.
In this embodiment, the plurality of battery charging modes includes a first battery charging mode and/or a second battery charging mode. The first battery charging mode is: charging of the main battery 100 is completed first, and then charging of the backup battery 200 is completed. The second battery charging mode is: charging of the backup battery 200 is completed first, and then charging of the main battery 100 is completed.
After the electric quantity values of the main battery 100 and the backup battery 200 are acquired, when the electric quantity value of the main battery 100 is lower than a preset first electric quantity threshold value, the current battery charging mode determined from the plurality of battery charging modes is a first battery charging mode. When the electric quantity value of the main battery 100 is above the first electric quantity threshold value and the electric quantity value of the backup battery 200 is above the preset second electric quantity threshold value, the current battery charging mode determined from the plurality of battery charging modes is also the first battery charging mode. When the electric quantity value of the main battery 100 is above the first electric quantity threshold value and the electric quantity value of the standby battery 200 is below a preset second electric quantity threshold value, the current battery charging mode determined from the plurality of battery charging modes is the second battery charging mode.
Wherein, the charging power supply is controlled to charge the main battery 100 and the standby battery 200 according to the first battery charging mode specifically comprises: the charging power supply is controlled to charge the main battery 100 first, and after the charging of the main battery 100 by the charging power supply is completed, the standby battery 200 is charged until the charging is completed. The control of the charging power supply to charge the main battery 100 and the backup battery 200 according to the second battery charging mode is specifically: the charging power supply is controlled to charge the standby battery 200 first, and after the charging of the standby battery 200 by the charging power supply is completed, the main battery 100 is charged until the charging is completed.
The range of the first power threshold is, for example, but not limited to, 20% or more and less than 100% of the rated capacity value of the main battery 100, e.g., the first power threshold is 60%, 75%, 80% or the like of the rated capacity value of the main battery 100. The second power threshold may range, for example, but not limited to, 5% to 60% of the rated capacity value of the main battery 100, e.g., the second power threshold may be 20%, 35%, 40% of the rated capacity value of the main battery 100, etc.
In this embodiment, when the electric quantity value of the main battery 100 is lower than the first electric quantity threshold or when the electric quantity value of the main battery 100 is higher than the first electric quantity threshold and the electric quantity value of the standby battery 200 is higher than the second electric quantity threshold, the charging power supply is controlled to preferentially complete charging of the main battery 100, and when the electric quantity value of the main battery 100 is higher than the first electric quantity threshold and the electric quantity value of the standby battery 200 is lower than the preset second electric quantity threshold, the charging of the standby battery 200 is controlled to preferentially complete, so that matching of proper charging modes for power supply devices in different use cases is realized, charging efficiency of the charging power supply to the power supply device is improved, and meanwhile, sufficient electric quantity of the main battery 100 can be preferentially ensured under the condition that charging time of the charging power supply has uncertainty.
It should be understood that the main battery 100 in the power supply device may be the main power supply to the terminal device, or may be the only power supply to the terminal device. In the former case, both the main battery 100 and the backup battery 200 may separately supply power to the terminal device. In the latter case, the backup battery 200 supplies power to the main battery 100, and the main battery 100 supplies power to the terminal device. Further, the completion of charging of the main battery 100 in the present application can be understood as: the charge of the main battery 100 is charged to a first completion value, which is greater than a first charge threshold. The first completion value is, for example, but not limited to, a rated capacity value of the main battery 100. Similarly, the completion of the charging of the backup battery 200 in the present application can be understood as: the power of the backup battery 200 is charged to a second completion value, which is greater than the second power threshold. The second completion value is, for example, but not limited to, the rated capacity value of the backup battery 200.
In some preferred embodiments, the plurality of battery charging modes includes a third battery charging mode, the third battery charging mode being: simultaneously charging the main battery 100 and the standby battery 200 until the charging of the main battery 100 and the standby battery 200 is completed; when the power level of the main battery 100 is above a preset first power level threshold and the power level of the main battery 100 is the same as the power level of the backup battery 200, the current battery charging mode is a third battery charging mode, and the first power level threshold is greater than the second power level threshold.
In the present embodiment, after the electric quantity values of the main battery 100 and the backup battery 200 are obtained, when the electric quantity value of the main battery 100 is above a preset first electric quantity threshold value and the electric quantity value of the main battery 100 is the same as the electric quantity value of the backup battery 200, the current battery charging mode determined from the plurality of battery charging modes is the third battery charging mode.
Wherein, the charging power supply is controlled to charge the main battery 100 and the standby battery 200 according to the third battery charging mode specifically comprises: the charging power supply is controlled to charge the main battery 100 and the backup battery 200 at the same time until the charging of the main battery 100 and the backup battery 200 is completed. In this embodiment, since the electric quantity value of the main battery 100 is above the preset first electric quantity threshold and the electric quantities of the main battery 100 and the standby battery 200 are the same, it is indicated that the electric quantities of the main battery 100 and the standby battery 200 are all relatively large, and the control method can be optimized by charging the main battery 100 and the standby battery 200 at the same time, so as to simplify the charging control process.
Further, after the electric quantity values of the main battery 100 and the backup battery 200 are acquired, when the electric quantity value of the main battery 100 is above a first electric quantity threshold value and the electric quantity value of the backup battery 200 is above a preset second electric quantity threshold value and is different from the electric quantity value of the main battery 100, the current battery charging mode determined from the plurality of battery charging modes is the first battery charging mode.
In some preferred embodiments, the control method further comprises:
When the power supply device is not connected to the charging power supply, acquiring the electric quantity value of the main battery 100;
whether the electric quantity value of the main battery 100 is lower than a preset third electric quantity threshold value is judged, and when the electric quantity value of the main battery 100 is lower than the third electric quantity threshold value, the standby battery 200 is controlled to charge the main battery 100.
In this embodiment, when the power supply device is not connected to the charging power source, the power value of the main battery 100 is obtained first, and then it is determined whether the power value of the main battery 100 is lower than a preset third power threshold. When the power value of the main battery 100 is above the third power threshold, it is indicated that the main battery 100 may still provide a certain power to the terminal device to maintain the operation of the terminal device; when the electric quantity value of the main battery 100 is lower than the third electric quantity threshold, it is indicated that the remaining electric quantity of the main battery 100 is lower at this time, and the standby battery 200 is turned on to charge the main battery 100, so as to increase the electric quantity of the main battery 100. Since the main battery 100 is used for supplying power to the terminal device, when the electric quantity of the main battery 100 is increased, the cruising ability of the terminal device can be increased. Meanwhile, in this embodiment, when the electric quantity of the main battery 100 is lower than the third electric quantity threshold, the standby battery 200 is adopted to directly charge the main battery 100, so that the power supply device does not need to perform power-off processing when the electric energy of the standby battery 200 is used by the terminal device, and the use body feeling of the user on the aspect of the endurance time of the terminal device is improved. In addition, the existing charging mode for the main battery 100 in the power supply device is only a power adapter and a mobile power source such as a charger, and in this embodiment, the main battery 100 is charged by the standby battery 200, which breaks the existing charging mode for charging the main battery 100 in the power supply device and enriches the charging modes of the main battery 100 in the power supply device.
It should be appreciated that the third charge threshold may range from, for example, but not limited to, 2% to 30% of the rated capacity of the main battery 100. For example, the third power threshold is 10% or 20% of the rated capacity of the main battery 100, or the like.
In some preferred embodiments, the backup battery 200 includes a plurality of sub-batteries, and controlling the backup battery 200 to charge the main battery 100 includes: the corresponding sub-batteries are sequentially controlled to charge the main battery 100 in a preset charging sequence.
In the present embodiment, the backup battery 200 includes a plurality of sub-batteries, each of which can charge the main battery 100. The plurality of sub-batteries sequentially charge the main battery 100 in a preset charging sequence, specifically: when the standby battery 200 is required to charge the main battery 100 each time, the first sub-battery in the charging sequence is first turned on to charge the main battery 100, and if the electric quantity of the sub-battery decreases to a preset value, the next sub-battery in the charging sequence is turned on to charge the main battery 100, and so on until the charging of the main battery 100 is completed. Of course, in some other embodiments, multiple sub-cells may be connected in series to charge the main cell 100 at the same time.
Wherein the charging sequence of the plurality of sub-batteries is, for example and without limitation, according to the placement sequence of the sub-batteries, etc. The preset value may be set according to the actual use requirement, and the range of the preset value is, for example, but not limited to, 5% or less of the total amount of the electric energy of the main battery 100. For example, the preset value is 3% or 5% of the total amount of electric power of the main battery 100, etc.
In some preferred embodiments, the sub-battery charges the main battery 100 according to a preset charging voltage and charging current. The preset charging voltage and charging current may be the rated charging voltage and current of the main battery 100 or be lower than the rated charging voltage and current of the main battery 100, so that the sub-battery charges the main battery 100 with a suitable current, thereby avoiding damage to the performance of the main battery 100.
In some preferred embodiments, before controlling the current sub-battery to charge the main battery 100, it further comprises:
Acquiring the power supply condition of the current sub-battery, wherein the power supply condition at least comprises one or more of a temperature value, a voltage value and a current value of the battery;
Judging whether the power supply condition of the current sub-battery meets the preset power supply condition, and controlling the current sub-battery to charge the main battery 100 when the power supply condition meets the power supply condition; when the power supply condition is not met, the next sub-battery in the charging order is controlled to charge the main battery 100.
In this embodiment, in order to provide protection for the main battery 100 and the sub-battery, it is also necessary to detect the power supply condition of the current sub-battery before controlling the current sub-battery to charge the main battery 100. Specifically, the power supply condition of the current sub-battery is obtained, and then the power supply condition is compared with the power supply condition to judge whether the power supply condition is met. When the power supply condition does not meet the power supply condition, that is, the current sub-battery does not meet the power supply condition to the main battery 100, controlling the next sub-battery in the charging sequence to charge the main battery 100; when the power supply condition meets the power supply condition, that is, the current sub-battery meets the power supply condition to the main battery 100, the current sub-battery is controlled to charge the main battery 100.
Wherein the power supply condition includes at least one or more of a temperature value, a voltage value, and a current value of the battery. The power supply condition then corresponds in parameters to the power supply condition, for example: the power supply condition includes a temperature threshold value when the power supply condition includes a voltage value of the battery, the power supply condition includes a voltage upper limit threshold value and a voltage lower limit threshold value when the power supply condition includes a current value inside the battery, and the power supply condition includes a current threshold value. When the temperature value of the current sub-battery is higher than the temperature threshold value, the current sub-battery is in an over-temperature condition; when the voltage value of the current sub-battery is higher than the upper voltage threshold, the current sub-battery is in an overvoltage condition; when the voltage value of the current sub-battery is lower than the voltage lower limit threshold value, the current sub-battery is in an overdischarge state; and when the current value inside the current sub-battery is higher than the current threshold value, indicating that the current sub-battery is in an overcurrent condition.
In some preferred embodiments, to provide protection for the rechargeable battery, before controlling the charging power source to charge the main battery 100 and the backup battery 200, it further includes:
acquiring power supply conditions of the main battery 100 and the backup battery 200;
Judging whether the power supply conditions of the main battery 100 and the standby battery 200 meet preset power supply conditions or not respectively, and controlling a charging power supply to charge the main battery 100 and the standby battery 200 when the power supply conditions of the main battery 100 and the standby battery 200 meet the power supply conditions; when the power supply condition of the main battery 100 does not meet the power supply condition, the charging power supply is controlled not to charge the main battery 100, or when the power supply condition of the backup battery 200 does not meet the power supply condition, the charging power supply is controlled not to charge the backup battery 200.
Referring to fig. 2, the present application further provides a control system of a power supply device, the power supply device includes a main battery 100 and a standby battery 200, and the control system includes:
An acquisition unit 310 for acquiring the electric power values of the main battery 100 and the backup battery 200 when the power supply device is connected to the charging power source;
a determining unit 320 for determining a current battery charging mode from among a plurality of battery charging modes preset according to the electric quantity values of the main battery 100 and the standby battery 200;
the processing unit 330 is configured to control the charging power source to charge the main battery 100 and the standby battery 200 according to the current battery charging mode.
In this embodiment, a charging circuit is provided in the power supply device to charge the main battery 100 and the standby battery 200 by the charging power supply, and the charging circuit may be a wired or wireless charging circuit. The devices for measuring the electric power of the main battery 100 and the standby battery 200 are, for example and not limited to, general power management chips for managing the operation of the batteries, including detecting the electric power of the batteries, controlling the charge and discharge states and charge and discharge parameters of the batteries, and obtaining the power supply condition of the batteries. The acquisition unit 310 may read the amounts of electricity of the main battery 100 and the backup battery 200, the power supply condition, and the like from the power management chip. The main battery 100 is connected with a first power management chip, the standby battery 200 is connected with a second power management chip, the first power management chip can be integrated on the main battery 100, the second power management chip can be integrated on the standby battery 200, and the main battery 100 and the standby battery 200 are connected with the outside through the corresponding power management chips.
In some preferred embodiments, the plurality of battery charging modes includes a first battery charging mode and/or a second battery charging mode, the first battery charging mode being: charging of the main battery 100 is completed first, and then charging of the standby battery 200 is completed, and the second battery charging mode is: charging of the spare battery 200 is completed first, and then charging of the main battery 100 is completed;
The determining unit 320 includes:
A judging module, configured to judge whether the electric quantity value of the main battery 100 is lower than a preset first electric quantity threshold value and whether the electric quantity value of the standby battery 200 is above a preset second electric quantity threshold value;
A determining module, configured to determine that the current battery charging mode is the first battery charging mode when the electric quantity value of the main battery 100 is lower than the first electric quantity threshold value or when the electric quantity value of the main battery 100 is above the first electric quantity threshold value and the electric quantity value of the backup battery 200 is above the second electric quantity threshold value; and/or for determining that the current battery charging mode is the second battery charging mode when the electric quantity value of the main battery 100 is above the first electric quantity threshold value and the electric quantity value of the backup battery 200 is below the second electric quantity threshold value.
In some preferred embodiments, when the charging power supply charges the main battery 100 or the standby battery 200, the obtaining unit 310 is further configured to obtain a current electric power value of the main battery 100 or the standby battery 200, the determining module is further configured to determine whether the current electric power value of the main battery 100 reaches a first completion value or determine whether the current electric power value of the standby battery 200 reaches a second completion value, and the processing unit 330 is configured to control the charging power supply to stop charging the main battery 100 when the current electric power value of the main battery 100 reaches the first completion value or control the charging power supply to stop charging the standby battery 200 when the current electric power value of the standby battery 200 reaches the second completion value.
In some preferred embodiments, the plurality of battery charging modes includes a third battery charging mode, the third battery charging mode being: simultaneously charging the main battery 100 and the standby battery 200 until the charging of the main battery 100 and the standby battery 200 is completed;
The determining unit 320 includes:
A judging module, configured to judge whether the electric quantity value of the main battery 100 is above a preset first electric quantity threshold value and whether the electric quantity value of the main battery 100 is the same as the electric quantity value of the standby battery 200;
A determining module, configured to determine that the current battery charging mode is the third battery charging mode when the electric quantity value of the main battery 100 is above the first electric quantity threshold value and the electric quantity value of the main battery 100 is the same as the electric quantity value of the backup battery 200.
In some preferred embodiments, the obtaining unit 310 is further configured to obtain the electric power value of the main battery 100 when the power supply device is not connected to the charging power source;
the control system further includes a judging unit for judging whether the electric quantity value of the main battery 100 is lower than a preset third electric quantity threshold value;
The processing unit 330 is further configured to control the backup battery 200 to charge the main battery 100 when the power level value of the main battery 100 is lower than the third power level threshold.
In some preferred embodiments, the standby battery 200 includes a plurality of sub-batteries, and the processing unit 330 is configured to sequentially control the respective sub-batteries to charge the main battery 100 according to a preset charging sequence.
In some preferred embodiments, the obtaining unit 310 is further configured to obtain the power value of the current sub-battery before turning on the current sub-battery to charge the main battery 100, the determining unit is further configured to determine whether the power value of the current sub-battery is below a preset value, and the processing unit 330 is further configured to turn on the next sub-battery in the charging sequence to charge the main battery 100 when the power value of the current sub-battery is below the preset value.
In some preferred embodiments, the obtaining unit 310 is further configured to obtain the power supply status of the current sub-battery before controlling the current sub-battery to charge the main battery 100; the determining unit is further configured to determine whether the power supply condition of the current sub-battery meets a preset power supply condition, and the processing unit 330 is further configured to control the current sub-battery to charge the main battery 100 when the power supply condition of the current sub-battery meets the power supply condition, and control the next sub-battery in the charging sequence to charge the main battery 100 when the power supply condition does not meet the power supply condition.
In some preferred embodiments, the obtaining unit 310 is further configured to obtain power supply conditions of the main battery 100 and the backup battery 200 before controlling the charging power source to charge the main battery 100 and the backup battery 200; the determining unit is further configured to determine whether the power supply conditions of the main battery 100 and the standby battery 200 are both in accordance with the preset power supply condition, and the processing unit 330 is further configured to charge the main battery 100 and the standby battery 200 by the charging power source when the power supply conditions of the main battery 100 and the standby battery 200 are both in accordance with the power supply condition, and to control the charging power source not to charge the main battery 100 when the power supply condition of the main battery 100 is not in accordance with the power supply condition or to control the charging power source not to charge the standby battery 200 when the power supply condition of the standby battery 200 is not in accordance with the power supply condition, respectively.
It should be understood that each unit or module described in the control system corresponds to each step in the method described in the above embodiment. Thus, the operations and features described above for the method are equally applicable to the control system and its contained units, and are not described here in detail.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 3, the computer device 400 includes a central processing unit 330 (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section into a Random Access Memory (RAM) 403. In the RAM403, various programs and data required for the system operation are also stored. The CPU401, ROM 402, and RAM403 are connected to each other by a bus 403. An input/output (I/O) interface 405 is also connected to bus 403.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drives are also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, the process described above with reference to flowchart 1 may be implemented as a computer software program according to an embodiment of the application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the control method of the respective embodiments described above. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 401.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium is, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases. The described units or modules may also be provided in a processor, for example, as: a processor includes an acquisition unit 310, a determination unit 320, a processing unit 330, and the like. The names of these units or modules do not constitute limitations on the units or modules themselves in some cases, and for example, the processing unit 330 may also be described as "a unit for controlling the charging power source to charge the main battery 100 and the backup battery 200 in accordance with the current battery charging mode".
As another aspect, the present application also provides a computer-readable medium that may be contained in the terminal device described in the above embodiment; or may exist alone without being fitted into the terminal device. The computer-readable medium carries one or more programs which, when executed by a terminal device, cause the terminal device to implement the control method as described in the above embodiment.
For example, the terminal device may implement a control method as shown in fig. 1: step S10: when the power supply device is connected to a charging power supply, electric quantity values of the main battery 100 and the standby battery 200 are obtained; step S20: the current battery charging mode is determined from a preset plurality of battery charging modes according to the electric quantity values of the main battery 100 and the standby battery 200, and the charging power supply is controlled to charge the main battery 100 and the standby battery 200 according to the current battery charging mode.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware.
Furthermore, the terms "first," "second," and the like, herein are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implying a number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (9)

1. A control method of a power supply apparatus, the power supply apparatus including a main battery and a backup battery, the control method comprising:
when the power supply device is connected to a charging power supply, acquiring electric quantity values of the main battery and the standby battery;
Determining a current battery charging mode from a plurality of preset battery charging modes according to the electric quantity values of the main battery and the standby battery, and controlling the charging power supply to charge the main battery and the standby battery according to the current battery charging mode until charging is completed, wherein the plurality of battery charging modes comprise a first battery charging mode, a second battery charging mode and a third battery charging mode, and the first battery charging mode is that charging of the main battery is completed firstly and charging of the standby battery is completed secondly; the second battery charging mode is: firstly, charging the standby battery is completed, and then charging the main battery is completed; the third battery charging mode is: simultaneously charging the main battery and the standby battery until the charging of the main battery and the standby battery is completed;
wherein determining a current battery charging mode from a plurality of preset battery charging modes according to the electric quantity values of the main battery and the standby battery comprises:
Determining that the current battery charging mode is the first battery charging mode when the electric quantity value of the main battery is lower than a preset first electric quantity threshold value or when the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the standby battery is above a preset second electric quantity threshold value;
When the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the standby battery is lower than a preset second electric quantity threshold value, determining that the current battery charging mode is the second battery charging mode;
when the electric quantity value of the main battery is above a preset first electric quantity threshold value and the electric quantity value of the main battery is the same as the electric quantity value of the standby battery, determining that the current battery charging mode is the third battery charging mode;
wherein, still include:
when the power supply device is not connected with the charging power supply, acquiring an electric quantity value of the main battery;
and judging whether the electric quantity value of the main battery is lower than a preset third electric quantity threshold value, and charging the main battery through the standby battery when the electric quantity value of the main battery is lower than the third electric quantity threshold value.
2. The control method of the power supply device according to claim 1, wherein the backup battery includes a plurality of sub-batteries, the main battery is charged by the backup battery, comprising:
and charging the main battery through the plurality of sub-batteries in sequence according to a preset charging sequence.
3. The control method of the power supply device according to claim 2, wherein the plurality of sub-batteries sequentially charge the main battery, comprising:
and the plurality of sub-batteries charge the main battery in sequence according to a preset charging voltage and a preset charging current.
4. The control method of the power supply device according to claim 3, further comprising, before sequentially charging the main battery through the plurality of sub-batteries in a preset charging order:
The method comprises the steps of sequentially obtaining the current power supply condition of each sub-battery according to a preset charging sequence, wherein the power supply condition at least comprises one or more of a temperature value, a voltage value and a current value of the sub-battery;
judging whether the current power supply condition of the sub-battery meets the preset power supply condition or not;
If yes, the sub-battery is controlled to charge the main battery;
and if the current sub-battery does not meet the preset charging sequence, controlling the next sub-battery of the sub-battery to charge the main battery.
5. A control method of a power supply device according to claim 3, wherein,
The standby battery supplies power to the main battery, and the main battery supplies power to the terminal equipment.
6. The method of controlling a power supply device according to claim 1, wherein before the controlling the charging power source to charge the main battery and the backup battery in the current battery charging mode, further comprises:
acquiring power supply conditions of the main battery and the standby battery;
Judging whether the power supply conditions of the main battery and the standby battery meet preset power supply conditions or not respectively;
If the power supply conditions of the main battery and the standby battery meet the preset power supply conditions, controlling the charging power supply to charge the main battery and the standby battery according to the current battery charging mode;
If the power supply condition of the main battery does not meet the preset power supply condition, the charging power supply is forbidden to charge the main battery according to the current battery charging mode; or if the power supply condition of the standby battery does not meet the preset power supply condition, prohibiting the charging power supply from charging the standby battery according to the current battery charging mode.
7. A control system of a power supply apparatus, the power supply apparatus including a main battery and a backup battery, the control system comprising:
the acquisition unit is used for acquiring the electric quantity values of the main battery and the standby battery when the power supply device is connected to a charging power supply;
A determining unit, configured to determine a current battery charging mode from a plurality of preset battery charging modes according to the electric quantity values of the main battery and the standby battery, where the plurality of battery charging modes includes a first battery charging mode, a second battery charging mode and a third battery charging mode, and the first battery charging mode is that charging of the main battery is completed first and charging of the standby battery is completed later; the second battery charging mode is: firstly, charging the standby battery is completed, and then charging the main battery is completed; the third battery charging mode is: simultaneously charging the main battery and the standby battery until the charging of the main battery and the standby battery is completed;
the processing unit is used for controlling the charging power supply to charge the main battery and the standby battery according to the current battery charging mode until the charging is completed;
The determining unit is specifically configured to determine that the current battery charging mode is the first battery charging mode when the electric quantity value of the main battery is lower than a preset first electric quantity threshold value or when the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the backup battery is above a preset second electric quantity threshold value;
When the electric quantity value of the main battery is above the first electric quantity threshold value and the electric quantity value of the standby battery is lower than a preset second electric quantity threshold value, determining that the current battery charging mode is the second battery charging mode;
when the electric quantity value of the main battery is above a preset first electric quantity threshold value and the electric quantity value of the main battery is the same as the electric quantity value of the standby battery, determining that the current battery charging mode is the third battery charging mode;
Wherein, the device also comprises an acquisition judging module,
The acquisition judging module is used for acquiring the electric quantity value of the main battery when the power supply device is not connected to the charging power supply;
judging whether the electric quantity value of the main battery is lower than a preset third electric quantity threshold value or not;
And when the electric quantity value of the main battery is lower than the third electric quantity threshold value, charging the main battery through the standby battery.
8. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the control method according to any one of claims 1-6 when executing the program.
9. A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the control method according to any one of claims 1-6.
CN201911327975.4A 2019-12-20 2019-12-20 Control method and system of power supply device, terminal equipment and storage medium Active CN113013935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911327975.4A CN113013935B (en) 2019-12-20 2019-12-20 Control method and system of power supply device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911327975.4A CN113013935B (en) 2019-12-20 2019-12-20 Control method and system of power supply device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113013935A CN113013935A (en) 2021-06-22
CN113013935B true CN113013935B (en) 2024-07-16

Family

ID=76381766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911327975.4A Active CN113013935B (en) 2019-12-20 2019-12-20 Control method and system of power supply device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113013935B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116961197B (en) * 2023-09-20 2023-12-12 智控万联(常州)新能源有限公司 Energy storage method and energy storage system of battery module

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340156A (en) * 2010-07-26 2012-02-01 联想(北京)有限公司 Charging and discharging method for terminal and terminal
CN109194788A (en) * 2018-09-20 2019-01-11 Oppo广东移动通信有限公司 Electronic equipment and electronic equipment charging method
CN110176643A (en) * 2019-05-14 2019-08-27 上海摩软通讯技术有限公司 A kind of charging method, method of supplying power to, power supply management device and terminal device
CN110213406A (en) * 2019-05-05 2019-09-06 珠海格力电器股份有限公司 Folding electronic equipment
CN110445202A (en) * 2018-05-04 2019-11-12 北京握奇智能科技有限公司 Charging method, control device, system and its wearable device of wearable device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2608353B1 (en) * 2011-12-22 2016-03-09 BlackBerry Limited Power distribution network based on multiple charge storage components

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340156A (en) * 2010-07-26 2012-02-01 联想(北京)有限公司 Charging and discharging method for terminal and terminal
CN110445202A (en) * 2018-05-04 2019-11-12 北京握奇智能科技有限公司 Charging method, control device, system and its wearable device of wearable device
CN109194788A (en) * 2018-09-20 2019-01-11 Oppo广东移动通信有限公司 Electronic equipment and electronic equipment charging method
CN110213406A (en) * 2019-05-05 2019-09-06 珠海格力电器股份有限公司 Folding electronic equipment
CN110176643A (en) * 2019-05-14 2019-08-27 上海摩软通讯技术有限公司 A kind of charging method, method of supplying power to, power supply management device and terminal device

Also Published As

Publication number Publication date
CN113013935A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
US9887571B1 (en) Combining power from an internal battery and an external power storage adapter
US10978896B2 (en) High efficiency power storage adapter
US10250052B2 (en) Charge rate optimization for enhanced battery cycle life
JP2009296868A (en) Intelligent battery charging rate management method and device
CN111509806A (en) Battery equalization management method, device, equipment and storage medium
US20190064914A1 (en) Power storage adapter for efficient supply of power of multiple portable information handling systems
CN104505551B (en) A kind of charging circuit of charging method and wearable device
CN1996701A (en) Battery charging management system and method
CN109256825B (en) Charging method and electronic device
US10673271B2 (en) Efficient charging of multiple portable information handling systems based on learned charging characteristics
EP0965906A2 (en) Calibrating rechargeable battery
EP4385801A1 (en) Discharge control method and apparatus, electronic device, and storage medium
CN115742882A (en) Battery energy management method and device, electronic equipment and vehicle
CN113612295B (en) Emergency energy storage battery electric energy management method, device and medium
CN113013935B (en) Control method and system of power supply device, terminal equipment and storage medium
CN114454766A (en) Power battery charging method, system and equipment
CN110380476A (en) Charge control method, device, equipment and storage medium
EP3148038B1 (en) Charging control method and apparatus, terminal and computer storage medium
CN114977340A (en) Battery charging method, device, equipment and storage medium of charging cabinet
CN114221403B (en) Charging method and charging device
CN115513545A (en) Electric quantity control method and device, computer readable storage medium and equipment
KR102554505B1 (en) Apparatus and method for diagnosing battery
CN112820961B (en) Quick charging method, device and system of energy storage equipment and storage medium
CN114844176A (en) Battery charging and discharging power control method and device and electronic equipment
CN111157907B (en) Detection method and device, charging method and device, electronic device and storage medium

Legal Events

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