Battery control method and device, electronic equipment, medium and program product

By monitoring battery temperature and charge, current limiting and load control are implemented for low-temperature scenarios, solving the problems of inaccurate charge prediction and sudden device shutdown caused by increased battery internal resistance in low-temperature environments, thus improving battery performance and user experience.

CN121749455APending Publication Date: 2026-03-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In low-temperature environments, increased battery internal resistance leads to inaccurate prediction of remaining capacity and a decrease in battery output voltage, which may cause the device to shut down under sudden heavy load.

Method used

By monitoring battery temperature and charge, instantaneous maximum discharge current tests were conducted for low-temperature standby and low-temperature discharge scenarios. Current limits were set, and load limiting operations were implemented, including adjusting screen brightness, turning off the vibration motor, and reducing CPU frequency, to control the current within a safe range.

Benefits of technology

It reduces issues such as inaccurate battery prediction and sudden device shutdown under heavy load, and improves battery performance and user experience in low-temperature environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121749455A_ABST
    Figure CN121749455A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of batteries, and particularly provides a battery control method and device, electronic equipment, a medium and a program product. The battery control method comprises the following steps: respectively monitoring the battery temperature and the battery electric quantity of the electronic equipment to obtain the current battery temperature and the current electric quantity; when it is determined that the current battery temperature meets the set temperature condition and the current electric quantity meets the set electric quantity condition, the equipment running state of the electronic equipment is obtained; executing target load limiting operation corresponding to the equipment running state, the current battery temperature and the current electric quantity, so that the battery discharge current of the electronic equipment meets the corresponding current limiting condition; the battery discharge current comprises the instant maximum discharge current when the electronic equipment reaches the shutdown voltage. Therefore, the current can be limited, so that the problems of inaccurate display electric quantity prediction and shutdown of equipment due to heavy load can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery technology, specifically to a method, apparatus, electronic device, medium, and program product for battery control. Background Technology

[0002] In battery applications, the remaining capacity is typically predicted using the internal resistance at room temperature. Based on the remaining capacity and the battery's maximum capacity, the battery charge and output voltage are then predicted as follows:

[0003] Vbat = OCV - I * Ra.

[0004] Where OCV is the battery's open-circuit voltage, I is the discharge current, and Ra is the battery's internal resistance calculated under the corresponding average discharge current Inow. The device shuts down when the battery output voltage reaches the shutdown voltage.

[0005] However, when electronic devices transition from room temperature to low temperature, the battery's internal resistance typically increases, leading to inaccurate prediction of remaining capacity and consequently, inaccurate prediction and display of battery level. Furthermore, increased battery internal resistance results in a lower battery output voltage, which may cause the device to suddenly shut down under heavy load (such as during gaming or photography) because the battery output voltage drops below the shutdown voltage (e.g., 3.4V). Summary of the Invention

[0006] The purpose of this application is to provide a battery control method, apparatus, electronic device, medium, and program product to improve the battery performance of the device under low temperature conditions.

[0007] On one hand, this application provides a battery control method, the method including:

[0008] Monitor the battery temperature and battery level of electronic devices to obtain the current battery temperature and current battery level;

[0009] When the current battery temperature meets the set temperature condition and the current battery level meets the set battery level condition, obtain the device operating status of the electronic device;

[0010] Perform target load limit operations based on the device's operating status, current battery temperature, and current battery level to ensure that the electronic device's battery discharge current meets the corresponding current limit conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage.

[0011] In one embodiment, when it is determined that the current battery temperature meets a set temperature condition and the current battery level meets a set battery level condition, the device operating status of the electronic device is obtained, including:

[0012] When the current battery temperature is determined to be lower than the first temperature threshold and higher than the second temperature threshold, and the current battery level is lower than the set battery level threshold, the device operating status is obtained.

[0013] In one embodiment, before performing the target load limiting operation corresponding to the device operating state, current battery temperature, and current battery level, the method further includes:

[0014] For each battery to be tested, perform the following steps for both temperature and battery capacity:

[0015] Test the battery under open circuit conditions, battery temperature and battery charge conditions to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage.

[0016] Based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, determine the current threshold of the electronic device in standby mode, under the conditions of battery temperature and battery charge; the current threshold shall not be higher than the instantaneous maximum discharge current.

[0017] Based on the current threshold, configure the electronic device to perform load limiting operations when it is in standby mode, under the conditions of battery temperature and battery charge, so that the instantaneous maximum discharge current of the electronic device when it reaches the shutdown voltage under the conditions of standby mode, battery temperature and battery charge is lower than the current threshold.

[0018] In one embodiment, performing a target load limit operation corresponding to the device operating status, current battery temperature, and current battery level includes:

[0019] Obtain the standby status, current battery temperature, and target load limit corresponding to the current battery level;

[0020] Perform the target load limiting operation until the electronic device is shut down.

[0021] In one embodiment, before performing the target load limiting operation corresponding to the device operating state, current battery temperature, and current battery level, the method further includes:

[0022] For each battery to be tested, perform the following steps for both temperature and battery capacity:

[0023] Test the battery under conditions of discharge, battery temperature, and battery charge to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage.

[0024] Based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, determine the current threshold of the electronic device under the conditions of discharge, battery temperature, and battery charge; the current threshold shall not be higher than the instantaneous maximum discharge current.

[0025] Determine the battery capacity range to which it belongs;

