A method, system, apparatus and computer storage medium for power calibration

CN122754884APending Publication Date: 2026-09-15SHENZHEN XINGUODU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510262289.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2026-09-15

AI Technical Summary

Technical Problem

由于之前通过线性平均方法重构的ZCV表所依据的是相对稳定或小幅度变化的内阻假设,当实际内阻值发生较大改变后,此时继续依据重构的ZCV表来计算电量则会导致电量计算结果出现较大偏差,从而影响用户对设备续航能力的判断,严重影响用户体验

Benefits of technology

[0057]First, the voltage and current data of the device's battery are collected in real time to calculate the battery's internal resistance. The rate of change of internal resistance within a preset period is obtained and compared with a preset threshold. If the rate of change exceeds the threshold, it indicates a significant change in the battery's internal resistance. In this case, the battery capacity is calculated based on the ZCV table, and then corrected based on the internal resistance change rate. This allows for dynamic correction of the calculated capacity based on the actual internal resistance changes, making the calculated capacity more consistent with the actual battery discharge process and improving the accuracy of the capacity calculation. This application helps improve the accuracy of users' judgment of device battery life and significantly enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122754884A_ABST
    Figure CN122754884A_ABST
Patent Text Reader

Abstract

The application discloses a method, system and device for correcting the power and a computer storage medium, which are used for improving the accuracy of power calculation. The method comprises the following steps: collecting voltage data and current data of a battery of a device in real time, and calculating internal resistance data of the battery according to the voltage data and the current data; calculating an internal resistance change rate in a preset period according to the internal resistance data of the battery; judging whether the internal resistance change rate exceeds a preset change rate threshold; if yes, searching a ZCV table according to a current open circuit voltage of the battery to obtain the power of the battery, and correcting the power based on the internal resistance change rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery management, and more particularly to a method, system, apparatus, and computer storage medium for charge correction. Background Technology

[0002] In modern electronic devices such as smartphones and tablets, accurate battery power calculation is crucial for user experience. In some device platforms, such as the MTK (MediaTek) platform, the battery power calculation algorithm primarily relies on a fixed ZCV (Zero Current Voltage) table to estimate battery power. This ZCV table pre-stores the relationship between the battery's internal resistance and open-circuit voltage under specific conditions. The system monitors the battery's terminal voltage in real time and retrieves the corresponding battery power and internal resistance by looking up the record in the ZCV table that best matches this voltage value.

[0003] During the algorithm initialization phase, the ambient temperature information of the device is read, and then the ZCV table is reconstructed using a linear averaging method to cover all temperature points from -10℃ to 50℃. However, in real-world usage scenarios, especially when the device experiences significant temperature changes or the battery generates heat due to prolonged use or high load operation, the battery's internal resistance can change drastically. Since the ZCV table reconstructed using the linear averaging method is based on assumptions of relatively stable or slightly varying internal resistance, when the actual internal resistance value changes significantly, continuing to calculate battery capacity based on the reconstructed ZCV table will lead to substantial deviations in the calculation results. This affects the user's assessment of the device's battery life and severely impacts the user experience. Summary of the Invention

[0004] This application provides a method, system, apparatus, and computer storage medium for power calibration to improve the accuracy of power calculation.

[0005] The first aspect of this application provides a method for power calibration, comprising:

[0006] The device collects the battery voltage and current data in real time, and calculates the battery's internal resistance data based on the voltage and current data.

[0007] The rate of change of internal resistance within a preset period is calculated based on the internal resistance data of the battery.

[0008] Determine whether the rate of change of internal resistance exceeds a preset rate of change threshold;

[0009] If so, the battery's charge is obtained by looking up the current open-circuit voltage of the battery in the ZCV table, and the charge is corrected based on the internal resistance change rate.

[0010] Optionally, determining whether the rate of change of internal resistance exceeds a preset rate of change threshold includes:

[0011] Obtain the mapping relationship between the pre-stored open-circuit voltage and the preset rate of change threshold;

[0012] The target rate of change threshold corresponding to the current open-circuit voltage of the battery is determined based on the mapping relationship;

[0013] Determine whether the rate of change of internal resistance exceeds the target rate of change threshold.

[0014] Optionally, obtaining the mapping relationship between the pre-stored open-circuit voltage and the preset rate of change threshold includes:

[0015] Add the internal resistance change rate dimension to the ZCV table to reconstruct the target table. The target table contains the mapping relationship between different open circuit voltages of the battery and the corresponding charge, internal resistance and preset change rate threshold.

