CN110138052B - Charging control method and related product - Google Patents

Charging control method and related product Download PDF

Info

Publication number
CN110138052B
CN110138052B CN201910528819.8A CN201910528819A CN110138052B CN 110138052 B CN110138052 B CN 110138052B CN 201910528819 A CN201910528819 A CN 201910528819A CN 110138052 B CN110138052 B CN 110138052B
Authority
CN
China
Prior art keywords
battery
charging
preset
temperature
determining
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
CN201910528819.8A
Other languages
Chinese (zh)
Other versions
CN110138052A (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 CN201910528819.8A priority Critical patent/CN110138052B/en
Publication of CN110138052A publication Critical patent/CN110138052A/en
Application granted granted Critical
Publication of CN110138052B publication Critical patent/CN110138052B/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/0013Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries acting upon several batteries simultaneously or sequentially
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

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

Abstract

The embodiment of the application discloses a charging control method and a related product, and the charging control method and the related product are applied to electronic equipment, the electronic equipment comprises a first battery and a second battery, the charging priority order of the first battery and the second battery is determined according to the running state by acquiring the running state of the electronic equipment, and the first battery and the second battery are charged according to the charging priority order, so that the two batteries can be flexibly controlled to be charged according to the running state of the electronic equipment, and the intelligence of battery charging control is improved.

Description

Charging control method and related product
Technical Field
The application relates to the field of charging control, in particular to a charging control method and a related product.
Background
With the widespread use of electronic devices (such as mobile phones and tablet computers), the applications that the electronic devices can support are increasing, the functions are becoming more and more powerful, and the electronic devices are developing towards diversification and personalization directions and becoming indispensable electronic articles for use in the life of users.
Currently, most electronic devices are powered by a battery, which includes a general battery in a general charging mode and a fast charging battery with a large charging current or charging voltage. In order to increase the charging rate of the electronic device and increase the endurance, some electronic devices have two batteries for supplying power to the electronic device, and the two batteries have different internal structures or different materials, so that the two batteries have different working performances. When two batteries exist in the electronic equipment and the batteries are charged, if the electronic equipment runs a high-power-consumption application, the electric quantity consumption and the charging progress are possibly influenced, and the temperature of the batteries is also influenced, so that the service life of the batteries is influenced.
Disclosure of Invention
The embodiment of the application provides a charging control method and a related product, which can flexibly control two batteries to be charged according to the running state of electronic equipment, and improve the intelligence of battery charging control.
In a first aspect, an embodiment of the present application provides a charging control method, which is applied to an electronic device, where the electronic device includes a first battery and a second battery, and the method includes:
acquiring the running state of the electronic equipment;
determining a charging priority order of the first battery and the second battery according to the operating state;
charging the first battery and the second battery according to the charging priority order.
In a second aspect, an embodiment of the present application provides a charge control device, which is applied to an electronic device, where the electronic device includes a first battery and a second battery, and the charge control device includes:
the acquisition unit is used for acquiring the running state of the electronic equipment;
a determination unit configured to determine a charging priority order of the first battery and the second battery according to the operating state;
a control unit for charging the first battery and the second battery according to the charging priority order.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a first battery, a second battery, a processor, a memory and 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 some or all of the steps as described in the first aspect of an embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the charging control method and the related product described in the embodiments of the present application are applied to an electronic device, where the electronic device includes a first battery and a second battery, and the first battery and the second battery are charged according to a charging priority order by acquiring an operating state of the electronic device and determining a charging priority order of the first battery and the second battery according to the operating state, so that the two batteries can be flexibly controlled to be charged according to the operating state of the electronic device, and the intelligence of battery charging control is improved.
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 structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic flowchart of a charging control method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another charging control method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another charging control method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a charging control device according to an embodiment of the present application;
fig. 6 is another schematic structural diagram of an electronic device provided in an embodiment of the present application.
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 but may alternatively include other steps or elements not expressly 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 may be combined with other embodiments.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present disclosure, where the electronic device 100 includes: the electronic device 100 further comprises a housing 110, a circuit board 120 disposed in the housing 110, and a display 130 disposed on the housing 110, wherein the circuit board 120 is provided with a processor 121 and a memory 122, and the electronic device 100 further comprises a first battery 140 and a second battery 150 respectively connected to the processor 121.
Referring to fig. 1B, fig. 1B is a schematic flowchart of a charging control method according to an embodiment of the present disclosure, where the charging control method described in the embodiment is applied to the electronic device shown in fig. 1A, the electronic device includes a first battery and a second battery, and the charging control method includes:
101. and acquiring the running state of the electronic equipment.
Wherein the operating state may comprise at least one of: the running applications in the electronic device include foreground running applications and postnatal running applications, the internal temperature of the electronic device, the power consumption rate of the applications, the currently working hardware module of the electronic device, the temperature corresponding to the currently working hardware module, the residual electric quantity corresponding to the first battery and the second battery respectively, and the like.
In the embodiment of the application, the running state of the electronic equipment can be acquired when the electronic equipment enters the charging state, wherein the electronic equipment can be determined to enter the charging state after the electronic equipment is connected with the power adapter or wirelessly connected with the wireless charger.
102. And determining the charging priority order of the first battery and the second battery according to the running state.
Wherein the first battery or the second battery may include at least one of: graphene batteries, fuel cells, solar cells, alkaline cells, nickel metal hydride cells, carbon cells, lithium cells, and the like.
In the embodiment of the present application, considering that the electric quantity consumption of the first battery and the second battery and the influence on the charging progress are different when the electronic device is in different operating states, specifically, the charging priority order of the first battery and the second battery may be determined according to the order of the influence on the internal temperature of the electronic device in different operating states. For example, during the charging process, when the internal temperature of the electronic device is high, the battery with better high temperature resistance performance parameters can be charged preferentially, so that the influence of high temperature on the service life of the battery can be reduced.
Optionally, in step 102, determining the charging priority order of the first battery and the second battery according to the operating status may include the following steps:
21. if the electronic equipment is running a preset application and the first internal temperature of the electronic equipment is higher than a first preset temperature, acquiring a first high-temperature-resistant performance parameter corresponding to the first battery and a second high-temperature-resistant performance parameter corresponding to the second battery;
22. and if the first high-temperature-resistant performance parameter is better than the second high-temperature-resistant performance parameter, determining that the charging priority of the first battery is higher than that of the second battery.
The preset application can be any one of the following applications: gaming applications, video playback applications, chat applications, social applications, such as micro-blogging applications, learning applications, and the like. Optionally, the preset application may be an application with a power consumption rate greater than a preset rate, or the preset application may be an application with a network resource occupation amount greater than a preset network resource occupation amount.
The first internal temperature is a temperature inside the electronic device when the charging is ready to be started. The first or second high temperature resistance parameter may include at least one of: working temperature, electric heating peak value, battery internal resistance and the like, wherein the electric heating peak value refers to the maximum value of heat generated by continuous discharge of the battery.
In the embodiment of the application, if the electronic device runs the preset application, and the first internal temperature of the electronic device is higher than the first preset temperature, the first high-temperature-resistant performance parameter corresponding to the first battery and the second high-temperature-resistant performance parameter corresponding to the second battery can be acquired, and if the first high-temperature-resistant performance parameter is better than the second high-temperature-resistant performance parameter, the charging priority of the first battery can be determined to be higher than that of the second battery, so that the first battery can be charged preferentially.
Optionally, in step 102, determining the charging priority order of the first battery and the second battery according to the operating status may include the following steps:
23. if a preset hardware module in the electronic equipment is in a working state and the temperature of the hardware module corresponding to the preset hardware module is higher than a second preset temperature, determining a first distance between the first battery and the preset hardware module and a second distance between the second battery and the preset hardware module;
24. and if the first distance is greater than the second distance, determining that the charging priority of the first battery is higher than that of the second battery.
The preset hardware module may include at least one of the following: the central processing unit CPU, the camera and the camera comprise a front camera, a rear camera, a fingerprint identification module, an ultrasonic sensor, a flashlight, a vibration motor and the like.
In the embodiment of the application, if the preset hardware module in the electronic device is in an operating state, and the temperature of the hardware module corresponding to the preset hardware module is higher than the second preset temperature, the first battery and the first distance between the preset hardware modules can be determined, and the second battery and the second distance between the preset hardware modules can be determined, if the first distance is greater than the second distance, the charging priority of the first battery is determined to be higher than that of the second battery, so that the first battery far away from the preset hardware module can be charged, the influence of the high temperature of the hardware module on the rechargeable battery is reduced, and the service life of the battery is prolonged.
103. And charging the first battery and the second battery according to the charging priority order.
In the embodiment of the present application, the first battery and the second battery are charged according to the charging priority order, specifically, the first battery may be charged first, and the second battery is charged when the remaining power of the first battery exceeds the preset power. Optionally, to increase the charging rate, part of the background applications in the electronic device may be turned off.
Optionally, if the charging priority of the first battery is higher than that of the second battery, the charging the first battery and the second battery according to the charging priority order may include the following steps:
31. acquiring the running time of the preset application;
32. determining a first charging parameter corresponding to the first battery according to the running duration;
33. charging the first battery according to the first charging parameter;
34. when the residual capacity of the first battery reaches a preset capacity threshold and the preset application stops running, acquiring a second internal temperature of the electronic equipment;
35. determining a second charging parameter corresponding to the second battery according to the second internal temperature;
36. and charging the second battery according to the second charging parameter.
Wherein the first charging parameter or the second charging parameter may include at least one of: charging current, charging voltage, charging power, etc.
The second internal temperature is the temperature inside the electronic device when the remaining power of the first battery reaches a preset power threshold.
In the embodiment of the application, the longer the running time of the preset application is, the higher the temperature is, so that the running time of the preset application can be obtained, the first charging parameter corresponding to the first battery is determined according to the running time, and then the first battery is charged according to the first charging parameter. Then, when the remaining capacity of the first battery reaches a preset capacity threshold and the preset application stops operating, a second internal temperature of the electronic device may be acquired, and then a second charging parameter corresponding to the second battery may be determined according to the second internal temperature, specifically, a correspondence between the temperature and the charging parameter may be preset, so that, after the second internal temperature is acquired, a second charging parameter corresponding to the second internal temperature may be determined according to the correspondence, and then, the second battery may be charged according to the second charging parameter. For example, it may be set that the higher the second internal temperature is, the smaller the charging current, the charging voltage, or the charging power is, and thus, the second battery may be prevented from being excessively high in temperature during charging.
Optionally, in the foregoing step 32 to step 33, the preset application is a game application, the first charging parameter includes a charging current, the determining a first charging parameter according to the operating duration, and charging the first battery according to the first charging parameter may include the following steps:
a1, if the power consumption rate corresponding to the game application exceeds a first power consumption rate and the running time does not exceed a preset running time, or the power consumption rate corresponding to the game application does not exceed the first power consumption rate, charging a first battery by using a first charging current;
and A2, if the power consumption rate corresponding to the game application exceeds the first power consumption rate and the running time exceeds the preset running time, charging the first battery by using a second charging current, wherein the first charging current is greater than the second charging current.
When the power consumption rate corresponding to the game application exceeds a first power consumption rate, and the running time does not exceed a preset running time, the temperature of the electronic equipment may not be higher, so that the first battery can be charged by a first charging current, and the charging efficiency of the first battery is improved on the premise of ensuring that the temperature of the electronic equipment is not high. When the power consumption rate corresponding to the game application does not exceed the first power consumption rate, the temperature of the electronic equipment may not be higher, and therefore, the first battery can be charged by the first charging current, and therefore, the charging efficiency of the first battery is improved on the premise that the temperature of the electronic equipment is not high. If the power consumption rate corresponding to the game application exceeds the first power consumption rate, and the operation time exceeds the preset operation time, the temperature of the electronic equipment is higher, so that the first battery can be charged by the second charging current, and the charging service life of the rechargeable battery can be prevented from being influenced by the higher temperature of the electronic equipment.
Optionally, in this embodiment of the present application, charging the first battery and the second battery according to the charging priority order may include the following steps:
b1, determining data flow consumed in unit time when the preset application carries out data transmission;
b2, acquiring a first historical average charging rate corresponding to the first battery and a second historical average charging rate corresponding to the second battery;
b3, if the data flow consumed in the unit time exceeds a preset flow threshold value and the first historical average charging rate is larger than the second historical average charging rate, charging the first battery by using a first charging voltage;
b4, if the data flow consumed in the unit time does not exceed a preset flow threshold, charging the first battery by using a second charging current, wherein the first charging voltage is greater than the second charging voltage;
and B5, when the residual electric quantity of the first battery reaches a preset electric quantity threshold value, charging the second battery according to a preset third charging voltage.
In consideration of the fact that the preset application consumes a large amount of data traffic in unit time, for example, when the game application performs game data transmission or game scene rendering, the data traffic consumed in unit time is large, and at this time, the rate of consuming electric power is high, or when the video playing application performs video playing or performs video transmission on line, the data traffic consumed in unit time is large, and at this time, the rate of consuming electric power is high, so that the first battery can be charged at the first charging voltage, and the battery can be charged relatively quickly. When the data flow consumed by the preset application in unit time does not exceed the preset flow threshold, for example, the game application is in a game lobby and exits from a current game level, or the video playing application is not in a video data transmission stage, the data flow consumed in unit time is small, at this moment, the first battery can be charged by the second charging current, and the situation that the temperature is high due to the fact that the charging voltage is large can be avoided. Furthermore, when the residual capacity of the first battery reaches a preset capacity threshold, the second battery is charged according to a preset third charging voltage, and therefore the electronic equipment can be guaranteed to be fully powered when running preset application by preferentially charging the first battery with a large historical average charging rate.
It can be seen that the charging control method described in the embodiment of the present application is applied to an electronic device, where the electronic device includes a first battery and a second battery, and the first battery and the second battery are charged according to a charging priority order by acquiring an operating state of the electronic device and determining a charging priority order of the first battery and the second battery according to the operating state, so that the two batteries can be flexibly controlled to be charged according to the operating state of the electronic device, and the intelligence of battery charging control is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of another charging control method according to an embodiment of the present disclosure, where the charging control method described in this embodiment is applied to the electronic device shown in fig. 1A, where the electronic device includes a first battery and a second battery, and the method includes the following steps:
201. and acquiring the running state of the electronic equipment.
202. And if the electronic equipment is running a preset application and the first internal temperature of the electronic equipment is higher than a first preset temperature, acquiring a first high-temperature-resistant performance parameter corresponding to the first battery and a second high-temperature-resistant performance parameter corresponding to the second battery.
203. And if the first high-temperature-resistant performance parameter is better than the second high-temperature-resistant performance parameter, determining that the charging priority of the first battery is higher than that of the second battery.
204. And acquiring the running time of the preset application.
205. And determining a first charging parameter corresponding to the first battery according to the running duration.
206. And charging the first battery according to the first charging parameter.
207. And when the residual capacity of the first battery reaches a preset capacity threshold and the preset application stops running, acquiring a second internal temperature of the electronic equipment.
208. And determining a second charging parameter corresponding to the second battery according to the second internal temperature.
209. And charging the second battery according to the second charging parameter.
The specific implementation process of steps 201 to 209 may refer to the corresponding description in steps 101 to 103, and is not described herein again.
It can be seen that the charging control method described in the embodiment of the present application is applied to an electronic device, and is implemented by obtaining an operating state of the electronic device, obtaining a first high temperature resistance performance parameter corresponding to a first battery and a second high temperature resistance performance parameter corresponding to a second battery if the electronic device is running a preset application and a first internal temperature of the electronic device is higher than a first preset temperature, determining a charging priority of the first battery is higher than that of the second battery if the first high temperature resistance performance parameter is higher than the second high temperature resistance performance parameter, obtaining an operating duration of the preset application, determining a first charging parameter corresponding to the first battery according to the operating duration, charging the first battery according to the first charging parameter, when a remaining power of the first battery reaches a preset power threshold and the preset application stops running, obtaining a second internal temperature of the electronic device, determining a second charging parameter corresponding to the second battery according to the second internal temperature, charging the second battery according to the second charging parameter, so that the first battery with better high temperature resistance performance parameter can be charged preferentially, reducing an influence of the high temperature on the second battery, prolonging a service life of the second battery, and flexibly controlling the electronic device, thereby improving a service life of the charging device.
In accordance with the above, please refer to fig. 3, which is a flowchart illustrating another charging control method according to an embodiment of the present disclosure, where the charging control method described in the embodiment is applied to the electronic device shown in fig. 1A, where the electronic device includes a first battery and a second battery, and the method includes the following steps:
301. and acquiring the running state of the electronic equipment.
302. If a preset hardware module in the electronic equipment is in a working state, and the temperature of the hardware module corresponding to the preset hardware module is higher than a second preset temperature, determining a first distance between the first battery and the preset hardware module, and a second distance between the second battery and the preset hardware module.
303. And if the first distance is greater than the second distance, determining that the charging priority of the first battery is higher than that of the second battery.
304. Charging the first battery and the second battery according to the charging priority order.
The specific implementation process of steps 301 to 304 may refer to the corresponding description in steps 101 to 103, and is not described herein again.
It can be seen that the charging control method described in the embodiment of the present application is applied to an electronic device, where the electronic device includes a first battery and a second battery, and by obtaining an operating state of the electronic device, if a preset hardware module in the electronic device is in an operating state and a temperature of a hardware module corresponding to the preset hardware module is higher than a second preset temperature, a first distance between the first battery and the preset hardware module and a second distance between the second battery and the preset hardware module are determined, and if the first distance is greater than the second distance, it is determined that a charging priority of the first battery is higher than that of the second battery, and the first battery and the second battery are charged according to a charging priority sequence.
The following is a device for implementing the above-described charge control method, specifically as follows:
in accordance with the above, please refer to fig. 4, where fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, the electronic device includes: processor 410, first battery 430, second battery 440, communication interface 450, and memory 420; and one or more programs, the one or more programs 421 stored in the memory and configured to be executed by the processor, the programs 421 comprising instructions for:
acquiring the running state of the electronic equipment;
determining a charging priority order of the first battery and the second battery according to the operating state;
charging the first battery and the second battery according to the charging priority order.
In one possible example, in said determining a charging priority order of said first battery and said second battery according to said operating state, said program 421 comprises instructions for:
if the electronic equipment is running a preset application and the first internal temperature of the electronic equipment is higher than a first preset temperature, acquiring a first high-temperature-resistant performance parameter corresponding to the first battery and a second high-temperature-resistant performance parameter corresponding to the second battery;
and if the first high-temperature-resistant performance parameter is better than the second high-temperature-resistant performance parameter, determining that the charging priority of the first battery is higher than that of the second battery.
In one possible example, if the first battery has a higher charge priority than the second battery, the program 421 includes instructions for performing the following steps in the charging of the first battery and the second battery according to the charge priority order:
acquiring the running time of the preset application;
determining a first charging parameter corresponding to the first battery according to the running duration;
charging the first battery according to the first charging parameter;
when the residual capacity of the first battery reaches a preset capacity threshold and the preset application stops running, acquiring a second internal temperature of the electronic equipment;
determining a second charging parameter corresponding to the second battery according to the second internal temperature;
and charging the second battery according to the second charging parameter.
In one possible example, the preset application is a game application, the first charging parameter comprises a charging current, the program 421 comprises instructions for, in the determining a first charging parameter according to the operating time period and charging the first battery according to the first charging parameter:
if the power consumption rate corresponding to the game application exceeds a first power consumption rate and the running time does not exceed a preset running time, or the power consumption rate corresponding to the game application does not exceed the first power consumption rate, charging the first battery by using a first charging current;
and if the power consumption rate corresponding to the game application exceeds the first power consumption rate and the running time exceeds the preset running time, charging the first battery by using a second charging current, wherein the first charging current is greater than the second charging current.
In one possible example, in said determining a charging priority order of said first battery and said second battery according to said operating state, said program 421 further comprises instructions for:
if a preset hardware module in the electronic equipment is in a working state and the temperature of the hardware module corresponding to the preset hardware module is higher than a second preset temperature, determining a first distance between the first battery and the preset hardware module and a second distance between the second battery and the preset hardware module;
and if the first distance is greater than the second distance, determining that the charging priority of the first battery is higher than that of the second battery.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a charging control apparatus provided in this embodiment, which is applied to an electronic device, where the electronic device includes a first battery and a second battery, the charging control apparatus includes an obtaining unit 501, a determining unit 502, and a control unit 503, where,
the acquiring unit 501 is configured to acquire an operating state of the electronic device;
the determining unit 502 is configured to determine a charging priority order of the first battery and the second battery according to the operating state;
the control unit 503 is configured to charge the first battery and the second battery according to the charging priority order.
Optionally, in terms of determining the charging priority order of the first battery and the second battery according to the operating state, the determining unit 502 is specifically configured to:
if the electronic equipment is running a preset application and the first internal temperature of the electronic equipment is higher than a first preset temperature, acquiring a first high-temperature-resistant performance parameter corresponding to the first battery and a second high-temperature-resistant performance parameter corresponding to the second battery;
and if the first high-temperature-resistant performance parameter is better than the second high-temperature-resistant performance parameter, determining that the charging priority of the first battery is higher than that of the second battery.
Optionally, if the charging priority of the first battery is higher than that of the second battery, in the aspect of charging the first battery and the second battery according to the charging priority order, the control unit 503 is specifically configured to:
acquiring the running time of the preset application;
determining a first charging parameter corresponding to the first battery according to the running duration;
charging the first battery according to the first charging parameter;
when the residual electric quantity of the first battery reaches a preset electric quantity threshold value and the preset application stops running, acquiring a second internal temperature of the electronic equipment;
determining a second charging parameter corresponding to the second battery according to the second internal temperature;
and charging the second battery according to the second charging parameter.
Optionally, the preset application is a game application, the first charging parameter includes a charging current, and in terms of determining the first charging parameter according to the running time length and charging the first battery according to the first charging parameter, the control unit 503 is specifically configured to:
if the power consumption rate corresponding to the game application exceeds a first power consumption rate and the running time does not exceed a preset running time, or the power consumption rate corresponding to the game application does not exceed the first power consumption rate, charging the first battery by using a first charging current;
and if the power consumption rate corresponding to the game application exceeds the first power consumption rate and the running time exceeds the preset running time, charging the first battery by using a second charging current, wherein the first charging current is greater than the second charging current.
Optionally, in terms of determining the charging priority order of the first battery and the second battery according to the operating state, the determining unit 502 is specifically configured to:
if a preset hardware module in the electronic equipment is in a working state and the temperature of the hardware module corresponding to the preset hardware module is higher than a second preset temperature, determining a first distance between the first battery and the preset hardware module and a second distance between the second battery and the preset hardware module;
and if the first distance is greater than the second distance, determining that the charging priority of the first battery is higher than that of the second battery.
It can be seen that the charging control apparatus described in the embodiment of the present application is applied to an electronic device, where the electronic device includes a first battery and a second battery, and the operating state of the electronic device is obtained, the charging priority order of the first battery and the second battery is determined according to the operating state, and the first battery and the second battery are charged according to the charging priority order, so that the two batteries can be flexibly controlled to be charged according to the operating state of the electronic device, and the intelligence of battery charging control is improved.
It can be understood that the functions of the program modules of the charging control apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
As shown in fig. 6, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sales), a vehicle-mounted computer, etc., taking the electronic device as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 6, the handset includes: a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a Wireless Fidelity (Wi-Fi) module 970, a processor 980, a battery 990, and a camera 9100. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), general Packet Radio Service (GPRS), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), long Term Evolution (LTE), email, short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. In particular, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, pressure sensor, temperature sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor (also referred to as a light sensor) that can adjust the backlight brightness of the mobile phone according to the brightness of ambient light, and thus adjust the brightness of the display screen 941, and a proximity sensor that can turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping), and the like, for recognizing the attitude of a mobile phone; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, and then the audio data is processed by the audio data playing processor 980, and then the audio data is sent to another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 970, and provides wireless broadband internet access for the user. Although fig. 6 shows the Wi-Fi module 970, it is understood that it does not belong to the essential constitution of the cellular phone and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor AP, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The phone further includes a battery 990 for supplying power to the various components, the battery including a first battery and a second battery, and preferably, the power may be logically connected to the processor 980 through a power management system, so that functions of managing charging, discharging, and power consumption, etc. are implemented through the power management system.
The mobile phone can further include a camera 9100, where the camera 9100 includes a front camera and a rear camera, and the front camera and the rear camera are used for shooting images and videos and transmitting the shot images and videos to the processor 980 for processing.
The mobile phone may further include a bluetooth module, etc., which will not be described herein.
In the embodiments shown in fig. 1B, fig. 2 and fig. 3, the method flows of the steps may be implemented based on the structure of the mobile phone.
Embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above charging control method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform part or all of the steps of any one of the charging control 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 embodiments of the method are described as a series of acts, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for 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 coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical 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 disk, or an optical disk, and 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 (5)