[0026] Based on the current threshold, configure the load limiting operation of the electronic device in the discharge state, battery temperature, and charge range, so that the discharge current of the electronic device in the discharge state, battery temperature, and charge range is lower than the current threshold.

[0027] In one embodiment, performing a target load limit operation corresponding to the device operating status, current battery temperature, and current battery level includes:

[0028] Determine the target energy range to which the current energy level belongs;

[0029] Perform target load limit operations based on discharge status, current battery temperature, and target charge range;

[0030] Repeat the following steps until the electronic device is powered off:

[0031] Monitor the battery level of electronic devices individually to obtain the current battery level;

[0032] When determining the target capacity range to which the current capacity belongs, perform the operation of setting the discharge status, current battery temperature, and target load limit corresponding to the updated target capacity range.

[0033] In one embodiment, the method further includes:

[0034] Determine at least one power range included in the power range that is not lower than the current power level;

[0035] For each of the at least one charge ranges, perform the following steps: determine the corresponding partial discharge duration based on the discharge state, current battery temperature, and the charge threshold corresponding to the charge range;

[0036] The battery discharge duration is determined by the sum of the partial discharge durations corresponding to at least one charge range.

[0037] On one hand, this application provides a battery control device, including:

[0038] The monitoring unit is used to monitor the battery temperature and battery level of the electronic device to obtain the current battery temperature and current battery level.

[0039] The determining unit is used to determine the device operating status of the electronic device when the current battery temperature meets the set temperature condition and the current power level meets the set power level condition.

[0040] The execution unit is used to perform target load limit operations corresponding to the device's operating status, current battery temperature, and current battery level, so that the battery discharge current of the electronic device meets the corresponding current limit conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage.

[0041] In one implementation, the determining unit is used to:

[0042] When the current battery temperature is determined to be lower than the first temperature threshold and higher than the second temperature threshold, and the current battery level is lower than the set battery level threshold, the device operating status is obtained.

[0043] In one embodiment, the execution unit is further configured to:

[0044] For each battery to be tested, perform the following steps for both temperature and battery capacity:

[0045] Test the battery under open circuit conditions, battery temperature and battery charge conditions to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage.

[0046] Based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, determine the current threshold of the electronic device in standby mode, under the conditions of battery temperature and battery charge; the current threshold shall not be higher than the instantaneous maximum discharge current.

[0047] Based on the current threshold, configure the electronic device to perform load limiting operations when it is in standby mode, under the conditions of battery temperature and battery charge, so that the instantaneous maximum discharge current of the electronic device when it reaches the shutdown voltage under the conditions of standby mode, battery temperature and battery charge is lower than the current threshold.

[0048] In one implementation, the execution unit is used to:

[0049] Obtain the standby status, current battery temperature, and target load limit corresponding to the current battery level;

[0050] Perform the target load limiting operation until the electronic device is shut down.

[0051] In one embodiment, the execution unit is further configured to:

[0052] For each battery to be tested, perform the following steps for both temperature and battery capacity:

[0053] Test the battery under conditions of discharge, battery temperature, and battery charge to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage.

[0054] Based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, determine the current threshold of the electronic device under the conditions of discharge, battery temperature, and battery charge; the current threshold shall not be higher than the instantaneous maximum discharge current.

[0055] Determine the battery capacity range to which it belongs;

[0056] Based on the current threshold, configure the load limiting operation of the electronic device in the discharge state, battery temperature, and charge range, so that the discharge current of the electronic device in the discharge state, battery temperature, and charge range is lower than the current threshold.

[0057] In one implementation, the execution unit is used to:

[0058] Determine the target energy range to which the current energy level belongs;

[0059] Perform target load limit operations based on discharge status, current battery temperature, and target charge range;

[0060] Repeat the following steps until the electronic device is powered off:

[0061] Monitor the battery level of electronic devices individually to obtain the current battery level;

[0062] When determining the target capacity range to which the current capacity belongs, perform the operation of setting the discharge status, current battery temperature, and target load limit corresponding to the updated target capacity range.

[0063] In one embodiment, the execution unit is further configured to:

[0064] Determine at least one power range included in the power range that is not lower than the current power level;

[0065] For each of the at least one charge ranges, perform the following steps: determine the corresponding partial discharge duration based on the discharge state, current battery temperature, and the charge threshold corresponding to the charge range;

[0066] The battery discharge duration is determined by the sum of the partial discharge durations corresponding to at least one charge range.

[0067] On one hand, this application provides an electronic device, including:

[0068] Processor; and

[0069] The memory stores computer instructions that cause the processor to perform the steps of the methods provided in the various alternative implementations of any of the battery control methods described above.

[0070] On one hand, this application provides a computer-readable storage medium storing computer instructions for causing a computer to perform the steps of the methods provided in various alternative implementations of any of the above-described battery control methods.

[0071] On one hand, this application provides a computer program product including computer-readable code or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in the processor of an electronic device, the processor in the electronic device performs the steps of the method provided in any of the above-described alternative implementations of battery control.

[0072] The battery control method in this embodiment includes monitoring the battery temperature and battery charge of an electronic device to obtain the current battery temperature and current charge; determining that the current battery temperature meets a set temperature condition and the current charge meets a set charge condition, and then obtaining the device operating status of the electronic device; performing a target load limiting operation corresponding to the device operating status, current battery temperature, and current charge, so that the battery discharge current of the electronic device meets the corresponding current limiting conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage. In this way, different load limits are applied for different situations, thereby limiting the current, which can reduce changes in battery internal resistance caused by low-temperature environments, thus reducing problems such as inaccurate battery charge prediction and device shutdown due to heavy load. Attached Figure Description

