Method and device for metering residual electric energy of battery

By obtaining the open circuit voltage of the battery, collecting the load voltage and temperature, and compensating the internal resistance of the battery, the relative percentage of the remaining electrical energy of the battery is calculated, and the problem of focusing only on current changes and ignoring the influence of voltage in the prior art is solved, and a high-precision and low-cost battery residual electrical energy metering is achieved.

CN120065028APending Publication Date: 2025-05-30FUZHOU ROCKCHIP SEMICON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510216619.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When metering electricity, existing battery metering chips only focus on the changes in current and ignore the influence of voltage, resulting in unsmoothing of the SOC and the inability to accurately estimate the remaining battery power in the case of low temperatures and/or large loads.

Method used

By obtaining the open circuit voltage of the battery, collecting the load voltage and temperature, and compensating the internal resistance of the battery, the relative percentage of the remaining electrical energy of the battery is calculated.

Benefits of technology

This achieves no high-precision current sampling resistance when metering the remaining battery power, reduces hardware costs, and obtains a smoother and more accurate SOC estimation than a normal voltage meter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120065028A_ABST
    Figure CN120065028A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for metering residual electric energy of a battery. The method comprises the following steps: acquiring an open-circuit voltage of a battery in response to battery access; acquiring the on-load voltage and temperature of the battery, and performing temperature compensation on the internal resistance of the battery according to the temperature of the battery to obtain the temperature-compensated internal resistance of the battery; and calculating the relative percentage residual electric energy of the battery according to the temperature-compensated internal resistance of the battery, the open-circuit voltage of the battery and the load voltage of the battery. According to the technical scheme, the electric energy is introduced into the calculation of the residual electric energy of the battery, a high-precision current sampling resistor is not needed in the process of metering the residual electric energy of the battery, and meanwhile, the hardware cost can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric energy measurement, and particularly to a method and device for measuring the remaining electric energy of a battery. Background Art

[0002] At present, the coulomb counter chips mainly include current-type coulomb counters and voltage-type coulomb counters. The current-type coulomb counter chip uses an impedance tracking algorithm. The coulomb counter chip calculates the remaining battery power and the remaining battery power in relative percentage according to the battery voltage and current information obtained by sampling through a specific algorithm. It is necessary to sample the current information of the battery in real time, and a high-precision current sampling resistor must be used, and there are special requirements for the wiring on the PCB sampling resistor, which increases the material cost and design difficulty, etc. The voltage-type coulomb counter chip samples battery voltage, temperature and other information, and calculates the remaining battery power through calculation. Due to the algorithm, the smoothness of the calculated remaining power percentage is not very good, and problems such as circuit jumps and power display stagnation are likely to occur, resulting in a poor experience.

[0003] The existing measurement methods do not pay enough attention to the factors related to the remaining power, internal resistance, load, temperature, etc. As a result, in the case of low temperature and / or large load, the existing measurement methods cannot well estimate the remaining battery power, and when the application scenarios are the same in the low-voltage part, the change in the high-voltage part is slow and the change in the low-voltage part is fast. In the above two types of coulomb counter chips and the methods for calculating the power, in the same application scenario, the current in the high-voltage part of the battery is smaller than the current in the low-voltage part of the battery. Only the change in current is concerned while ignoring the influence of voltage, and the non-smoothness of the relative percentage remaining electric energy (SOC) has been introduced from the very beginning. Summary of the Invention

[0004] The present invention provides a method and device for measuring the remaining electric energy of a battery, which can solve the problem that the existing technology only focuses on the change in current while ignoring the influence of voltage during electric energy measurement, and the non-smoothness of SOC has been introduced from the very beginning. Improving these problems will achieve high-precision measurement of the remaining electric energy of the battery at a low cost.

[0005] In one aspect of the present invention, a method for measuring the remaining electric energy of a battery is provided. The method includes: in response to the access of the battery, obtaining the open-circuit voltage of the battery; collecting the loaded voltage and temperature of the battery, and performing temperature compensation on the internal resistance of the battery according to the temperature of the battery to obtain the temperature-compensated internal resistance of the battery; and calculating the relative percentage remaining electric energy of the battery according to the temperature-compensated internal resistance of the battery, the open-circuit voltage of the battery, and the loaded voltage of the battery.