[0016] Perform interpolation calculations on the target table;

[0017] The mapping relationship between the open-circuit voltage and the preset rate of change threshold is obtained based on the target table after interpolation calculation.

[0018] Optionally, the obtained current open-circuit voltage of the battery is used to look up the battery's charge in the ZCV table, and the charge is corrected based on the internal resistance change rate, including:

[0019] Obtain the current open-circuit voltage of the battery;

[0020] The battery charge is obtained based on the current open-circuit voltage and the ZCV meter, combined with the coulomb counting method.

[0021] The battery charge is corrected based on the internal resistance change rate and a preset correction coefficient.

[0022] Optionally, after calculating the rate of change of internal resistance over a preset period based on the battery internal resistance data, the method further includes:

[0023] The rate of change of internal resistance is continuously monitored, and a health status indicator for the battery is generated based on the monitoring results.

[0024] Optionally, the method further includes:

[0025] When the device is detected to have entered sleep mode, the frequency of voltage and current data acquisition is reduced.

[0026] Optionally, after determining whether the rate of change of internal resistance exceeds a preset rate of change threshold, the method further includes:

[0027] If not, the battery's charge level is obtained by looking up the current open-circuit voltage of the battery in the ZCV table.

[0028] A second aspect of this application provides a power correction system, comprising:

[0029] The acquisition unit is used to acquire the voltage and current data of the device's battery in real time, and calculate the internal resistance data of the battery based on the voltage and current data.

[0030] The first calculation unit is used to calculate the rate of change of internal resistance within a preset period based on the internal resistance data of the battery.

[0031] The judgment unit is used to determine whether the rate of change of internal resistance exceeds a preset rate of change threshold.

[0032] The correction unit is used to, when the judgment result of the judgment unit is yes, look up the battery charge in the ZCV table based on the current open-circuit voltage of the battery, and correct the charge based on the internal resistance change rate.

[0033] Optionally, the determination unit is specifically used for:

[0034] Obtain the mapping relationship between the pre-stored open-circuit voltage and the preset rate of change threshold;

[0035] The target rate of change threshold corresponding to the current open-circuit voltage of the battery is determined based on the mapping relationship;

[0036] Determine whether the rate of change of internal resistance exceeds the target rate of change threshold.

[0037] Optionally, the determination unit is further configured to:

[0038] Add the internal resistance change rate dimension to the ZCV table to reconstruct the target table. The target table contains the mapping relationship between different open circuit voltages of the battery and the corresponding charge, internal resistance and preset change rate threshold.

[0039] Perform interpolation calculations on the target table;

[0040] The mapping relationship between the open-circuit voltage and the preset rate of change threshold is obtained based on the target table after interpolation calculation.

[0041] Optionally, the correction unit is specifically used for:

[0042] Obtain the current open-circuit voltage of the battery;

[0043] The battery charge is obtained based on the current open-circuit voltage and the ZCV meter, combined with the coulomb counting method.

[0044] The battery charge is corrected based on the internal resistance change rate and a preset correction coefficient.

[0045] Optionally, the system further includes:

[0046] The monitoring unit is used to continuously monitor the rate of change of internal resistance and generate a health status prompt for the battery based on the monitoring results.

[0047] Optionally, the acquisition unit is specifically used for:

[0048] When the device is detected to have entered sleep mode, the frequency of voltage and current data acquisition is reduced.

[0049] Optionally, the system further includes:

[0050] The second calculation unit is used to look up the battery's charge in the ZCV table based on the current open-circuit voltage of the battery when the judgment result of the judgment unit is negative.

[0051] A third aspect of this application provides a power correction device, the device comprising:

[0052] Processor, memory, input / output units, and bus;

[0053] The processor is connected to the memory, the input / output unit, and the bus;

[0054] The memory stores a program that the processor invokes to execute the first aspect and any optional power correction method within the first aspect.

[0055] A fourth aspect of this application provides a computer-readable storage medium storing a program that, when executed on a computer, performs the first aspect and any optional power correction method of the first aspect.

[0056] As can be seen from the above technical solutions, this application has the following advantages:

[0057] First, the voltage and current data of the device's battery are collected in real time to calculate the battery's internal resistance. The rate of change of internal resistance within a preset period is obtained and compared with a preset threshold. If the rate of change exceeds the threshold, it indicates a significant change in the battery's internal resistance. In this case, the battery capacity is calculated based on the ZCV table, and then corrected based on the internal resistance change rate. This allows for dynamic correction of the calculated capacity based on the actual internal resistance changes, making the calculated capacity more consistent with the actual battery discharge process and improving the accuracy of the capacity calculation. This application helps improve the accuracy of users' judgment of device battery life and significantly enhances the user experience. Attached Figure Description