[0073] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0074] Figure 1 This is a flowchart illustrating a method for testing and configuring a battery in an open-circuit state, as described in an embodiment of this application.

[0075] Figure 2 This is a flowchart illustrating a method for testing and configuring a battery in a discharged state, as described in an embodiment of this application.

[0076] Figure 3 This is a flowchart of a battery control method according to an embodiment of this application.

[0077] Figure 4 This is a simulation example diagram of battery discharge time in an embodiment of this application.

[0078] Figure 5 This is a structural block diagram of a battery control device according to an embodiment of this application.

[0079] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0080] The technical solution of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. Furthermore, the technical features involved in the different embodiments of this application described below can be combined with each other as long as they do not conflict with each other.

[0081] In practical applications, when electronic devices transition from room temperature to low temperature, the internal resistance of the battery usually increases. If the load is maintained at room temperature when the battery is low, the remaining capacity prediction will be inaccurate, which will lead to inaccurate prediction and display of battery power. It will also cause the battery output voltage to decrease, which may cause the device to suddenly shut down when suddenly under heavy load because the battery output voltage is lower than the shutdown voltage (e.g., 3.4V).

[0082] Based on the deficiencies of the aforementioned related technologies, this application provides a battery control method, apparatus, electronic device, medium, and program product, aiming to improve the battery performance of the device under low-temperature conditions.

[0083] This application provides a battery control method, which can be applied to electronic devices. This application does not limit the type of electronic device, which can be any suitable type of device, such as terminal devices and servers, etc. This application will not elaborate further.

[0084] In this embodiment of the application, before controlling the battery of the electronic device, the battery current is tested under different test scenarios to obtain the instantaneous maximum discharge current of the battery when it reaches the shutdown voltage under various conditions. Based on the instantaneous maximum discharge current, current limit conditions are set, and based on the current limit conditions, load limit operations are set under various conditions.

[0085] Considering that the internal resistance of a battery behaves differently when it is instantly discharged from standby mode and when the current is instantly increased during discharge, this application embodiment performs instantaneous maximum discharge current tests for two scenarios: low-temperature standby and low-temperature discharge. The test scenarios include a test scenario where the battery is in an open circuit state and a test scenario where the battery is in a discharge state.

[0086] One test scenario involves the battery being in an open-circuit state. The following section combines... Figure 1 The testing and configuration methods for batteries in open-circuit mode are explained. Figure 1 A flowchart of a method for testing and configuring a battery in an open-circuit state is provided. The method includes the following steps:

[0087] Step 101: Test the battery in the open circuit state to obtain the maximum instantaneous discharge current of the battery when it reaches the shutdown voltage under various conditions.

[0088] For each battery under test, considering both temperature and charge level, the following steps are performed: Test the battery under open-circuit conditions, at the appropriate temperature and charge level to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage. For example, connect an open-circuit battery to a large load, causing it to rapidly deplete its charge to the shutdown voltage within a short time, and then measure the instantaneous maximum discharge current at that voltage.

[0089] Table 1.

[0090]

[0091] The following examples, using Table 1, illustrate the instantaneous maximum discharge current measured under different conditions (i.e., different battery capacities and different battery temperatures). Table 1 shows the instantaneous maximum discharge current Ix under a low-temperature open-circuit condition. Table 1 includes the instantaneous maximum discharge current Ix under multiple battery temperatures and capacities. For batteries with different capacities and temperatures, and in an open-circuit state, the instantaneous maximum discharge current Ix at the shutdown voltage Vterm was measured for each condition. Table 1 was generated based on the instantaneous maximum discharge current Ix under each condition and can be stored in the electronic device. Furthermore, the duration of the instantaneous maximum discharge current at the shutdown voltage of the electronic device's battery can be detected, for example, it can be n seconds, where n is a positive number.

[0092] For example, when the battery is at 10% charge, and the battery is in an open-circuit state, and then transferred from room temperature to a low temperature of -10℃, the maximum instantaneous discharge current of the battery when it reaches the shutdown voltage is measured to be I33.

[0093] Furthermore, since the battery capacity and battery temperature tested are usually limited, interpolation can be used to obtain the instantaneous maximum discharge current under more conditions based on the existing instantaneous maximum discharge current under various conditions, and Table 1 can be updated.

[0094] Step 102: Set current limit conditions based on the measured instantaneous maximum discharge current.

[0095] In one implementation, a current threshold is set based on the measured instantaneous maximum discharge current, and a current limiting condition is set based on the current threshold. That is, for each battery to be tested, the following steps are performed: based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, the current threshold of the electronic device in standby mode, under the conditions of battery temperature and battery level is determined;

[0096] Among them, the current threshold is not higher than the instantaneous maximum discharge current. For example, the instantaneous maximum discharge current can be determined as the corresponding current threshold.

[0097] Step 103: Set the load limiting operation for various conditions according to the current limiting conditions.

