A method, apparatus, and storage medium for mobile device battery capacity and internal resistance calibration verification

By using an Android application to calibrate battery capacity and internal resistance on mobile devices, the problem of inflexible testing environment and inability to verify calibration results in real time in existing technologies is solved, achieving flexible calibration and real-time verification.

CN115754750BActive Publication Date: 2026-07-07ALLWINNER TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ALLWINNER TECH CO LTD
Filing Date
2022-11-01
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

In existing technologies, the calibration test environment for battery capacity and internal resistance after mobile device battery aging is inflexible, and the calibration results cannot be verified in real time. The aging model is complex to build and is prone to mismatch with actual application scenarios.

Method used

A battery parameter calibration method developed using an Android application configures battery information via a mobile device touchscreen, uses a power management chip to record battery voltage, current, and other information, performs real-time calculations and calibrations during the charging and discharging process, and provides a visual curve display to verify the calibration results.

Benefits of technology

It enables flexible battery capacity and internal resistance calibration on mobile devices without the need for specific hardware, provides real-time data and curve display, and ensures the accuracy and verifiability of calibration results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115754750B_ABST
    Figure CN115754750B_ABST
Patent Text Reader

Abstract

The application discloses a kind of mobile device battery capacity and internal resistance calibration verification method, device and storage medium, and the specific steps of capacity and internal resistance calibration are as follows: input battery information in application program;It is detected whether to meet charging condition;Start a round of charge-discharge, obtain the parameter of the charge-discharge, calculate battery internal resistance;After internal resistance calculation is completed, start charging, enter charging stage;Wait for power to be full, record charging information and save to table, draw charging curve;After power is full, enter discharge stage;Discharge to open-circuit voltage is preset target voltage, record discharge information and save to table, draw discharge curve;End of discharge, statistics battery capacity and update to user interface.The application can complete battery capacity and internal resistance calibration on mobile device without relying on specific hardware and host computer environment, and provide real-time data display and curve display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the calibration of capacity and internal resistance of mobile device batteries after aging, and more particularly to a method for calibrating the capacity and internal resistance of mobile device batteries after aging and for testing the internal resistance after calibration. Background Technology

[0002] Most current smart mobile devices are powered by batteries, and most screen-equipped devices display and update battery level information in real time. However, after prolonged use, battery capacity decreases and internal resistance increases, leading to inaccurate battery level information and a significant discrepancy between the displayed information and the actual battery level.

[0003] To solve this technical problem, the existing technical solutions in the industry include:

[0004] By combining specific hardware and PC software, a discharge test is performed using a fully charged battery and the firmware's load resistor. During the test, an external ADC is used to statistically analyze parameters such as battery voltage and discharge current. Based on these statistical parameters, the battery's capacity and internal resistance are calculated. Finally, a smoothing algorithm is used to calculate the battery's final usable capacity and internal resistance. The drawback is the inflexibility of the calibration test environment. Furthermore, after the battery capacity and internal resistance calibration is completed, the calibration results cannot be immediately verified.

[0005] Aging modeling is performed when the battery is first put into use. The aging factor parameters of the battery are calculated using the characteristics of lithium batteries, and the aging factor parameters are set in the battery module's driver program. A fine calibration is performed during each charge and discharge cycle of the battery. The disadvantage is that the construction of the battery aging model is complex, and it is very easy for the actual application scenario and the aging model algorithm to be mismatched, resulting in unsatisfactory practical application results. Summary of the Invention

[0006] To address at least one drawback of the existing technology, this invention provides a battery parameter calibration and verification method based on an Android application, offering a user-friendly UI, visualized battery curve display, and test buttons. After configuring the battery information used by the device via the mobile device's touchscreen, a complete charge and discharge process can be initiated by pressing the button. During the charge and discharge process, every 1 second, information such as battery voltage, OCV voltage, charge and discharge current, and cumulative battery capacity are recorded from relevant registers within the power management chip (PMU) and saved to a background table. During the test, the Android application calculates the actual internal resistance and capacity of the battery based on this information. In the parameter verification stage, the parameters are rewritten back to the power management chip (PMU), and the rationality of the calibrated parameters is verified by plotting charge and discharge curves. The technical solution adopted by this invention is as follows:

[0007] On one hand, embodiments of the present invention include a method for calibrating the battery capacity and internal resistance of a mobile device, the method comprising the following steps:

[0008] Initiate a charge-discharge cycle, obtain the parameters of the charge-discharge, and calculate the battery internal resistance;

[0009] Once the internal resistance calculation is complete, charging begins, and the charging phase commences.

[0010] Wait for the battery to fully charge, record the charging information and save it to a table, and plot the charging curve.

[0011] Once fully charged, it enters the discharge phase.

[0012] Discharge until the open-circuit voltage is the preset target voltage, record the discharge information and save it to a table, and plot the discharge curve;

[0013] After the discharge phase ends, the battery capacity is recorded.

[0014] The calibration process ends after the parameter verification phase is completed.

[0015] Furthermore, the step of initiating a charge-discharge cycle includes the following operation method: controlling the application to continuously charge and discharge the battery for a first duration.

[0016] Furthermore, the internal resistance calculation process is as follows:

[0017] When charging the battery, the power management chip collects the battery pack voltage and charging current during the charging period, and calculates the average value of the first battery pack voltage and the average value of the first battery pack current during the battery charging period.

[0018] When charging the battery is stopped, the power management chip collects the battery pack voltage and current during the charging stop period, and calculates the average value of the second battery pack voltage and the average value of the second battery pack current during the charging stop period.

[0019] Calculate the voltage difference and current difference; the voltage difference is the difference between the average voltage of the first battery pack and the average voltage of the second battery pack; the current difference is the difference between the average current of the first battery pack and the average current of the second battery pack.

[0020] The internal resistance of the battery is obtained by calculating the quotient of the voltage difference and the current difference.

[0021] Furthermore, the step of calculating battery capacity involves methods such as calculating the accumulated battery capacity by integrating the statistical discharge current and sampling time.

[0022] Furthermore, during the charging and discharging phases, battery information is recorded in the relevant registers within the power management chip after each sampling cycle. This battery information includes: battery voltage, open-circuit voltage, charging current, discharging current, and cumulative battery capacity.

[0023] Furthermore, the step of recording charging information and saving it to a table, and plotting a charging curve, includes saving the charging information and the charging curve in the internal storage medium of the mobile device.

[0024] Furthermore, the power management chip is a built-in chip of the mobile device.

[0025] Furthermore, the parameter verification phase includes the following steps:

[0026] After calibration, parameter verification is enabled, and the parameters are written back to the power management chip. The parameters are the battery information described in claim 1.

[0027] Entering the charging phase;

[0028] Wait for the battery to fully charge, record the charging information and save it to a table, and plot the charging curve.

[0029] Once fully charged, it enters the discharge phase.

[0030] Discharge until the open-circuit voltage is the preset target voltage, record the discharge information and save it to a table, and plot the discharge curve;

[0031] End of discharge phase.

[0032] On the other hand, embodiments of the present invention also include a computer device, characterized in that it includes a memory and a processor, the memory being used to store at least one program, and the processor being used to load the at least one program to execute the method described in the embodiments for completing capacity and internal resistance calibration and post-calibration inspection of mobile device batteries after aging.

[0033] On the other hand, a storage medium storing a processor-executable program is characterized in that, when executed by a processor, the processor-executable program is used to perform the method described in the embodiments for completing the capacity and internal resistance calibration and post-calibration inspection of a mobile device battery after aging.

[0034] The beneficial effects of this invention are: Battery capacity and internal resistance testing no longer require specific hardware and host computer environments; calibration can be completed on mobile devices, providing real-time data and curve displays. After battery parameter calibration, parameters can be updated directly on an Android application, and parameter verification can be performed through visualized curves and data. Attached Figure Description

[0035] Figure 1 This is a general circuit block diagram of the present invention;

[0036] Figure 2 This is a software design block diagram for the present invention;

[0037] Figure 3 This invention provides a battery capacity and internal resistance calibration diagram and a battery flowchart.