[0058] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0059] Figure 1 A schematic flowchart of an embodiment of the power correction method provided in this application;

[0060] Figure 2 A schematic flowchart of another embodiment of the power correction method provided in this application;

[0061] Figure 3 A schematic flowchart of an embodiment of the power correction method provided in this application for obtaining the mapping relationship between open-circuit voltage and a preset rate of change threshold;

[0062] Figure 4 A schematic flowchart of an embodiment of the battery charge correction method provided in this application;

[0063] Figure 5 A schematic diagram of another embodiment of the power correction system provided in this application;

[0064] Figure 6 A schematic diagram of an embodiment of the power correction device provided in this application. Detailed Implementation

[0065] This application provides a method, system, apparatus, and computer storage medium for power calibration to improve the accuracy of power calculation.

[0066] It should be noted that the power calibration method provided in this application can be applied to mobile devices such as payment devices, smartphones, tablets, smartwatches, and portable computer terminals. For ease of explanation, this application uses the system installed on the device as the implementation subject for illustration.

[0067] Please see Figure 1 , Figure 1 An embodiment of the power correction method provided in this application includes:

[0068] S101. Real-time acquisition of battery voltage and current data of the device, and calculation of battery internal resistance data based on voltage and current data;

[0069] The internal resistance of a battery is a crucial parameter that changes with battery usage, ambient temperature, and load variations, affecting battery performance and the accuracy of capacity estimation. Therefore, in this embodiment, the system needs to communicate with hardware sensors to collect real-time voltage and current data from the battery terminal. This real-time voltage and current data are then used to calculate the battery's internal resistance based on Ohm's law. By calculating the battery's internal resistance in real time, the degree of battery aging and performance degradation can be assessed. The specific communication protocol used for data acquisition can be I2C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface), etc., and is not limited here.

[0070] Because hardware sensors acquire data frequently, and each acquisition may require processing time, the collected data needs to be stored in a buffer for processing. To prevent data loss, a first-in, first-out (FIFO) strategy can be used to manage the data in the buffer. Newly acquired voltage and current data are written to the end of the buffer, while older data is read and processed from the front. When the buffer is full, the system discards the oldest acquired voltage and current data according to the FIFO strategy. Furthermore, considering that data acquired by hardware sensors is often affected by noise, especially when battery current or voltage fluctuates drastically, the data may contain abrupt changes or errors. After acquiring the voltage and current data, the system can also filter the data to effectively reduce the impact of instantaneous voltage fluctuations on the calculation of battery internal resistance data.

[0071] S102. Calculate the rate of change of internal resistance within a preset period based on the battery's internal resistance data;

[0072] During device operation, the battery's internal resistance changes dynamically due to various factors. For example, prolonged use or high-load operation can cause the battery to heat up, leading to significant changes in internal resistance. To track the real-time trend of the battery's internal resistance over time, the internal resistance change rate within a preset period can be calculated based on the calculated internal resistance data. Specifically, the formula for calculating the internal resistance change rate is: ΔR = (R_n - R_n-1) / R_n × 100%, where R_n is the internal resistance data at the end of the current preset period, or the average internal resistance data within the current preset period, and R_n-1 is the internal resistance data at the end of the previous preset period, or the average internal resistance data within the previous preset period. Calculating the internal resistance change rate within a preset period helps to more accurately assess the battery's condition, providing crucial information for subsequent power calibration.

[0073] When calculating the rate of change of internal resistance, a preset period needs to be set according to the actual application scenario and requirements, such as calculating once every 5 minutes. This time interval needs to take into account factors such as device performance, power consumption, and the frequency of changes in battery state. If the preset period is too short, frequent calculation of the rate of change of internal resistance will increase the consumption of system computing resources, and the calculation results may be inaccurate due to data fluctuations. If the preset period is too long, it may not be able to capture rapid changes in battery internal resistance in time.

[0074] S103. Determine whether the rate of change of internal resistance exceeds the preset rate of change threshold.