[0098] For each battery under test, considering both temperature and charge level, the following steps are performed: Based on a current threshold, the electronic device is configured to perform load limiting operations under standby conditions, considering battery temperature and charge level. This ensures that the maximum instantaneous discharge current at the shutdown voltage under these conditions is lower than the current threshold. Furthermore, the battery's duration can be reduced to a shorter duration than the corresponding test result.

[0099] Optionally, load limiting operations may include at least one of the following: limiting the maximum screen brightness, turning off the vibration motor, and reducing the CPU frequency. In practice, other load limiting operations may also be used, which are not limited here.

[0100] Another test scenario is when the battery is in a discharged state, which will be discussed below. Figure 2 The methods for testing and configuring batteries in a discharged state are explained. Figure 2 A flowchart illustrating a method for testing and configuring a battery in a discharge state, the method comprising:

[0101] Step 201: Test the battery in the discharge state to obtain the maximum instantaneous discharge current when the battery reaches the shutdown voltage under various conditions.

[0102] In one embodiment, for each battery to be tested, the following steps are performed: the battery is tested under the conditions of discharge, battery temperature and battery charge, and the instantaneous maximum discharge current when the battery reaches the shutdown voltage is obtained. That is, the instantaneous maximum discharge current when the battery reaches the shutdown voltage under the conditions of discharge, battery temperature and battery charge is tested.

[0103] Table 2.

[0104]

[0105] The following examples, using Table 2, illustrate the maximum instantaneous discharge current of the battery under different conditions. Table 2 shows the maximum instantaneous discharge current under a low-temperature discharge condition. Table 2 includes the maximum instantaneous discharge current I`x at various battery temperatures and battery capacities when the battery reaches the shutdown voltage.

[0106] For batteries with different capacities and temperatures, and all in a discharging state, the instantaneous maximum discharge current I`x at the time of reaching the shutdown voltage Vterm is measured under each condition. Table 2 is generated based on the instantaneous maximum discharge current I`x under each condition, and Table 2 can be stored in the electronic device. Furthermore, the duration of the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage can also be detected, for example, it can be n seconds.

[0107] For example, when the battery of an electronic device is in a discharging state and the battery charge is 10%, and the electronic device is transferred from room temperature to a low temperature of -10℃, the maximum instantaneous discharge current when the battery reaches the shutdown voltage is measured to be I`33.

[0108] Similarly, interpolation can be used to increase the instantaneous maximum discharge current I`x in other cases, thereby updating Table 2, which will not be elaborated here.

[0109] Step 202: Set current limit conditions based on the measured instantaneous maximum discharge current.

[0110] In one implementation, a current threshold is set based on the measured instantaneous maximum discharge current, and a current limiting condition is set based on the current threshold. Specifically, for each battery under test, considering both temperature and charge level, the following steps are performed: Based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, the current threshold for the electronic device under discharge conditions, considering the battery temperature and charge level.

[0111] Among them, the current threshold is not higher than the instantaneous maximum discharge current. For example, the instantaneous maximum discharge current can be determined as the corresponding current threshold.

[0112] Step 203: Set the load limiting operation for various conditions according to the current limiting conditions.

[0113] For each battery under test, considering both temperature and charge level, the following steps are performed: Determine the charge level range of the battery; based on a current threshold, configure load limiting operations for the electronic device during discharge, at the appropriate battery temperature and charge level, ensuring that the discharge current of the electronic device during discharge is below the current threshold. Furthermore, the battery's duration can be made shorter than the corresponding tested duration.

[0114] In this way, after battery testing and configuration, the battery can be controlled during battery application.

[0115] See Figure 3 The diagram shown is a flowchart of a battery control method according to an embodiment of this application. The following is a summary of the process. Figure 3 The method is described below, and the specific implementation process is as follows:

[0116] Step 301: Monitor the battery temperature and battery level of the electronic device to obtain the current battery temperature and current battery level.

[0117] Optionally, the current battery temperature and current battery level of the electronic device can be acquired periodically or in real time.

[0118] For example, the periodicity period can be 1 second. In practical applications, the periodicity period can be set according to the actual application scenario, and there is no restriction here.

[0119] Step 302: When the current battery temperature meets the set temperature condition and the current power level meets the set power level condition, obtain the device operating status of the electronic device.

[0120] In one embodiment, when it is determined that the current battery temperature is below a first temperature threshold and above a second temperature threshold, and the current battery level is below a set battery level threshold, the device operating status is obtained. The device operating status may include a standby state and a discharge state.

[0121] For example, the first temperature threshold can be 0°C, the second temperature threshold can be 20°C, and the set power threshold can be 30%.

[0122] In practical applications, the first temperature threshold, the second temperature threshold, and the set power threshold can all be set according to the actual application scenario, and there are no restrictions here.

[0123] Step 303: Perform target load limit operations based on the device operating status, current battery temperature, and current battery level to ensure that the battery discharge current of the electronic device meets the corresponding current limit conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage.

[0124] In this embodiment, considering that the internal resistance of a battery behaves differently when it is instantly discharged from standby mode and when the current is instantly increased during discharge, different methods are used to limit the maximum instantaneous discharge current for the two scenarios of low-temperature standby and low-temperature discharge.

[0125] In one implementation, step 303 can be performed in any of the following ways:

[0126] Method 1: If the device is in standby mode, obtain the target load limit operation corresponding to the standby mode, current battery temperature, and current battery level; execute the target load limit operation until the electronic device is powered off.

[0127] For example, when an electronic device is in standby mode, if the battery temperature is detected to suddenly drop from room temperature to a low temperature of 0°C, and the current battery level is detected to be 20%, instantaneous current limiting is activated. This involves acquiring the corresponding target load limiting operation, such as limiting the maximum screen brightness, turning off the vibration motor, and reducing the CPU frequency. The operation of limiting the maximum screen brightness, turning off the vibration motor, and reducing the CPU frequency is executed to ensure that the instantaneous maximum discharge current when the battery reaches the shutdown voltage is below the current threshold.

[0128] Furthermore, it is also possible to obtain the current duration of the instantaneous maximum discharge current when the battery reaches the shutdown voltage after the start-up instantaneous current limit. By using the target load limit operation, it is possible to ensure that this duration is lower than the corresponding tested duration.

[0129] This allows the load to be reduced when electronic devices enter a low-temperature standby state and the battery level is low, thereby limiting the instantaneous maximum discharge current. This reduces the problem of inaccurate battery readings when electronic devices transition from room temperature to low temperature and the problem of electronic devices being suddenly shut down when under heavy load, even when they are powered on. This improves the performance of electronic devices and the user experience.

[0130] Method 2: If the device is in a discharge state, then obtain and execute the target load limit operation corresponding to the discharge state, current battery temperature, and current battery level.

[0131] In one embodiment, the target power range to which the current power level belongs is determined; the discharge state, current battery temperature, and target load limit operation corresponding to the target power range are executed; the following steps are executed repeatedly until the electronic device is powered off: the battery power of the electronic device is monitored to obtain a new current power level; when the target power range to which the new current power level belongs is updated, the discharge state, current battery temperature, and target load limit operation corresponding to the updated target power range are executed.

[0132] This is because a battery in a discharged state represents the user's use of electronic devices. Therefore, in order to ensure the stability of the state of the electronic devices used by the user, a stepped limiting strategy is adopted to limit the infrequent changes in the maximum current.

[0133] The following example illustrates the tiered limiting strategy. For instance, the instantaneous maximum discharge current is the corresponding current threshold. When the electronic device's battery is discharging and its current charge level is above 30%, the device is moved from room temperature to a low-temperature environment of -10℃ (the current battery temperature). Therefore, the current charge level of the electronic device is detected. When the current charge level reaches 30%, a load limiting operation is initiated. That is, when the current charge level is in the first charge range of 30% to 20%, the maximum screen brightness is limited (i.e., the initial target load limiting operation). This ensures that the battery's discharge current is below the current threshold I`23 when the battery is discharging, the current battery temperature is -10℃, and the current charge level is within the first charge range.

