Battery power calibration method, device, computer equipment, and storage medium

By determining the initial state of charge and load current when the temperature changes in the terminal equipment, and calculating the battery capacity with the temperature coefficient change curve, the problem of inaccurate power display in low-temperature environments is solved, and the reliability of power monitoring is improved.

CN119780757APending Publication Date: 2025-04-08LABPANO TECHNOLOGY (CHANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411789520.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In a low temperature environment, the battery power display of the lithium battery is inaccurate, which causes the device to fail to turn on. After the temperature rises to normal temperature, the battery power display is still inaccurate.

Method used

By determining the initial state of charge and load current at the initial moment of temperature change in the terminal device, combining the battery standard capacity, load current and sampling period, the initial state of charge at the subsequent moment is gradually calculated, and the battery capacity at the current moment is determined according to the temperature coefficient change curve.

Benefits of technology

It effectively reduces the power metering error caused by not taking into account the actual working conditions, ensures that the power display is more in line with the actual available power situation of the battery, and improves the reliability of power monitoring in different temperature environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119780757A_ABST
    Figure CN119780757A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a battery power calibration method, device, computer equipment, and storage medium. The method includes: in response to parameters in a terminal device satisfying power calibration conditions, at the initial moment when the power calibration conditions are met and the temperature in the terminal device changes, determining the initial state of charge and load current at the initial moment; calculating the initial state of charge at the next moment based on the initial state of charge at the initial moment, the standard capacity of the battery in the terminal device, the load current, and the sampling period; determining the initial state of charge at each moment when the power calibration conditions are met and the temperature in the terminal device changes; determining the battery power at the current moment based on the initial state of charge at each moment, the temperature of the terminal device at the current moment, and a predetermined temperature coefficient change curve. This method can accurately determine the power when the temperature changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of battery power technology, and in particular to a battery power calibration method, device, computer equipment, and storage medium. Background Art

[0002] In low temperature environments, the battery discharge capacity decreases as the battery temperature drops. Many Android hardware system devices with lithium batteries will be unable to boot up due to insufficient power in low temperature environments due to the characteristics of lithium batteries (including increased internal resistance, lithium ion deposition at the negative electrode, which consumes lithium ion concentration, etc.). However, when the Android hardware system device recovers from low temperature to normal temperature, the battery power will recover a little, but the power read in the system is still at the low temperature state, which causes the device to fail to boot up.

[0003] At present, the traditional method is to set the system power when returning to normal temperature to a default value to ensure that the device can be turned on normally. However, in this method, the battery power is inaccurate within a period of time after the device is turned on, and cannot truly reflect the current power. Summary of the invention

[0004] Based on this, it is necessary to provide a xx method, device, computer equipment, and storage medium to address the above technical problems.

[0005] In a first aspect, the present disclosure provides a battery charge calibration method. The method comprises:

[0006] In response to a parameter in the terminal device satisfying a power calibration condition, at an initial moment when the power calibration condition is satisfied and a temperature in the terminal device changes, determining an initial state of charge and a load current at the initial moment;

[0007] Calculating an initial state of charge at a next moment based on the initial state of charge at the initial moment, the standard capacity of the battery in the terminal device, the load current and the sampling period;

[0008] Determine the initial state of charge at each moment when the power calibration condition is met and the temperature in the terminal device changes, according to the initial state of charge at the next moment that matches each moment when the power calibration condition is met and the temperature in the terminal device changes;

[0009] The battery power at the current moment is determined according to the initial state of charge at each moment, the temperature of the terminal device at the current moment and a predetermined temperature coefficient variation curve, wherein the temperature coefficient variation curve is determined based on the charging and discharging currents at multiple different temperatures.

[0010] In one embodiment, determining the initial state of charge at the initial moment includes:

[0011] Acquiring an open circuit voltage of the terminal device at an initial moment, and determining an initial state of charge of the terminal device at an initial moment based on the open circuit voltage;

[0012] Alternatively, the temperature of the terminal device at the initial moment is obtained, and the initial state of charge of the terminal device at the initial moment is determined based at least on the temperature of the terminal device, a first state of charge stored at a first moment before the initial moment, and a battery state from the first moment to the initial moment.

[0013] In one embodiment, the battery state includes: a charging state, and determining the initial charge state of the terminal device at the initial moment according to at least the temperature of the terminal device, a first charge state stored at a first moment before the initial moment, and a battery state from the first moment to the initial moment includes:

[0014] In response to the battery state from the first moment to the initial moment being a charging state, determining a charging power of the terminal device;

[0015] determining a second state of charge at an initial moment based on the charging power, the time from the first moment to the initial moment, and the first state of charge;

[0016] An initial state of charge of the terminal device at an initial moment is determined according to the temperature of the terminal device, a predetermined temperature coefficient variation curve, and the second state of charge.

[0017] In one embodiment, the battery state includes: a discharge state, and determining the initial state of charge of the terminal device at the initial moment according to at least the temperature of the terminal device, a first state of charge stored at a first moment before the initial moment, and a battery state from the first moment to the initial moment includes:

[0018] In response to the battery state from the first moment to the initial moment being a discharging state, determining a discharging power of the terminal device;

[0019] determining a third state of charge at an initial moment based on the discharge power, the time from the first moment to the initial moment, and the first state of charge;

[0020] An initial state of charge of the terminal device at an initial moment is determined according to the temperature of the terminal device, a predetermined temperature coefficient variation curve, and the third state of charge.

[0021] In one embodiment, determining the initial state of charge of the terminal device at an initial moment according to the temperature of the terminal device, a predetermined temperature coefficient variation curve, and the third state of charge includes:

[0022] In response to the third state of charge being not zero and the third state of charge supporting powering on of the terminal device, determining a temperature change of the terminal device from the first moment to the initial moment;

[0023] In response to the temperature change being a temperature increase, determining a charge compensation according to the temperature of the terminal device, a predetermined temperature coefficient change curve, and a third state of charge;

[0024] Determining an initial state of charge of the terminal device at an initial moment according to the charge compensation and the third state of charge;

[0025] In response to the third state of charge being not zero and the third state of charge not supporting powering on of the terminal device, determining a temperature change of the terminal device from the first moment to the initial moment;

[0026] In response to the temperature change being a temperature decrease, determining that the initial charge state of the terminal device at an initial moment is zero, and stopping the power calibration.

[0027] In one embodiment, the power calibration condition includes at least one of the following:

[0028] The temperature of the terminal device is lower than a preset temperature threshold;

[0029] The current state of charge of the terminal device is less than a preset state of charge threshold;

[0030] The power management integrated circuit in the terminal device fails to power on;

[0031] The temperature of the terminal device fluctuates within a preset time period.

[0032] In one embodiment, determining the battery power at the current moment according to the initial state of charge at each moment, the temperature of the terminal device at the current moment, and a predetermined temperature coefficient variation curve includes:

[0033] Determining the coulombic efficiency at the current temperature at the current moment according to the temperature coefficient variation curve and the temperature of the terminal device;

[0034] Determine the load current of the terminal device at the current moment, and determine the battery power at the current moment based on the initial state of charge at the current moment, the coulomb efficiency, the load current of the terminal device at the current moment, and the standard capacity of the battery in the terminal device.

[0035] In a second aspect, the present disclosure further provides a battery charge calibration device. The device comprises:

[0036] A data determination module, configured to determine an initial state of charge and a load current at an initial moment when a battery parameter in the terminal device satisfies a power calibration condition and the temperature in the terminal device changes in response to the battery parameter in the terminal device satisfying the power calibration condition;

[0037] A state of charge calculation module, configured to calculate an initial state of charge at a next moment based on the initial state of charge at the initial moment, the standard capacity of the battery in the terminal device, the load current and the sampling period;

[0038] A state of charge determination module, configured to determine an initial state of charge at each moment when the power calibration condition is met and the temperature in the terminal device changes, based on an initial state of charge at a next moment that matches each moment when the power calibration condition is met and the temperature in the terminal device changes;

[0039] The power determination module is used to determine the battery power at the current moment according to the initial charge state at each moment, the temperature of the terminal device at the current moment and a predetermined temperature coefficient variation curve, wherein the temperature coefficient variation curve is determined based on the charging and discharging current at multiple different temperatures.

[0040] In a third aspect, the present disclosure further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in any of the above method embodiments are implemented.

[0041] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0042] In a fifth aspect, the present disclosure further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0043] In the above embodiments, the initial state of charge and load current are determined at the initial moment when the temperature changes in the terminal device, and the initial state of charge at subsequent moments is gradually calculated based on this and the battery standard capacity, load current and sampling period. This series of operations is based on more accurate time nodes and parameter capture, which can make the calculation of the power state more in line with the dynamic changes in actual use. Compared with the power estimation of a simple fixed mode, it can effectively reduce the power measurement error caused by not considering the actual working condition changes. Considering the key factor of temperature change in the terminal device, and based on the predetermined temperature coefficient change curve determined based on the charge and discharge current at multiple different temperatures, the initial state of charge at each moment and the temperature at the current moment are finally determined. Since there are differences in the charging and discharging performance, power loss and other conditions of the battery at different temperatures, this can fully adapt to the influence of temperature on the battery power, especially when the terminal device is used in some temperature changes frequently or in extreme temperature environments, the power display can be dynamically and reasonably calibrated to make the power display more consistent with the actual available power of the battery, and improve the reliability of power monitoring in different temperature environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 is a flow chart of a battery power calibration method in one embodiment;