1. A charging control method applied to an electronic device including a first battery and a second battery, the method comprising:
acquiring the running state of the electronic equipment;
determining a charging priority order of the first battery and the second battery according to the operating state;
charging the first battery and the second battery according to the charging priority order;
wherein the determining a charging priority order of the first battery and the second battery according to the operating state comprises:
if the electronic equipment is running a preset application and the first internal temperature of the electronic equipment is higher than a first preset temperature, acquiring a first high-temperature-resistant performance parameter corresponding to the first battery and a second high-temperature-resistant performance parameter corresponding to the second battery;
if the first high-temperature-resistant performance parameter is better than the second high-temperature-resistant performance parameter, determining that the charging priority of the first battery is higher than that of the second battery;
wherein, if the charging priority of the first battery is higher than that of the second battery, the charging the first battery and the second battery according to the charging priority sequence comprises:
acquiring the running time of the preset application;
determining a first charging parameter corresponding to the first battery according to the running duration;
charging the first battery according to the first charging parameter;
when the residual electric quantity of the first battery reaches a preset electric quantity threshold value and the preset application stops running, acquiring a second internal temperature of the electronic equipment;
determining a second charging parameter corresponding to the second battery according to the second internal temperature;
charging the second battery according to the second charging parameter;
wherein the preset application is a game application, the first charging parameter includes a charging current, the determining a first charging parameter according to the operating duration, and charging the first battery according to the first charging parameter includes:
if the power consumption rate corresponding to the game application exceeds a first power consumption rate and the running time does not exceed a preset running time, or the power consumption rate corresponding to the game application does not exceed the first power consumption rate, charging the first battery by using a first charging current;
and if the power consumption rate corresponding to the game application exceeds the first power consumption rate and the running time exceeds the preset running time, charging the first battery by using a second charging current, wherein the first charging current is greater than the second charging current.
2. The method of claim 1, wherein said determining a charging priority order for the first battery and the second battery based on the operating condition comprises:
if a preset hardware module in the electronic equipment is in a working state and the temperature of the hardware module corresponding to the preset hardware module is higher than a second preset temperature, determining a first distance between the first battery and the preset hardware module and a second distance between the second battery and the preset hardware module;
and if the first distance is greater than the second distance, determining that the charging priority of the first battery is higher than that of the second battery.
3. A charge control device applied to an electronic apparatus including a first battery and a second battery, comprising:
the acquisition unit is used for acquiring the running state of the electronic equipment;
a determination unit configured to determine a charging priority order of the first battery and the second battery according to the operating state;
a control unit for charging the first battery and the second battery according to the charging priority order;
wherein, in the aspect of determining the charging priority order of the first battery and the second battery according to the operating state, the determining unit is specifically configured to:
if the electronic equipment is running a preset application and the first internal temperature of the electronic equipment is higher than a first preset temperature, acquiring a first high-temperature-resistant performance parameter corresponding to the first battery and a second high-temperature-resistant performance parameter corresponding to the second battery;
if the first high-temperature-resistant performance parameter is better than the second high-temperature-resistant performance parameter, determining that the charging priority of the first battery is higher than that of the second battery;
wherein, if the charging priority of the first battery is higher than that of the second battery, in the aspect of charging the first battery and the second battery according to the charging priority order, the control unit is specifically configured to:
acquiring the running time of the preset application;
determining a first charging parameter corresponding to the first battery according to the running duration;
charging the first battery according to the first charging parameter;
when the residual electric quantity of the first battery reaches a preset electric quantity threshold value and the preset application stops running, acquiring a second internal temperature of the electronic equipment;
determining a second charging parameter corresponding to the second battery according to the second internal temperature;
charging the second battery according to the second charging parameter;
wherein the preset application is a game application, the first charging parameter includes a charging current, the determining a first charging parameter according to the operating duration, and charging the first battery according to the first charging parameter includes:
if the power consumption rate corresponding to the game application exceeds a first power consumption rate, and the running time does not exceed a preset running time, or the power consumption rate corresponding to the game application does not exceed the first power consumption rate, charging the first battery by using a first charging current;
and if the power consumption rate corresponding to the game application exceeds the first power consumption rate and the running time exceeds the preset running time, charging the first battery by using a second charging current, wherein the first charging current is greater than the second charging current.
4. An electronic device, comprising: the fingerprint identification device comprises a display screen, a fingerprint identification module, a processor, a memory and 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 the method of any of claims 1 or 2.
5. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method according to claim 1 or 2.
CN201910528819.8A 2019-06-18 2019-06-18 Charging control method and related product Active CN110138052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910528819.8A CN110138052B (en) 2019-06-18 2019-06-18 Charging control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910528819.8A CN110138052B (en) 2019-06-18 2019-06-18 Charging control method and related product