[0006] In another aspect of the present invention, there is provided a device for measuring the remaining electrical energy of a battery. The device includes: an open-circuit voltage acquisition module configured to obtain the open-circuit voltage of the battery in response to the battery being connected; a loaded voltage acquisition module configured to acquire the loaded voltage of the battery; a temperature compensation module configured to acquire the temperature of the battery and perform temperature compensation on the internal resistance of the battery according to the temperature of the battery to obtain a temperature-compensated internal resistance of the battery; and a calculation module configured to calculate the relative percentage of the remaining electrical energy of the battery according to the temperature-compensated internal resistance of the battery, the open-circuit voltage of the battery, and the loaded voltage of the battery.

[0007] According to the technical solution of the present invention, in response to the battery being connected, the open-circuit voltage of the battery is obtained, the loaded voltage and temperature of the battery are acquired, the internal resistance of the battery is temperature-compensated according to the temperature of the battery to obtain a temperature-compensated internal resistance of the battery, and the relative percentage of the remaining electrical energy of the battery is calculated according to the temperature-compensated internal resistance of the battery, the open-circuit voltage of the battery, and the loaded voltage of the battery. In this way, electrical energy is introduced into the calculation of the remaining battery charge, and a high-precision current sampling resistor is not required during the process of measuring the remaining electrical energy of the battery, while the hardware cost can be saved. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 is a flowchart of a method for measuring the remaining electrical energy of a battery according to an embodiment of the present invention; Figure 2 is a flowchart of a method for measuring the remaining electrical energy of a battery according to an embodiment of the present invention; Figure 3 is a schematic diagram of a device for measuring the remaining electrical energy of a battery according to an embodiment of the present invention. DETAILED DESCRIPTION

[0009] In order to explain in detail the technical content, the achieved objectives, and the effects of the present invention, the following is described in conjunction with the embodiments and with reference to the accompanying drawings.

[0010] In the existing technology, only the change in current is concerned during the measurement of electrical energy while ignoring the influence of voltage, and the problem of non-smooth SOC has been introduced from the very beginning.

[0011] Using electrical energy as the measurement basis, it can be understood that the electrical energy consumed in the same application scenario within the same time is the same, and a smoother and more accurate SOC can be obtained through the electrical energy calculation unit and the remaining electrical energy calculation unit compared with an ordinary voltage-type coulomb meter.

[0012] To solve at least the above technical problems, the present disclosure provides a method for measuring the remaining electrical energy of a battery. In response to the battery being connected, the open-circuit voltage of the battery is obtained, the loaded voltage and temperature of the battery are collected, the internal resistance of the battery is temperature-compensated according to the temperature of the battery to obtain the temperature-compensated internal resistance of the battery, and the relative percentage of the remaining electrical energy of the battery is calculated based on the temperature-compensated internal resistance, the open-circuit voltage, and the loaded voltage of the battery. In this way, electrical energy is introduced into the calculation of the remaining battery charge, and a high-precision current sampling resistor is not required during the process of measuring the remaining electrical energy of the battery, while the hardware cost can be saved.

[0013] In the following, the technical solutions according to the present disclosure will be described with reference to specific embodiments and in conjunction with the accompanying drawings.

[0014] Figure 1 is a flowchart showing a method 100 for measuring the remaining electrical energy of a battery according to an embodiment of the present disclosure. Referring to Figure 1 this, the method 100 includes the following steps 102 to 106.

[0015] In step 102, in response to the battery being connected, the open-circuit voltage of the battery is obtained.

[0016] In some embodiments, after the battery is connected and the device is powered on, the no-load voltage saved before power-on is obtained as the open-circuit voltage of the battery, and based on the open-circuit voltage of the battery and according to the pre-stored relationship between the open-circuit voltage and the absolute percentage of the remaining electrical energy, the initial absolute percentage of the remaining electrical energy of the battery is determined.

[0017] In step 104, the loaded voltage and temperature of the battery are collected, and the internal resistance of the battery is temperature-compensated according to the temperature of the battery to obtain the temperature-compensated internal resistance of the battery.

[0018] In some embodiments, the temperature compensation coefficient is determined according to the open-circuit voltage and temperature of the battery, the basic internal resistance of the battery is determined according to the temperature of the battery, and the temperature-compensated internal resistance of the battery is calculated by multiplying the basic internal resistance by the temperature compensation coefficient. In this way, accurate battery resistance data can be ensured.