[0046] Figure 2 Schematic diagram of the process of step S102 in one embodiment;

[0047] Figure 3 A schematic diagram of a process flow of step S204 in an embodiment;

[0048] Figure 4 Another schematic diagram of the process of step S204 in one embodiment;

[0049] Figure 5 This is a schematic diagram of the process of step S406 in one embodiment;

[0050] Figure 6 This is a schematic diagram of the process of step S108 in one embodiment;

[0051] Figure 7 is a structural block diagram of a battery power calibration device in one embodiment;

[0052] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present disclosure more clear, the present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not used to limit the present disclosure.

[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0055] In this article, the term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.

[0056] In one embodiment, Figure 1 As shown, a battery power calibration method is provided. This embodiment uses the method applied to a terminal as an example for illustration, and includes the following steps:

[0057] S102, in response to parameters in the terminal device satisfying a power calibration condition, determining an initial state of charge and a load current at an initial moment when the power calibration condition is satisfied and a temperature change occurs in the terminal device.

[0058] Among them, power calibration refers to the process of ensuring that the battery power display is accurate through specific steps and conditions. The power calibration condition may be a condition that requires power calibration, for example, it may include one or more of the following: the temperature of the terminal device is less than a preset temperature threshold; the current state of charge of the terminal device is less than a preset state of charge threshold; the power management integrated circuit in the terminal device fails to power on; the temperature of the terminal device fluctuates within a preset time period. The power management integrated circuit is (Power Management Integrated Circuit), which plays a vital role in electronic devices and is responsible for the distribution, conversion, monitoring and other management operations of electrical energy to ensure that each circuit module can obtain appropriate power supply normally and stably. The failure of the power management integrated circuit to power on means that during the process of starting the device or trying to connect the power to it, the PMIC failed to start working normally and could not provide the expected power supply and related management functions for the entire system.