[0075] The calculated rate of change of internal resistance is compared with a preset rate of change threshold, which provides a quantitative standard for determining whether the battery state has undergone a substantial change. When the rate of change of internal resistance exceeds the preset rate of change threshold, it indicates a significant trend in the change of battery internal resistance, which will have a significant impact on the calculation of battery capacity. In this case, step 104 needs to be executed to perform capacity correction. The setting of this preset rate of change threshold should take into account the battery type, characteristics, and the usage scenario of the device. It can also be set based on experimental data and actual application tests. Specific details are not limited here.

[0076] S104. Based on the current open-circuit voltage of the battery, look up the battery's charge in the ZCV table and correct the charge based on the rate of change of internal resistance.

[0077] In power calculations on platforms like MTK, the ZCV (Zero-Voltage Capacity) meter can estimate battery capacity based on internal resistance and open-circuit voltage. However, when the battery's internal resistance changes significantly due to factors such as temperature variations during device use, prolonged use, or high-load operation, calculating the power capacity solely based on the ZCV meter will result in substantial deviations. Therefore, when the rate of change of internal resistance exceeds a preset threshold, it is necessary to introduce the internal resistance change rate factor to correct the power capacity calculation model. This involves first obtaining the battery's power capacity from the ZCV meter, and then correcting the power capacity based on the rate of change of internal resistance. This allows for adjustments to the power capacity calculation based on the actual internal resistance of the battery, making the calculation more consistent with the actual battery discharge process and improving the accuracy of power capacity calculations.

[0078] In this embodiment, the voltage and current data of the device's battery are first collected in real time to calculate the battery's internal resistance data. The rate of change of internal resistance within a preset period is obtained and compared with a preset threshold. If the rate of change exceeds the threshold, it indicates a significant change in the battery's internal resistance. In this case, the battery capacity is calculated based on the ZCV table, and then corrected based on the rate of change. This allows for dynamic correction of the calculated capacity according to the actual internal resistance changes, making the calculated capacity more consistent with the actual battery discharge process and improving the accuracy of the capacity calculation. This application helps improve the accuracy of users' judgment of device battery life and significantly enhances the user experience.

[0079] The power correction method provided in this application is described in detail below. Please refer to [link / reference]. Figure 2 , Figure 2 Another embodiment of the power correction method provided in this application includes:

[0080] S201. Real-time acquisition of battery voltage and current data of the device, and calculation of battery internal resistance data based on voltage and current data;

[0081] In this embodiment, step S201 is similar to step S101 in the previous embodiment, and will not be described again here.

[0082] In some specific embodiments, when the device is detected to have entered sleep mode, the sampling frequency of voltage and current data can be reduced to free up some computing resources and avoid resource waste. When the device wakes up, the normal sampling frequency is restored to ensure the accuracy of power calculation and meet the user's needs for normal device use. For example, if the normal sampling frequency is once every 1 minute, the sampling frequency can be reduced to once every 2 minutes after entering sleep mode.

[0083] S202. Calculate the rate of change of internal resistance within a preset period based on the battery's internal resistance data;

[0084] In this embodiment, step S202 is similar to step S102 in the previous embodiment, and will not be described again here.

[0085] S203. Obtain the mapping relationship between the pre-stored open-circuit voltage and the preset rate of change threshold;

[0086] The preset rate of change threshold is a pre-defined threshold used to determine whether the rate of change of the battery's internal resistance exceeds an acceptable range. If it exceeds this threshold, it means that the battery state has changed significantly, and corresponding measures need to be taken, such as charge correction. Different open-circuit voltages mean that the battery is in different states. Using a single preset rate of change threshold to judge the change in battery internal resistance may lead to misjudgments. For example, at a high open-circuit voltage, the battery's performance and state may be relatively stable, and the acceptable rate of change of internal resistance may be relatively large; while at a low open-circuit voltage, it may mean that the battery charge is low, and more stringent control of the rate of change of internal resistance is required to avoid large deviations in charge calculation and battery performance judgment.

[0087] Therefore, in this embodiment, it is necessary to adjust the preset rate of change threshold based on the open-circuit voltage. Specifically, the mapping relationship between the open-circuit voltage and the preset rate of change threshold can be determined through experiments or data analysis during the development phase, and this mapping relationship can be pre-stored in the device's storage area. This mapping relationship can be stored in the form of tables, functions, or curves, etc., and is not limited here. For example, when stored in tabular form, there will be two columns of data: one column contains different open-circuit voltage values, and the other column contains the corresponding preset rate of change threshold. When stored in function form, the relationship between the open-circuit voltage and the preset rate of change threshold can be described by a mathematical expression.