Publications (2)

Publication Number Publication Date
CN110138052A CN110138052A (en) 2019-08-16
CN110138052B true CN110138052B (en) 2023-04-07

Family

ID=67577871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910528819.8A Active CN110138052B (en) 2019-06-18 2019-06-18 Charging control method and related product

Country Status (1)

Country Link
CN (1) CN110138052B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532748B (en) * 2019-08-27 2022-07-08 Oppo(重庆)智能科技有限公司 Battery management method and related product
CN110601383B (en) * 2019-09-11 2021-04-09 万翼科技有限公司 Laser charging method and related equipment
CN110571887B (en) * 2019-09-23 2021-03-02 Oppo(重庆)智能科技有限公司 Battery selection method and device, storage medium and electronic equipment
CN110601311B (en) * 2019-09-30 2021-04-16 Oppo(重庆)智能科技有限公司 Charging protection method and related device
CN114244973B (en) * 2020-10-30 2023-12-19 杭州美盛红外光电技术有限公司 Charging control device and charging control method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171395A (en) * 2017-06-26 2017-09-15 联想(北京)有限公司 A kind of charge/discharge control method, controller and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2344024C (en) * 2000-04-14 2006-08-01 Zip Charge Corporation Charging apparatus, charging method, charging system, and recording medium onto which is recorded a charging method
CN101739041A (en) * 2008-11-11 2010-06-16 陈建州 Heating method of portable battery power for keeping constant temperature
JP2011114985A (en) * 2009-11-27 2011-06-09 Sanyo Electric Co Ltd Apparatus with built-in battery and charging pad
CN105098902B (en) * 2015-08-05 2018-02-27 联想(北京)有限公司 A kind of method and electronic equipment for realizing the adjustment of electronic equipment temperature
TWI811718B (en) * 2016-03-16 2023-08-11 澳門商創科(澳門離岸商業服務)有限公司 Power tool battery pack with wireless communication
CN106487071A (en) * 2016-11-28 2017-03-08 深圳市金立通信设备有限公司 A kind of charging management method and terminal
CN109802188B (en) * 2019-02-25 2021-01-26 北京长城华冠汽车科技股份有限公司 Method and system for carrying out load balancing control on multiple battery units

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171395A (en) * 2017-06-26 2017-09-15 联想(北京)有限公司 A kind of charge/discharge control method, controller and electronic equipment