[0059] Specifically, during the operation of the terminal device, it can be determined whether the power calibration condition is met according to various parameters in the terminal device. When the parameters in the terminal device meet the power calibration condition, the terminal device can determine that the power calibration condition is met, and when the temperature in the terminal device changes, the starting time when the temperature changes can be determined, and the initial charge state and load current at the starting time can be determined.

[0060] S104, calculating the initial state of charge at the next moment based on the initial state of charge at the initial moment, the standard capacity of the battery in the terminal device, the load current and the sampling period.

[0061] The standard capacity of the battery may be the rated capacity of the battery of the terminal device when it is produced. The sampling period may be flexibly set according to the actual scenario, and in some embodiments of the present disclosure, the size of the sampling period is not limited.

[0062] Specifically, the initial state of charge at the next sampling period (next moment) after the initial moment may be calculated based on the initial state of charge at the initial moment, the standard capacity, the load current and the sampling period.

[0063] In some exemplary embodiments, the following formula may be used for calculation:

[0064]

[0065] Among them, soc k+1 is the initial state of charge at the next moment, soc k is the initial state of charge at the current moment, i kis the load current at the current moment. T is the sampling period, and cn is the standard capacity.

[0066] S106, determining the initial charge state at each moment when the power calibration condition is met and the temperature in the terminal device changes, based on the initial charge state at the next moment that matches the initial charge state at each moment when the power calibration condition is met and the temperature in the terminal device changes.

[0067] Specifically, the initial state of charge corresponding to each next moment can be determined in sequence according to the initial moment, so as to determine the initial state of charge at each moment when the power calibration condition is met and the temperature in the terminal device changes.

[0068] In some exemplary embodiments, for example, when the power calibration condition is met and the temperature in the terminal device changes, the moments include: moment A1, moment A2, moment A3, and moment A4. It should be noted that the time interval (sampling period) between each of the above moments may be T. Moment A1 may be the initial moment, and the initial state of charge and load current at moment A1 may be determined. Then, according to the initial state of charge at moment A1, the standard capacity of the battery of the terminal device, the load current, and the sampling period, the initial state of charge at the next moment A2 is calculated. According to the initial state of charge at moment A2, the load current at moment A2, the standard capacity of the battery of the terminal device, and the sampling period, the initial state of charge at moment A3 is calculated, and so on, the initial state of charge at moments A4 and A5 are calculated.

[0069] S108, determine the battery power at the current moment according to the initial state of charge at each moment, the temperature of the terminal device at the current moment and the predetermined temperature coefficient change curve, wherein the temperature coefficient change curve is determined based on the current of charging and discharging at multiple different temperatures. Temperature coefficient change curve: This curve reflects the law that the charging and discharging performance of the battery is affected by temperature under different temperature environments. It is based on a large number of experiments, by charging and discharging the battery at multiple different temperatures, and recording the corresponding charging and discharging current changes. Generally speaking, if the temperature is too high or too low, the battery's charging and discharging efficiency and other performance will change, thereby affecting the actual performance of the power.

[0070] Specifically, the temperature value of the environment in which the terminal device is located at the current moment can be obtained, and it can be accurately measured by means of a built-in temperature sensor of the device. For example, the current temperature is measured to be 25°C. The predetermined temperature coefficient change curve should be a corresponding relationship chart or mathematical expression (usually obtained by fitting experimental data, etc.) with temperature as the horizontal coordinate and the corresponding temperature coefficient (such as a proportional coefficient that affects the change in power) as the vertical coordinate. For example, in the temperature coefficient change curve of a certain battery, when the temperature is 0°C, the temperature coefficient is 0.8; when the temperature is 25°C, the temperature coefficient is 1; when the temperature is 40°C, the temperature coefficient is 0.9, etc. According to the temperature of the terminal device at the current moment obtained, the corresponding temperature coefficient value is searched on the predetermined temperature coefficient change curve. For example, if the current temperature is 20°C, by looking up the functional relationship corresponding to the temperature coefficient change curve (assuming that this curve is a function curve fitted after obtaining discrete data points through experiments) or directly comparing discrete data points, the corresponding temperature coefficient at this temperature is obtained as 0.95 (the specific values ​​here are only examples, and the actual values ​​depend on different batteries and curves, and are not absolutely limited in this disclosure). According to the initial state of charge at each moment, determine the initial state of charge at the current moment. According to the initial state of charge at the current moment and the determined temperature coefficient, calculate the battery capacity at the current moment. Assuming that the full battery capacity is 1000mAh (milliampere-hours) and the initial SOC is 60%, then the initial capacity is 1000mAh×60%=600mAh. The temperature coefficient determined at the current moment is 0.95, so the battery capacity at the current moment is 600mAh×0.95=570mAh.