[0088] S204. Determine the target rate of change threshold corresponding to the current open-circuit voltage of the battery based on the mapping relationship;

[0089] During equipment operation, the current open-circuit voltage of the battery can be acquired in real time through hardware modules such as the ADC. After obtaining the current open-circuit voltage, the target rate of change threshold matching the open-circuit voltage can be found or calculated based on the mapping relationship obtained in S203. This ensures that the most suitable standard can be used to determine the battery status under different battery conditions, avoiding inaccuracies caused by a uniform standard.

[0090] S205. Determine whether the rate of change of internal resistance exceeds the target rate of change threshold.

[0091] Determining whether the current rate of change of the device's internal resistance exceeds the target rate of change threshold helps to adjust the power calculation method in a timely manner. If the rate of change of internal resistance does not exceed the target rate of change threshold, it indicates that the battery state is relatively stable, and step S206 is executed. If the rate of change of internal resistance exceeds the target rate of change threshold, it indicates that changes in the battery state will significantly affect the accuracy of power calculation, and step S207 is executed to perform a power correction operation.

[0092] S206. Based on the obtained current open-circuit voltage of the battery, look up the battery's charge in the ZCV table;

[0093] When the rate of change of internal resistance does not exceed the target rate of change threshold, it indicates that the battery state is relatively stable. This means that changes in internal resistance have little impact on the battery's charging and discharging performance, energy output, etc. The battery's internal resistance can be considered to be within the normal fluctuation range expected by the capacity calculation model. Therefore, the calculated capacity has high accuracy and requires no additional correction. At this point, the battery capacity can be directly calculated using the existing capacity calculation model combined with the ZCV table, based on the obtained current open-circuit voltage of the battery. The capacity calculation model used can be selected according to the platform characteristics and battery characteristics; specific details are not limited here.

[0094] S207. Based on the obtained current open-circuit voltage of the battery, look up the battery's charge in the ZCV table and correct the charge based on the rate of change of internal resistance.

[0095] In this embodiment, step S207 is similar to step S104 in the previous embodiment, and will not be described again here.

[0096] S208. Continuously monitor the rate of change of internal resistance and generate a health status prompt for the battery based on the monitoring results.

[0097] After calculating the internal resistance change rate in step S202 above, the acquired internal resistance change rate data can be monitored and recorded. Once enough internal resistance change rate data has been accumulated, it can be analyzed. Analysis methods can include simple statistical analysis, such as calculating the average, maximum, and minimum values ​​of the internal resistance change rate over a period of time; or more complex trend analysis algorithms, such as linear regression analysis, can be used to predict the development trend of the internal resistance change rate. Based on the monitoring results of the internal resistance change rate, corresponding battery health status prompts can be generated. For example, when the average internal resistance change rate over a period of time exceeds a certain set health threshold and shows an upward trend, a prompt of "Battery health is poor, it is recommended to check the battery as soon as possible" can be generated; if the internal resistance change rate remains at a low and stable level, a prompt of "Battery health is good" can be generated. These prompts will be displayed to the user through the device's user interface.

[0098] In this embodiment, battery internal resistance data is calculated by real-time acquisition of voltage and current data. Based on this internal resistance data, the rate of change of internal resistance within a preset period is calculated, providing a quantitative basis for determining battery status. Simultaneously, the mapping relationship between pre-stored open-circuit voltage and a preset rate of change threshold is acquired, and a target rate of change threshold is determined based on the current open-circuit voltage of the device. This ensures accurate assessment of the impact of battery status on power calculation under different battery conditions. When the rate of change of internal resistance does not exceed the target rate of change threshold, the existing power calculation model is directly used in conjunction with a ZCV table lookup to calculate the battery's power. When the rate of change of internal resistance exceeds the target rate of change threshold, the calculated power needs to be corrected based on the rate of change of internal resistance. This makes the power calculation more consistent with the actual battery discharge process, improving the accuracy of power calculation.

[0099] In step S203 above, the mapping relationship between open-circuit voltage and preset rate of change threshold can be obtained by reconstructing the ZCV table. Please refer to [link to relevant documentation]. Figure 3 , Figure 3 An embodiment of the method for power correction provided in this application for obtaining the mapping relationship between open-circuit voltage and a preset rate of change threshold includes:

[0100] S301. Add the internal resistance change rate dimension to the ZCV table and reconstruct the target table. The target table contains the mapping relationship between different open circuit voltages of the battery and the corresponding charge, internal resistance and preset change rate threshold.

