CN112448429B - Control method, terminal and computer storage medium - Google Patents

Control method, terminal and computer storage medium Download PDF

Info

Publication number
CN112448429B
CN112448429B CN201910817879.1A CN201910817879A CN112448429B CN 112448429 B CN112448429 B CN 112448429B CN 201910817879 A CN201910817879 A CN 201910817879A CN 112448429 B CN112448429 B CN 112448429B
Authority
CN
China
Prior art keywords
module
power
power supply
supply module
current
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
CN201910817879.1A
Other languages
Chinese (zh)
Other versions
CN112448429A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910817879.1A priority Critical patent/CN112448429B/en
Publication of CN112448429A publication Critical patent/CN112448429A/en
Application granted granted Critical
Publication of CN112448429B publication Critical patent/CN112448429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • 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/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • H02J9/06Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems
    • H02J9/061Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source with automatic change-over, e.g. UPS systems for DC powered loads

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the application discloses a control method, a terminal and a computer storage medium, wherein the method comprises the following steps: if the first power supply module supplies power to the first electric module and the second power supply module supplies power to the second electric module, detecting first residual capacity of the first power supply module and second residual capacity of the second power supply module; obtaining a first value obtained by subtracting the first residual capacity from the second residual capacity; if the first value is larger than a first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module; wherein the first threshold is greater than zero.

Description