[0071] In the above-mentioned battery power calibration method, the initial state of charge and load current are determined at the initial moment when the temperature changes in the terminal device, and the initial state of charge at subsequent moments is gradually calculated based on this combined with the battery standard capacity, load current and sampling period. This series of operations is based on more accurate time nodes and parameter capture, which can make the calculation of the power state more in line with the dynamic changes in actual use. Compared with the power estimation of a simple fixed mode, it can effectively reduce the power measurement error caused by not considering the actual working condition changes. Considering the key factor of temperature change in the terminal device, and based on the predetermined temperature coefficient change curve determined based on the charge and discharge current at multiple different temperatures, the initial state of charge at each moment and the temperature at the current moment are finally determined. Since there are differences in the charging and discharging performance, power loss and other conditions of the battery at different temperatures, this can fully adapt to the influence of temperature on the battery power, especially when the terminal device is used in some temperature changes frequently or in extreme temperature environments, the power display can be dynamically and reasonably calibrated to make the power display more consistent with the actual available power of the battery, and improve the reliability of power monitoring in different temperature environments.

[0072] In one embodiment, Figure 2 As shown, the determining of the initial state of charge at the initial moment includes:

[0073] S202, obtaining an open circuit voltage of the terminal device at an initial moment, and determining an initial state of charge of the terminal device at an initial moment based on the open circuit voltage.

[0074] The open circuit voltage (OCV) refers to the potential difference between the two ends of a power supply when the circuit is in an open circuit state (ie, no current flows through the external circuit).

[0075] Specifically, the open circuit voltage of the terminal device at the initial moment may be obtained, and then the initial state of charge of the terminal device at the initial moment may be determined by searching a battery characteristic curve or a data table according to the open circuit voltage.

[0076] In addition, in some exemplary embodiments, the initial state of charge can also be calculated using the open circuit voltage. Some battery fields have proven empirical formulas to describe the relationship between open circuit voltage and SOC. Taking lithium batteries as an example, there may be a simplified empirical formula similar to the following (for reference only, the actual situation may vary depending on the specific battery):

[0077] SOC=a×V OC +b

[0078] Among them, V OC is the open circuit voltage, a and b are coefficients obtained during the test process, for example, by performing multiple charge and discharge tests on a batch of lithium batteries.

[0079] In addition, if the discrete open circuit voltage and SOC corresponding data points are obtained by looking up the battery characteristic curve or data table, and the measured open circuit voltage value is just between the voltages corresponding to the two known data points, the interpolation method can be used to estimate the SOC. For example, when the open circuit voltage of the known battery is 3.7V, the SOC is 50%; when the open circuit voltage is 3.8V, the SOC is 60%, and the measured open circuit voltage is now 3.75V. The linear interpolation method is used to calculate as follows:

[0080]

[0081] That is, the corresponding SOC value is determined according to the SOC difference between the two known points and the proportional relationship between the measured voltage and one of the known voltages. It can be understood that the above is only for illustration.

[0082] Or S204, obtaining the temperature of the terminal device at the initial moment, and determining the initial state of charge of the terminal device at the initial moment based at least on the temperature of the terminal device, a first state of charge stored at a first moment before the initial moment, and a battery state from the first moment to the initial moment.

[0083] The battery status may include: charging status and discharging status.

[0084] Specifically, terminal devices such as smart phones, tablet computers, laptops, etc., their temperature sensors are usually integrated near the motherboard or battery management module, and can provide real-time feedback of the temperature information inside the device. The temperature sensor can be used to obtain the temperature of the terminal device at the initial moment. Then the initial state of charge is determined based on the battery state, the first state of charge and the temperature of the terminal device. For example, if the battery of the terminal device has been charged and discharged between the first moment and the initial moment, it is necessary to accurately record the charge and discharge power. For example, the battery management system of the device records that during this period, a charging operation was performed, and a charge equivalent to 10% of the full battery power was charged; or a discharge operation was performed, and a charge equivalent to 5% of the full power was discharged. When calculating the initial state of charge, the impact of the charge and discharge power should be added to the above-mentioned result based on self-discharge calculation. Continuing with the above example, if 10% of the battery is charged, the initial state of charge SOC0 will be calculated based on the previous calculation result plus this 10%, that is, SOC0 = 79.75% + 10% = 89.75%; if 5% of the battery is discharged, then SOC0 = 79.75% - 5% = 74.75%. After obtaining SOC0, the temperature coefficient can be determined using the current temperature, and the SOC0 can be corrected using the temperature coefficient to determine the final initial state of charge.

[0085] In this embodiment, the initial state of charge of the terminal device at the initial moment is determined by the open circuit voltage, which can improve the speed of determining the initial state of charge. The initial state of charge of the terminal device at the initial moment is determined based on the first state of charge stored at the first moment before the initial moment and the battery state from the first moment to the initial moment, so that the battery state of the terminal device can be accurately identified, thereby accurately determining the initial state of charge and ensuring the accuracy of subsequent power determination.