[0101] The ZCV table is generated based on relatively stable battery state assumptions, and primarily stores the relationship between open-circuit voltage, charge, and internal resistance. For example:

[0102] 3.7 1.0 0.1 3.6 0.8 0.12

[0103] However, in practical use, the battery's internal resistance changes significantly, affecting the accuracy of power calculation. To better reflect the battery's characteristics under different internal resistance change rates, a new dimension, the internal resistance change rate, can be added to the ZCV table. By introducing the internal resistance change rate dimension, the original two-dimensional ZCV table is reconstructed into a three-dimensional target table. This target table contains the mapping relationship between different open-circuit voltages and their corresponding power, internal resistance, and preset internal resistance change rates. This allows for a more comprehensive description of the battery's characteristics under different states, providing a basis for more accurate power calculation and battery management. Specifically, the internal resistance change rate can be obtained by calculating the ratio of the change in internal resistance under different states to the initial internal resistance. For example, assuming the initial internal resistance is R0 and the internal resistance at a certain moment is R1, the internal resistance change rate r = (R1 - R0) / R0. The reconstructed target table is shown below:

[0104]

[0105] The target table is obtained by reconstructing the ZCV table and adding an internal resistance change rate dimension. It considers various factors such as different open-circuit voltages and charge levels, adapting to different battery operating conditions. Therefore, the internal resistance change rate in the target table reflects the general rules and characteristics of internal resistance changes in various states, and can serve as a reasonable threshold reference for judging battery status; that is, it can be used as a preset change rate threshold. The purpose of the preset change rate threshold is to distinguish whether the battery status is within the normal range, and the internal resistance change rate in the target table provides a clear boundary for this distinction. When the actual internal resistance change rate exceeds this threshold, it means that the battery may have an abnormal condition, such as aging or failure; when it does not exceed it, the battery status is considered relatively stable.

[0106] S302. Perform interpolation calculations on the target table;

[0107] After constructing the target table including the internal resistance change rate dimension, incomplete or uneven data may exist. Since the actual battery state is continuously changing, but the table can only store a limited number of discrete data points, interpolation calculations are needed to better represent the battery state under different combinations of open-circuit voltage, charge, internal resistance, and preset change rate thresholds. Interpolation calculations can generate estimated values ​​between known data points, allowing the table to better cover various situations that may occur in actual use. Through interpolation calculations, data gaps in the target table can be filled, ensuring that there is corresponding data available for reference under different combinations of open-circuit voltage, charge, internal resistance, and internal resistance change rate, making the target table closer to the continuous changing characteristics of the battery state, and thus more accurately reflecting the actual situation of the battery. Various interpolation methods can be used in the interpolation calculation process, such as linear interpolation, polynomial interpolation, or spline interpolation, etc., which are not limited here.

[0108] S303. Obtain the mapping relationship between open-circuit voltage and preset rate of change threshold based on the target table after interpolation calculation.

[0109] In this embodiment, a target table is obtained by adding an internal resistance change rate dimension to a traditional ZCV table and reconstructing it. This target table comprehensively reflects the battery's state under different internal resistance variations. Subsequent interpolation calculations on the target table effectively compensate for the incompleteness and discreteness of the table data, allowing the table to continuously and smoothly reflect changes in battery characteristics under different states, thus improving data usability and accuracy. Finally, based on the interpolated target table, the mapping relationship between open-circuit voltage and a preset change rate threshold is obtained. This mapping relationship provides a crucial decision-making basis for the battery management system, enabling the system to quickly and accurately determine the corresponding preset change rate threshold based on the battery's real-time open-circuit voltage, thereby adjusting the power calculation strategy.

[0110] In step S104 or step S207 above, a correction coefficient can be introduced to correct the battery's charge level. Please refer to [link / reference]. Figure 4 , Figure 4 One embodiment of the battery charge calibration method provided in this application includes calibrating the battery charge.

[0111] S401. Obtain the current open-circuit voltage of the battery;

[0112] S402. Based on the current open-circuit voltage and ZCV meter, the battery charge is obtained using the coulomb counting method.

[0113] Because a single method for calculating battery capacity often falls short of the requirements for high accuracy, the ZCV meter stores the relationship between the battery's internal resistance and open-circuit voltage under specific conditions, reflecting the battery's characteristics in different states. The coulomb counting method, on the other hand, calculates changes in battery capacity by integrating the battery's charging and discharging current. While the ZCV meter provides information on battery capacity in static or near-static states, it is insufficient for reflecting dynamic charging and discharging processes. The coulomb counting method can track changes in battery capacity in real time, but it suffers from the problem of accumulated integration errors. Combining the two methods can, to some extent, compensate for each other's shortcomings, resulting in a more comprehensive and accurate calculation of battery capacity.