Control method, terminal and computer storage medium
Technical Field
The present application relates to the field of electronics and information technologies, and in particular, to a control method, a terminal, and a computer storage medium.
Background
Because the functions of the terminal are increasing day by day, the battery power consumption of the terminal is also increasing, so that the standby time of the terminal is taken as an important standard for selecting the terminal by a user, and a dual-battery terminal is proposed in order to ensure that the battery can continuously supply power to the mobile phone for a long time and meet the normal use of the terminal and the requirements of the user, however, how to effectively control the power supply of the dual batteries becomes an urgent problem to be solved.
Disclosure of Invention
Embodiments of the present application are intended to provide a control method, a terminal, and a computer storage medium, which solve the problem that the power supply of the dual batteries cannot be effectively controlled.
The embodiment of the application provides a control method, which comprises the following steps:
under the condition that a first power supply module supplies power to a first electric module and a second power supply module supplies power to a second electric module, detecting first residual capacity of the first power supply module and second residual capacity of the second power supply module;
obtaining a first value obtained by subtracting the first residual capacity from the second residual capacity;
if the first value is larger than a first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module; wherein the first threshold is greater than zero.
In the above solution, after the first power supply module is switched to supply power to the second electrical module and the second power supply module is switched to supply power to the first electrical module, the method further includes:
detecting a third remaining capacity of the first power supply module and a fourth remaining capacity of the second power supply module;
obtaining a second value obtained by subtracting the fourth residual capacity from the third residual capacity;
if the second value is larger than a second threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the first electric module, and the second power supply module is switched to supply power to the second electric module; wherein the second threshold is less than or equal to the first threshold and greater than or equal to the inverse of the first threshold.
In the above scheme, the method further comprises:
if the first remaining capacity is smaller than or equal to a third threshold and the second remaining capacity is larger than a fourth threshold, controlling the second power supply module to supply power to the first power utilization module and the second power utilization module;
if the first residual capacity is larger than a third threshold value and the second residual capacity is smaller than or equal to a fourth threshold value, controlling the first power supply module to supply power to the first power utilization module and the second power utilization module;
and if the first residual capacity is smaller than or equal to a third threshold value and the second residual capacity is smaller than or equal to a fourth threshold value, stopping supplying power to the first electric module and stopping supplying power to the second electric module.
In the foregoing solution, the method further includes:
if the first residual capacity and the second residual capacity are both smaller than a fifth threshold value, outputting indication information; wherein the fifth threshold is greater than the third threshold, the fifth threshold being greater than the fourth threshold; the indication information is used for prompting a user to select to use the first power supply module or the second power supply module to supply power to the first power supply module;
if a first instruction obtained based on the indication information is received within a second time period, or if the instruction obtained based on the indication information is not received within the second time period, determining to use the first power supply module to supply power to the first power module, and using the second power supply module to supply power to the second power module; the first instruction carries information that the first power supply module supplies power to the first power utilization module;
if a second instruction obtained based on the indication information is received within the second duration, determining to use the second power supply module to supply power to the first power module based on the second instruction, and using the first power supply module to supply power to the second power module; the second instruction carries information that the second power supply module supplies power to the first power module.
In the above aspect, the switching the first power supply module to supply power to the second power utilization module includes:
enabling the second power supply module to output a first current which is reduced along with the time to the second electric module, and enabling the first power supply module to output a second current which is increased along with the time to the second electric module; wherein the first current decreases from a third value to zero and the second current increases from zero to the third value; the first current and the second current have the same rate of change;
accordingly, said switching said second power supply module to supply power to said first power utilization module comprises:
causing the first power supply module to output a third current that decreases with time to the first electrical module and causing the second power supply module to output a fourth current that increases with time to the first electrical module; wherein the third current decreases from a fourth value to zero and the fourth current increases from zero to the fourth value; the third current and the fourth current have the same rate of change.
In the above scheme, the method further comprises:
under the condition that a first charging module charges the first power supply module and a second charging module charges the second power supply module, detecting fifth residual capacity of the first power supply module and sixth residual capacity of the second power supply module;
if the absolute value of the value obtained by subtracting the fifth residual electric quantity from the sixth residual electric quantity is larger than the first threshold value, adjusting the charging parameter of the first charging module or the charging parameter of the second charging module to enable the absolute value to be smaller than or equal to the first threshold value.
In the above solution, the capacity of the first power supply module is greater than the capacity of the second power supply module; and/or
The power supply stability of the first power supply module is greater than that of the second power supply module; and/or
And the charging speed for charging the first power supply module in a third time length is higher than the charging speed for charging the second power supply module.
An embodiment of the present application provides a terminal, including:
the residual capacity acquisition unit is configured to detect first residual capacity of the first power supply module and second residual capacity of the first power supply module under the condition that the first power supply module supplies power to the first power utilization module and the second power supply module supplies power to the second power utilization module;
a processing unit configured to obtain a first value of the second remaining capacity minus the first remaining capacity;
the switching unit is configured to switch the first power supply module to supply power to the second power supply module and switch the second power supply module to supply power to the first power supply module if the first value is greater than a first threshold and the current power utilization priority of the first power supply module is higher than the current power utilization priority of the second power supply module; wherein the first threshold is greater than zero.
An embodiment of the present application provides a terminal, including: the control method comprises a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is used for executing the steps of the control method of the embodiment when the computer program is run.
An embodiment of the present application provides a computer storage medium, which is characterized in that a computer program is stored thereon, and when the computer program is executed by a processor, the computer program implements the steps of the control method according to the embodiment of the present application.
According to the control method, the terminal and the computer storage medium provided by the embodiment of the application, under the condition that the first power supply module supplies power to the first power module and the second power supply module supplies power to the second power module, the first residual capacity of the first power supply module and the second residual capacity of the second power supply module are detected; obtaining a first value obtained by subtracting the first residual capacity from the second residual capacity; if the first value is larger than a first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module; wherein the first threshold is greater than zero. By adopting the technical scheme of the embodiment of the application, under the condition that the first value obtained by subtracting the first residual electric quantity from the second residual electric quantity is larger than the first threshold value and the current power utilization priority of the first electric module is higher, the second power supply module is switched to supply power to the first electric module with higher power consumption, and the power supply module with higher residual electric quantity is used for supplying power to the first electric module with higher current power utilization priority when the double power supply modules supply power, so that the stability of supplying power to the first electric module is improved.
Drawings
Fig. 1 is a schematic flowchart of a control method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another control method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a power supply circuit according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another power supply circuit provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another control method provided in the embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
It should be appreciated that reference throughout this specification to "an embodiment of the present application" or "an embodiment of the foregoing" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrase "in an embodiment of the present application" or "in the foregoing embodiment" appearing in various places throughout the specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
In the case where no specific description is given, the terminal executes any step in the embodiments of the present application, and the processor of the terminal may execute the step. It should also be noted that the embodiments of the present application do not limit the sequence in which the terminal executes the following steps. In addition, the data may be processed in the same way or in different ways in different embodiments. It should be further noted that any step in the embodiments of the present application may be executed by the terminal independently, that is, when the terminal executes any step in the following embodiments, the terminal may not depend on the execution of other steps.
In the related art, in order to solve the problems that the space occupied by the power supply module in the single power supply module is large and the position in the terminal is not easy to arrange, a scheme that the terminal is provided with double power supply modules is provided. The power supply module may be a battery. In the scheme of dual power supply module power supply, there are the following power supply modes:
the first method is that a first power supply module is adopted to supply power to all power utilization modules in the terminal, and when the electric quantity of the first power supply module is lower than the lowest electric quantity, a second power supply module is used to supply power to all power utilization modules in the terminal. In the power supply mode, when the first power supply module or the second power supply module supplies power to the power utilization module in the terminal, the output current is large, so that the terminal generates heat seriously.
And secondly, dividing all power utilization modules of the terminal into a first power utilization module and a second power utilization module, supplying power to the first power utilization module by using a first power supply module, supplying power to the second power utilization module by using a second power supply module, and controlling the other power supply module to supply power to the first power utilization module and the second power utilization module when the electric quantity of any power supply module is lower than the lowest value of the power supply modules. In this way, although the first power supply module and the second power supply module can respectively supply power to the first electrical module and the second electrical module, when the power amount of one power supply module is lower than the threshold value, the other power supply module still needs to supply power to the first electrical module and the second electrical module, which still causes a serious problem of heat generation of the other power supply module.
Based on the foregoing, an embodiment of the present application provides a control method applied to a terminal, as shown in fig. 1, the method includes the following steps:
step 101: under the condition that the first power supply module supplies power to the first electric module and the second power supply module supplies power to the second electric module, the first residual capacity of the first power supply module and the second residual capacity of the second power supply module are detected.
Alternatively, the terminal may be any terminal having a first power supply module and a second power supply module, such as a server, a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant, a portable media player, a smart speaker, a navigation device, a wearable device, a smart band, a pedometer, a digital TV, or a desktop computer. In the embodiment of the application, the terminal can be a mobile phone.
Optionally, the power usage of the first electrical module may be higher than the power usage of the second electrical module during the first duration. The first time duration may be a time duration from a target time to an acquisition time of acquiring the first remaining energy and/or the second remaining energy, a difference between the acquisition time and the target time may be a unit time duration, a set time duration, or another time duration, and a difference between the acquisition time and the target time may be greater than or equal to a period of acquiring the first remaining energy and/or the second remaining energy.
Alternatively, the first electrical module may be a module that needs to be powered continuously, and the second electrical module may be a module that powers the first electrical module when it is activated. Alternatively, the stability of the required amount of power of the first electrical module may be higher than the stability of the required amount of power of the second electrical module. The first and second power consuming modules may constitute all power consuming modules in the terminal.
In one embodiment, the first electrical module may be a core module in the terminal and the second electrical module may be a non-core module in the terminal. The core module is, for example, at least one of a Graphics Processing Unit (GPU), a Central Processing Unit (CPU), a memory, and a radio frequency module in the terminal, and the non-core module is, for example, at least one of a camera module, a screen module, and an audio module in the terminal. In another embodiment, the first and second power utilization modules may be set by a user, for example, the terminal may receive an operation of classifying the plurality of power utilization modules displayed on the display screen by the user, and determine the first and second power utilization modules based on the operation. It should be understood that the determination manner of the first electrical module and the second electrical module can also be determined by other manners, and the above-listed specific determination manners of the first electrical module and the second electrical module do not constitute specific limitations on the first electrical module or the second electrical module.
In this embodiment, the first remaining capacity may be a percentage of a remaining capacity of the first power supply module in a total capacity of the first power supply module, and the second remaining capacity may be a percentage of a remaining capacity of the second power supply module in a total capacity of the second power supply module. In other embodiments, the first remaining capacity is a current remaining capacity of the first power supply module, the second remaining capacity is a current remaining capacity of the second power supply module, and the unit of the current remaining capacity is mAH. The terminal may periodically or aperiodically acquire a first remaining capacity of the first power supply module and a second remaining capacity of the second power supply module. In addition, the terminal may adjust the period for acquiring the first remaining amount and the second remaining amount based on the load capability of the terminal and the current load.
Step 102: and acquiring a first value obtained by subtracting the first residual capacity from the second residual capacity.
Step 103: if the first value is larger than the first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module.
Wherein the first threshold is greater than zero.
The performance parameter of the first power supply module may be greater than the performance parameter of the second power supply module. The performance parameter may include at least one of a total capacity, a power supply stability, a charging speed, a discharging speed, and the like. In the embodiment of the present application, the first power supply module is a graphene battery, and the second power supply module is a lithium battery. In other embodiments, the first power supply module and the second power supply module may both be graphene batteries or lithium batteries.
The current power utilization priority may include at least one of a current power consumption rate, a current power stability, and a degree of importance of the current power utilization.
The first threshold is greater than zero, and the size of the first threshold can be determined according to actual conditions. In the embodiment of the present application, the first threshold is 15%. In another embodiment, the first threshold may be any value between 10% and 30% except 15%, for example, the first threshold may be 10%, 20%, 30%, or the like. In yet another embodiment, the first threshold may also be any value of 100mAH to 500mAH, for example the first threshold may be 100mAH, 300mAH or 500mAH. The selection of the first threshold may also be related to the total capacity of the first power supply module and/or the total capacity of the second power supply module. The embodiment of the present application does not limit the selection of the first threshold.
The first threshold may also be dynamically variable, i.e. the terminal may determine the first threshold based on the first remaining amount and/or the second remaining amount. For example, the higher the first remaining capacity and/or the second remaining capacity is, the larger the determined first threshold value is, whereas the lower the first remaining capacity and/or the second remaining capacity is, the smaller the determined first threshold value is.
The control method provided by the embodiment of the application is that when the first power supply module supplies power to the first electric module,
under the condition that the second power supply module supplies power to the second power utilization module, detecting first residual capacity of the first power supply module and second residual capacity of the second power supply module; obtaining a first value obtained by subtracting the first residual capacity from the second residual capacity; if the first value is larger than a first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module; wherein the first threshold is greater than zero. By adopting the technical scheme of the embodiment of the application, under the condition that the first value obtained by subtracting the first residual electric quantity from the second residual electric quantity is larger than the first threshold value and the current power utilization priority of the first electric module is higher, the second power supply module is switched to supply power to the first electric module with higher power consumption, and the power supply module with higher residual electric quantity is used for supplying power to the first electric module with higher current power utilization priority when the double power supply modules supply power, so that the stability of supplying power to the first electric module is improved.
Based on the foregoing embodiments, an embodiment of the present application provides a control method, as shown in fig. 2, the method includes the following steps:
step 201: under the condition that the first power supply module supplies power to the first power module and the second power supply module supplies power to the second power module, the terminal detects first residual capacity of the first power supply module and second residual capacity of the second power supply module.
In the implementation of the present application, the capacity of the first power supply module may be greater than the capacity of the second power supply module; and/or the power supply stability of the first power supply module may be greater than the power supply stability of the second power supply module; and/or the charging speed for charging the first power supply module in the third time period can be greater than the charging speed for charging the second power supply module. In other embodiments, the capacity of the first power supply module may be less than or equal to the capacity of the second power supply module; and/or the power supply stability of the first power supply module may be less than or equal to the power supply stability of the second power supply module; and/or the charging speed for charging the first power supply module in the third time period may be less than or equal to the charging speed for charging the second power supply module. The power supply stability of the power supply module may be determined based on attribute information of the power supply module, and the attribute information of the power supply module may include at least one of model information, manufacturer information, electrolyte information, usage time information, and battery wear rate information of the power supply module.
Step 202: the terminal obtains a first value obtained by subtracting the first residual capacity from the second residual capacity.
Step 203: if the first value is larger than the first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the terminal enables the first power supply module to be switched to supply power to the second electric module and enables the second power supply module to be switched to supply power to the first electric module.
It should be understood that if the first value is less than or equal to the first threshold, or if the first value is greater than the first threshold and the current power utilization priority of the first electrical module is lower than or equal to the current power utilization priority of the second electrical module, the terminal will continue to control the first power supply module to supply power to the first electrical module and the second power supply module to supply power to the second electrical module.
Wherein, making the first power supply module switch to supply power to the second power utilization module may include: enabling the second power supply module to output a first current which is reduced along with the time to the second electric module, and enabling the first power supply module to output a second current which is increased along with the time to the second electric module; wherein the first current decreases from a third value to zero and the second current increases from zero to the third value; the first current and the second current have the same rate of change. The voltage output by the first power supply module to the second power utilization module is the same as the voltage output by the second power supply module to the second power utilization module, and the power output to the second power utilization module is constant.
Wherein, switching the first power supply module to supply power to the first electric module may include: enabling the first power supply module to output a third current which is reduced along with the time to the first electric module, and enabling the second power supply module to output a fourth current which is increased along with the time to the first electric module; wherein the third current decreases from a fourth value to zero and the fourth current increases from zero to the fourth value; the third current and the fourth current have the same rate of change. The voltage output by the first power supply module to the first electric module is the same as the voltage output by the second power supply module to the first electric module, and the power output to the first electric module is constant.
Step 204: the terminal detects a third remaining capacity of the first power supply module and a fourth remaining capacity of the second power supply module.
Step 205: and the terminal acquires a second value obtained by subtracting the fourth residual capacity from the third residual capacity.
Step 206: if the second value is larger than the second threshold value and the current power utilization priority of the first power module is higher than the current power utilization priority of the second power module, the terminal enables the first power supply module to be switched to supply power to the first power module and enables the second power supply module to be switched to supply power to the second power module.
The second threshold may be less than or equal to the first threshold and greater than or equal to the inverse of the first threshold. For example, when the first threshold is 15%, the second threshold may be any value between-15% and 15%, for example, the second threshold may be-15%, -5%, 0, 5%, or 15%, and the value of the second threshold is not limited in this embodiment of the application. It should be understood that, in the case that the second threshold value is closer to the first threshold value, the power consumption rate of the first electric module is greater than the power consumption rate of the second electric module, and the second electric module can rapidly drop to the second threshold value based on the power consumption rate, so that the first electric module supplies power to the first electric module again, and the first power supply module which supplies power stably can be controlled to supply power to the more important first electric module to the greatest extent; when the second threshold value is closer to the opposite number of the first threshold value, the time for the second photovoltaic module to fall to the second threshold value is longer, so that the problem of frequent switching of power supply caused by the fact that the time for the second photovoltaic module to fall to the first threshold value is shorter can be avoided.
Wherein, switching the first power supply module to supply power to the first electric module may include: enabling the second power supply module to output a fifth current which is reduced along with the time to the first electric module, and enabling the first power supply module to output a sixth current which is increased along with the time to the first electric module; wherein the fifth current decreases from a fifth value to zero and the sixth current increases from zero to the fifth value; the rate of change of the fifth current and the sixth current is the same.
Wherein, switching the second power supply module to supply power to the second power utilization module may include: enabling the first power supply module to output a seventh current which is reduced along with the time to the second electric module, and enabling the second power supply module to output an eighth current which is increased along with the time to the second electric module; wherein the seventh current decreases from a sixth value to zero and the eighth current increases from zero to a sixth value; the rate of change of the seventh current and the eighth current is the same.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a power supply circuit according to an embodiment of the present disclosure. When the value obtained by subtracting the second residual capacity from the first residual capacity is 12%, determining that the first value obtained by subtracting the first residual capacity from the second residual capacity is smaller than a first threshold value, and switching the first power supply module to supply power to the first electric module and switching the second power supply module to supply power to the second electric module.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another power supply circuit according to an embodiment of the present disclosure. When the value obtained by subtracting the first residual capacity from the second residual capacity is 33%, determining that the first value obtained by subtracting the first residual capacity from the second residual capacity is larger than a first threshold value, switching the first power supply module to supply power to the second electrical module, and switching the second power supply module to supply power to the first electrical module.
It should be understood that fig. 3 and 4 are only schematic examples of the power supply circuit, and in a specific implementation process, a specific power supply condition may be determined according to the current remaining power of the first power supply module and the current remaining power of the second power supply module in practice.
In order to prolong the service life of the battery, a minimum electric quantity threshold value needs to be set for the battery, and when the current electric quantity of the battery is lower than the minimum electric quantity threshold value, a power transmission path is cut off so as to avoid that the battery continues to discharge and the service life of the battery is further reduced. Therefore, in the embodiment of the present application, in order to improve the service life of the power supply module of the terminal, after step 103 or step 206, the terminal may further perform the following step a:
step A: and if the first residual capacity is smaller than or equal to the third threshold and the second residual capacity is larger than the fourth threshold, the terminal controls the second power supply module to supply power to the first power utilization module and the second power utilization module.
The third threshold may be a minimum remaining capacity of the first power supply module, the fourth threshold may be a minimum remaining capacity of the second power supply module, and both the third threshold and the fourth threshold are greater than zero.
The third threshold may be greater than, equal to, or less than the fourth threshold. The user or the terminal may determine the third threshold value based on the attribute information of the first power supply module, and may determine the fourth threshold value based on the attribute information of the second power supply module.
Optionally, after step 103 or step 206, the terminal may perform the following step B:
and B, step B: if the first remaining capacity is greater than a third threshold value and the second remaining capacity is less than or equal to a fourth threshold value, the terminal controls the first power supply module to supply power to the first power module and the second power module.
Optionally, after step 103 or step 206, the terminal may perform the following step C:
and C: if the first remaining capacity is smaller than or equal to a third threshold and the second remaining capacity is smaller than or equal to a fourth threshold, the terminal stops supplying power to the first electrical module and stops supplying power to the second electrical module. Optionally, the terminal may also be automatically powered off.
Optionally, after step 103 or step 206, the terminal may further perform the following steps D1 to D3:
step D1: and if the first residual capacity and the second residual capacity are both smaller than the fifth threshold value, the terminal outputs indication information.
Wherein the fifth threshold is greater than the third threshold, and the fifth threshold is greater than the fourth threshold; the indication information is used for prompting a user to select to use the first power supply module or the second power supply module to supply power to the first power module.
The indication information can be displayed through a display screen of the terminal, or the indication information can be played in a voice playing mode. The embodiment of the present application does not limit the output mode of the indication information.
Step D2: if the first instruction obtained based on the indication information is received within the second time period, or if the instruction obtained based on the indication information is not received within the second time period, the terminal determines to use the first power supply module to supply power to the first power module, and uses the second power supply module to supply power to the second power module.
The first instruction carries information that the first power supply module supplies power to the first electric module.
For example, the second time period may be any value of 5 seconds to 10 seconds, for example, the second time period may be 5 seconds, 8 seconds, or 10 seconds. The embodiment of the application does not limit the specific value of the reserved time length.
And D3: if a second instruction obtained based on the indication information is received within a second time period, the terminal determines to use the second power supply module to supply power to the first power module based on the second instruction, and uses the first power supply module to supply power to the second power module.
The second instruction carries information that the second power supply module supplies power to the first power utilization module.
Through the steps D1 to D3, a user can independently select the first power supply module or the second power supply module to supply power to the first power supply module, and the interactivity of the terminal and the user during charging is improved.
It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the description in the other embodiments, which is not repeated herein.
According to the control method provided by the embodiment of the application, if the second value obtained by subtracting the fourth remaining power of the second power supply module from the third remaining power of the first power supply module is larger than the second threshold, and the current power utilization priority of the first power supply module is higher than the current power utilization priority of the second power supply module, the first power supply module is switched to supply power to the first power supply module, and the second power supply module is switched to supply power to the second power supply module, so that the remaining power difference between the first power supply module and the second power supply module is limited, the remaining power difference is in a certain range, the stability of power supply is ensured, and the two power supply modules can be respectively supplied with power of the two power utilization modules to the greatest extent.
Based on the foregoing embodiments, an embodiment of the present application provides a control method, as shown in fig. 5, the method may further include the following steps:
step 301: and under the condition that the first charging module charges the first power supply module and the second charging module charges the second power supply module, the terminal detects the fifth residual capacity of the first power supply module and the sixth residual capacity of the second power supply module.
Step 302: if the absolute value of the value obtained by subtracting the fifth residual electric quantity from the sixth residual electric quantity is larger than the first threshold value, the terminal adjusts the charging parameter of the first charging module or the charging parameter of the second charging module to enable the absolute value to be smaller than or equal to the first threshold value.
Wherein, step 302 can be realized by the following steps E and F:
step E: and if the value obtained by subtracting the fifth residual electric quantity from the sixth residual electric quantity is larger than the first threshold value, the terminal increases the transmission power output by the first charging module to the first power supply module and/or decreases the transmission power output by the second charging module to the second power supply module.
Step F: and if the value obtained by subtracting the sixth residual electric quantity from the fifth residual electric quantity is larger than the first threshold value, the terminal increases the transmission power output by the second charging module to the second power supply module and/or decreases the transmission power output by the first charging module to the first power supply module.
In fig. 5, although steps 301 and 302 are shown to be performed after step 103, the present embodiment does not limit the order between performing steps 301 and 302 and performing steps of other embodiments, for example, steps 301 and 302 may be performed before step 101, or may be performed before step 201, or may be performed within steps 101 to 103 or steps 201 to 206.
The means for increasing the transmission power may be to increase the transmission current with the transmission voltage unchanged, to increase the transmission voltage with the transmission current unchanged, or to increase both the transmission current and the transmission voltage. The means for reducing the transmitted power may be to reduce the transmitted current with the transmitted voltage unchanged, to reduce the transmitted voltage with the transmitted current unchanged, or to reduce both the transmitted current and voltage.
In the actual operation of the terminal, the terminal may increase the transmission power or decrease the transmission power based on the charging environment of the terminal. For example, in one embodiment, the terminal may obtain the current time, and if the current time is day time, it indicates that the user wants to fully charge the power of the terminal as soon as possible, the power transmission power may be increased, and if the current time is night time, it indicates that the user does not have a requirement for rapidly fully charging the power, and the power transmission power may be decreased. In another embodiment, the terminal may obtain surrounding environment information, may provide power for transmission when it is determined that the user needs to frequently use the terminal based on the surrounding environment information, and may reduce the power for transmission when it is determined that the user does not need to frequently use the terminal based on the surrounding environment information. The terminal may also determine to increase the transmission power or decrease the transmission power in other manners, for example, the terminal may also determine to increase the transmission power or decrease the transmission power according to a loss condition of the power supply module or the power supply device is an adapter or a charger, and the like, which is not limited in this embodiment of the application.
In one embodiment, the charging parameters of the first charging module may be determined based on the current remaining capacity of the first charging module, and the charging parameters of the second charging module may be determined based on the current remaining capacity of the second charging module.
According to the control method provided by the embodiment of the application, if the absolute value of the value obtained by subtracting the fifth residual electric quantity from the sixth residual electric quantity is larger than the first threshold, the charging parameter of the first charging module or the charging parameter of the second charging module is adjusted to enable the absolute value to be smaller than or equal to the first threshold, so that when the electric quantity difference of the two power supply modules is detected to be larger than the first threshold, the charging parameter is adjusted to enable the electric quantity difference to be smaller than or equal to the first threshold, thereby ensuring that the electric quantity difference of the two power supply modules is within the threshold range, and ensuring that the two power supply modules can respectively supply power to the two power utilization modules to the greatest extent.
In the embodiment corresponding to fig. 5, the power supply to the first power supply module through the first charging module and the power supply to the second power supply module through the second charging module are performed simultaneously, that is, the terminal can control the power supply to the two power supply modules simultaneously. However, the embodiment of the application is not limited to this, and the terminal can also control to supply power to a power supply module independently at a moment, so that the terminal can be provided with one charging module, and the size of the terminal can be further reduced. For example, the charging mode of the terminal may be implemented in either of the following two modes.
The first method comprises the following steps: the terminal can control to charge the first power supply module first, and after the first power supply module is fully charged, for example, when the electric quantity of the first power supply module is 100%, the terminal controls to charge the second power supply module until the electric quantity of the second power supply module is also 100%, and the charging is completed.
And the second method comprises the following steps: the terminal can firstly charge the first power supply module if the terminal determines that the residual electric quantity of the first power supply module is smaller than the residual electric quantity of the second power supply module, when the current residual electric quantity of the first power supply module minus the current residual electric quantity of the second power supply module is larger than a first threshold value, the terminal switches to charge the second power supply module, and when the current residual electric quantity of the second power supply module minus the current residual electric quantity of the first power supply module is larger than the first threshold value, the terminal switches to charge the first power supply module until the electric quantities of the first power supply module and the second power supply module reach 100%, and the charging is completed.
The two charging manners listed above are specific descriptions of charging manners that can be implemented by the terminal, and do not limit a specific charging manner of the power supply module of the terminal, it should be understood that the first power supply module and the second power supply module can also be charged by other manners that can be implemented by the terminal in the embodiments of the present application, and this is not limited thereto.
Based on the foregoing embodiments, embodiments of the present application provide a terminal, as shown in fig. 6, the terminal 4 may include:
a remaining power acquiring unit 41 configured to detect a first remaining power of the first power supply module and a second remaining power of the first power supply module when the first power supply module supplies power to the first electrical module and the second power supply module supplies power to the second electrical module;
a processing unit 42 configured to obtain a first value of the second remaining capacity minus the first remaining capacity;
a switching unit 43, configured to switch the first power supply module to supply power to the second electrical module and switch the second power supply module to supply power to the first electrical module if the first value is greater than the first threshold and the current power priority of the first electrical module is higher than the current power priority of the second electrical module; wherein the first threshold is greater than zero.
A first end of the processing unit 42 is connected to the remaining power acquiring unit 41, and a second end of the processing unit 42 is connected to the switching unit 43.
In the above solution, the remaining power obtaining unit 41 is further configured to detect a third remaining power of the first power supply module and a fourth remaining power of the second power supply module;
a processing unit 42 further configured to obtain a second value of the third remaining capacity minus the fourth remaining capacity;
the switching unit 43 is further configured to, if the second value is greater than the second threshold and the current power utilization priority of the first electrical module is higher than the current power utilization priority of the second electrical module, switch the first power supply module to supply power to the first electrical module and switch the second power supply module to supply power to the second electrical module; the second threshold is smaller than or equal to the first threshold and larger than or equal to the inverse number of the first threshold.
In the above solution, the switching unit 43 is further configured to control the second power supply module to supply power to the first electrical module and the second electrical module if the first remaining power is less than or equal to the third threshold and the second remaining power is greater than the fourth threshold;
the switching unit 43 is further configured to control the first power supply module to supply power to the first electrical module and the second electrical module if the first remaining power is greater than the third threshold and the second remaining power is less than or equal to the fourth threshold;
the switching unit 43 is further configured to stop supplying power to the first electrical module and stop supplying power to the second electrical module if the first remaining capacity is less than or equal to the third threshold and the second remaining capacity is less than or equal to the fourth threshold.
In the foregoing solution, the terminal 4 may further include:
an output unit 44, wherein the output unit 44 is configured to output indication information if the first remaining capacity and the second remaining capacity are both smaller than a fifth threshold; wherein the fifth threshold is greater than the third threshold, and the fifth threshold is greater than the fourth threshold; the indication information is used for prompting a user to select a first power supply module or a second power supply module to supply power to the first power module;
the switching unit 43 is further configured to determine to use the first power supply module to supply power to the first electrical module and use the second power supply module to supply power to the second electrical module if the first instruction obtained based on the indication information is received within the second time period or if the instruction obtained based on the indication information is not received within the second time period; the first instruction carries information that the first power supply module supplies power to the first electric module;
the switching unit 43 is further configured to determine, based on the second instruction, to supply power to the first electrical module by using the second power supply module and to supply power to the second electrical module by using the first power supply module if the second instruction obtained based on the indication information is received within the second duration; the second instruction carries information that the second power supply module supplies power to the first power module.
In the above solution, the switching unit 43 is further configured to enable the second power supply module to output a first current that decreases with time to the second power utilization module, and enable the first power supply module to output a second current that increases with time to the second power utilization module; wherein the first current decreases from a third value to zero and the second current increases from zero to the third value; the change rate of the first current is the same as that of the second current;
a switching unit 43, further configured to cause the first power supply module to output a third current decreasing with time to the first electric module, and to cause the second power supply module to output a fourth current increasing with time to the first electric module; wherein the third current decreases from a fourth value to zero and the fourth current increases from zero to the fourth value; the third current and the fourth current have the same rate of change.
In the above solution, the remaining power obtaining unit 41 is further configured to detect a fifth remaining power of the first power supply module and a sixth remaining power of the second power supply module when the first charging module charges the first power supply module and the second charging module charges the second power supply module;
the terminal 4 further comprises:
the charging unit 45 is configured to adjust the charging parameter of the first charging module or the charging parameter of the second charging module if the absolute value of the value obtained by subtracting the fifth remaining capacity from the sixth remaining capacity is greater than the first threshold, so that the absolute value is less than or equal to the first threshold.
The fourth terminal of the processing unit 42 is connected to the charging unit 45.
In the above scheme, the capacity of the first power supply module is greater than the capacity of the second power supply module; and/or
The power supply stability of the first power supply module is greater than that of the second power supply module; and/or
And the charging speed for charging the first power supply module in the third time period is higher than the charging speed for charging the second power supply module.
Based on the foregoing embodiments, the present application provides another terminal, as shown in fig. 7, a terminal 5 (the terminal 5 in fig. 7 corresponds to the terminal 4 in fig. 6) may include: a processor 51 and a memory 52 for storing a computer program operable on the processor 51, wherein the processor 51 is operable to execute the computer program to perform the steps of:
under the condition that the first power supply module supplies power to the first electric module and the second power supply module supplies power to the second electric module, detecting first residual capacity of the first power supply module and second residual capacity of the second power supply module;
obtaining a first value obtained by subtracting the first residual capacity from the second residual capacity;
if the first value is larger than the first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module; wherein the first threshold is greater than zero.
In other embodiments of the present application, the processor 51, when being configured to run the computer program, may perform the following steps:
detecting a third residual capacity of the first power supply module and a fourth residual capacity of the second power supply module;
obtaining a second value obtained by subtracting the fourth residual capacity from the third residual capacity;
if the second value is larger than a second threshold value and the current power utilization priority of the first power module is higher than the current power utilization priority of the second power module, the first power supply module is switched to supply power to the first power module, and the second power supply module is switched to supply power to the second power module; the second threshold value is smaller than or equal to the first threshold value and larger than or equal to the opposite number of the first threshold value.
In other embodiments of the present application, the processor 51, when being configured to run the computer program, may perform the following steps:
if the first residual capacity is smaller than or equal to a third threshold value and the second residual capacity is larger than a fourth threshold value, controlling a second power supply module to supply power to a first electric module and a second electric module;
if the first residual capacity is larger than a third threshold value and the second residual capacity is smaller than or equal to a fourth threshold value, controlling the first power supply module to supply power to the first electric module and the second electric module;
and if the first residual capacity is smaller than or equal to a third threshold value and the second residual capacity is smaller than or equal to a fourth threshold value, stopping supplying power to the first electric module and stopping supplying power to the second electric module.
In other embodiments of the present application, the processor 51, when being configured to run the computer program, may perform the following steps:
if the first residual capacity and the second residual capacity are both smaller than a fifth threshold value, outputting indication information; wherein the fifth threshold is greater than the third threshold, and the fifth threshold is greater than the fourth threshold; the indication information is used for prompting a user to select a first power supply module or a second power supply module to supply power to the first power module;
if a first instruction obtained based on the indication information is received within the second time period, or if the instruction obtained based on the indication information is not received within the second time period, determining that the first power supply module is used for supplying power to the first electric module, and using the second power supply module for supplying power to the second electric module; the first instruction carries information that the first power supply module supplies power to the first electric module;
if a second instruction obtained based on the indication information is received within a second time length, determining to use a second power supply module to supply power to the first power module based on the second instruction, and using the first power supply module to supply power to the second power module; the second instruction carries information that the second power supply module supplies power to the first power utilization module.
In other embodiments of the present application, the processor 51, when being configured to run the computer program, may perform the following steps:
enabling the second power supply module to output a first current which is reduced along with the time to the second electric module, and enabling the first power supply module to output a second current which is increased along with the time to the second electric module; wherein the first current decreases from a third value to zero and the second current increases from zero to the third value; the first current and the second current have the same rate of change.
Accordingly, the processor 51, when being configured to run the computer program, may perform the following steps:
enabling the first power supply module to output a third current which is reduced along with the time to the first electric module, and enabling the second power supply module to output a fourth current which is increased along with the time to the first electric module; wherein the third current decreases from a fourth value to zero and the fourth current increases from zero to the fourth value; the third current and the fourth current have the same rate of change.
In other embodiments of the present application, the processor 51, when being configured to run the computer program, may perform the following steps:
under the condition that the first charging module charges the first power supply module and the second charging module charges the second power supply module, detecting fifth residual capacity of the first power supply module and sixth residual capacity of the second power supply module;
if the absolute value of the value obtained by subtracting the fifth residual electric quantity from the sixth residual electric quantity is larger than the first threshold value, the charging parameter of the first charging module or the charging parameter of the second charging module is adjusted to enable the absolute value to be smaller than or equal to the first threshold value.
In other embodiments of the present application, the processor 51, when being configured to run the computer program, may perform the following steps:
the capacity of the first power supply module is larger than that of the second power supply module; and/or
The power supply stability of the first power supply module is greater than that of the second power supply module; and/or
And the charging speed for charging the first power supply module in the third time period is higher than the charging speed for charging the second power supply module.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the control method provided in the embodiment corresponding to fig. 1, 2, or 5, and details are not described here again.
The terminal provided by the embodiment of the application detects first residual capacity of the first power supply module and second residual capacity of the second power supply module under the condition that the first power supply module supplies power to the first electric module and the second power supply module supplies power to the second electric module; obtaining a first value obtained by subtracting the first residual capacity from the second residual capacity; if the first value is larger than a first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module; wherein the first threshold is greater than zero. By adopting the technical scheme of the embodiment of the application, under the condition that the first value obtained by subtracting the first residual electric quantity from the second residual electric quantity is larger than the first threshold value and the current power utilization priority of the first electric module is higher, the second power supply module is switched to supply power to the first electric module with higher power utilization, and the power supply module with higher residual electric quantity is used for supplying power to the first electric module with higher current power utilization priority when the double power supply modules supply power, so that the stability of supplying power to the first electric module is improved.
Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the control method as in any one of the above.
The Processing Unit, the Processor, or the CPU may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, or a microprocessor. It is understood that the electronic device implementing the above-mentioned processor function may be other electronic devices, and the embodiments of the present application are not particularly limited.
The computer storage medium/Memory may be a Memory such as a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); and may be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., including one or any combination of the above-mentioned memories.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps of implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer-readable storage medium, and when executed, executes the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method, characterized in that the method comprises:
under the condition that a first power supply module supplies power to a first electric module and a second power supply module supplies power to a second electric module, detecting first residual capacity of the first power supply module and second residual capacity of the second power supply module;
obtaining a first value obtained by subtracting the first residual capacity from the second residual capacity;
if the first value is larger than a first threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the second electric module, and the second power supply module is switched to supply power to the first electric module; wherein the first threshold is greater than zero.
2. The method of claim 1, wherein after switching the first power supply module to provide power to the second electrical module and switching the second power supply module to provide power to the first electrical module, the method further comprises:
detecting a third remaining capacity of the first power supply module and a fourth remaining capacity of the second power supply module;
obtaining a second value obtained by subtracting the fourth residual capacity from the third residual capacity;
if the second value is larger than a second threshold value and the current power utilization priority of the first electric module is higher than the current power utilization priority of the second electric module, the first power supply module is switched to supply power to the first electric module, and the second power supply module is switched to supply power to the second electric module; wherein the second threshold is less than or equal to the first threshold and greater than or equal to the inverse of the first threshold.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
if the first remaining capacity is smaller than or equal to a third threshold and the second remaining capacity is larger than a fourth threshold, controlling the second power supply module to supply power to the first power utilization module and the second power utilization module;
if the first remaining capacity is larger than a third threshold value and the second remaining capacity is smaller than or equal to a fourth threshold value, controlling the first power supply module to supply power to the first power module and the second power module;
and if the first residual capacity is smaller than or equal to a third threshold value and the second residual capacity is smaller than or equal to a fourth threshold value, stopping supplying power to the first electric module and stopping supplying power to the second electric module.
4. The method of claim 3, further comprising:
if the first residual capacity and the second residual capacity are both smaller than a fifth threshold value, outputting indication information; wherein the fifth threshold is greater than the third threshold, the fifth threshold being greater than the fourth threshold; the indication information is used for prompting a user to select to use the first power supply module or the second power supply module to supply power to the first power supply module;
if a first instruction obtained based on the indication information is received within a second time period, or if the instruction obtained based on the indication information is not received within the second time period, determining to use the first power supply module to supply power to the first power module, and using the second power supply module to supply power to the second power module; the first instruction carries information that the first power supply module supplies power to the first power utilization module;
if a second instruction obtained based on the indication information is received within the second duration, determining to use the second power supply module to supply power to the first power module based on the second instruction, and using the first power supply module to supply power to the second power module; the second instruction carries information that the second power supply module supplies power to the first power module.
5. The method of claim 1 or 2, wherein said switching the first power supply module to power the second power-using module comprises:
enabling the second power supply module to output a first current which is reduced along with the time to the second electric module, and enabling the first power supply module to output a second current which is increased along with the time to the second electric module; wherein the first current decreases from a third value to zero and the second current increases from zero to the third value; the first current and the second current have the same rate of change;
accordingly, said switching said second power supply module to supply power to said first power utilization module comprises:
causing the first power supply module to output a third current that decreases with time to the first electrical module and causing the second power supply module to output a fourth current that increases with time to the first electrical module; wherein the third current decreases from a fourth value to zero and the fourth current increases from zero to the fourth value; the third current and the fourth current have the same rate of change.
6. The method according to claim 1 or 2, characterized in that the method further comprises:
under the condition that a first charging module charges the first power supply module and a second charging module charges the second power supply module, detecting fifth residual capacity of the first power supply module and sixth residual capacity of the second power supply module;
if the absolute value of the value obtained by subtracting the fifth residual electric quantity from the sixth residual electric quantity is larger than the first threshold value, adjusting the charging parameter of the first charging module or the charging parameter of the second charging module to enable the absolute value to be smaller than or equal to the first threshold value.
7. The method according to claim 1 or 2,
the capacity of the first power supply module is larger than that of the second power supply module; and/or
The power supply stability of the first power supply module is greater than that of the second power supply module; and/or
And the charging speed for charging the first power supply module in a third time length is higher than the charging speed for charging the second power supply module.
8. A terminal, characterized in that the terminal comprises:
the residual electric quantity acquisition unit is configured to detect first residual electric quantity of a first power supply module and second residual electric quantity of the first power supply module under the condition that the first power supply module supplies power to a first electric module and a second power supply module supplies power to a second electric module;
a processing unit configured to obtain a first value of the second remaining capacity minus the first remaining capacity;
the switching unit is configured to switch the first power supply module to supply power to the second power supply module and switch the second power supply module to supply power to the first power supply module if the first value is greater than a first threshold and the current power utilization priority of the first power supply module is higher than the current power utilization priority of the second power supply module; wherein the first threshold is greater than zero.
9. A terminal, characterized in that the terminal comprises: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable, when executing the computer program, to perform the steps of the method of any of claims 1 to 7.
10. A computer storage medium, characterized in that a computer program is stored thereon which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201910817879.1A 2019-08-30 2019-08-30 Control method, terminal and computer storage medium Active CN112448429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910817879.1A CN112448429B (en) 2019-08-30 2019-08-30 Control method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910817879.1A CN112448429B (en) 2019-08-30 2019-08-30 Control method, terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN112448429A CN112448429A (en) 2021-03-05
CN112448429B true CN112448429B (en) 2022-11-04