[0086] In one embodiment, the battery status includes: charging status. Figure 3 As shown, determining the initial state of charge of the terminal device at the initial moment according to at least the temperature of the terminal device, the first state of charge stored at a first moment before the initial moment, and the battery state from the first moment to the initial moment includes:

[0087] S302: In response to the battery status from the first moment to the initial moment being a charging state, determine the charging power of the terminal device.

[0088] Among them, charging power (P) refers to the amount of electrical energy charged into the battery per unit time, usually in watts (W). For example, a charging power of 10W means that 10 joules of electrical energy are charged into the battery per second, and its size reflects the speed of charging.

[0089] Specifically, when the battery state from the first moment to the initial moment is a charging state, the charging power of the terminal device in the charging state can be determined.

[0090] In some exemplary embodiments, the charging power can be determined in the following manner: the operating system of the terminal device has a battery management function and can display charging-related information in real time, including the charging power. In addition, the battery management chip (Battery Management System, BMS) in the terminal device plays a role in all-round management of battery charging, discharging and status monitoring, and it records various real-time data during the charging process, including the charging power.

[0091] S304: Determine a second state of charge at an initial moment based on the charging power, the time from the first moment to the initial moment, and the first state of charge.

[0092] Specifically, first calculate the electric energy based on the charging power. First, calculate the electric energy charged into the battery during this time interval, and the calculation formula is W=P×Δt. P is the charging power, and Δt is the time from the first moment to the initial moment. For example, the charging power P=20W, and the time Δt is 1 hour=3600s, then the charged electric energy W=20W×3600s=72000J, 1Wh=3600J, so 72000J is converted to 20Wh, and the electric energy is converted into electric quantity (in ampere-hours). For example, the rated voltage of the battery is U, according to the formula Q=W / U. The electric energy can be converted into electric quantity. For example, the rated voltage of the battery is U=3.7V, W=20Wh, then the converted electric quantity Q=20Wh / 3.7V≈5.41Ah (ampere-hours). After calculating the charged electric quantity, the second state of charge can be calculated in combination with the rated capacity of the battery and the first state of charge. The formula is as follows:

[0093]

[0094] Among them, SOC1 is the first state of charge, SOC2 is the second state of charge, Q rated is the rated capacity.

[0095] In addition, it should be noted that in actual applications, the battery has a problem of charging efficiency. Not all charged electrical energy can be completely converted into usable power and stored in the battery. Usually the charging efficiency is around 90%-98% (different battery types, charging conditions and other factors will affect the charging efficiency). If you want to calculate the second state of charge more accurately, you also need to consider the impact of the charging efficiency (η). At this time, the calculation formula becomes:

[0096]

[0097] S306: Determine an initial state of charge of the terminal device at an initial moment according to the temperature of the terminal device, a predetermined temperature coefficient variation curve, and the second state of charge.

[0098] Specifically, the temperature coefficient matching the current temperature can be determined according to the current temperature of the terminal device and a predetermined temperature coefficient variation curve, and the second state of charge can be adjusted according to the temperature coefficient to determine the initial state of charge of the terminal device at the initial moment.

[0099] In this embodiment, when the battery is in a charging state, the second state of charge at the initial moment can be accurately determined using the charging power, the time from the first moment to the initial moment, and the first state of charge. The second state of charge is corrected using the temperature. Taking into account the influence of temperature and charging power, the accuracy of the initial state of charge can be guaranteed.

[0100] In one embodiment, the battery state includes: a discharge state, such as Figure 4 As shown, determining the initial state of charge of the terminal device at the initial moment according to at least the temperature of the terminal device, the first state of charge stored at a first moment before the initial moment, and the battery state from the first moment to the initial moment includes:

[0101] S402: In response to the battery state from the first moment to the initial moment being a discharging state, determine the discharge power of the terminal device.

[0102] Specifically, when the battery state from the first moment to the initial moment is a discharge state, data information related to battery discharge during the time period from the first moment to the initial moment can be obtained. This includes real-time monitoring of parameters such as the terminal voltage of the battery and the discharge current flowing through the battery. These parameters can usually be collected and recorded by hardware such as voltage sensors and current sensors built into the terminal device. These sensors will continuously acquire data at a certain sampling frequency to ensure that the discharge situation during this period can be accurately reflected. Power is equal to voltage multiplied by current. Using the voltage and current values ​​corresponding to each collected time point, through the corresponding calculation algorithm (for example, calculating the power separately at each sampling moment, and then summarizing it by weighted average, or simply taking the power of several key sampling moments for averaging, etc., depending on the actual accuracy requirements and the processing capacity of the device), the average discharge power in the entire time period from the first moment to the initial moment is calculated.

[0103] S404: Determine a third state of charge at an initial moment based on the discharge power, the time from the first moment to the initial moment, and the first state of charge.

[0104] Specifically, the discharge power and the time interval from the first moment to the initial moment are known, and according to the relationship between power and energy (E=Pt, E is energy, P is power, and t is time), the amount of electricity lost by the battery due to discharge during this period of time can be calculated. For example, if the discharge power is watts and the time interval is seconds, the amount of electricity lost (energy converted into electricity units, such as milliampere-hours and other common battery electricity units) can be calculated by the corresponding conversion formula. The first state of charge is known (which is usually also given in a certain form of electricity expression, such as a percentage of the battery capacity or a specific electricity value), and the electricity value corresponding to the first state of charge is subtracted from the previously calculated value of the battery discharge loss during the time period, the electricity value corresponding to the third state of charge at the initial moment can be obtained, thereby determining the third state of charge.