[0114] Specifically, the current open-circuit voltage of the battery is acquired in real time and compared with the data in the ZCV table. The closest open-circuit voltage record is found, and the corresponding estimated capacity is obtained as the initial capacity. Then, the charging and discharging current of the battery is measured in real time using a current sensor, and the current is integrated to obtain the change in battery capacity over a period of time. Finally, the initial capacity obtained from the ZCV table is added to or subtracted from the capacity change calculated using the coulomb counting method (addition for charging, subtraction for discharging) to obtain a more accurate device capacity.

[0115] S403. The battery capacity is corrected based on the internal resistance change rate and the preset correction coefficient.

[0116] Changes in internal resistance can cause discrepancies between the actual performance of a battery and its theoretical model, leading to errors in charge calculation. By considering the rate of change in internal resistance and a preset correction coefficient to correct for changes in charge, this error can be eliminated or reduced, making the calculated charge closer to the battery's actual remaining capacity. This preset correction coefficient is a numerical value used to measure the impact of internal resistance changes on charge. During charge correction, it is multiplied by the rate of change in internal resistance to determine the magnitude of the correction. The preset correction coefficient can be determined through preliminary experiments or calibration; different types of batteries and devices may require different preset correction coefficients. Specifically, the correction calculation formula is:

[0117] Q_new=Q_original×(1_k×ΔR%)

[0118] Where Q_original is the charge calculated based on the ZCV table combined with the coulomb counting method, k is the experimentally confirmed correction coefficient, ΔR% is the rate of change of internal resistance, and Q_new is the corrected charge.

[0119] In this embodiment, calculating the battery's charge using a ZCV table combined with coulomb counting utilizes information from both voltage and charge, making it more accurate than using a single method and more comprehensively considering the battery's actual characteristics and operating state. Subsequently, the battery's charge is corrected based on the rate of change of internal resistance and a preset correction coefficient. This correction effectively compensates for calculation errors caused by changes in internal resistance, making the calculated charge result more consistent with the battery's true state.

[0120] The power correction system provided in this application is described in detail below. Please refer to [link / reference]. Figure 5 , Figure 5 Another embodiment of the power correction system provided in this application, the system includes:

[0121] The acquisition unit 501 is used to acquire the voltage and current data of the device's battery in real time, and calculate the battery's internal resistance data based on the voltage and current data.

[0122] The first calculation unit 502 is used to calculate the rate of change of internal resistance within a preset period based on the internal resistance data of the battery.

[0123] The judgment unit 503 is used to determine whether the rate of change of internal resistance exceeds a preset rate of change threshold.

[0124] The correction unit 504 is used to correct the battery charge by looking up the current open-circuit voltage of the battery in the ZCV table when the judgment result of the judgment unit is yes, and correct the charge based on the internal resistance change rate.

[0125] Optionally, the judgment unit 503 is specifically used for:

[0126] Obtain the mapping relationship between the pre-stored open-circuit voltage and the preset rate of change threshold;

[0127] The target rate of change threshold corresponding to the current open-circuit voltage of the battery is determined based on the mapping relationship;

[0128] Determine whether the rate of change of internal resistance exceeds the target rate of change threshold.

[0129] Optionally, the judgment unit 503 is also specifically used for:

[0130] Add the internal resistance change rate dimension to the ZCV table and reconstruct the target table. The target table contains the mapping relationship between different open circuit voltages of the battery and the corresponding charge, internal resistance and preset change rate threshold.

[0131] Perform interpolation calculations on the target table;

[0132] The mapping relationship between open-circuit voltage and preset rate of change threshold is obtained based on the target table after interpolation calculation.

[0133] Optionally, the correction unit 504 is specifically used for:

[0134] Obtain the current open-circuit voltage of the battery;

[0135] The battery charge is obtained based on the current open-circuit voltage and ZCV meter, combined with the coulomb counting method.

[0136] The battery capacity is corrected based on the rate of change of internal resistance and a preset correction coefficient.

[0137] Optionally, the system may also include:

[0138] The monitoring unit 505 is used to continuously monitor the rate of change of internal resistance and generate a health status prompt for the battery based on the monitoring results.