Family

ID=74733815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910817879.1A Active CN112448429B (en) 2019-08-30 2019-08-30 Control method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN112448429B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115296386B (en) * 2022-10-09 2023-04-25 苏州维伟思医疗科技有限公司 Power management system, method, electric equipment, electronic equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010045929A (en) * 2008-08-14 2010-02-25 Nippon Telegr & Teleph Corp <Ntt> Load operation control device and load operation control method
JP2010178504A (en) * 2009-01-29 2010-08-12 Tokyo Gas Co Ltd Method of supplying electric power using distributed power supplies and power supply program
CN106210208A (en) * 2016-09-21 2016-12-07 深圳市金立通信设备有限公司 A kind of terminal and Double-battery powered method thereof
CN107145386A (en) * 2017-04-28 2017-09-08 广东欧珀移动通信有限公司 Data migration method, terminal device and computer-readable recording medium
CN107257146A (en) * 2017-05-27 2017-10-17 上海斐讯数据通信技术有限公司 A kind of wireless charging method and wireless charging router based on charging priority
CN107357673A (en) * 2017-06-28 2017-11-17 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for detecting abnormal power consumption
JP2017216789A (en) * 2016-05-31 2017-12-07 株式会社デジレコ Power supply device
CN108605292A (en) * 2016-02-12 2018-09-28 微软技术许可有限责任公司 Electric power knows formula network communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5835304B2 (en) * 2013-06-04 2015-12-24 日本電気株式会社 Power supply system, power management apparatus, power management method, and power management program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010045929A (en) * 2008-08-14 2010-02-25 Nippon Telegr & Teleph Corp <Ntt> Load operation control device and load operation control method
JP2010178504A (en) * 2009-01-29 2010-08-12 Tokyo Gas Co Ltd Method of supplying electric power using distributed power supplies and power supply program
CN108605292A (en) * 2016-02-12 2018-09-28 微软技术许可有限责任公司 Electric power knows formula network communication
JP2017216789A (en) * 2016-05-31 2017-12-07 株式会社デジレコ Power supply device
CN106210208A (en) * 2016-09-21 2016-12-07 深圳市金立通信设备有限公司 A kind of terminal and Double-battery powered method thereof
CN107145386A (en) * 2017-04-28 2017-09-08 广东欧珀移动通信有限公司 Data migration method, terminal device and computer-readable recording medium
CN107257146A (en) * 2017-05-27 2017-10-17 上海斐讯数据通信技术有限公司 A kind of wireless charging method and wireless charging router based on charging priority
CN107357673A (en) * 2017-06-28 2017-11-17 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for detecting abnormal power consumption