[0105] S406: Determine an initial state of charge of the terminal device at an initial moment according to the temperature of the terminal device, a predetermined temperature coefficient variation curve, and the third state of charge.

[0106] Specifically, the temperature value of the environment in which the terminal device is located or the battery itself at the initial moment is obtained through the temperature sensor built into the terminal device. The temperature sensor will monitor and feedback the temperature information in real time to ensure that the temperature data obtained can accurately reflect the actual temperature conditions at the moment. The predetermined temperature coefficient change curve is based on a large number of experimental tests, and records the relevant characteristics of battery charging and discharging at multiple different temperatures (such as the corresponding relationship between the capacity of the battery at different temperatures, the rate of power loss, etc. and the temperature). According to the temperature value at the initial moment currently obtained, the corresponding coefficient is found in this temperature coefficient change curve (this coefficient is often related to the power correction under the influence of temperature, etc.). Use the temperature coefficient found to adjust the third state of charge calculated previously to obtain the final initial state of charge.

[0107] In addition, it should be noted that when there is both a charging state and a discharging state between the first moment and the initial moment, for example, at a certain moment A before the first moment and the initial moment, charging is performed, and at this time, it is in a charging state. At a certain moment A and the initial moment, no charging is performed, and it is in a discharging state. Therefore, the above embodiments can be combined to calculate the initial state of charge at the initial moment.

[0108] In one embodiment, Figure 5 As shown, determining the initial state of charge of the terminal device at an initial moment according to the temperature of the terminal device, a predetermined temperature coefficient variation curve and the third state of charge includes:

[0109] S502: In response to the third state of charge being not zero and the third state of charge supporting powering on of the terminal device, determining a temperature change of the terminal device from the first moment to the initial moment.

[0110] S504 , in response to the temperature change being a temperature increase, determining a charge compensation according to the temperature of the terminal device, a predetermined temperature coefficient change curve, and a third state of charge.

[0111] S506: Determine an initial state of charge of the terminal device at an initial moment according to the charge compensation and the third state of charge.

[0112] Specifically, when the third state of charge is not zero, and the third state of charge can support the power-on of the terminal device, the temperature change of the terminal device between the first moment and the initial moment can be determined, and the temperature change may include: temperature increase and temperature decrease. When the temperature rises, the power of the lithium battery usually increases a little. Therefore, it is necessary to determine the charge compensation according to the temperature of the terminal device and the predetermined temperature coefficient change curve, that is, to find the current temperature coefficient change curve according to the temperature of the terminal device, obtain the compensation coefficient, and determine the charge compensation according to the compensation coefficient and the current third state of charge. Add the charge compensation to the third state of charge to obtain the initial state of charge.

[0113] In addition, when the temperature decreases, if the sum of the determined charge compensation and the third state of charge is negative, the initial state of charge may be corrected to zero.

[0114] S508: In response to the third state of charge being not zero and the third state of charge not supporting powering on of the terminal device, determining a temperature change of the terminal device from the first moment to the initial moment.

[0115] S510, in response to the temperature change being a temperature decrease, determining that an initial state of charge of the terminal device at an initial moment is zero, and stopping power calibration.

[0116] Specifically, when the third charge state is not zero, but the terminal device cannot be powered on, the temperature change of the terminal device from the first moment to the initial moment can be determined. When the temperature change is a decrease in temperature, the initial charge state of the terminal device can be determined as 0 by default and no subsequent operations are performed.

[0117] In addition, when the third state of charge is not zero, and the third state of charge does not support the terminal device to start up, and the temperature change is a temperature increase, it can be determined whether the state of charge after the temperature increase supports the terminal device to start up. If not, the initial state of charge is still assumed to be zero, and the power calibration is stopped. If supported, adjustments are made according to the above steps S504 to S506 to determine the initial state of charge.

[0118] In one embodiment, Figure 6 As shown, the method of determining the battery power at the current moment according to the initial state of charge at each moment, the temperature of the terminal device at the current moment, and a predetermined temperature coefficient change curve includes:

[0119] S602: Determine the coulombic efficiency at the current temperature at the current moment according to the temperature coefficient variation curve and the temperature of the terminal device.

[0120] S604, determining the load current of the terminal device at the current moment, and determining the battery power at the current moment based on the initial state of charge at the current moment, the coulomb efficiency, the load current of the terminal device at the current moment, and the standard capacity of the battery in the terminal device.

[0121] Among them, Coulombic efficiency reflects the efficiency of the battery during the charging and discharging process. Coulombic efficiency is usually less than or equal to 1, which takes into account the energy loss of the battery during the charging and discharging process.

[0122] Specifically, the coefficient corresponding to the temperature of the terminal device at the current moment can be found from the temperature coefficient change curve. This coefficient has a certain functional relationship with the coulomb efficiency. For example, if the temperature coefficient change curve is recorded in a table, one column is the temperature value, and the other column is the coulomb efficiency correction coefficient corresponding to the temperature, then after obtaining the current temperature, the corresponding value is found in the table to obtain the coulomb efficiency. For another example, the coefficient can also be directly determined as the coulomb efficiency. Determine the load current of the terminal device at the current moment, and determine the battery power at the current moment based on the initial state of charge at the current moment, the coulomb efficiency, the load current of the terminal device at the current moment, and the standard capacity of the battery in the terminal device.