[0019] In step 106, based on the temperature-compensated internal resistance, the open-circuit voltage, and the loaded voltage of the battery, the relative percentage of the remaining electrical energy of the battery is calculated.

[0020] In some embodiments, before calculating the relative percentage of the remaining electrical energy of the battery, it is determined whether the voltage change rate and voltage change amplitude of the collected battery satisfy the calibration condition. If the calibration condition is satisfied, the current voltage of the battery is equivalent to the open-circuit voltage of the battery.

[0021] In some embodiments, if the voltage change rate of the battery within a preset time period is less than a threshold value and the voltage change amplitude is less than the voltage change rate per unit time, it is determined that the calibration condition is met. Meeting the calibration condition indicates that the load of the battery is very low at this time, the battery is in a relaxed mode, and the currently obtained voltage can be equivalent to the open-circuit voltage. In some embodiments, the absolute percentage remaining electrical energy at the start time within the preset time period is calibrated according to the value of the equivalent open-circuit voltage.

[0022] In some embodiments, the average power of the battery per unit time is calculated based on the temperature-compensated internal resistance of the battery, the open-circuit voltage of the battery, and the loaded voltage of the battery. Specifically, the difference between the loaded voltage of the battery and the open-circuit voltage of the battery is divided by the temperature-compensated internal resistance of the battery to obtain a ratio, and the ratio is multiplied by the open-circuit voltage of the battery to calculate the average power of the battery per unit time. Then, the incremental electrical energy of the battery is calculated based on the average power.

[0023] In some embodiments, the relative percentage remaining electrical energy of the battery is calculated based on the incremental electrical energy. Specifically, the absolute electrical energy percentage change at the current moment is calculated according to the ratio of the incremental electrical energy to the total electrical energy of the battery; the absolute percentage remaining electrical energy at the current moment is calculated according to the absolute electrical energy percentage change at the current moment and the absolute percentage remaining electrical energy at the start time within the preset time period; and the relative percentage remaining electrical energy is calculated according to the absolute percentage remaining electrical energy at the current moment, the absolute percentage remaining electrical energy corresponding to the open-circuit voltage corresponding to the loaded cut-off voltage, and the absolute percentage remaining electrical energy when the battery is fully charged. In this way, using electrical energy as the measurement basis, it can be understood that the electrical energy consumed in the same application scenario within equal time is the same, and a smoother and more accurate relative percentage remaining electrical energy can be obtained through the above calculations compared to a common voltage-based fuel gauge.

[0024] In some embodiments, the total electrical energy of the battery is updated by combining the electrical energy increment between two equivalent open-circuit states, the absolute percentage remaining electrical energy corresponding to the voltages of the two equivalent open-circuit states, the original total electrical energy of the battery, and the aging compensation weight. In this way, aging compensation is performed for the attenuation of the total electrical energy of the battery to further ensure the accuracy of the calculation.

[0025] Therefore, the calculated relative percentage remaining electrical energy is the relative percentage remaining state of charge (SOC) under certain load, temperature, and aging conditions. Since the absolute percentage remaining electrical energy POW refers to the electrical energy that can be released by the battery under ideal conditions and with an internal resistance rbat of 0, while SOC is a relative quantity representing the remaining electrical energy when the battery discharges to the loaded cut-off voltage set by the system, the relative percentage remaining electrical energy SOC obtained under conditions such as load, temperature, aging, and discharge cut-off voltage is meaningful and can ensure the maximum release of the battery's electrical energy while maintaining system stability.

[0026] In the following, application scenarios of a method and a device for measuring the remaining electric energy of a battery according to an embodiment of the present invention will be described by way of examples.

[0027] Figure 2 is a flowchart showing a method for measuring the remaining electric energy of a battery according to an embodiment of the present disclosure. Refer to Figure 2 and the method includes the following steps 202 to step 214.

[0028] In step 202, after powering on to obtain the open-circuit voltage OCV, after powering on the battery, the power meter has been powered on, and the internal open-circuit voltage acquisition module will obtain the current no-load open-circuit voltage OCV.

[0029] In step 204, according to the pre-stored OCV-POW curve relationship, determine the absolute percentage remaining electric energy POW of the battery initialization.