Also Published As

Publication number Publication date
CN110138052A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110138052B (en) Charging control method and related product
CN108234769B (en) Fall protection method and related product
CN107272872B (en) Power saving control method and related product
CN107707768B (en) Processing method for running game application and related product
CN110311704B (en) Antenna switching method and related product
CN111258407B (en) Application function control method and related product
CN107277230B (en) Voice broadcasting method of message and related product
CN107222914B (en) Application control method and related product
CN110430592B (en) Network control method and related product
CN109922504B (en) Data distribution method and related product
CN107295173B (en) Method for deleting chat messages and related product
CN110209245B (en) Face recognition method and related product
CN110224719B (en) Communication control method and related product
CN109922539B (en) Network connection method and related product
CN112311055B (en) Terminal and charging control method and device thereof
CN109640379B (en) Link aggregation implementation method and related product
CN110428782B (en) Brightness adjusting method and related product
CN110212965B (en) Antenna switching method and related product
CN106095566B (en) Response control method and mobile terminal
CN108121227B (en) Fall protection method and related product
CN107770381B (en) Network management method and related product
CN110365851B (en) Power supply method and related product
CN107291328B (en) Interface display method and related product
CN106815078B (en) Memory control method and equipment
CN107277786B (en) Short message processing method, mobile 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