[0038] Figure 4 Flowchart of parameter verification after calibration;

[0039] Figure 5 For the application's UI. Detailed Implementation

[0040] The present application will be further described below with reference to the accompanying drawings and specific embodiments. The described embodiments should not be considered as limitations on the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.

[0041] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0043] The battery pack of a mobile device consists of battery cells and internal resistance. As ambient temperature changes and the number of battery cycles increases, the battery's internal resistance changes, leading to changes in the battery's model parameters. Regular calibration and updates of the battery's internal resistance and model parameters are necessary to ensure the accuracy of battery voltage and remaining capacity information. This invention controls the battery pack through multiple charge-discharge cycles using a power management unit (PMU), and utilizes the PMU's internal sampling circuit to collect and calculate the charge-discharge information, obtaining the current battery internal resistance and model parameters. These parameters are then displayed through the app's UI. A rough hardware circuit diagram is shown below. Figure 1 As shown, the software design block diagram is as follows: Figure 2 As shown.

[0044] Reference Figure 3 The calibration process for the battery capacity and internal resistance of mobile devices in this embodiment includes the following steps:

[0045] S1. Enter battery information in the application;

[0046] S2. Check if the charging conditions are met;

[0047] S3. Start a round of charging and discharging, obtain the parameters of the charging and discharging, and calculate the battery internal resistance;

[0048] S4. After the internal resistance calculation is completed, charging begins, entering the charging stage;

[0049] S5. Wait for the battery to fully charge, record the charging information and save it to a table, and plot the charging curve;

[0050] S6. Once the battery is fully charged, it enters the discharge phase;

[0051] S7. Discharge until the open-circuit voltage is the preset target voltage, record the discharge information and save it to the table, and plot the discharge curve;

[0052] S8. End the discharge, calculate the battery capacity and update it to the user interface.

[0053] In step S1, the application in this embodiment is an Android application.

[0054] In step S2, the monitoring of whether the charging conditions are met is done by the mobile device itself.

[0055] In step S3, the Android application calculates the actual internal resistance of the battery by controlling the brief charging and stopping of the battery. After the internal resistance calculation is completed, a full charge cycle is initiated until the battery is fully charged. The brief charging time mentioned in this embodiment can be flexibly set according to the actual needs of the mobile device.

[0056] In step S4, the internal resistance calculation process is as follows: First, start charging for 1 minute, and collect the battery pack charging voltage and charging current during charging through the ADC inside the power management chip (PMU) and calculate the average values ​​V1 and I1; then stop charging for 1 minute, and collect the battery pack voltage and current during discharging through the ADC inside the power management chip (PMU) and calculate the average values ​​V2 and I2. Finally, calculate the voltage difference ΔV = V1 - V2 and the current difference ΔI = I1 - I2 under the two states, and calculate the battery internal resistance using Ohm's law Rdc = ΔV / ΔI.

[0057] In step S5, the table is provided by the application, and the data and results of each test will be stored as historical data.

[0058] In step S6, during the discharge phase, the Android application calculates the accumulated battery capacity by integrating the statistical discharge current and sampling time.

[0059] In step S7, the discharge is stopped when the battery OCV voltage reaches the preset target voltage, and the actual usable capacity of the battery is accumulated, thus completing the calibration.

[0060] After calibration, you can verify the calibrated parameters via the UI button. This rewrites the calibrated parameters into the relevant registers of the power management chip (PMU) and initiates a new charge / discharge cycle to verify the smoothness of the charge / discharge curve and the accuracy of the displayed power level. The verification steps are essentially the same as the calibration steps; refer to [link / reference]. Figure 4 Specifically:

[0061] A1. In the application, select the button to enable the verification of calibrated parameters and write the parameters back to the PMU.

[0062] A2. Repeat steps S2, S4, S5, S6, and S7 above to complete the verification of the calibrated parameters.

[0063] Methods for calibrating and verifying the battery capacity and internal resistance of mobile devices can be performed using an application, whose UI interface is as follows: Figure 5 As shown, the application's UI features five selection buttons at the top: Enable Parameter Testing, Generate Battery Curve, Enable Curve Testing, Set Parameters, and Historical Data. Selecting the corresponding button enables the corresponding function.