[0030] In step 206, detect the loaded voltage, battery temperature, and OCV information of the battery.

[0031] In step 208, compensate the internal resistance rbat of the battery according to the temperature.

[0032] In step 210, determine whether the currently collected battery information meets the calibration conditions. If it meets the calibration conditions, calibrate the current remaining electric energy according to the OCV, temperature, and loaded voltage of the battery, and perform aging compensation on the total electric energy of the battery.

[0033] In step 212, calculate the electric energy increment of the battery.

[0034] In step 214, calculate the relative percentage remaining electric energy of the battery. In this way, estimate the remaining electric energy of the current battery using the open-circuit voltage of the battery.

[0035] Figure 3 is a schematic diagram showing a device 300 for measuring the remaining electric energy of a battery according to an embodiment of the present disclosure. Please refer to Figure 3 and the device includes an open-circuit voltage acquisition module 302, a loaded voltage acquisition module 304, a temperature compensation module 306, and a calculation module 310. In some embodiments, the device may further include a calibration module 308 and an aging compensation module 312.

[0036] The open-circuit voltage acquisition module 302 is configured to obtain the open-circuit voltage of the battery in response to the battery being connected. In some embodiments, the open-circuit voltage acquisition module 302 may save the no-load voltage before power-on, and determine the absolute percentage remaining electrical energy POW for battery initialization according to the pre-stored OCV-POW curve relationship after power-on. OCV-POW is the corresponding relationship between the no-load voltage and the electrical energy. Through instrument testing, after the battery is fully charged, it is discharged with a small constant current in a regular manner (discharge for a specified time and then stand still), and the OCV-POW can be obtained.

[0037] The loaded voltage acquisition module 304 is configured to acquire the loaded voltage Vbat of the battery, sample multiple times within a fixed period to obtain the average value of the voltage, and transmit the acquired voltage to the calculation module.

[0038] The temperature compensation module 306 is configured to acquire the temperature of the battery, and compensate the internal resistance rbat of the battery according to the battery temperature and battery voltage information. Since the resistance values of the battery at low temperature, high temperature and normal temperature are different, the compensation can ensure accurate calculation of the relative percentage remaining electrical energy at different temperatures. The internal resistance curves of typical battery temperatures such as 0°C and 25°C are measured in advance. According to the current test temperature and OCV voltage, the temperature compensation coefficient kt is confirmed, and then the battery internal resistance rbat is compensated. The compensation relationship is rbat = kt × rbase.

[0039] The selection of rbase is related to the current temperature of the battery, and rbase is obtained from the internal resistance curve according to the current temperature and voltage. The internal resistance curve is the curve of internal resistance and temperature. The internal resistance values obtained from the discharge test with a specified current after being fully charged at different temperatures, and rbase is the value at 25°C of normal temperature.

[0040] Taking 15°C as an example, between 0°C and 25°C, rbase is obtained through the current OCV voltage. If r15 represents the internal resistance of the battery at 15°C and r0 represents the internal resistance of the battery at 0°C, then r15 = rbase + kt (r0 - rbase). The temperature compensation coefficient kt is confirmed according to the current test temperature and OCV voltage. Through summarizing a large amount of test data, the lower the temperature, the larger the kt.

[0041] In some embodiments, the calibration module 308 is configured to determine whether the voltage change rate and voltage change amplitude of the collected battery meet the calibration conditions, and when the calibration conditions are met, it can be used for the total electrical energy calibration of the battery. When the battery voltage meets the battery voltage change rate dv / dt confirmed by continuous multi-cycle acquisition within half an hour and the voltage change amplitude ΔVbat_change during this period, it is determined whether the current meets the calibration conditions according to the voltage change rate dv / dt and voltage change amplitude ΔVbat_change within the set time period. When the calibration conditions are met, the current voltage is equivalent to the open-circuit voltage OCV of the battery. Calibrate pow(t0) through the value of the equivalent OCV. When the voltage change rate of the battery per second does not exceed ΔVchange within a continuous period of time, that is, dv / dt <= ΔVchange, where ΔVchange ≤ 100 μV.

[0042] How to determine whether the current meets the calibration conditions according to dv / dt and ΔVbat_change: In the non-flat area of the battery, when the fuel gauge enters the sleep mode, this monitoring will be automatically enabled. During the entire process from t0 to t30 within half an hour, dv / dt is less than 100 μV, and the difference between the voltage Vt0 at t0 and the voltage V30 at t30 is less than ΔVchange (this action is monitored by the internal hardware of the fuel gauge).