[0123] In some exemplary embodiments, the battery power may be calculated using the following formula:

[0124]

[0125] Among them, SoC(t0) is the initial state of charge, SoC(t) is the battery power at the current moment. i(t) is the load current at the current moment, Q n is the standard capacity of the battery. i is the Coulomb efficiency.

[0126] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0127] Based on the same inventive concept, the disclosed embodiment also provides a battery power calibration device for implementing the battery power calibration method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more battery power calibration device embodiments provided below can refer to the limitations of the battery power calibration method above, and will not be repeated here.

[0128] In one embodiment, Figure 7 As shown, a battery power calibration device 700 is provided, including: a data determination module 702, a state of charge calculation module 704, a state of charge determination module 706 and a power determination module 708, wherein:

[0129] A data determination module 702, configured to determine an initial state of charge and a load current at an initial moment when a battery parameter in the terminal device satisfies a power calibration condition and a temperature in the terminal device changes, in response to the battery parameter in the terminal device satisfying a power calibration condition;

[0130] A state of charge calculation module 704, configured to calculate an initial state of charge at a next moment based on the initial state of charge at the initial moment, the standard capacity of the battery in the terminal device, the load current and the sampling period;

[0131] The state of charge determination module 706 is used to determine the initial state of charge at each moment when the power calibration condition is met and the temperature in the terminal device changes, according to the initial state of charge at the next moment that matches each moment when the power calibration condition is met and the temperature in the terminal device changes;

[0132] The power determination module 708 is used to determine the battery power at the current moment according to the initial charge state at each moment, the temperature of the terminal device at the current moment and a predetermined temperature coefficient variation curve, wherein the temperature coefficient variation curve is determined based on the charging and discharging current at multiple different temperatures.

[0133] In one embodiment of the device, the data determination module 702 includes:

[0134] A first determination module, configured to obtain an open circuit voltage of the terminal device at an initial moment, and determine an initial state of charge of the terminal device at an initial moment based on the open circuit voltage;

[0135] The second determination module is used to obtain the temperature of the terminal device at the initial moment, and determine the initial charge state of the terminal device at the initial moment based on at least the temperature of the terminal device, the first charge state stored at a first moment before the initial moment, and the battery state from the first moment to the initial moment.

[0136] In one embodiment of the device, the battery status includes: a charging status, and the second determination module is also used to determine the charging power of the terminal device in response to the battery status from the first moment to the initial moment being a charging status; determine the second state of charge at the initial moment based on the charging power, the time from the first moment to the initial moment and the first state of charge; determine the initial state of charge of the terminal device at the initial moment according to the temperature of the terminal device, a predetermined temperature coefficient change curve and the second state of charge.

[0137] In one embodiment of the device, the battery state includes: a discharge state, and the second determination module is further used to determine the discharge power of the terminal device in response to the battery state from the first moment to the initial moment being a discharge state; determine the third state of charge at the initial moment based on the discharge power, the time from the first moment to the initial moment and the first state of charge; determine the initial state of charge of the terminal device at the initial moment according to the temperature of the terminal device, a predetermined temperature coefficient change curve and the third state of charge.

[0138] In one embodiment of the device, the second determination module is further used to determine the temperature change of the terminal device from the first moment to the initial moment in response to the third state of charge being not zero and the third state of charge supporting the power-on of the terminal device; determine the charge compensation according to the temperature of the terminal device, a predetermined temperature coefficient change curve and the third state of charge in response to the temperature change being a temperature increase; determine the initial state of charge of the terminal device at the initial moment according to the charge compensation and the third state of charge; determine the temperature change of the terminal device from the first moment to the initial moment in response to the third state of charge being not zero and the third state of charge not supporting the power-on of the terminal device; and determine the initial state of charge of the terminal device at the initial moment as zero in response to the temperature change being a temperature decrease, and stop power calibration.

[0139] In one embodiment of the device, the power calibration condition includes at least one of the following:

[0140] The temperature of the terminal device is lower than a preset temperature threshold;

[0141] The current state of charge of the terminal device is less than a preset state of charge threshold;

[0142] The power management integrated circuit in the terminal device fails to power on;

[0143] The temperature of the terminal device fluctuates within a preset time period.

[0144] In one embodiment of the device, the power determination module 708 is also used to determine the coulomb efficiency at the current temperature at the current moment according to the temperature coefficient change curve and the temperature of the terminal device; determine the load current of the terminal device at the current moment, and determine the battery power at the current moment based on the initial state of charge at the current moment, the coulomb efficiency, the load current of the terminal device at the current moment, and the standard capacity of the battery in the terminal device.

[0145] Each module in the above-mentioned battery power calibration device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0146] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a battery power calibration method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0147] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present disclosure, and does not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0148] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0149] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0150] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0151] It should be noted that the information and data involved in this disclosure (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties.

[0152] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited thereto.

[0153] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0154] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.

Claims