Also Published As

Publication number Publication date
CN112448429A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
JP4967601B2 (en) Electronic device, charging method of electronic device
EP2180573B1 (en) System and method for controlling charging of battery of portable terminal
US9892691B1 (en) Adaptive battery management
CN112540304B (en) Battery power management method, electronic device and computer storage medium
EP3193179B1 (en) Electric quantity detection method and apparatus, terminal and storage medium
WO2021136383A1 (en) Charging control method and apparatus, electronic device and computer storage medium
WO2022218046A1 (en) Battery charging method and electronic device
US20180331397A1 (en) Charging device and electronic device
US9252618B2 (en) Terminals, terminal systems and charging/discharging methods thereof
US8502505B2 (en) Battery driving device, load control method, integrated circuit and load control program
CN101324800A (en) Computer system and control method thereof
CN112448429B (en) Control method, terminal and computer storage medium
CN202759507U (en) A smart phone
US8854002B2 (en) System and method for programming rechargeable battery characteristics
US20140173309A1 (en) Information processing apparatus, and control method for information processing apparatus
US20140195827A1 (en) Electronic device with power control function
WO2015090077A1 (en) Mobile terminal charging control method, device, system, and mobile terminal
TWI637578B (en) Charging method and electronic device using the same
US9013153B2 (en) Method for controlling battery recharging process and electronic device
US20200274383A1 (en) Portable electronic apparatus and battery power management method thereof
JP4178141B2 (en) Charging apparatus and charging method
JP4030408B2 (en) Operating frequency control system and method
CN113690960B (en) Lithium battery management method and device and related components
CN110148992B (en) Charging control method, terminal device and storage medium
CN110493857B (en) Battery using method, device, terminal 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