[0043] ΔVbat_change is the voltage change amplitude within a continuous time, the voltage Vt0 at t0, the voltage Vt30 at t30, and the absolute value of the difference between Vt30 and Vt0. ΔVchange is the voltage change rate per unit time, and dv / dt can be understood as the difference between two sampled voltages separated by 1 s.

[0044] When the above calibration conditions are met, the battery is in the relaxation mode, and the voltage in the relaxation mode is equivalent to the open-circuit voltage.

[0045] The equivalent OCV in calibrating pow(t0) through the value of the equivalent OCV is the current voltage Vbat corresponding to the relaxation voltage (the obtained relaxation voltage is equivalent to the no-load voltage OCV). After obtaining the equivalent OCV value, the current pow(t0) can be obtained by looking up the OCV-POW table.

[0046] In addition, the calculation module 310 is configured to calculate the relative percentage of the remaining electrical energy SOC of the battery according to the battery voltage Vbat, the internal resistance r of the battery, and the current no-load voltage Vocv.

[0047] In some embodiments, the calculation module 310 may include a battery power calculation unit, an electrical energy increment calculation unit, and a battery remaining electrical energy calculation unit.

[0048] The battery power calculation unit is configured to periodically calculate the average power pbat of the battery within a unit time Δt. pbat is the ratio of the difference between the battery voltage Vbat and the open-circuit voltage Vocv of the battery to the internal resistance rbat of the battery, and then multiplied by the open-circuit voltage Vocv of the battery. When the battery is in the discharging state, the open-circuit voltage Vocv of the battery is greater than the battery voltage Vbat, so pbat is negative; when the battery is in the charging state, pbat is positive.

[0049] The electric energy increment calculation unit is configured to periodically calculate the electric energy ΔW of the battery according to the battery power pbat. Specifically, the increment ΔW of the electric energy is periodically calculated according to the corresponding resistance of the current voltage and temperature and the OCV voltage:

[0050] The remaining battery electric energy calculation unit is configured to periodically calculate the relative percentage remaining electric energy SOC of the battery according to the calculation result of the electric energy increment calculation unit. The calculation method is as follows:

[0051] In the formula, powend is the absolute percentage remaining electric energy corresponding to Vocv_shutdown of the battery, denoted as powend = f(Vocv_shutdown); the units of ΔW and powend are the same. powmax is the absolute percentage remaining electric energy when the battery electric energy is 100, denoted as powmax = 100.

[0052] pow(t) is the absolute percentage remaining electric energy of the battery at the current moment, and the calculation formula is:

[0053] pow(t0) is the absolute percentage remaining electric energy of the battery at the start moment of a cycle, and Δpow(t) is the absolute electric energy percentage change amount of the battery at the current moment, where:

[0054] In the formula, Wmax is the total electric energy of the battery, and pow(t0) is when t = 0 representing the start moment of a cycle. pow(t0) is the value obtained according to the OCV-POW table when starting up, and it is a percentage.

[0055] The open-circuit voltage value corresponding to Vbat_shutdown is related to the current load and rshutdown at Vbat_shutdown:

[0056] The rshutdown is determined by the corresponding shutdown voltage and the current temperature at a certain temperature. Due to the characteristics of lithium batteries, there is a specific one-to-one correspondence between the open-circuit current OCV and POW. Therefore, the powend can be obtained through the pre-stored OCV-POW curve according to the value of Vocv_shutdown. When the SOC is 0, the value of the corresponding Vocv_shutdown is dynamically changed, which is determined by the set load cut-off voltage value Vbat_shutdown and the current temperature.

[0057] Vbat_shutdown is the lowest voltage to ensure stability, and the usual setting is 3400mV. rshutdown is the internal resistance value corresponding to 0% of the current temperature.

[0058] In some embodiments, the aging compensation module 312 is configured to, due to the cyclic charge and discharge of the battery during use, the total electrical energy of the battery decays. To ensure the accuracy of the calculation and effectively implement aging compensation. The aging compensation module 312 calculates and updates the total electrical energy Wmax of the battery, and transmits the updated result to the battery remaining electrical energy calculation unit to accurately calculate the relative percentage of the remaining electrical energy SOC of the battery.