[0134] Next, as the battery power continues to decrease, when the current battery power is detected to be in the second battery power range of 20% to 10%, the operation of limiting the maximum screen brightness and turning off the vibration motor (i.e., updating the target load limit operation) is executed to ensure that the battery discharge current is lower than the current threshold I`33 in the environment where the battery is in a discharging state, the current battery temperature is -10℃, and the current battery power is in the second battery power range.

[0135] Then, as the battery level decreases further, when the current battery level is detected to be in the third battery level range of 10% to 0%, the maximum screen brightness is limited, the vibration motor is turned off, and the CPU frequency is reduced (i.e., the target load limit is updated again) to ensure that the maximum discharge current at the moment of reaching the shutdown voltage is lower than the current threshold I`43 under the conditions of the battery being in a discharge state, the current battery temperature being -10℃, and the current battery level being in the third battery level range.

[0136] Furthermore, it is also possible to predict the battery discharge time of electronic devices in a discharging state.

[0137] In one embodiment, when the current battery temperature is detected to be lower than a first temperature threshold and higher than a second temperature threshold, and the current battery level is lower than a set battery level threshold, at least one battery level range (i.e., [0, current battery level]) not lower than the current battery level is determined. For each of the at least one battery level range, the following steps are performed: determining the corresponding partial discharge duration based on the discharge state, the current battery temperature, and the battery level threshold corresponding to the battery level range; and determining the battery discharge duration based on the sum of the partial discharge durations corresponding to each of the at least one battery level range. Furthermore, the predicted battery discharge duration can also be displayed to the user.

[0138] The partial discharge duration is negatively correlated with the corresponding current threshold and positively correlated with the corresponding remaining capacity. For example, the partial discharge duration is as follows:

[0139] t=RM / a / I`x.

[0140] Where t is the duration of partial discharge and a is the discharge coefficient, with different charge ranges corresponding to different charge coefficients.

[0141] The following is combined with Figure 4 The battery discharge time is explained. Figure 4 This is a simulation example of battery discharge time.

[0142] Figure 4 The display includes voltage and current curves. The horizontal axis of the voltage curve represents capacity (Q), and the vertical axis represents voltage. It includes both open-circuit voltage (OCV) and simulated voltage curves. The OCV curve represents the battery's open-circuit voltage when there is no charging or discharging current and the battery is in an absolutely stable state. The OCV curve is an inherent characteristic of the battery and does not change with battery aging; this curve is also a fixed value stored in the corresponding power calculation chip. The simulated voltage curve represents the change in the battery's output voltage. The current curves show the changes in current at different stages. Figure 4In this context, Depth of Discharge (DOD) refers to the percentage of a battery's total capacity as it discharges from a fully charged state to a specific state of charge. It is typically expressed as a percentage. For example, if a battery has a total capacity of 100 ampere-hours (Ah), a DOD of 50% means that 50 Ah has been discharged, leaving 50 Ah undischarged. When the battery is fully charged, DOD = 0%; when fully discharged, DOD = 100%. DOD = Qpass / Qmax. The battery capacity calculation chip stores 15 DOD values, from DOD0 to DOD14, where DOD0 to DOD8 differ by 11.1%, and DOD8 to DOD14 differ by 3.3%. Qmax is the battery capacity as it discharges from a fully charged state to a cutoff voltage (e.g., 3.0V). This capacity is initially a fixed value stored in the corresponding battery capacity calculation chip, and Qmax is updated as the battery ages. Qpass represents the historical discharge capacity calculated by the power calculation chip through coulomb integration of the discharge current. RM represents the predicted remaining capacity. Using the battery's maximum charge capacity (FCC) and RM, the displayed power level of the electronic device, RSOC = RM / FCC, can be calculated. Both RSOC and RM are predicted values; therefore, if the RM prediction is inaccurate, the RSOC will also be inaccurate. When discharging, after detecting the discharge, the power calculation chip begins calculating Ra. The current discharge RM calculation is based on the previously stored Ra value. Ra is stored in the power calculation chip during DOD updates, hence Ra also has 15 values: Ra0 to Ra14. The battery output voltage is OCV - I * Ra.

[0143] When a mobile phone is in a -10℃ low-temperature discharge environment, the current battery level is detected. When the current battery level reaches 30%, load limiting is activated. The battery current threshold is I`23. Based on I`23, the remaining capacity RM1 can be simulated. The phone operates at a discharge current of I`23 until the current battery level reaches 20%, a partial discharge time t1 = RM1 / 3 / I`23. Similarly, the phone operates at a current of I`33 until the current battery level reaches 10%, a partial discharge time t2 = RM2 / 2 / I`33. The phone operates at a current of I`43 until the current battery level reaches 0%, a partial discharge time t3 = RM3 / I`43. The battery discharge time T = t1 + t2 + t3.

[0144] In this way, the battery discharge time can be predicted, allowing users to use electronic devices more rationally based on the battery discharge time, thereby improving the user experience in low temperatures.

[0145] Considering that the internal resistance of a battery increases when an electronic device enters a low-temperature environment, resulting in a smaller remaining capacity RM at the same discharge rate, the predicted remaining capacity becomes inaccurate. This leads to inaccurate battery level prediction and a decrease in battery output voltage, potentially causing sudden shutdown under heavy load. In this embodiment, when the electronic device enters a low-temperature environment and its battery level decreases, the battery load is reduced to decrease current and internal resistance. This reduces the inaccuracy in remaining capacity and battery level prediction, as well as the magnitude of the decrease in battery output voltage, thus mitigating the risk of sudden shutdown under heavy load. Furthermore, considering the difference in internal resistance between standby and discharge scenarios, this embodiment employs different tests and load limit configurations for different scenarios. For discharge scenarios, a stepped limit strategy is used to restrict infrequent changes in maximum current, further improving the accuracy of battery level prediction and further reducing the risk of sudden shutdown under heavy load.

[0146] Based on the same inventive concept, this application also provides a battery control device. Since the principle of the above-mentioned device and equipment in solving the problem is similar to that of a battery control method, the implementation of the above-mentioned device can refer to the implementation of the method, and repeated details will not be repeated. This device can be applied to electronic devices. This application does not limit the type of electronic device; it can be any suitable type of device, such as terminal devices and servers, etc., which will not be described in detail here.

[0147] See Figure 5 The diagram shown is a structural block diagram of a battery control device according to an embodiment of this application. In some embodiments, the battery control device exemplified in this application includes:

[0148] The monitoring unit 501 is used to monitor the battery temperature and battery power of the electronic device to obtain the current battery temperature and current battery power.

[0149] The determining unit 502 is used to determine the device operating status of the electronic device when the current battery temperature meets the set temperature condition and the current power level meets the set power level condition.

[0150] The execution unit 503 is used to perform target load limit operations corresponding to the device operating status, current battery temperature, and current battery level, so that the battery discharge current of the electronic device meets the corresponding current limit conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage.

[0151] In one embodiment, the determining unit 502 is used to:

[0152] When the current battery temperature is determined to be lower than the first temperature threshold and higher than the second temperature threshold, and the current battery level is lower than the set battery level threshold, the device operating status is obtained.

[0153] In one embodiment, the execution unit 503 is further configured to:

[0154] For each battery to be tested, perform the following steps for both temperature and battery capacity:

[0155] Test the battery under open circuit conditions, battery temperature and battery charge conditions to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage.

[0156] Based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, determine the current threshold of the electronic device in standby mode, under the conditions of battery temperature and battery charge; the current threshold shall not be higher than the instantaneous maximum discharge current.

[0157] Based on the current threshold, configure the electronic device to perform load limiting operations when it is in standby mode, under the conditions of battery temperature and battery charge, so that the instantaneous maximum discharge current of the electronic device when it reaches the shutdown voltage under the conditions of standby mode, battery temperature and battery charge is lower than the current threshold.

[0158] In one embodiment, the execution unit 503 is used to:

[0159] Obtain the standby status, current battery temperature, and target load limit corresponding to the current battery level;

[0160] Perform the target load limiting operation until the electronic device is shut down.

[0161] In one embodiment, the execution unit 503 is further configured to:

[0162] For each battery to be tested, perform the following steps for both temperature and battery capacity:

[0163] Test the battery under conditions of discharge, battery temperature, and battery charge to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage.

[0164] Based on the instantaneous maximum discharge current when the battery reaches the shutdown voltage, determine the current threshold of the electronic device under the conditions of discharge, battery temperature, and battery charge; the current threshold shall not be higher than the instantaneous maximum discharge current.

[0165] Determine the battery capacity range to which it belongs;

[0166] Based on the current threshold, configure the load limiting operation of the electronic device in the discharge state, battery temperature, and charge range, so that the discharge current of the electronic device in the discharge state, battery temperature, and charge range is lower than the current threshold.

[0167] In one embodiment, the execution unit 503 is used to:

[0168] Determine the target energy range to which the current energy level belongs;

[0169] Perform target load limit operations based on discharge status, current battery temperature, and target charge range;

[0170] Repeat the following steps until the electronic device is powered off:

[0171] Monitor the battery level of electronic devices individually to obtain the current battery level;

[0172] When determining the target capacity range to which the current capacity belongs, perform the operation of setting the discharge status, current battery temperature, and target load limit corresponding to the updated target capacity range.

[0173] In one embodiment, the execution unit 503 is further configured to:

[0174] Determine at least one power range included in the power range that is not lower than the current power level;

[0175] For each of the at least one charge ranges, perform the following steps: determine the corresponding partial discharge duration based on the discharge state, current battery temperature, and the charge threshold corresponding to the charge range;

[0176] The battery discharge duration is determined by the sum of the partial discharge durations corresponding to at least one charge range.

[0177] The battery control method in this embodiment includes monitoring the battery temperature and battery charge of an electronic device to obtain the current battery temperature and current charge; determining that the current battery temperature meets a set temperature condition and the current charge meets a set charge condition, and then obtaining the device operating status of the electronic device; performing a target load limiting operation corresponding to the device operating status, current battery temperature, and current charge, so that the battery discharge current of the electronic device meets the corresponding current limiting conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage. In this way, different load limits are applied for different situations, thereby limiting the current, which can reduce changes in battery internal resistance caused by low-temperature environments, thus reducing problems such as inaccurate battery charge prediction and device shutdown due to heavy load.

[0178] In this embodiment of the application, an electronic device is provided, including:

[0179] Processor; and

[0180] The memory stores computer instructions that cause the processor to execute the methods of any of the above-described embodiments.

[0181] In this application embodiment, a computer-readable storage medium is provided, storing computer instructions for causing a computer to perform the methods of any of the above embodiments.

[0182] This application also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is run in the processor of an electronic device, the processor in the electronic device performs the method of any of the above-described embodiments.

[0183] Figure 6 A schematic diagram of the structure of an electronic device 6000 is shown. (See also...) Figure 6 As shown, the electronic device 6000 includes a processor 6010 and a memory 6020, and optionally may also include a power supply 6030, a display unit 6040, and an input unit 6050.

[0184] The processor 6010 is the control center of the electronic device 6000. It connects various components through various interfaces and lines, and performs various functions of the electronic device 6000 by running or executing software programs and / or data stored in the memory 6020, thereby performing overall monitoring of the electronic device 6000.

[0185] In this embodiment, when the processor 6010 calls the computer program stored in the memory 6020, it executes the steps in the above embodiments.

[0186] Optionally, the processor 6010 may include one or more processing units; preferably, the processor 6010 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 6010. In some embodiments, the processor and memory may be implemented on a single chip; in some embodiments, they may also be implemented separately on independent chips.

[0187] The memory 6020 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, various applications, etc.; the data storage area may store data created based on the use of the electronic device 6000, etc. In addition, the memory 6020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device, etc.

[0188] Electronic device 6000 also includes a power supply 6030 (such as a battery) that supplies power to various components. The power supply can be logically connected to processor 6010 through a power management system, thereby enabling the management of charging, discharging, and power consumption.

[0189] The display unit 6040 can be used to display information input by the user or information provided to the user, as well as various menus of the electronic device 6000. In this embodiment, it is mainly used to display the display interfaces of various applications in the electronic device 6000, as well as text, images, and other objects displayed on the display interfaces. The display unit 6040 may include a display panel 6041. The display panel 6041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0190] The input unit 6050 can be used to receive information such as numbers or characters input by the user. The input unit 6050 may include a touch panel 6051 and other input devices 6052. The touch panel 6051, also known as a touch screen, can collect touch operations on or near the touch panel 6051 by the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 6051).

[0191] Specifically, the touch panel 6051 can detect user touch operations and the signals generated by these operations, convert them into touch point coordinates, send them to the processor 6010, and receive and execute commands from the processor 6010. Furthermore, the touch panel 6051 can be implemented using various types of touch technologies, including resistive, capacitive, infrared, and surface acoustic wave. Other input devices 6052 can include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.

[0192] Of course, the touch panel 6051 can cover the display panel 6041. When the touch panel 6051 detects a touch operation on or near it, it transmits the information to the processor 6010 to determine the type of touch event. Subsequently, the processor 6010 provides corresponding visual output on the display panel 6041 based on the type of touch event. Although in Figure 6 In this embodiment, the touch panel 6051 and the display panel 6041 are two separate components to realize the input and output functions of the electronic device 6000. However, in some embodiments, the touch panel 6051 and the display panel 6041 can be integrated to realize the input and output functions of the electronic device 6000.

[0193] The electronic device 6000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity sensor, etc. Of course, depending on the specific application, the electronic device 6000 may also include other components such as a camera. Since these components are not the focus of this application embodiment, therefore... Figure 6 It is not shown in the text and will not be described in detail here.

[0194] Those skilled in the art will understand that Figure 6 This is merely an example of an electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than shown, or a combination of certain components, or different components.

[0195] For ease of description, the above sections are divided into modules (or units) according to their functions and described separately. Of course, in implementing this application, the functions of each module (or unit) can be implemented in one or more software or hardware components.

Claims

1. A method for battery control, characterized in that, The method includes: Monitor the battery temperature and battery level of electronic devices to obtain the current battery temperature and current battery level; When it is determined that the current battery temperature meets the set temperature condition and the current battery level meets the set battery level condition, the device operating status of the electronic device is obtained; The system executes target load limit operations corresponding to the device's operating status, current battery temperature, and current battery level, so that the battery discharge current of the electronic device meets the corresponding current limit conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage.

2. The method according to claim 1, characterized in that, When it is determined that the current battery temperature meets the set temperature condition and the current battery level meets the set battery level condition, the device operating status of the electronic device is obtained, including: When the current battery temperature is determined to be lower than a first temperature threshold and higher than a second temperature threshold, and the current battery level is lower than a set battery level threshold, the device operating status is obtained.

3. The method according to claim 1 or 2, characterized in that, Before executing the target load limit operations corresponding to the device operating status, the current battery temperature, and the current battery level, the method further includes: For each battery to be tested, perform the following steps for both temperature and battery capacity: The battery is tested under the conditions of open circuit, battery temperature, and battery charge to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage. Based on the instantaneous maximum discharge current when the battery reaches the power-off voltage, a current threshold is determined for the electronic device in standby mode, considering the battery temperature and battery charge; the current threshold is not higher than the instantaneous maximum discharge current. Based on the current threshold, the electronic device is configured to perform load limiting operations when it is in standby mode, at the battery temperature and with the battery charge, such that the maximum instantaneous discharge current of the electronic device when it reaches the shutdown voltage is lower than the current threshold under the conditions of standby mode, battery temperature and battery charge.

4. The method according to claim 3, characterized in that, The execution of the target load limit operation corresponding to the device operating status, the current battery temperature, and the current battery level includes: Obtain the standby status, the current battery temperature, and the target load limit operation corresponding to the current battery level; Perform the target load limiting operation until the electronic device is powered off.

5. The method according to claim 1 or 2, characterized in that, Before executing the target load limit operations corresponding to the device operating status, the current battery temperature, and the current battery level, the method further includes: For each battery to be tested, perform the following steps for both temperature and battery capacity: The battery is tested under the conditions of discharge, battery temperature, and battery charge to obtain the instantaneous maximum discharge current when the battery reaches the shutdown voltage. Based on the instantaneous maximum discharge current when the battery reaches the power-off voltage, a current threshold is determined for the electronic device in a discharge state, considering the battery temperature and battery charge; the current threshold is not higher than the instantaneous maximum discharge current. Determine the battery capacity range to which the battery capacity belongs; Based on the current threshold, the electronic device is configured to perform load limiting operations when it is in a discharge state, at the battery temperature, and within the power range, such that the discharge current of the electronic device is lower than the current threshold when it is in a discharge state, at the battery temperature, and within the power range.

6. The method according to claim 5, characterized in that, The execution of the target load limit operation corresponding to the device operating status, the current battery temperature, and the current battery level includes: Determine the target power range to which the current power level belongs; Perform target load limit operations based on the discharge state, the current battery temperature, and the target charge range; Repeat the following steps until the electronic device is powered off: Monitor the battery level of electronic devices individually to obtain the current battery level; When determining the target power range update to which the new current power level belongs, the operation of setting the discharge state, the current battery temperature, and the target load limit corresponding to the updated target power range is performed.

7. The method according to claim 6, characterized in that, The method further includes: Determine at least one power range that is not lower than the current power level; For each of the at least one power range, the following steps are performed: determine the corresponding partial discharge duration based on the discharge state, the current battery temperature, and the power threshold corresponding to the power range; The battery discharge duration is determined based on the sum of the partial discharge durations corresponding to each of the at least one charge range.

8. A battery-controlled device, characterized in that, The device includes: The monitoring unit is used to monitor the battery temperature and battery level of the electronic device to obtain the current battery temperature and current battery level. The determining unit is used to determine the device operating status of the electronic device when the current battery temperature meets the set temperature condition and the current power level meets the set power level condition. An execution unit is used to perform target load limiting operations corresponding to the device operating status, the current battery temperature, and the current battery level, so that the battery discharge current of the electronic device meets the corresponding current limit conditions; the battery discharge current includes the instantaneous maximum discharge current when the electronic device reaches the shutdown voltage.

9. An electronic device, characterized in that, include: processor; as well as A memory storing computer instructions for causing the processor to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer contains computer instructions for causing the computer to perform the method according to any one of claims 1 to 7.

11. A computer program product, characterized in that, Includes computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code, wherein when the computer-readable code is executed in a processor of an electronic device, the processor in the electronic device is the method according to any one of claims 1 to 7.