1. A battery power calibration method, characterized in that: The method comprises: In response to a parameter in the terminal device satisfying a power calibration condition, at an initial moment when the power calibration condition is satisfied and a temperature in the terminal device changes, determining an initial state of charge and a load current at the initial moment; Calculating an initial state of charge at a next moment based on the initial state of charge at the initial moment, the standard capacity of the battery in the terminal device, the load current and the sampling period; Determine the initial state of charge at each moment when the power calibration condition is met and the temperature in the terminal device changes, according to the initial state of charge at the next moment that matches each moment when the power calibration condition is met and the temperature in the terminal device changes; The battery power at the current moment is determined according to the initial state of charge at each moment, the temperature of the terminal device at the current moment and a predetermined temperature coefficient variation curve, wherein the temperature coefficient variation curve is determined based on the charging and discharging currents at multiple different temperatures.

2. The method according to claim 1, characterized in that The determining of the initial state of charge at the initial time comprises: Acquiring an open circuit voltage of the terminal device at an initial moment, and determining an initial state of charge of the terminal device at an initial moment based on the open circuit voltage; Alternatively, the temperature of the terminal device at the initial moment is obtained, and the initial state of charge of the terminal device at the initial moment is determined based at least on the temperature of the terminal device, a first state of charge stored at a first moment before the initial moment, and a battery state from the first moment to the initial moment.

3. The method according to claim 2, characterized in that The battery state includes: a charging state, wherein determining the initial state of charge of the terminal device at the initial moment according to at least the temperature of the terminal device, a first state of charge stored at a first moment before the initial moment, and a battery state from the first moment to the initial moment includes: In response to the battery state from the first moment to the initial moment being a charging state, determining a charging power of the terminal device; determining a second state of charge at an initial moment based on the charging power, the time from the first moment to the initial moment, and the first state of charge; An initial state of charge of the terminal device at an initial moment is determined according to the temperature of the terminal device, a predetermined temperature coefficient variation curve, and the second state of charge.

4. The method according to claim 2, characterized in that: The battery state includes: a discharge state, and determining the initial state of charge of the terminal device at the initial moment according to at least the temperature of the terminal device, the first state of charge stored at a first moment before the initial moment, and the battery state from the first moment to the initial moment includes: In response to the battery state from the first moment to the initial moment being a discharging state, determining a discharging power of the terminal device; determining a third state of charge at an initial moment based on the discharge power, the time from the first moment to the initial moment, and the first state of charge; An initial state of charge of the terminal device at an initial moment is determined according to the temperature of the terminal device, a predetermined temperature coefficient variation curve, and the third state of charge.

5. The method according to claim 4, characterized in that The determining, according to the temperature of the terminal device, a predetermined temperature coefficient variation curve and the third state of charge, an initial state of charge of the terminal device at an initial moment includes: In response to the third state of charge being not zero and the third state of charge supporting powering on of the terminal device, determining a temperature change of the terminal device from the first moment to the initial moment; In response to the temperature change being a temperature increase, determining a charge compensation according to the temperature of the terminal device, a predetermined temperature coefficient change curve, and a third state of charge; Determining an initial state of charge of the terminal device at an initial moment according to the charge compensation and the third state of charge; In response to the third state of charge being not zero and the third state of charge not supporting powering on of the terminal device, determining a temperature change of the terminal device from the first moment to the initial moment; In response to the temperature change being a temperature decrease, determining that the initial charge state of the terminal device at an initial moment is zero, and stopping the power calibration.

6. The method according to claim 1, characterized in that The electrical quantity calibration condition includes at least one of the following: The temperature of the terminal device is lower than a preset temperature threshold; The current state of charge of the terminal device is less than a preset state of charge threshold; The power management integrated circuit in the terminal device fails to power on; The temperature of the terminal device fluctuates within a preset time period.

7. The method according to claim 1, characterized in that The method of determining the battery power at the current moment according to the initial state of charge at each moment, the temperature of the terminal device at the current moment, and a predetermined temperature coefficient variation curve includes: Determining the coulombic efficiency at the current temperature at the current moment according to the temperature coefficient variation curve and the temperature of the terminal device; Determine the load current of the terminal device at the current moment, and determine the battery power at the current moment based on the initial state of charge at the current moment, the coulomb efficiency, the load current of the terminal device at the current moment, and the standard capacity of the battery in the terminal device.

8. A battery charge calibration device, characterized in that: The device comprises: A data determination module, configured to determine an initial state of charge and a load current at an initial moment when a battery parameter in the terminal device satisfies a power calibration condition and a temperature change in the terminal device is satisfied in response to the battery parameter in the terminal device satisfying a power calibration condition; A state of charge calculation module, configured to calculate an initial state of charge at a next moment based on the initial state of charge at the initial moment, the standard capacity of the battery in the terminal device, the load current and the sampling period; A state of charge determination module, configured to determine an initial state of charge at each moment when the power calibration condition is met and the temperature in the terminal device changes, based on an initial state of charge at a next moment that matches each moment when the power calibration condition is met and the temperature in the terminal device changes; The power determination module is used to determine the battery power at the current moment according to the initial charge state at each moment, the temperature of the terminal device at the current moment and a predetermined temperature coefficient variation curve, wherein the temperature coefficient variation curve is determined based on the charging and discharging current at multiple different temperatures.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.