[0059] The method for updating the battery electrical energy Wmax: Wmax’=(W(ta)-W(tb)) / (pow(ta)-pow(tb)); Wmaxnew=kw Wmax’+(1-kw) Wmaxold; In the formula, Wmaxnew is the updated total electrical energy of the battery, Wmax’ is the current total electrical energy calculated under the condition of meeting the update condition, Wmaxold is the total electrical energy of the battery before the update. kw is a pre-determined aging compensation weight, which is obtained through experiments and its value is not fixed, and is related to the number of charge and discharge cycles, temperature, etc. pow(ta) and pow(tb) are the values corresponding to the equivalent open-circuit state voltages for two consecutive times, which are obtained according to the pre-stored battery OCV voltage through the OCV-POW curve. Combining the electrical energy increments W(ta) and W(tb) between the two equivalent open-circuit states, the total electrical energy of the battery can be calculated.

[0060] For Wmax’, due to the individual differences of the batteries, there will be certain differences in Wmax for the batteries produced in batches. As the battery is used and ages, the value of Wmax will also change. The aging compensation module only updates at room temperature and does not update at high and low temperatures.

[0061] In summary, the method and device for measuring the remaining electric energy of a battery provided by the present invention collect the open-circuit voltage, loaded voltage, and temperature of the battery, perform temperature compensation on the internal resistance of the battery based on the collected temperature, and when the change rate and change amplitude of the collected battery voltage reach the calibration condition, the voltage is equivalent to the open-circuit voltage of the battery, so as to calculate the relative percentage of the remaining electric energy of the battery according to the temperature-compensated internal resistance of the battery, the open-circuit voltage of the battery, and the loaded voltage of the battery. In this way, using electric energy as the measurement basis, it can be understood that the electric energy consumed in the same application scenario within the same time is consistent, and a smoother and more accurate relative percentage of the remaining electric energy can be obtained through the electric energy calculation unit and the remaining electric energy calculation unit than that of an ordinary voltage-type coulometer.

[0062] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in the relevant technical field, shall be equally included in the patent protection scope of the present invention.

Claims

1. A method for measuring the remaining power of a battery, characterized in that: include: In response to the battery being connected, obtaining an open circuit voltage of the battery; collecting the loaded voltage and temperature of the battery, and performing temperature compensation on the internal resistance of the battery according to the temperature of the battery to obtain the temperature-compensated battery internal resistance; as well as The relative percentage remaining power of the battery is calculated based on the temperature compensated battery internal resistance, the open circuit voltage of the battery, and the loaded voltage of the battery.

2. The method according to claim 1, characterized in that Before calculating the relative percentage remaining power of the battery, it also includes: Determining whether the collected voltage change rate and voltage change amplitude of the battery meet the calibration conditions; If the calibration condition is met, the current voltage of the battery is equivalent to the open circuit voltage of the battery.

3. The method according to claim 1, characterized in that Performing temperature compensation on the internal resistance of the battery according to the temperature of the battery to obtain the temperature-compensated battery internal resistance includes: determining a temperature compensation coefficient according to an open circuit voltage of the battery and a temperature of the battery; determining a basic internal resistance of the battery according to a temperature of the battery; and The temperature-compensated battery internal resistance is calculated according to the product of the basic internal resistance and the temperature compensation coefficient.

4. The method according to claim 2, characterized in that: Determining whether the collected voltage change rate and voltage change amplitude of the battery meet the calibration conditions includes: If the voltage change rate of the battery collected within the preset time period is less than a threshold value, and the voltage change amplitude is less than the voltage change rate per unit time, it is determined that the calibration condition is met.

5. The method according to claim 1, characterized in that: Obtaining the open circuit voltage of the battery includes: After the battery is connected and the machine is turned on, the no-load voltage saved before the machine is turned on is obtained as the open circuit voltage of the battery.

6. The method according to claim 1, characterized in that After obtaining the open circuit voltage of the battery, it also includes: The initialization absolute percentage remaining power of the battery is determined based on the open circuit voltage of the battery according to a pre-stored relationship between the open circuit voltage and the absolute percentage remaining power.

7. The method according to claim 4, characterized in that After the current voltage of the battery is equivalent to the open circuit voltage of the battery, the method further includes: The absolute percentage remaining electrical energy at the start time within the preset time period is calibrated according to the value of the equivalent open circuit voltage.

