CN110401462B - Power management method and related device - Google Patents

Power management method and related device Download PDF

Info

Publication number
CN110401462B
CN110401462B CN201910685512.9A CN201910685512A CN110401462B CN 110401462 B CN110401462 B CN 110401462B CN 201910685512 A CN201910685512 A CN 201910685512A CN 110401462 B CN110401462 B CN 110401462B
Authority
CN
China
Prior art keywords
battery
electric quantity
modules
module
preset
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
CN201910685512.9A
Other languages
Chinese (zh)
Other versions
CN110401462A (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 CN201910685512.9A priority Critical patent/CN110401462B/en
Publication of CN110401462A publication Critical patent/CN110401462A/en
Application granted granted Critical
Publication of CN110401462B publication Critical patent/CN110401462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/16Circuits
    • H04B1/1607Supply circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0262Details of the structure or mounting of specific components for a battery compartment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Abstract

The embodiment of the application discloses a power management method and a related device, which are applied to electronic equipment, wherein the electronic equipment is provided with a first battery and a second battery; the method comprises the following steps: and controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, wherein the plurality of modules are hardware modules enabled by the electronic device. The embodiment of the application is beneficial to improving the intelligence and flexibility of power management of the electronic equipment.

Description

Power management method and related device
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a power management method and a related apparatus.
Background
At present, the traditional single lithium battery is mostly adopted by electronic equipment of the smart phone, and under the condition that a user frequently uses the smart phone, the smart phone is generally charged for many times a day, so that the continuous use requirement of the user for the smart phone is difficult to meet.
At present, some mobile phones have already tried to build 2 batteries in the mobile phones to improve endurance, and how to manage the electric quantity of a multi-battery mobile phone more efficiently is a hot problem.
Disclosure of Invention
The embodiment of the application provides a power management method and a related device, aiming at improving the intelligence and flexibility of power management of electronic equipment.
In a first aspect, an embodiment of the present application provides a power management method, which is applied to an electronic device, where the electronic device is provided with a first battery and a second battery; the method comprises the following steps:
controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, wherein the plurality of modules are hardware modules enabled by the electronic device.
In a second aspect, an embodiment of the present application provides a power management apparatus, which is applied to an electronic device, where the electronic device is provided with a first battery and a second battery; the apparatus comprises a processing unit, wherein,
the processing unit is configured to control the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, where the plurality of modules are hardware modules enabled by the electronic device.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program is executed by a processor to implement part or all of the steps described in any one of the methods of the first aspect of the embodiments of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a computer program operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, an electronic device is provided with a first battery and a second battery, the electronic device controls the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, where the plurality of modules are hardware modules that are enabled by the electronic device, and because the number and the form of the hardware modules of the electronic device are generally fixed, the electronic device may control the first battery to supply power to the plurality of modules, or control the second battery to supply power to the plurality of modules, or control the first battery and the second battery to supply power to the plurality of modules according to a preset policy, thereby improving intelligence and flexibility of dual-battery power management performed by the electronic device.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic diagram of a series dual battery of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic diagram of a dual battery assembly of an electronic device according to an embodiment of the present disclosure;
fig. 1C is an exemplary diagram of a module adding function interface provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a power management method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating another power management method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a block diagram illustrating functional units of a power management device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiments of the present application may be an electronic device with communication capability, and the electronic device may include various handheld devices with wireless communication function, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on.
At present, as shown in fig. 1A, two batteries of a dual-battery mobile phone in the industry are generally integrated into the mobile phone in a series connection manner, the two batteries are connected in series to improve the battery capacity and the cruising ability, and the two batteries are used as a power supply to perform power supply control in the working process of the mobile phone. The power supply mode is similar to the power supply mode of the traditional single battery, and the two batteries work synchronously in the whole process and are not intelligent and flexible enough.
In view of the foregoing problems, embodiments of the present application provide a power management method, and the following describes embodiments of the present application in detail.
As shown in fig. 1B, the electronic device 100 is provided with a first battery 101 and a second battery 102, where the first battery 101 may be a graphene battery, the capacity of the first battery 101 and the capacity of the second battery 102 are not limited, the first battery 101 and the second battery 102 are integrated in the electronic device 100 in a parallel manner or a serial manner, specifically, power supply control of each module may be implemented by a power management chip, and the volumes and positions of the first battery 101 and the second battery 102 are not uniquely limited.
Referring to fig. 2, fig. 2 is a schematic flowchart of a power management method according to an embodiment of the present application, and the power management method is applied to an electronic device, where the electronic device is provided with a first battery and a second battery; as shown in the figure, the power management method includes:
step 201, an electronic device controls the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, where the modules are hardware modules enabled by the electronic device.
The hardware module of the electronic device comprises various sensors (such as a fingerprint sensor, a proximity sensor and the like), a touch display screen and various chips (such as a power management chip, a system-on-a-chip (SoC) chip and the like).
It can be seen that, in the embodiment of the present application, an electronic device is provided with a first battery and a second battery, the electronic device controls the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, where the plurality of modules are hardware modules that are enabled by the electronic device, and because the number and the form of the hardware modules of the electronic device are generally fixed, the electronic device may control the first battery to supply power to the plurality of modules, or control the second battery to supply power to the plurality of modules, or control the first battery and the second battery to supply power to the plurality of modules according to a preset policy, thereby improving intelligence and flexibility of dual-battery power management performed by the electronic device.
In one possible example, the electronic device controls the first battery and/or the second battery to power a plurality of modules of the electronic device, the plurality of modules being hardware modules enabled for the electronic device, including: the electronic equipment controls the first battery and the second battery to supply power to the modules in the starting state in the first module set and the second module set according to a preset first module set corresponding to the first battery and a preset second module set corresponding to the second battery.
The modules in the first module set may have a power supply control relationship with only the first battery, and the modules in the second module set may have a power supply control relationship with both the first battery and the second battery.
The first module set and the second module set may be obtained according to a preset module division strategy, where the preset module division strategy may be division according to the capacity of the first battery and the capacity of the second battery, that is, a reference capacity ratio is determined according to the capacity of the first battery and the capacity of the second battery; obtaining power consumption intervals of the modules according to the historical power consumption data statistics and analysis of each module in the modules; dividing the power consumption interval into power consumption intervals according to a reference capacity proportion to obtain a first power consumption interval corresponding to the first battery and a second power consumption interval corresponding to the second battery, then adding the modules falling into the first power consumption interval to the first module set, and adding the modules falling into the second power consumption interval to the second module set.
In addition, the first module set and the second module set may also be customized according to an instruction of a user, as shown in fig. 1C, the electronic device may visually output a hardware composition diagram of the electronic device on the display screen, in the diagram, the hardware module displayed on the display screen may correspond to a position of a real hardware module, when the user drags a corresponding addition tag to a corresponding region through a finger (in the diagram, the example of dragging the second module set to add the tag to a motor region is taken), the electronic device may position the selected hardware module based on a region where the current addition tag is located, and prompt the user to "confirm to add the hardware module to the corresponding module set after releasing", so as to improve convenience in use, or receive a configuration instruction sent by the server, the configuration instruction being determined by using a endurance balancing policy according to a large amount of usage data. In the present application, the first module set and the second module set are not limited uniquely.
It can be seen that in this example, because electronic equipment can carry out differentiation power supply control to the different module sets of first second battery dynamic partitioning, the second battery need not to supply power for the module that first module was concentrated, and first battery need not to supply power for the module that second module was concentrated, so can avoid two batteries whole journey work, increase the loss, improve power supply control intelligence and flexibility, improve life.
In this possible example, the first battery is a graphene battery; the electronic device controls the first battery and the second battery to supply power to modules started in the first module set and the second module set according to a preset first module set corresponding to the first battery and a preset second module set corresponding to the second battery, and the method includes: when the electronic equipment detects that the first electric quantity of the first battery is larger than a first preset electric quantity and the second electric quantity of the second battery is larger than a second preset electric quantity, the first battery is controlled to supply power to the modules which are started in the first module set, and the second battery is controlled to supply power to the modules which are started in the second module set, wherein the first preset electric quantity is larger than the second preset electric quantity;
when the first electric quantity is detected to be larger than the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity, the first battery is controlled to supply power to the modules started in the first module set, and meanwhile the first battery and the second battery are controlled to supply power to the modules started in the second module set;
in a specific implementation, the first battery can assist the second battery to supply power to part or all of the second module set.
When the first electric quantity is detected to be smaller than or equal to the first preset electric quantity and the second electric quantity is larger than the second preset electric quantity, prompting a user to charge, controlling the second battery to charge the first battery to enable the first electric quantity of the first battery to be larger than the first preset electric quantity when the charging operation of connecting a charger is not detected in a preset time period, controlling the first battery to supply power to the modules started in the first module set, and controlling the second battery to supply power to the modules started in the second module set;
in the specific implementation, if the electronic device detects the operation of connecting the charger, the graphene battery is charged preferentially, and then the second battery is charged, so that the charging efficiency of the electronic device is ensured.
And when the first electric quantity is detected to be smaller than or equal to the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity, closing one or more modules in the plurality of modules which are started in the first module set and the second module set.
In the concrete implementation, the electronic equipment can preferentially close a hardware module which does not influence the use stability, such as an unused Bluetooth module or an unused wireless high-fidelity Wi-Fi module, and the like, and the electronic equipment can specifically combine the current use requirements to carry out intelligent screening, such as a loudspeaker can be closed in a text reading scene.
It can be seen that, in this example, when the first and second batteries are sufficient in power, the electronic device respectively controls the first battery to supply power to the first module set, the second battery supplies power to the second module set, when the first battery is sufficient in power and the second battery is insufficient in power, the first battery is controlled to assist the second battery to supply power to the module started by the second module set, when the first battery is insufficient in power and the second battery is sufficient in power, the first battery is rapidly charged by the second battery, so that the first battery has sufficient power to continue to supply power to the first module set, when the first battery is insufficient in power, part of the modules are turned off to maintain normal operation of the electronic device, and the electronic device can flexibly control power to maintain stable operation of the electronic device for different power combinations, thereby improving stability and intelligence of power control.
In this possible example, the controlling, by the electronic device, the second battery to charge the first battery so that the first electric quantity of the first battery is greater than the first preset electric quantity includes: the electronic equipment acquires the first electric quantity, the second electric quantity, the modules started in the first module set and the modules started in the second module set; predicting a duration of continuous use of each module enabled in the first set of modules and each module enabled in the second set of modules; determining a first power consumption oscillogram of the first battery in a preset time period according to the continuous use time of each module started in the first module set and the power consumption of the corresponding module, and determining a second power consumption oscillogram of the second battery in the preset time period according to the continuous use time of each module started in the second module set and the power consumption of the corresponding module; determining a target electric quantity which needs to be transferred from the second battery to the first battery according to the first power consumption oscillogram, the second power consumption oscillogram, the first electric quantity, the second electric quantity and a preset endurance balance condition, wherein the preset endurance balance condition means that endurance durations of the first battery and the second battery are the same; and controlling the second battery to charge the first battery according to the target electric quantity.
The service time and the power consumption of each module can be obtained through background statistics.
As can be seen, in this example, the electronic device determines the transferred power amount based on the optimization target of the duration consistency, and by combining the predicted power consumption information and the actual remaining power amount, so as to improve the stability and efficiency of power supply control.
In this possible example, the electronic device controlling the first battery and the second battery to power the second set of modules enabled includes: the electronic equipment determines that the power consumption of the module started by the second module set is larger than the first module with preset power consumption; and controlling the first battery to supply power to the first module, and controlling the second battery to supply power to the modules, except the first module, in the modules started by the second module set.
In specific implementation, the electronic device can configure the modules in the second module set with high power consumption to the first battery for power supply, so that power consumption balance is realized.
In one possible example, the electronic device controls the first battery and/or the second battery to power a plurality of modules of the electronic device, including: the electronic equipment acquires state information of the electronic equipment, wherein the state information comprises at least one of the following: the running state of the application, the first electric quantity of the first battery, the first loss degree, the second electric quantity of the second battery and the second loss degree; and controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic equipment according to the state information.
In this example, the state information of the electronic device can constrain the power supply policy of the battery from different dimensions, and the combination of the state information is not limited uniquely.
Therefore, in the example, the electronic equipment can intelligently control power supply according to the state information, and the flexibility and intelligence of electric quantity control are improved.
In one possible example, the status information includes the first degree of loss, the second degree of loss, the first amount of power, the second amount of power; the electronic device controls the first battery and/or the second battery to supply power to a plurality of modules of the electronic device according to the state information, and the method comprises the following steps: the electronic equipment determines a first reference unit power supply time length of the first battery according to the first loss degree, and determines a second reference unit power supply time length of the second battery according to the second loss degree; determining the power supply time proportional relation of the first battery and the second battery according to the first reference unit power supply time and the second reference unit power supply time; according to the proportional relation of the first electric quantity, the second electric quantity and the power supply duration, the residual electric quantity of the first battery and the second battery is adjusted in a mode of transferring electric quantity among batteries, so that the adjusted first duration of the first battery and the adjusted second duration of the second battery are matched with the proportional relation of the power supply duration; and the first battery and the second battery which are subjected to time-division control electric quantity adjustment respectively supply power to the plurality of modules.
In specific implementation, because the capacity of the battery is gradually reduced along with the increase of the number of times of use, the loss degree is gradually increased, the corresponding relation between the specific loss degree and the use duration can be obtained based on historical power supply data statistical analysis, and the lower the loss degree of the battery, the longer the power supply duration using the battery is. For example, the priority may include ten loss degrees, and each loss degree corresponds to the recommended usage duration in a unit hour, so that a power supply duration proportional relationship can be obtained. Assuming that the electronic device is pre-configured with 10 loss degrees, from low to high, loss degree 1 and loss degree 2.. loss degree 10, and the recommended usage duration in the corresponding unit hour is as shown in table 1:
TABLE 1
Figure BDA0002146170020000081
If the electronic equipment determines that the loss degree of the first battery is 3 according to the loss degree of the first battery and determines that the loss degree of the second battery is 8 according to the loss degree of the second battery, the power supply time length proportion relation of the first battery and the second battery is 40:15, namely 8: 3.
The inter-battery electric quantity transfer specifically means that the second battery charges the first battery.
Therefore, in this example, the electronic device can determine the power supply time length proportional relation of the batteries according to the loss degree, and finally, the first and second batteries are matched with the power supply time length proportional relation through electric quantity transfer between the batteries, so that the use losses of the two batteries are balanced.
Referring to fig. 3, fig. 3 is a schematic flow chart of a power management method according to an embodiment of the present application, applied to the electronic device shown in fig. 1B, where the electronic device is provided with a first battery and a second battery; the first battery is a graphene battery; as shown in the figure, the power management method includes:
in step 300, the electronic device obtains the power of the first battery and the power of the second battery.
Step 301, when detecting that a first electric quantity of the first battery is greater than a first preset electric quantity and a second electric quantity of the second battery is greater than a second preset electric quantity, the electronic device controls the first battery to supply power to the modules which are started in a centralized manner by the first module and controls the second battery to supply power to the modules which are started in a centralized manner by the second module, wherein the first preset electric quantity is greater than the second preset electric quantity.
Step 302, when detecting that the first electric quantity is greater than the first preset electric quantity and the second electric quantity is less than or equal to the second preset electric quantity, the electronic device controls the first battery to supply power to the modules started in the first module set and controls the first battery and the second battery to supply power to the modules started in the second module set.
Step 303, when detecting that the first electric quantity is less than or equal to the first preset electric quantity and the second electric quantity is greater than the second preset electric quantity, the electronic device prompts a user to charge, and when detecting no charging operation of connecting a charger within a preset time period, acquires the first electric quantity, the second electric quantity, the modules started in the first module set, and the modules started in the second module set.
At step 304, the electronic device predicts a duration of continuous use for each module enabled in the first set of modules and each module enabled in the second set of modules.
Step 305, the electronic device determines a first power consumption waveform diagram of the first battery in a preset time period according to the continuous use time length of each module started in the first module set and the power consumption of the corresponding module, and determines a second power consumption waveform diagram of the second battery in the preset time period according to the continuous use time length of each module started in the second module set and the power consumption of the corresponding module.
Step 306, determining a target electric quantity to be transferred from the second battery to the first battery according to the first power consumption oscillogram, the second power consumption oscillogram, the first electric quantity, the second electric quantity, and a preset endurance balance condition, where the preset endurance balance condition is that endurance durations of the first battery and the second battery are the same.
Step 307, controlling the second battery to charge the first battery according to the target electric quantity.
Step 308, controlling the first battery to supply power to the modules started in the first module set, and controlling the second battery to supply power to the modules started in the second module set.
Step 309, when it is detected that the first electric quantity is less than or equal to the first preset electric quantity and the second electric quantity is less than or equal to the second preset electric quantity, turning off one or more modules of the plurality of modules which are enabled in the first module set and the second module set.
It can be seen that, in the embodiment of the present application, an electronic device is provided with a first battery and a second battery, the electronic device controls the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, where the plurality of modules are hardware modules that are enabled by the electronic device, and because the number and the form of the hardware modules of the electronic device are generally fixed, the electronic device may control the first battery to supply power to the plurality of modules, or control the second battery to supply power to the plurality of modules, or control the first battery and the second battery to supply power to the plurality of modules according to a preset policy, thereby improving intelligence and flexibility of dual-battery power management performed by the electronic device.
In addition, when the electric quantity of the first battery and the electric quantity of the second battery are sufficient, the electronic equipment respectively controls the first battery to supply power to the first module set, the second battery supplies power to the second module set, when the electric quantity of the first battery is sufficient and the electric quantity of the second battery is insufficient, the first battery is controlled to assist the second battery to supply power to the module started by the second module set, when the electric quantity of the first battery is insufficient and the electric quantity of the second battery is sufficient, the first battery is rapidly charged by the second battery, enough electric quantity of the first battery continues to supply power to the first module set, when the electric quantity of the first battery is insufficient, part of the modules are closed to maintain the normal operation of the electronic equipment, the electronic equipment can flexibly control the electric quantity to maintain the stable operation of the electronic equipment according to different electric quantity combination conditions, and the stability and the intelligence of the electric quantity control are improved.
Consistent with the embodiments shown in fig. 2 and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an electronic device 400 provided in an embodiment of the present application, and as shown in the figure, the electronic device 400 includes an application processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the application processor 410, the electronic device is provided with a first battery and a second battery, and the one or more programs 421 include instructions for performing the following steps.
Controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, wherein the plurality of modules are hardware modules enabled by the electronic device.
In one possible example, in terms of the controlling the first battery and/or the second battery to power the modules of the electronic device, the instructions in the program are specifically configured to: and controlling the first battery and the second battery to supply power to the modules in the starting state in the first module set and the second module set according to a preset first module set corresponding to the first battery and a preset second module set corresponding to the second battery.
In one possible example, the first battery is a graphene battery; in the aspect that the first battery and the second battery are controlled to supply power to modules activated in the first module set and the second module set according to the preset first module set corresponding to the first battery and the preset second module set corresponding to the second battery, the instruction in the program is specifically configured to perform the following operations: when detecting that the first electric quantity of the first battery is larger than a first preset electric quantity and the second electric quantity of the second battery is larger than a second preset electric quantity, controlling the first battery to supply power to the modules which are started in the first module set and controlling the second battery to supply power to the modules which are started in the second module set, wherein the first preset electric quantity is larger than the second preset electric quantity;
when the first electric quantity is detected to be larger than the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity, the first battery is controlled to supply power to the modules started in the first module set, and meanwhile the first battery and the second battery are controlled to supply power to the modules started in the second module set;
when the first electric quantity is detected to be smaller than or equal to the first preset electric quantity and the second electric quantity is larger than the second preset electric quantity, prompting a user to charge, controlling the second battery to charge the first battery to enable the first electric quantity of the first battery to be larger than the first preset electric quantity when the charging operation of connecting a charger is not detected in a preset time period, controlling the first battery to supply power to the modules started in the first module set, and controlling the second battery to supply power to the modules started in the second module set;
and when the first electric quantity is detected to be smaller than or equal to the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity, closing one or more modules in the plurality of modules which are started in the first module set and the second module set.
In one possible example, in terms of controlling the second battery to charge the first battery so that the first electric quantity of the first battery is greater than the first preset electric quantity, the instructions in the program are specifically configured to: acquiring the first electric quantity, the second electric quantity, the modules started in the first module set and the modules started in the second module set; and predicting a duration of continuous use of each module enabled in the first set of modules and each module enabled in the second set of modules; determining a first power consumption oscillogram of the first battery in a preset time period according to the continuous use time of each module started in the first module set and the power consumption of the corresponding module, and determining a second power consumption oscillogram of the second battery in the preset time period according to the continuous use time of each module started in the second module set and the power consumption of the corresponding module; determining a target electric quantity which needs to be transferred from the second battery to the first battery according to the first power consumption oscillogram, the second power consumption oscillogram, the first electric quantity, the second electric quantity and a preset endurance balance condition, wherein the preset endurance balance condition means that endurance durations of the first battery and the second battery are the same; and controlling the second battery to charge the first battery according to the target electric quantity.
In one possible example, in terms of the controlling the first battery and the second battery to power the module enabled by the second module set, the instructions in the program are specifically configured to: the first module determines that the power consumption of the module started by the second module set is greater than the preset power consumption; and controlling the first battery to supply power to the first module, and controlling the second battery to supply power to the modules, except the first module, of the modules started by the second module set.
In one possible example, in terms of the controlling the first battery and/or the second battery to power the modules of the electronic device, the instructions in the program are specifically configured to: acquiring state information of the electronic equipment, wherein the state information comprises at least one of the following: the running state of the application, the first electric quantity of the first battery, the first loss degree, the second electric quantity of the second battery and the second loss degree; and controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic equipment according to the state information.
In one possible example, the status information includes the first degree of loss, the second degree of loss, the first amount of power, the second amount of power; in the aspect of controlling the first battery and/or the second battery to supply power to the modules of the electronic device according to the state information, the instructions in the program are specifically configured to perform the following operations: determining a first reference unit power supply time length of the first battery according to the first loss degree, and determining a second reference unit power supply time length of the second battery according to the second loss degree; determining the power supply time proportional relation of the first battery and the second battery according to the first reference unit power supply time and the second reference unit power supply time; according to the proportional relation of the first electric quantity, the second electric quantity and the power supply duration, the residual electric quantity of the first battery and the second battery is adjusted in an electric quantity transferring mode between batteries, so that the adjusted first duration of the first battery and the adjusted second duration of the second battery are matched with the proportional relation of the power supply duration; and the first battery and the second battery which are used for controlling the electric quantity to be adjusted in a time division mode respectively supply power for the plurality of modules.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 5 is a block diagram showing functional units of the power management device 500 according to the embodiment of the present application. The power management device 500 is applied to an electronic device, the electronic device includes a rear camera and a cover plate arranged opposite to the rear camera, the cover plate supports a touch display function, and the power management device includes a processing unit 501 and a communication unit 502.
The processing unit 501 is configured to execute any step in the above method embodiments, and when data transmission such as sending is performed, the communication unit 502 is optionally invoked to complete a corresponding operation. The details will be described below.
The processing unit 501 is configured to control the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, where the modules are hardware modules enabled by the electronic device.
In one possible example, in terms of controlling the first battery and/or the second battery to supply power to the modules of the electronic device, the processing unit 501 is specifically configured to: and controlling the first battery and the second battery to supply power to the modules in the starting state in the first module set and the second module set according to a preset first module set corresponding to the first battery and a preset second module set corresponding to the second battery.
In one possible example, the first battery is a graphene battery; in the aspect that the first battery and the second battery are controlled to supply power to modules collectively enabled by the first module set and the second module set according to the preset first module set corresponding to the first battery and the preset second module set corresponding to the second battery, the processing unit 501 is specifically configured to: when detecting that the first electric quantity of the first battery is larger than a first preset electric quantity and the second electric quantity of the second battery is larger than a second preset electric quantity, controlling the first battery to supply power to the modules which are started in the first module set and controlling the second battery to supply power to the modules which are started in the second module set, wherein the first preset electric quantity is larger than the second preset electric quantity;
when the first electric quantity is detected to be larger than the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity, the first battery is controlled to supply power to the modules started in the first module set, and meanwhile the first battery and the second battery are controlled to supply power to the modules started in the second module set;
when the first electric quantity is detected to be smaller than or equal to the first preset electric quantity and the second electric quantity is larger than the second preset electric quantity, prompting a user to charge, controlling the second battery to charge the first battery to enable the first electric quantity of the first battery to be larger than the first preset electric quantity when the charging operation of connecting a charger is not detected in a preset time period, controlling the first battery to supply power to the modules started in the first module set, and controlling the second battery to supply power to the modules started in the second module set;
and when the first electric quantity is detected to be smaller than or equal to the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity, closing one or more modules in the plurality of modules which are started in the first module set and the second module set.
In a possible example, in terms of controlling the second battery to charge the first battery so that the first electric quantity of the first battery is greater than the first preset electric quantity, the processing unit 501 is specifically configured to: acquiring the first electric quantity, the second electric quantity, the modules started in the first module set and the modules started in the second module set; and predicting a duration of continuous use of each module enabled in the first set of modules and each module enabled in the second set of modules; determining a first power consumption oscillogram of the first battery in a preset time period according to the continuous use time of each module started in the first module set and the power consumption of the corresponding module, and determining a second power consumption oscillogram of the second battery in the preset time period according to the continuous use time of each module started in the second module set and the power consumption of the corresponding module; determining a target electric quantity which needs to be transferred from the second battery to the first battery according to the first power consumption oscillogram, the second power consumption oscillogram, the first electric quantity, the second electric quantity and a preset endurance balance condition, wherein the preset endurance balance condition means that endurance durations of the first battery and the second battery are the same; and controlling the second battery to charge the first battery according to the target electric quantity.
In one possible example, in terms of controlling the first battery and the second battery to supply power to the module enabled by the second module set, the processing unit 501 is specifically configured to: the first module determines that the power consumption of the module started by the second module set is greater than the preset power consumption; and controlling the first battery to supply power to the first module, and controlling the second battery to supply power to the modules, except the first module, of the modules started by the second module set.
In one possible example, in terms of controlling the first battery and/or the second battery to supply power to the modules of the electronic device, the processing unit 501 is specifically configured to: acquiring state information of the electronic equipment, wherein the state information comprises at least one of the following: the running state of the application, the first electric quantity of the first battery, the first loss degree, the second electric quantity of the second battery and the second loss degree; and controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic equipment according to the state information.
In one possible example, the status information includes the first degree of loss, the second degree of loss, the first amount of power, the second amount of power; in the aspect of controlling the first battery and/or the second battery to supply power to the modules of the electronic device according to the state information, the processing unit 501 is specifically configured to: determining a first reference unit power supply time length of the first battery according to the first loss degree, and determining a second reference unit power supply time length of the second battery according to the second loss degree; determining the power supply time proportional relation of the first battery and the second battery according to the first reference unit power supply time and the second reference unit power supply time; according to the proportional relation of the first electric quantity, the second electric quantity and the power supply duration, the residual electric quantity of the first battery and the second battery is adjusted in an electric quantity transferring mode between batteries, so that the adjusted first duration of the first battery and the adjusted second duration of the second battery are matched with the proportional relation of the power supply duration; and the first battery and the second battery which are used for controlling the electric quantity to be adjusted in a time division mode respectively supply power for the plurality of modules.
The power management apparatus 500 may further include a storage unit 503 for storing program codes and data of the electronic device. The processing unit 501 may be a processor, the communication unit 502 may be a touch display screen or a transceiver, and the storage unit 503 may be a memory.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
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 a plurality of 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, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A power management method is applied to electronic equipment, and the electronic equipment is provided with a first battery and a second battery; the method comprises the following steps:
controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic device, wherein the plurality of modules are hardware modules enabled by the electronic device;
the controlling the first battery and/or the second battery to power a plurality of modules of the electronic device comprises: when detecting that the first electric quantity of the first battery is larger than a first preset electric quantity and the second electric quantity of the second battery is larger than a second preset electric quantity, controlling the first battery to supply power to a module which is started in a first module set and corresponds to the first battery, and controlling the second battery to supply power to a module which is started in a second module set and corresponds to the second battery, wherein the first preset electric quantity is larger than the second preset electric quantity, and the first module set and the second module set are obtained according to a preset module division strategy; when the first electric quantity is detected to be larger than the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity, the first battery is controlled to supply power to the modules started in the first module set, and meanwhile the first battery and the second battery are controlled to supply power to the modules started in the second module set; when the first electric quantity is detected to be smaller than or equal to the first preset electric quantity and the second electric quantity is larger than the second preset electric quantity, prompting a user to charge, controlling the second battery to charge the first battery to enable the first electric quantity of the first battery to be larger than the first preset electric quantity when the charging operation of connecting a charger is not detected in a preset time period, controlling the first battery to supply power to the modules started in the first module set, and controlling the second battery to supply power to the modules started in the second module set; when detecting that the first electric quantity is smaller than or equal to the first preset electric quantity and the second electric quantity is smaller than or equal to the second preset electric quantity, closing one or more modules in a plurality of modules which are started in the first module set and the second module set; alternatively, the first and second electrodes may be,
the controlling the first battery and/or the second battery to power a plurality of modules of the electronic device comprises: acquiring state information of the electronic equipment, wherein the state information comprises a first loss degree of the first battery, a second loss degree of the second battery, the first electric quantity and the second electric quantity; and controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic equipment according to the state information.
2. The method of claim 1, wherein the first cell is a graphene cell.
3. The method of claim 2, wherein the controlling the second battery to charge the first battery such that the first charge of the first battery is greater than the first preset charge comprises:
acquiring the first electric quantity, the second electric quantity, the modules started in the first module set and the modules started in the second module set;
predicting a duration of continuous use of each module enabled in the first set of modules and each module enabled in the second set of modules;
determining a first power consumption oscillogram of the first battery in a preset time period according to the continuous use time of each module started in the first module set and the power consumption of the corresponding module, and determining a second power consumption oscillogram of the second battery in the preset time period according to the continuous use time of each module started in the second module set and the power consumption of the corresponding module;
determining a target electric quantity which needs to be transferred from the second battery to the first battery according to the first power consumption oscillogram, the second power consumption oscillogram, the first electric quantity, the second electric quantity and a preset endurance balance condition, wherein the preset endurance balance condition means that endurance durations of the first battery and the second battery are the same;
and controlling the second battery to charge the first battery according to the target electric quantity.
4. The method of claim 2 or 3, wherein the controlling the first battery and the second battery to power the second set of modules comprises:
the first module determines that the power consumption of the module started by the second module set is greater than the preset power consumption;
and controlling the first battery to supply power to the first module, and controlling the second battery to supply power to the modules, except the first module, in the modules started by the second module set.
5. The method of claim 1, wherein the controlling the first battery and/or the second battery to power a plurality of modules of the electronic device according to the status information comprises:
determining a first reference unit power supply time length of the first battery according to the first loss degree, determining a second reference unit power supply time length of the second battery according to the second loss degree, wherein the reference unit power supply time length corresponds to the recommended use time length in unit hours;
determining the power supply time proportional relation of the first battery and the second battery according to the first reference unit power supply time and the second reference unit power supply time;
according to the proportional relation of the first electric quantity, the second electric quantity and the power supply duration, the residual electric quantity of the first battery and the second battery is adjusted in a mode of transferring electric quantity among batteries, so that the adjusted first duration of the first battery and the adjusted second duration of the second battery are matched with the proportional relation of the power supply duration;
and the first battery and the second battery which are subjected to time-division control electric quantity adjustment respectively supply power to the plurality of modules.
6. A power management device is applied to electronic equipment, and the electronic equipment is provided with a first battery and a second battery; the apparatus comprises a control unit, wherein,
the control unit is used for controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic equipment, and the modules are hardware modules enabled by the electronic equipment;
in the aspect of controlling the first battery and/or the second battery to supply power to the plurality of modules of the electronic device, the control unit is specifically configured to: when detecting that a first electric quantity of the first battery is larger than a first preset electric quantity and a second electric quantity of the second battery is larger than a second preset electric quantity, controlling the first battery to supply power to a module which is started in a first module set corresponding to the first battery and controlling the second battery to supply power to a module which is started in a second module set corresponding to the second battery, wherein the first preset electric quantity is larger than the second preset electric quantity, the first module set and the second module set are obtained according to a preset module division strategy, and the module which is started in the first module set and the module which is started in the second module set are hardware modules started by the electronic equipment; the first battery and the second battery are controlled to supply power to the modules started in the second module set while the first battery is controlled to supply power to the modules started in the first module set when the first electric quantity is detected to be larger than the first preset electric quantity and the second electric quantity is detected to be smaller than or equal to the second preset electric quantity; and the controller is used for prompting a user to charge when the first electric quantity is detected to be less than or equal to the first preset electric quantity and the second electric quantity is detected to be greater than the second preset electric quantity, controlling the second battery to charge the first battery when the charging operation of connecting a charger is not detected in a preset time period so that the first electric quantity of the first battery is greater than the first preset electric quantity, controlling the first battery to supply power to the modules started in the first module set, and controlling the second battery to supply power to the modules started in the second module set; the first module set and the second module set are used for starting up a plurality of modules, and the first electric quantity is less than or equal to a first preset electric quantity and the second electric quantity is less than or equal to a second preset electric quantity; alternatively, the first and second electrodes may be,
in the aspect of controlling the first battery and/or the second battery to supply power to the plurality of modules of the electronic device, the control unit is specifically configured to: acquiring state information of the electronic equipment, wherein the state information comprises a first loss degree of the first battery, a second loss degree of the second battery, the first electric quantity and the second electric quantity; and controlling the first battery and/or the second battery to supply power to a plurality of modules of the electronic equipment according to the state information.
7. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program is executed by a processor to implement the method according to any of the claims 1-5.
CN201910685512.9A 2019-07-27 2019-07-27 Power management method and related device Active CN110401462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910685512.9A CN110401462B (en) 2019-07-27 2019-07-27 Power management method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910685512.9A CN110401462B (en) 2019-07-27 2019-07-27 Power management method and related device

Publications (2)

Publication Number Publication Date
CN110401462A CN110401462A (en) 2019-11-01
CN110401462B true CN110401462B (en) 2021-04-20

Family

ID=68326259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910685512.9A Active CN110401462B (en) 2019-07-27 2019-07-27 Power management method and related device

Country Status (1)

Country Link
CN (1) CN110401462B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852143A (en) * 2020-06-28 2021-12-28 北京小米移动软件有限公司 Electric energy management method and device and storage medium
WO2022089646A1 (en) * 2020-10-30 2022-05-05 王浩 Charging control apparatus and charging control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2282494B1 (en) * 2009-07-08 2018-09-05 Lg Electronics Inc. Mobile terminal with multiple batteries
CN102307260A (en) * 2011-09-07 2012-01-04 深圳市金立通信设备有限公司 Mobile phone double cell electric quantity management system and method thereof
CN105048621B (en) * 2015-04-01 2018-01-19 深圳市鸿陆技术有限公司 A kind of RFID handheld terminals and its Double-battery powered method
CN108684209B (en) * 2016-01-29 2023-03-14 株式会社半导体能源研究所 Power control system
CN106210208A (en) * 2016-09-21 2016-12-07 深圳市金立通信设备有限公司 A kind of terminal and Double-battery powered method thereof
CN106714289B (en) * 2017-03-14 2019-11-15 西安电子科技大学 Smart phone remaining capacity management method based on application combination power consumption prediction

Also Published As

Publication number Publication date
CN110401462A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
EP3066743B1 (en) Intelligent context based battery charging
US9269333B2 (en) Terminal and method for charging and discharging thereof
US7415623B2 (en) System for managing the power source life between multiple individually powered devices in a wired system and method of using same
CN103080868B (en) Charging port
EP1349049B1 (en) Distribution of tasks over time in a mobile terminal
US20080238358A1 (en) Electronic apparatus, charging method therefor, and battery
US9391466B2 (en) Method and device for battery-charging management
CN110401462B (en) Power management method and related device
CN110797924B (en) Battery control system and method and electronic equipment
CN106413053B (en) A kind of mobile terminal and its electricity saving method
CN115275443A (en) Heating control method and heating control device for vehicle-mounted power battery, and vehicle
CN109450013A (en) A kind of management method and device of base station battery
US20130193906A1 (en) Terminals, terminal systems and charging/discharging methods thereof
CN106462215A (en) Systems and methods for power management of a modular mobile electronic device
US8438412B1 (en) System, method, and computer program for enabling an amount of multitasking for use by an operating system
WO2017215266A1 (en) Charging method and device for terminal
CN107515667A (en) Power-saving method and intelligent glasses
CN110690735A (en) Energy storage system based on distributed multi-storage-battery module and control method
CN112448039B (en) Lithium ion battery and lithium ion battery charging and discharging control method and device
WO2014023185A1 (en) Method and device for battery-charging management
CN104184179A (en) Battery control method and device, and wireless terminal
EP3902086A1 (en) Charging control apparatus and method, and electronic device
CN111614131A (en) Electronic device and discharge control method
CN113859552B (en) Battery management system
US20240022073A1 (en) Demand response management for a battery charging system

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