[0139] Optionally, the acquisition unit 501 is specifically used for:

[0140] When the device is detected to have entered sleep mode, the frequency of voltage and current data acquisition is reduced.

[0141] Optionally, the system may also include:

[0142] The second calculation unit 506 is used to look up the battery's charge in the ZCV table based on the current open-circuit voltage of the battery when the judgment result of the judgment unit is negative.

[0143] In this embodiment, the functions of each unit are the same as described above. Figures 1 to 4 The steps in the method embodiments shown correspond to those in the examples, and will not be repeated here.

[0144] This application also provides a power correction device; please refer to [link / reference]. Figure 6 , Figure 6 One embodiment of the power correction apparatus provided in this application includes:

[0145] Processor 601, memory 602, input / output unit 603, bus 604;

[0146] The processor 601 is connected to the memory 602, the input / output unit 603, and the bus 604;

[0147] The memory 602 stores a program, and the processor 601 calls the program to execute any of the power correction methods described above.

[0148] This application also relates to a computer-readable storage medium storing a program that, when run on a computer, causes the computer to perform any of the above-described power correction methods.

[0149] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0150] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0151] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0152] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0153] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for power calibration, characterized in that, The method includes: The device collects the battery voltage and current data in real time, and calculates the battery's internal resistance data based on the voltage and current data. The rate of change of internal resistance within a preset period is calculated based on the internal resistance data of the battery. Determine whether the rate of change of internal resistance exceeds a preset rate of change threshold; If so, the battery's charge is obtained by looking up the current open-circuit voltage of the battery in the ZCV table, and the charge is corrected based on the internal resistance change rate.

2. The method according to claim 1, characterized in that, The step of determining whether the rate of change of internal resistance exceeds a preset rate of change threshold includes: Obtain the mapping relationship between the pre-stored open-circuit voltage and the preset rate of change threshold; The target rate of change threshold corresponding to the current open-circuit voltage of the battery is determined based on the mapping relationship; Determine whether the rate of change of internal resistance exceeds the target rate of change threshold.

3. The method according to claim 2, characterized in that, The process of obtaining the mapping relationship between the pre-stored open-circuit voltage and the preset rate of change threshold includes: Add the internal resistance change rate dimension to the ZCV table to reconstruct the target table. The target table contains the mapping relationship between different open circuit voltages of the battery and the corresponding charge, internal resistance and preset change rate threshold. Perform interpolation calculations on the target table; The mapping relationship between the open-circuit voltage and the preset rate of change threshold is obtained based on the target table after interpolation calculation.

4. The method according to claim 1, characterized in that, The step of obtaining the battery's charge level by looking up the current open-circuit voltage of the battery in the ZCV table and correcting the charge level based on the internal resistance change rate includes: Obtain the current open-circuit voltage of the battery; The battery charge is obtained based on the current open-circuit voltage and the ZCV meter, combined with the coulomb counting method. The battery charge is corrected based on the internal resistance change rate and a preset correction coefficient.

5. The method according to any one of claims 1 to 5, characterized in that, After calculating the rate of change of internal resistance over a preset period based on the internal resistance data of the battery, the method further includes: The rate of change of internal resistance is continuously monitored, and a health status indicator for the battery is generated based on the monitoring results.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: When the device is detected to have entered sleep mode, the frequency of voltage and current data acquisition is reduced.

7. The method according to any one of claims 1 to 5, characterized in that, After determining whether the rate of change of internal resistance exceeds a preset rate of change threshold, the method further includes: If not, the battery's charge level is obtained by looking up the current open-circuit voltage of the battery in the ZCV table.

8. A power correction system, characterized in that, The system includes: The acquisition unit is used to acquire the voltage and current data of the device's battery in real time, and calculate the internal resistance data of the battery based on the voltage and current data. The first calculation unit is used to calculate the rate of change of internal resistance within a preset period based on the internal resistance data of the battery. The judgment unit is used to determine whether the rate of change of internal resistance exceeds a preset rate of change threshold. The correction unit is used to, when the judgment result of the judgment unit is yes, look up the battery charge in the ZCV table based on the current open-circuit voltage of the battery, and correct the charge based on the internal resistance change rate.

9. A power correction device, characterized in that, The device includes: Processor, memory, input / output units, and bus; The processor is connected to the memory, the input / output unit, and the bus; The memory stores a program, which the processor invokes to perform the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains a program that, when executed on a computer, performs the method as described in any one of claims 1 to 7.