8. The method according to claim 7, characterized in that Calculating the relative percentage remaining energy of the battery according to the temperature-compensated battery internal resistance, the open circuit voltage of the battery, and the loaded voltage of the battery includes: Calculating the average power of the battery per unit time according to the temperature-compensated battery internal resistance, the open circuit voltage of the battery, and the loaded voltage of the battery; Calculating the incremental electric energy of the battery according to the average power; and A relative percentage remaining power of the battery is calculated based on the incremental power.

9. The method according to claim 8, characterized in that Calculating the average power of the battery per unit time according to the temperature-compensated battery internal resistance, the open circuit voltage of the battery, and the loaded voltage of the battery includes: Dividing the difference between the battery's loaded voltage and the battery's open circuit voltage by the temperature-compensated battery internal resistance to obtain a ratio; and The ratio is multiplied by the open circuit voltage of the battery to calculate the average power of the battery per unit time.

10. The method according to claim 9, characterized in that Calculating the relative percentage remaining power of the battery according to the incremental power includes: Calculating the absolute percentage change of the electric energy of the battery at the current moment according to the ratio of the incremental electric energy to the total electric energy of the battery; Calculating the absolute percentage remaining power of the battery at the current moment according to the absolute percentage change of the power of the battery at the current moment and the absolute percentage remaining power at the start time of the preset time period; and The relative percentage remaining energy is calculated based on the absolute percentage remaining energy of the battery at the current moment, the absolute percentage remaining energy corresponding to the open circuit voltage corresponding to the load cut-off voltage, and the absolute percentage remaining energy when the battery is fully charged.

11. The method according to claim 10, characterized in that Before calculating the absolute percentage change of the electric energy of the battery at the current moment, the method further includes: The total power of the battery is updated by combining the power increment between two equivalent open circuit states, the absolute percentage remaining power corresponding to the voltages of the two equivalent open circuit states, the original total power of the battery, and the aging compensation weight.

12. A device for measuring the remaining power of a battery, characterized in that: include: An open circuit voltage acquisition module is configured to acquire the open circuit voltage of the battery in response to battery connection; An on-load voltage acquisition module, configured to acquire the on-load voltage of the battery; a temperature compensation module, configured to collect the temperature of the battery, and perform temperature compensation on the internal resistance of the battery according to the temperature of the battery to obtain a temperature-compensated battery internal resistance; as well as The calculation module is configured to calculate the relative percentage remaining power of the battery according to the temperature-compensated battery internal resistance, the open circuit voltage of the battery and the loaded voltage of the battery.

13. The device according to claim 12, characterized in that Also includes: The calibration module is configured to determine whether the collected voltage change rate and voltage change amplitude of the battery meet the calibration conditions. If the calibration conditions are met, the current voltage of the battery is equivalent to the open circuit voltage of the battery.

14. The device according to claim 12, characterized in that The calculation module comprises: a battery power calculation unit, configured to calculate an average power of the battery per unit time according to the temperature-compensated battery internal resistance, the open circuit voltage of the battery, and the loaded voltage of the battery; an electric energy increment calculation unit, configured to calculate the incremental electric energy of the battery according to the average power; and The battery remaining power calculation unit is configured to calculate the relative percentage remaining power of the battery according to the incremental power.

15. The device according to claim 14, characterized in that The battery remaining power calculation unit is configured as follows: Calculating the absolute percentage change of the electric energy of the battery at the current moment according to the ratio of the incremental electric energy to the total electric energy of the battery; Calculate the absolute percentage remaining power of the battery at the current moment according to the absolute percentage change of the power of the battery at the current moment and the absolute percentage remaining power at the start time of the preset time period; as well as The relative percentage remaining energy is calculated based on the absolute percentage remaining energy of the battery at the current moment, the absolute percentage remaining energy corresponding to the open circuit voltage corresponding to the load cut-off voltage, and the absolute percentage remaining energy when the battery is fully charged.

16. The device according to claim 15, characterized in that Also includes: The aging compensation module is configured to update the total power of the battery by combining the power increment between two equivalent open circuit states, the absolute percentage remaining power corresponding to the voltages of the two equivalent open circuit states, the original total power of the battery, and the aging compensation weight.