[0064] The "Start Parameter Test" button activates the parameter testing function, and the application will perform parameter testing on the mobile device's battery according to steps S1-S8 described above. In step S1, battery information needs to be entered into the application. Select the "Set Parameters" button, enter the battery information in the battery information record field on the right side of the UI interface, and then select the "Start Test" button to proceed with the remaining steps. Selecting the "Generate Battery Curve" button displays the battery information parameters measured during the charging and discharging phases of the test in a table on the right. Average current, average voltage, and other values ​​from the test are stored in a table within the application and plotted as a function curve in the grid on the left side of the UI interface. After the test, you can select the "Start Curve Test" button to verify the parameters. Data generated from each test is also saved by the application; selecting the "Historical Data" button allows you to view past test results.

Claims

1. A method for calibrating the battery capacity and internal resistance of a mobile device, characterized in that, The method, executed via an application on the mobile device itself, includes the following steps: Initiate a charge-discharge cycle, obtain the parameters of the charge-discharge, and calculate the battery internal resistance; After the internal resistance calculation is completed, the charging phase begins; Wait for the battery to fully charge, record the charging information and save it to a table, and plot the charging curve. Once fully charged, it enters the discharge phase. Discharge until the open-circuit voltage is the preset target voltage, record the discharge information and save it to a table, and plot the discharge curve; After the discharge phase ends, the battery capacity is recorded. The parameter verification phase is performed, and the calibration process ends after the parameter verification phase is completed. The internal resistance calculation process includes: When charging the battery, the power management chip collects the battery pack voltage and charging current during the charging period, and calculates the average value of the first battery pack voltage and the average value of the first battery pack current during the battery charging period. The power management chip is a chip built into the mobile device. When charging the battery is stopped, the power management chip collects the battery pack voltage and current during the charging stop period, and calculates the average value of the second battery pack voltage and the average value of the second battery pack current during the charging stop period. Calculate the voltage difference and current difference; the voltage difference is the difference between the average voltage of the first battery pack and the average voltage of the second battery pack; the current difference is the difference between the average current of the first battery pack and the average current of the second battery pack. The internal resistance of the battery is obtained by calculating the quotient of the voltage difference and the current difference.

2. The method according to claim 1, characterized in that, The step of initiating a charge-discharge cycle includes the following operation method: controlling the application to continuously charge and discharge the battery for a first duration.

3. The method according to claim 1, characterized in that, The step of calculating the battery capacity includes: calculating the accumulated battery capacity by integrating the statistical discharge current and sampling time.

4. The method according to claim 1, characterized in that, During the charging and discharging phases, battery information is recorded in the relevant registers inside the power management chip every sampling cycle. The battery information includes: battery voltage, open circuit voltage, charging current, discharging current, and cumulative battery capacity.

5. The method according to claim 1, characterized in that, The step of recording charging information and saving it to a table, and plotting a charging curve, includes saving the charging information and the charging curve in the internal storage medium of the mobile device.

6. The method according to claim 4, characterized in that, The parameter verification phase includes the following steps: After calibration, parameter verification is initiated, and the parameters are written back to the power management chip. These parameters are the battery information. Entering the charging phase; Wait for the battery to fully charge, record the charging information and save it to a table to plot the charging curve; Once fully charged, it enters the discharge phase. Discharge until the open-circuit voltage is the preset target voltage, record the discharge information and save it to a table, and plot the discharge curve; End of discharge phase.

7. A computer device, characterized in that, The device includes a memory and a processor, the memory being used to store at least one program, and the processor being used to load the at least one program to perform the method for completing the calibration and post-calibration inspection of the battery capacity and internal resistance of a mobile device as described in any one of claims 1-6.

8. A storage medium storing a processor-executable program, characterized in that, The processor-executable program, when executed by the processor, is used to perform the method for completing the calibration and post-calibration inspection of the mobile device's battery capacity and internal resistance as described in any one of claims 1-6.