CN110611127A - Battery management method, device, storage medium and electronic equipment - Google Patents

Battery management method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110611127A
CN110611127A CN201910877280.7A CN201910877280A CN110611127A CN 110611127 A CN110611127 A CN 110611127A CN 201910877280 A CN201910877280 A CN 201910877280A CN 110611127 A CN110611127 A CN 110611127A
Authority
CN
China
Prior art keywords
temperature
battery
discharge amount
preset
target discharge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910877280.7A
Other languages
Chinese (zh)
Other versions
CN110611127B (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910877280.7A priority Critical patent/CN110611127B/en
Publication of CN110611127A publication Critical patent/CN110611127A/en
Application granted granted Critical
Publication of CN110611127B publication Critical patent/CN110611127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H01M10/443Methods for charging or discharging in response to temperature
    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/425Structural combination with electronic components, e.g. electronic circuits integrated to the outside of the casing
    • H01M2010/4271Battery management systems including electronic circuits, e.g. control of current or voltage to keep battery in healthy state, cell balancing
    • 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

Abstract

The application discloses a battery management method, a device, a storage medium and an electronic device, wherein the battery management method comprises the following steps: acquiring an ambient temperature; if the ambient temperature is greater than a preset first temperature threshold value, acquiring the temperature of the battery; determining a target discharge amount of the battery according to the environment temperature and the battery temperature; if the current discharge amount of the battery is larger than the target discharge amount, adjusting the current discharge amount until the current discharge amount is equal to or smaller than the target discharge amount. The battery management scheme provided by the embodiment can control the discharge capacity of the battery through realizing the control of the battery under the condition that the environmental temperature is greater than the preset first temperature threshold value, namely, the environmental condition that the battery is not beneficial to heat dissipation, thereby realizing the temperature control of the battery and improving the safety of electronic equipment.

Description

Battery management method, device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a battery management method and apparatus, a storage medium, and an electronic device.
Background
With the continuous development of terminals, users can download programs provided by third-party service providers such as installation software and games by themselves through the internet, and the functions of the terminals are expanded through the programs. The terminal is convenient for users to use, and meanwhile, the battery of the terminal is easy to gather a large amount of heat energy, so that the battery temperature is too high, and even safety accidents such as explosion and the like are caused.
Disclosure of Invention
The embodiment of the application provides a battery management method and device, a storage medium and an electronic device, which can realize temperature control of a battery and improve the safety of the electronic device.
In a first aspect, an embodiment of the present application provides a battery management method, including:
acquiring an ambient temperature;
if the ambient temperature is greater than a preset first temperature threshold value, acquiring the temperature of the battery;
determining a target discharge amount of the battery according to the environment temperature and the battery temperature;
if the current discharge amount of the battery is larger than the target discharge amount, adjusting the current discharge amount until the current discharge amount is equal to or smaller than the target discharge amount.
In a second aspect, an embodiment of the present application provides a battery management apparatus, including:
the first acquisition module is used for acquiring the ambient temperature;
the second obtaining module is used for obtaining the battery temperature if the environment temperature is greater than a preset first temperature threshold;
the determining module is used for determining the target discharge capacity of the battery according to the environment temperature and the battery temperature;
and the adjusting module is used for adjusting the current discharging amount until the current discharging amount is equal to or less than the target discharging amount if the current discharging amount of the battery is greater than the target discharging amount.
In a third aspect, a storage medium is provided in this application, where a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute a battery management method as provided in any of the embodiments of the application.
In a fourth aspect, an electronic device provided in an embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the battery management method provided in any embodiment of the present application by calling the computer program.
According to the battery management scheme provided by the embodiment of the application, under the condition that the ambient temperature is greater than the preset first temperature threshold value, namely under the ambient condition that the battery is not beneficial to heat dissipation, the electronic equipment can determine the target discharge capacity of the battery according to the ambient temperature and the battery temperature, then adjust the discharge capacity of the battery, enable the discharge capacity of the battery to be equal to or smaller than the target discharge capacity, thereby realize the temperature control of the battery through the control of the discharge capacity of the battery, and improve the safety of the electronic equipment.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flowchart of a first battery management method according to an embodiment of the present disclosure.
Fig. 2 is a scene schematic diagram of a battery management method according to an embodiment of the present application.
Fig. 3 is a second flowchart of a battery management method according to an embodiment of the present application.
Fig. 4 is a third flowchart illustrating a battery management method according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a battery management device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein. The term "module" as used herein may be considered a software object executing on the computing system. The various modules, engines, and services herein may be considered as objects of implementation on the computing system.
An execution subject of the battery management method may be the battery management device provided in the embodiment of the present application, or an electronic device integrated with the battery management device. The electronic device includes a battery, and the electronic device may be a smart phone, a tablet computer, a Personal Digital Assistant (PDA), or the like.
The following is a detailed description of the analysis.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a battery management method according to an embodiment of the present application, where the battery management method includes the following steps:
in 101, an ambient temperature is acquired.
In the embodiment of the application, when a battery of the electronic device generates heat, the electronic device detects the temperature of the environment where the electronic device is located through the temperature sensor so as to obtain the detection value of the environment temperature. During the charging process or the using process of the electronic equipment, the battery of the electronic equipment generates heat.
At 102, if the ambient temperature is greater than a preset first temperature threshold, the battery temperature is obtained.
For example, after obtaining the ambient temperature, the electronic device obtains a preset first temperature threshold, compares the ambient temperature with the preset first temperature threshold, obtains the battery temperature if the ambient temperature is greater than the preset first temperature threshold, and does not perform any operation if the ambient temperature is less than or equal to the preset first temperature threshold.
The battery temperature may refer to a temperature at a certain position on the outer surface of the battery, or the battery temperature may refer to an average temperature of a plurality of positions on the outer surface of the battery. For example, the temperature at a certain position on the outer surface of the battery is measured by a thermistor, and the temperature is taken as the battery temperature.
Taking an electronic device including three batteries, C1, C2 and C3 as examples, the temperature of a certain position on the outer surfaces of the batteries C1, C2 and C3 is measured by thermistors and recorded as T1, T2 and T3, and if the difference between each of T1, T2 and T3 is not large, for example, less than or equal to a certain set value (5 degrees celsius), the average value of T1, T2 and T3 is taken as the battery temperature. If the difference between each of T1, T2, and T3 is large, for example, greater than a predetermined value (5 degrees celsius), the maximum temperature among T1, T2, and T3 is taken as the battery temperature.
The preset first temperature threshold is preset in the electronic device, and the numerical value is not particularly limited. For example, the electronic device a reads locally stored data to obtain a preset first temperature threshold of 25 ℃. The preset first temperature threshold may be set autonomously by a user, or may be set by the electronic device according to a certain rule.
For example, the electronic device obtains an average temperature of a position where the electronic device is located, and sets the average temperature to be a preset first temperature threshold, wherein the average temperature may be an average temperature in the day, an average temperature in the month, an average temperature in the season, or the like.
It should be noted that, when the ambient temperature is greater than the preset first temperature threshold, the battery is not favorable to dissipate heat under the ambient condition, so the electronic device needs to acquire the battery temperature, and the discharge amount of the battery is determined according to the ambient temperature and the battery temperature, so as to adjust the discharge amount of the battery. When the ambient temperature is less than or equal to the preset first temperature threshold, the battery is favorable for heat dissipation under the ambient condition, so that the electronic equipment does not need to control the discharge capacity of the battery to help the battery to dissipate heat.
Referring to fig. 2, fig. 2 is a schematic view of a scenario of a battery management method according to an embodiment of the present disclosure. The user respectively plays games in the air-conditioned room and the outdoor by using the same terminal, the ambient temperature in the air-conditioned room is t1, the outdoor ambient temperature is t2, and t1 is less than t 2. Since the terminal generates heat when the user plays a game on the terminal, the battery temperature t3 may be higher than the ambient temperature t1 and the ambient temperature t 2. Taking the user as an example of using the terminal in the air-conditioned room, when the user uses the terminal in the air-conditioned room, the battery temperature t3 and the ambient temperature t1 have a temperature difference, the battery diffuses heat into the environment, and the battery temperature t3 decreases. The lower the ambient temperature, the more the battery is favorable to dissipating heat, and the higher the ambient temperature, the more the battery is unfavorable to dissipating heat. Namely, the heat dissipation capacity of the battery of the electronic equipment in the external environment with lower temperature is higher than that of the battery in the external environment with higher temperature.
In 103, a target discharge amount of the battery is determined according to the ambient temperature and the battery temperature.
For example, after acquiring the battery temperature, the electronic device determines a target discharge amount of the battery according to the ambient temperature and the battery temperature. The target discharge capacity is the current maximum discharge value of the battery on the premise that the electronic equipment prevents the temperature of the battery from being too high. If the current discharge amount of the battery exceeds the target discharge amount, the accumulated heat of the battery is excessive, the temperature of the battery is too high, and the electronic equipment is exploded and other dangerous accidents can be caused.
At 104, if the current discharge amount of the battery is greater than the target discharge amount, the current discharge amount is adjusted until the current discharge amount is equal to or less than the target discharge amount.
For example, after determining the target discharge amount of the battery, the electronic device obtains the current discharge amount of the battery, and compares the current discharge amount with the target discharge amount. If the current discharge capacity is larger than the target discharge capacity and the hidden trouble of overhigh battery temperature exists, the electronic equipment needs to adjust the current discharge capacity until the current discharge capacity is equal to or smaller than the target discharge capacity and stops adjusting the current discharge capacity. If the current discharge amount is equal to or less than the target discharge amount, the hidden danger of the battery temperature being too high does not exist basically, and the electronic equipment does not need to execute any operation to adjust the battery temperature.
Therefore, under the condition that the environmental temperature of the electronic equipment is greater than the first preset temperature threshold value, namely under the environmental condition that the battery is not beneficial to heat dissipation, the target discharge capacity of the battery can be determined according to the environmental temperature and the battery temperature, then the discharge capacity of the battery is adjusted to enable the discharge capacity of the battery to be equal to or less than the target discharge capacity, the temperature control of the battery is achieved through the control of the discharge capacity of the battery, and the safety of the electronic equipment is improved.
Referring to fig. 3, fig. 3 is a second schematic flow chart of a battery management method according to an embodiment of the present application, where the flow chart may include:
in 201, an ambient temperature is acquired.
For example, when a battery of an electronic device generates heat, the electronic device detects the temperature of the environment in which the electronic device is located through a temperature sensor to obtain a detected value of the environment temperature. During the charging process or the using process of the electronic equipment, the battery of the electronic equipment generates heat.
At 202, if the ambient temperature is greater than a preset first temperature threshold, the battery temperature is obtained.
For example, after obtaining the ambient temperature, the electronic device obtains a preset first temperature threshold, compares the ambient temperature with the preset first temperature threshold, obtains the battery temperature if the ambient temperature is greater than the preset first temperature threshold, and does not perform any operation if the ambient temperature is less than or equal to the preset first temperature threshold.
In 203, it is detected whether the battery temperature is less than a preset second temperature threshold.
For example, after the ambient temperature of the environment where the electronic device is located is obtained, the electronic device detects that the ambient temperature is greater than a preset first temperature threshold, and at this time, the electronic device may obtain the battery temperature. After the battery temperature is obtained, the electronic equipment obtains a preset second temperature threshold value, and detects whether the battery temperature is smaller than the preset second temperature threshold value.
The preset second temperature threshold is preset in the electronic device, and the value is not specifically limited, such as 55 degrees celsius, 58 degrees celsius, and the like. For example, the electronic device B reads the locally stored data to obtain that the preset second temperature threshold is 60 degrees celsius. The preset second temperature threshold may be set by a user, or may be set by the electronic device according to a certain rule. It should be noted that the preset second temperature threshold may be greater than or equal to the preset first temperature threshold.
In 204, if it is detected that the battery temperature is less than the preset second temperature threshold, a temperature difference between the ambient temperature and the battery temperature is obtained.
For example, after detecting whether the battery temperature is less than the preset second temperature threshold, if the battery temperature is less than the preset second temperature threshold, the electronic device obtains a temperature difference between the ambient temperature and the battery temperature. If the battery temperature is greater than or equal to the preset second temperature threshold, the electronic equipment directly adjusts the operation mode into the standby mode.
For another example, after detecting whether the battery temperature is less than the preset second temperature threshold, if the battery temperature is less than the preset second temperature threshold, the electronic device may obtain a temperature ratio between the ambient temperature and the battery temperature.
In 205, a target discharge amount matching the temperature difference is determined, wherein the absolute value of the temperature difference is proportional to the target discharge amount.
For example, after acquiring a temperature difference between the ambient temperature and the battery temperature, the electronic device determines a target discharge amount that matches the temperature difference. The larger the absolute value of the temperature difference is, the more the battery heat dissipation is facilitated, so the target discharge capacity is larger; the smaller the absolute value of the temperature difference, the more adverse the battery heat dissipation at this time, so the smaller the target discharge amount, i.e., the absolute value of the temperature difference is proportional to the target discharge amount.
For example, a mapping relationship between a preset temperature difference and a target discharge amount is set in advance in the electronic device. The target discharge amount corresponding to each preset temperature difference in the plurality of preset temperature differences can be set in a manual setting mode. And then, establishing a preset mapping relation between the preset temperature difference and the target discharge amount according to the plurality of preset temperature differences and the target discharge amount corresponding to each preset temperature difference.
For another example, the electronic device obtains a temperature ratio between the ambient temperature and the battery temperature, and determines a target discharge amount matching the temperature ratio. The larger the absolute value of the difference between the temperature ratio and 1 is, the more the battery heat dissipation is facilitated, so the target discharge capacity is larger; the smaller the absolute value of the difference between the temperature ratio and 1, the more adverse the battery heat dissipation, so the smaller the target discharge amount, i.e. the absolute value of the difference between the temperature ratio and 1 is proportional to the target discharge amount.
For example, a mapping relationship between a preset temperature ratio and a target discharge amount is set in advance in the electronic device. The target discharge amount corresponding to each preset temperature difference in the preset temperature ratios can be set in a manual setting mode. And then, establishing a preset mapping relation between the preset temperature ratio and the target discharge amount according to the plurality of preset temperature ratios and the target discharge amount corresponding to each preset temperature ratio.
It should be noted that, when the difference between the ambient temperature and the battery temperature is-P and P, the target discharge amount determined by the electronic device is the same.
At 206, the background application is determined if the current discharge amount of the battery is greater than the target discharge amount.
For example, after determining the target discharge amount of the battery, the electronic device obtains the current discharge amount of the battery, and compares the current discharge amount with the target discharge amount. If the current discharge capacity is larger than the target discharge capacity and the hidden trouble of overhigh battery temperature exists at the moment, the electronic equipment determines the background application program and adjusts the battery temperature by closing part or all of the background application programs. If the current discharge amount is equal to or less than the target discharge amount, the hidden danger of the battery temperature being too high does not exist basically, and the electronic equipment does not need to execute any operation to adjust the battery temperature.
At 207, the priority of the background application is determined.
For example, after determining the background applications, the electronic device determines the priority of each background application according to the importance of the background application. The more important the background application is relative to the user, the higher the priority of the application; and vice versa.
In one embodiment, the electronic device may acquire running information of the background application program in a historical time period, wherein the running information includes a running time length and a use frequency; and determining the priority of the background application program according to the running information. For example, the longer the running time and the higher the use frequency of the background application program are, the higher the priority of the background application program is; the shorter the running time and the lower the use frequency of the background application program are, the lower the priority of the background application program is.
In 208, the background applications are closed one by one according to the priority until the current discharge amount is equal to or less than the target discharge amount.
For example, after the priority of the background application program is determined, the electronic device closes the background application program one by one according to the priority from low to high until the current discharge amount is equal to or less than the target discharge amount, and then stops closing the background application program.
For example, electronic device C determines that the background applications are: the application program Y1, the application program Y2, the application program Y3, the application program Y4 and the application program Y5, and the priority of the application programs is as follows: application Y1< application Y2< application Y3< application Y4< application Y5. The electronic equipment closes the application programs running in the background one by one from top to bottom according to the priority, acquires the current discharge capacity of the battery after closing the background application program every time the background application program is closed, compares the current discharge capacity with the target discharge capacity, and stops closing the background application program if the current discharge capacity is equal to or less than the target discharge capacity.
For another example, before closing the background applications one by one according to the priority, the electronic device may output a prompt message on the display interface, where the prompt message is used to initiate a request for closing the background applications to the user; and when a background application program closing instruction triggered based on the prompt information is detected, executing the closing of the application programs one by one according to the priority. According to the scheme, the request for closing the background application program is firstly sent to the user before the background application programs are closed one by one according to the priority, so that the user experience can be improved.
In one embodiment, after the electronic device performs steps 206, 207, and 208, all applications running in the background are already closed, but the current discharge amount is still greater than the target discharge amount, the display brightness of the display screen of the electronic device is gradually decreased with the preset brightness as each adjustment amount until the current discharge amount is equal to or less than the target discharge amount.
Referring to fig. 4, fig. 4 is a schematic diagram of a third process of a battery management method according to an embodiment of the present application, where the process may include:
in 301, an ambient temperature is acquired.
For example, when a battery of an electronic device generates heat, the electronic device detects the temperature of the environment in which the electronic device is located through a temperature sensor to obtain a detected value of the environment temperature. During the charging process or the using process of the electronic equipment, the battery of the electronic equipment generates heat.
At 302, if the ambient temperature is greater than a preset first temperature threshold, the battery temperature is obtained.
For example, after obtaining the ambient temperature, the electronic device obtains a preset first temperature threshold, compares the ambient temperature with the preset first temperature threshold, obtains the battery temperature if the ambient temperature is greater than the preset first temperature threshold, and does not perform any operation if the ambient temperature is less than or equal to the preset first temperature threshold.
In 303, it is detected whether the battery temperature is less than a preset second temperature threshold.
For example, after the ambient temperature of the environment where the electronic device is located is obtained, the electronic device detects that the ambient temperature is greater than a preset first temperature threshold, and at this time, the electronic device may obtain the battery temperature. After the battery temperature is obtained, the electronic equipment obtains a preset second temperature threshold value, and detects whether the battery temperature is smaller than the preset second temperature threshold value.
At 304, if the battery temperature is detected to be greater than or equal to the preset second temperature threshold, the operation mode is adjusted to the standby mode.
For example, after detecting whether the battery temperature is less than the preset first temperature threshold, if the battery temperature is greater than or equal to the preset first temperature threshold, the battery temperature is already high, and even if the battery temperature is put into an environment favorable for heat dissipation, the battery temperature cannot be reduced in a short time. The electronic device can directly adjust the operation mode to the standby mode. When the electronic device adjusts the operation mode to the standby mode, the operation data is stored in the memory, and the battery only needs to supply power to the memory and does not need to supply power to components such as a hard disk, a screen, a CPU and the like. Therefore, the discharge amount of the battery in the standby mode is small, and the generation of heat from the battery can be reduced.
For another example, after detecting whether the battery temperature is less than the preset first temperature threshold, if the battery temperature is greater than or equal to the preset first temperature threshold, the electronic device may obtain a variation trend of the battery temperature, and if the variation trend is an increasing trend, adjust the operation mode to the standby mode; if the change trend is a descending trend, all background programs of the electronic equipment are closed and/or the display brightness of the display screen of the electronic equipment is adjusted to the lowest display brightness.
In one embodiment, after detecting whether the battery temperature is less than a preset first temperature threshold, if the battery temperature is greater than or equal to the preset first temperature threshold, the electronic device displays a prompt message on the display interface, where the prompt message is used to remind a user to enter a standby mode due to an excessively high battery temperature, and then adjusts the operating mode to the standby mode.
In 305, if the battery temperature is detected to be less than the preset second temperature threshold, a temperature difference between the ambient temperature and the battery temperature is obtained.
For example, after detecting whether the battery temperature is less than the preset second temperature threshold, if the battery temperature is less than the preset second temperature threshold, the electronic device obtains a temperature difference between the ambient temperature and the battery temperature.
At 306, a target discharge amount matching the temperature difference is determined, wherein the absolute value of the temperature difference is proportional to the target discharge amount.
For example, after acquiring a temperature difference between the ambient temperature and the battery temperature, the electronic device determines a target discharge amount that matches the temperature difference. The larger the absolute value of the temperature difference is, the more the battery heat dissipation is facilitated, so the target discharge capacity is larger; the smaller the absolute value of the temperature difference, the more adverse the battery heat dissipation at this time, so the smaller the target discharge amount, i.e., the absolute value of the temperature difference is proportional to the target discharge amount.
In 307, if the current discharge amount of the battery is greater than the target discharge amount, the preset brightness is used as each adjustment amount, and the display brightness of the display screen of the electronic device is gradually reduced until the current discharge amount is equal to or less than the target discharge amount.
For example, after determining the target discharge amount, the electronic device obtains the current discharge amount of the battery, and compares the current discharge amount with the target discharge amount. If the current discharge capacity is larger than the target discharge capacity and the hidden trouble that the battery temperature is too high exists at the moment, the electronic equipment gradually reduces the display brightness of the display screen of the electronic equipment by taking the preset brightness as the adjustment quantity each time until the current discharge capacity is equal to or smaller than the target discharge capacity, and the battery temperature is adjusted by reducing the display brightness. If the current discharge amount is equal to or less than the target discharge amount, the hidden danger of the battery temperature being too high does not exist basically, and the electronic equipment does not need to execute any operation to adjust the battery temperature.
The preset brightness can be set by a user independently or can be set by the electronic equipment according to a certain rule. For example, the electronic device determines the preset brightness according to the temperature difference between the ambient temperature and the battery temperature, and the larger the temperature difference is, the larger the preset brightness is, and the smaller the temperature difference is, the smaller the preset brightness is.
In one embodiment, if the display brightness has decreased to the minimum display brightness and the current discharge amount is still greater than the target discharge amount, the battery temperature is adjusted by turning off some or all of the background applications.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a battery management device according to an embodiment of the present disclosure. The battery management apparatus 400 may include: a first obtaining module 401, a second obtaining module 402, a determining module 403, and an adjusting module 404.
A first obtaining module 401, configured to obtain an ambient temperature;
a second obtaining module 402, configured to obtain a battery temperature if the ambient temperature is greater than a preset first temperature threshold;
a determining module 403, configured to determine a target discharge amount of the battery according to the ambient temperature and the battery temperature;
an adjusting module 404, configured to adjust the current discharge amount until the current discharge amount is equal to or smaller than the target discharge amount if the current discharge amount of the battery is larger than the target discharge amount.
In one embodiment, the determining module 403 may be configured to:
detecting whether the battery temperature is smaller than a preset second temperature threshold value or not;
if so, acquiring a temperature difference between the ambient temperature and the battery temperature;
and determining a target discharge amount matched with the temperature difference, wherein the absolute value of the temperature difference is in direct proportion to the target discharge amount.
In one embodiment, the battery management apparatus 400 may further include: and if the battery temperature is greater than or equal to the preset second temperature threshold value, adjusting the running mode to a standby mode.
In one embodiment, the adjustment module 404 may be configured to determine a background application if the current discharge amount of the battery is greater than the target discharge amount; determining a priority of the background application; and closing the background application programs one by one according to the priority until the current discharge capacity is equal to or less than the target discharge capacity.
In one embodiment, the adjustment module 404 may be configured to determine a background application if the current discharge amount of the battery is greater than the target discharge amount; determining a priority of the background application; outputting prompt information on a display interface, wherein the prompt information is used for initiating a background application program closing request to a user; and when a background application program closing instruction triggered based on the prompt information is detected, closing the background application programs one by one according to the priority until the current discharge capacity is equal to or less than the target discharge capacity.
In one embodiment, the adjusting module 404 may be configured to, if the current discharge amount of the battery is greater than the target discharge amount, gradually decrease the display brightness of the display screen of the electronic device with preset brightness as each adjustment amount until the current discharge amount is equal to or less than the target discharge amount.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the procedure in the battery management method provided in this embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 500 may include a memory 501, a processor 502, a battery 503, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 501 may be used to store applications and data. The memory 501 stores applications containing executable code. The application programs may constitute various functional modules. The processor 502 executes various functional applications and data processing by running an application program stored in the memory 501.
The processor 502 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 501 and calling data stored in the memory 501, thereby performing overall monitoring of the electronic device.
The battery 503 may be used to power various components of the electronic device 500. In some embodiments, the battery 503 may be logically connected to the processor 502 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system.
In this embodiment, the processor 502 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 501 according to the following instructions, and the processor 502 runs the application programs stored in the memory 501, thereby implementing the following processes:
acquiring an ambient temperature;
if the ambient temperature is greater than a preset first temperature threshold value, acquiring the temperature of the battery;
determining a target discharge amount of the battery according to the environment temperature and the battery temperature;
if the current discharge amount of the battery is larger than the target discharge amount, adjusting the current discharge amount until the current discharge amount is equal to or smaller than the target discharge amount.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to a second embodiment of the present disclosure. The electronic device 600 may include a processor 601, a memory 602, a battery 603, an input unit 604, an output unit 605, a display screen 606, and the like.
The processor 601 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 602 and calling the data stored in the memory 602, thereby performing overall monitoring of the electronic device.
The memory 602 may be used to store applications and data. The memory 602 stores applications containing executable code. The application programs may constitute various functional modules. The processor 601 executes various functional applications and data processing by running an application program stored in the memory 602.
Battery 603 may be used to power the various components of electronic device 600. In some embodiments, the battery 603 may be logically connected to the processor 601 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system.
The input unit 604 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The output unit 605 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The output unit may include a display panel.
The display 606 may be used to display text, pictures, etc.
In this embodiment, the processor 601 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application programs stored in the memory 602, thereby implementing the following processes:
acquiring an ambient temperature;
if the ambient temperature is greater than a preset first temperature threshold value, acquiring the temperature of the battery;
determining a target discharge amount of the battery according to the environment temperature and the battery temperature;
if the current discharge amount of the battery is larger than the target discharge amount, adjusting the current discharge amount until the current discharge amount is equal to or smaller than the target discharge amount.
In some embodiments, when the processor 601 executes the determining of the target discharge amount of the battery according to the environment temperature and the battery temperature, it may execute: detecting whether the battery temperature is smaller than a preset second temperature threshold value or not; if so, acquiring a temperature difference between the ambient temperature and the battery temperature; and determining a target discharge amount matched with the temperature difference, wherein the absolute value of the temperature difference is in direct proportion to the target discharge amount.
In some embodiments, the processor 601 performs the adjusting the current discharge amount until the current discharge amount is equal to or less than the target discharge amount, and may perform: determining a background application program; determining a priority of the background application; and closing the background application programs one by one according to the priority until the current discharge capacity is equal to or less than the target discharge capacity.
In some embodiments, before the processor 601 executes the closing of the background applications one by one according to the priority, the following may be further executed: outputting prompt information on a display interface, wherein the prompt information is used for initiating a background application program closing request to a user; and when a background application program closing instruction triggered based on the prompt information is detected, executing the closing of the background application programs one by one according to the priority.
In some embodiments, when the processor 601 performs the determining the priority of the background application, it may perform: acquiring running information of the background application program in a historical time period, wherein the running information comprises running duration and use frequency; and determining the priority of the background application program according to the running information.
In some embodiments, the processor 601 performs the adjusting the current discharge amount until the current discharge amount is equal to or less than the target discharge amount, and may perform: and gradually reducing the display brightness of the display screen of the electronic equipment by taking the preset brightness as the adjustment amount each time until the current discharge amount is equal to or less than the target discharge amount.
In some embodiments, the processor 601 may further perform: and if the battery temperature is greater than or equal to the preset second temperature threshold value, adjusting the running mode to a standby mode.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the battery management method in any one of the above embodiments, such as: acquiring an ambient temperature; if the ambient temperature is greater than a preset first temperature threshold value, acquiring the temperature of the battery; determining a target discharge amount of the battery according to the environment temperature and the battery temperature; if the current discharge amount of the battery is larger than the target discharge amount, adjusting the current discharge amount until the current discharge amount is equal to or smaller than the target discharge amount.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
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.
It should be noted that, for the battery management method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the battery management method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the battery management method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the battery management device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description is directed to a battery management method, an apparatus, a storage medium, and an electronic device provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those 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 (10)

1. A battery management method, comprising:
acquiring an ambient temperature;
if the ambient temperature is greater than a preset first temperature threshold value, acquiring the temperature of the battery;
determining a target discharge amount of the battery according to the environment temperature and the battery temperature;
if the current discharge amount of the battery is larger than the target discharge amount, adjusting the current discharge amount until the current discharge amount is equal to or smaller than the target discharge amount.
2. The battery management method of claim 1, wherein determining the target discharge amount of the battery based on the ambient temperature and the battery temperature comprises:
detecting whether the battery temperature is smaller than a preset second temperature threshold value or not;
if so, acquiring a temperature difference between the ambient temperature and the battery temperature;
and determining a target discharge amount matched with the temperature difference, wherein the absolute value of the temperature difference is in direct proportion to the target discharge amount.
3. The battery management method according to claim 1 or 2, wherein the adjusting the current discharge amount until the current discharge amount is equal to or less than the target discharge amount comprises:
determining a background application program;
determining a priority of the background application;
and closing the background application programs one by one according to the priority until the current discharge capacity is equal to or less than the target discharge capacity.
4. The battery management method according to claim 3, wherein before closing the background applications one by one according to the priority, the method further comprises:
outputting prompt information on a display interface, wherein the prompt information is used for initiating a background application program closing request to a user;
and when a background application program closing instruction triggered based on the prompt information is detected, executing the closing of the background application programs one by one according to the priority.
5. The battery management method of claim 3, wherein the determining the priority of the background application comprises:
acquiring running information of the background application program in a historical time period, wherein the running information comprises running duration and use frequency;
and determining the priority of the background application program according to the running information.
6. The battery management method according to claim 1 or 2, wherein the adjusting the current discharge amount until the current discharge amount is equal to or less than the target discharge amount comprises:
and gradually reducing the display brightness of the display screen of the electronic equipment by taking the preset brightness as the adjustment amount each time until the current discharge amount is equal to or less than the target discharge amount.
7. The battery management method according to claim 2, wherein after detecting whether the battery temperature is less than a preset second temperature threshold, the method further comprises:
and if the battery temperature is greater than or equal to the preset second temperature threshold value, adjusting the running mode to a standby mode.
8. A battery management apparatus, comprising:
the first acquisition module is used for acquiring the ambient temperature;
the second obtaining module is used for obtaining the battery temperature if the environment temperature is greater than a preset first temperature threshold;
the determining module is used for determining the target discharge capacity of the battery according to the environment temperature and the battery temperature;
and the adjusting module is used for adjusting the current discharging amount until the current discharging amount is equal to or less than the target discharging amount if the current discharging amount of the battery is greater than the target discharging amount.
9. A storage medium having stored thereon a computer program, the computer program, when executed on a computer, causing the computer to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, wherein the processor is configured to perform the method of any one of claims 1 to 7 by invoking a computer program stored in the memory.
CN201910877280.7A 2019-09-17 2019-09-17 Battery management method, device, storage medium and electronic equipment Active CN110611127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910877280.7A CN110611127B (en) 2019-09-17 2019-09-17 Battery management method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910877280.7A CN110611127B (en) 2019-09-17 2019-09-17 Battery management method, device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110611127A true CN110611127A (en) 2019-12-24
CN110611127B CN110611127B (en) 2021-02-02

Family

ID=68891434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910877280.7A Active CN110611127B (en) 2019-09-17 2019-09-17 Battery management method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110611127B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006217757A (en) * 2005-02-04 2006-08-17 Toyota Motor Corp Controller for secondary battery
CN101867199A (en) * 2009-04-15 2010-10-20 中兴通讯股份有限公司 Device and method for storing electricity for fiber access device
CN103135058A (en) * 2011-11-29 2013-06-05 联想(北京)有限公司 Method and electronic device for displaying battery remaining electricity quantity
DE102012205499A1 (en) * 2012-04-04 2013-10-10 Hilti Aktiengesellschaft Method for charging e.g. lithium ion rechargeable battery of electric screwdriver, involves charging battery cell with charging voltage smaller than fixed threshold value and with charge current smaller than another fixed threshold value
CN104333081A (en) * 2014-11-15 2015-02-04 成都九华圆通科技发展有限公司 Online maintenance method of distributed power supply
CN104733801A (en) * 2013-12-20 2015-06-24 北汽福田汽车股份有限公司 Power cell heat management device and method
CN105336994A (en) * 2014-07-17 2016-02-17 观致汽车有限公司 System and method used for vehicle battery pack management
CN105721676A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Terminal processing method and terminal processing device
CN105808409A (en) * 2016-03-28 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN105824582A (en) * 2016-03-28 2016-08-03 联想(北京)有限公司 Information processing method and electronic equipment
CN107357392A (en) * 2017-07-20 2017-11-17 广东欧珀移动通信有限公司 Mobile terminal temperature rise control method, mobile terminal and readable storage medium storing program for executing
CN107402809A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Management-control method, device, storage medium and the electronic equipment of application program

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006217757A (en) * 2005-02-04 2006-08-17 Toyota Motor Corp Controller for secondary battery
CN101867199A (en) * 2009-04-15 2010-10-20 中兴通讯股份有限公司 Device and method for storing electricity for fiber access device
CN103135058A (en) * 2011-11-29 2013-06-05 联想(北京)有限公司 Method and electronic device for displaying battery remaining electricity quantity
DE102012205499A1 (en) * 2012-04-04 2013-10-10 Hilti Aktiengesellschaft Method for charging e.g. lithium ion rechargeable battery of electric screwdriver, involves charging battery cell with charging voltage smaller than fixed threshold value and with charge current smaller than another fixed threshold value
CN104733801A (en) * 2013-12-20 2015-06-24 北汽福田汽车股份有限公司 Power cell heat management device and method
CN105336994A (en) * 2014-07-17 2016-02-17 观致汽车有限公司 System and method used for vehicle battery pack management
CN104333081A (en) * 2014-11-15 2015-02-04 成都九华圆通科技发展有限公司 Online maintenance method of distributed power supply
CN105721676A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Terminal processing method and terminal processing device
CN105808409A (en) * 2016-03-28 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN105824582A (en) * 2016-03-28 2016-08-03 联想(北京)有限公司 Information processing method and electronic equipment
CN107357392A (en) * 2017-07-20 2017-11-17 广东欧珀移动通信有限公司 Mobile terminal temperature rise control method, mobile terminal and readable storage medium storing program for executing
CN107402809A (en) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 Management-control method, device, storage medium and the electronic equipment of application program

Also Published As

Publication number Publication date
CN110611127B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN106454139B (en) Photographing method and mobile terminal
CN108121524B (en) Method and device for adjusting image display preview frame rate of electronic equipment and electronic equipment
CN109388220B (en) Power supply management method and mobile terminal
TW200910211A (en) Device that determines whether to launch an application locally or remotely as a Webapp
WO2019007420A1 (en) Load balance scheduling method and device, and computer readable storage medium
EP3349325B1 (en) Charging method, charging device and terminal
CN106951057B (en) Application control method and mobile terminal
KR102151135B1 (en) Method for managing power and electronic device thereof
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
WO2018119733A1 (en) Control method and device for display screen
CN110727561A (en) Abnormal heat dissipation detection method and device, terminal and storage medium
CN111446753B (en) Charging control method, device, equipment and storage medium
KR20150107448A (en) Task Migration Method and Apparatus
CN111077979A (en) Power consumption control method, storage medium, and electronic device
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN107341094B (en) Method and device for measuring time consumed by starting item
WO2020103017A1 (en) Power-on process control method, power-on process control apparatus and terminal device
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN110611127B (en) Battery management method, device, storage medium and electronic equipment
CN110955580B (en) Shell temperature acquisition method and device, storage medium and electronic equipment
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN110768350B (en) Charging method, charging device, storage medium and electronic equipment
CN112701736A (en) Charging method, charging device, electronic device and storage medium
CN108803857A (en) Application software energy consumption monitoring method, mobile terminal and readable storage medium storing program for executing
CN113010004A (en) Abnormal power consumption processing method and device and electronic equipment

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