Power calibration method, device, equipment, chip and chip module

By acquiring the battery voltage when the terminal device is connected to the charger, determining the target open-circuit voltage, and updating the power display, the problem of inaccurate power display caused by the cumulative error of the coulomb counter is solved, and the real-time accuracy and continuous updating of the power display are achieved.

CN122172089APending Publication Date: 2026-06-09XIAMEN UNISOC TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XIAMEN UNISOC TECH CO LTD
Filing Date
2026-03-13
Publication Date
2026-06-09

AI Technical Summary

Technical Problem

In traditional battery power display methods, coulomb counters accumulate errors over long-term operation, leading to inaccurate power display and affecting users' estimation of device availability.

Method used

By acquiring the battery voltage within different time windows when the terminal device is connected to the charger, the target open-circuit voltage is determined, and the displayed power is updated and matched with the calibration power level. This bypasses the coulomb integral calculation and eliminates the voltage drop error caused by the internal resistance.

Benefits of technology

It improves the real-time accuracy of power display, reduces power inaccuracy caused by cumulative errors, and ensures continuous updating and accuracy of power display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122172089A_ABST
    Figure CN122172089A_ABST
Patent Text Reader

Abstract

This application relates to a battery level calibration method, apparatus, device, chip, and chip module. The method includes: in response to a terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state, acquiring the battery voltage of the target battery within different target time windows; for each target time window, determining the target open-circuit voltage of the target battery based on the battery voltage corresponding to the target time window; determining a calibration charge level matching the target open-circuit voltage; and updating the displayed battery level of the terminal device with the calibration charge level. This method improves the accuracy of battery level display.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power calibration technology, and in particular to a power calibration method, apparatus, device, chip, and chip module. Background Technology

[0002] The accuracy of battery level display is a major concern for end users. Inaccurate battery level display can prevent users from accurately predicting the device's remaining power, causing interference and inconvenience to normal use.

[0003] Traditional methods for determining battery capacity often rely on coulomb counters, estimating capacity changes by integrating the charge and discharge currents. However, coulomb counters accumulate non-negligible errors over long-term operation, which amplify with each charge and discharge cycle, leading to deviations in the battery capacity readings. Summary of the Invention

[0004] Therefore, it is necessary to provide a power calibration method, device, equipment, chip, and chip module to address the aforementioned technical problems, thereby improving the accuracy of battery power display.

[0005] In a first aspect, this application provides a power calibration method, including:

[0006] In response to the terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state, the battery voltage of the target battery within different target time windows is obtained;

[0007] For each target time window, the target open-circuit voltage of the target battery is determined based on the battery voltage corresponding to the target time window.

[0008] Determine the calibration charge that matches the target open-circuit voltage;

[0009] To calibrate the battery level and update the displayed battery level on the terminal device.

[0010] In one embodiment, determining the target open-circuit voltage of the target battery based on the battery voltage corresponding to the target time window includes: selecting at least one candidate voltage from the battery voltages corresponding to the target time window; the battery current at the sampling point corresponding to the candidate voltage is less than a preset current threshold; and determining the target open-circuit voltage of the target battery based on the at least one candidate voltage.

[0011] In one embodiment, the target charging off state includes a first charging off state, which characterizes the target battery as fully charged and not continuing to charge; the target time window includes a first time window and / or a second time window; correspondingly, in response to the terminal device being connected to the charger and the target battery of the terminal device being in the target charging off state, the battery voltage of the target battery within different target time windows is obtained, including at least one of the following: in response to the terminal device being connected to the charger and the target battery of the terminal device being in the first charging off state, the battery voltage of the target battery under different first time windows in the target time period is obtained; the target time period is associated with the first charging off moment corresponding to the first charging off state; in response to the terminal device being connected to the charger and the target battery of the terminal device being in the first charging off state, the battery voltage of the target battery under different second time windows after the first moment is obtained; the first moment is the end moment of the target time period; wherein, the first time window length of the first time window is less than the second time window length of the second time window.

[0012] In one embodiment, updating the displayed battery level of a terminal device to calibrate the battery level includes: determining an estimated actual battery level of the target battery at full charge; and smoothly updating the displayed battery level of the terminal device to calibrate the battery level in response to the calibrated battery level being less than the estimated actual battery level; or, smoothly updating the displayed battery level of the terminal device to calibrate the battery level in response to the calibrated battery level being greater than the estimated actual battery level.

[0013] In one embodiment, the method further includes: controlling the target battery to be in a charging state in response to the updated displayed battery level being less than a preset battery level threshold.

[0014] In one embodiment, the target charging off state includes a second charging off state, which is used to characterize that the target battery is not fully charged and is not continuing to charge; the target time window includes a third time window; accordingly, in response to the terminal device being connected to the charger and the target battery of the terminal device being in the target charging off state, the battery voltage of the target battery within different target time windows is obtained, including: in response to the terminal device being connected to the charger and the target battery of the terminal device being in the second charging off state, obtaining the battery voltage of the target battery under different third time windows after the second moment; wherein, the second moment is later than the second charging off moment corresponding to the second charging off state, and there is a preset time interval between the second moment and the second charging off moment.

[0015] Secondly, this application also provides a power calibration device, comprising:

[0016] The acquisition module is used to acquire the battery voltage of the target battery within different target time windows in response to the terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state.

[0017] The first determining module is used to determine the target open-circuit voltage of the target battery for each target time window based on the battery voltage corresponding to the target time window.

[0018] The second determining module is used to determine the calibration charge that matches the target open-circuit voltage;

[0019] The update module is used to update the displayed battery level on the terminal device by calibrating the battery level.

[0020] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0021] In response to the terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state, the battery voltage of the target battery within different target time windows is obtained;

[0022] For each target time window, the target open-circuit voltage of the target battery is determined based on the battery voltage corresponding to the target time window.

[0023] Determine the calibration charge that matches the target open-circuit voltage;

[0024] To calibrate the battery level and update the displayed battery level on the terminal device.

[0025] Fourthly, this application also provides a chip, including a processor and a communication interface, wherein the processor is configured to cause the chip to perform the steps of the method provided in the first aspect above.

[0026] Fifthly, this application also provides a chip module, including a communication module, a power module, a storage module, and a chip, wherein:

[0027] The power module is used to provide power to the chip module;

[0028] Storage modules are used to store data and instructions;

[0029] The communication module is used for internal communication within the chip module, or for communication between the chip module and external devices;

[0030] The chip is used to perform the steps of the method provided in the first aspect above.

[0031] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect above.

[0032] In a sixth aspect, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method provided in the first aspect above.

[0033] The aforementioned power calibration method, apparatus, device, chip, and chip module, in response to the terminal device being connected to a charger and the target battery being in a target off-charging state, acquire the battery voltage of the target battery within different target time windows. This allows for voltage sampling under ideal conditions of no or near-no load current, fundamentally eliminating measurement errors caused by voltage drop due to internal resistance, and providing a data foundation for subsequent power display calibration. For each target time window, based on the corresponding battery voltage, the target open-circuit voltage of the target battery is determined, and a calibration power matching the target open-circuit voltage is determined. This maps the target open-circuit voltage to accurate calibration power under different target time windows, bypassing the estimation path of coulomb integration calculations and avoiding inaccurate power determination due to accumulated errors. By updating the displayed power of the terminal device with the calibration power, continuous updating of the displayed power is achieved, improving the real-time accuracy of the power display. Attached Figure Description

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

[0035] Figure 1A This is a flowchart illustrating a power calibration method in one embodiment;

[0036] Figure 1B This is a graph showing the relationship between the target open-circuit voltage and the depth of discharge in one embodiment;

[0037] Figure 2A This is a schematic diagram illustrating the open-circuit voltage stabilization process in one embodiment;

[0038] Figure 2B This is a full-charge calibration timeline under the first charging stop scenario in one embodiment;

[0039] Figure 2C This is a schematic diagram of the calibration process in the first charging stop state scenario of one embodiment;

[0040] Figure 3A This is a timeline of the charging stop calibration under the second charging stop state scenario in one embodiment;

[0041] Figure 3B This is a schematic diagram of the calibration process under the second charging stop state scenario in one embodiment;

[0042] Figure 4AThis is a flowchart illustrating the power calibration method in another embodiment;

[0043] Figure 4B This is a flowchart illustrating the power calibration method in yet another embodiment;

[0044] Figure 5 This is a structural block diagram of the power calibration device in one embodiment;

[0045] Figure 6 This is an internal structural diagram of a computer device in one embodiment;

[0046] Figure 7 This is an internal structure diagram of a chip module in one embodiment. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0048] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0049] The power calibration method provided in this application can be applied to terminal devices, servers, chips or chip modules with data processing capabilities, etc.

[0050] The terminal devices can include, but are not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle systems, and projection equipment; portable wearable devices can include smartwatches, smart bracelets, and head-mounted displays. Head-mounted displays can include virtual reality (VR) devices, augmented reality (AR) devices, and smart glasses.

[0051] The server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0052] In one embodiment, such as Figure 1A As shown, a power calibration method is provided. This embodiment illustrates the application of this method to a controller in a terminal device. It is understood that this method can also be applied to a server, and to a system including both a terminal device and a server, and is implemented through interaction between the terminal device and the server. In this embodiment, the method includes the following steps:

[0053] S110, In response to the terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state, the battery voltage of the target battery within different target time windows is obtained.

[0054] The target battery can be understood as a rechargeable battery used to power the operation of the terminal device. The target charging off state can include a first charging off state and a second charging off state. The first charging off state indicates that the target battery is fully charged and not continuing to charge; the second charging off state indicates that the target battery is not fully charged and not continuing to charge. It can be understood that a fully charged target battery can be understood as the target battery being charged to the cutoff charging voltage and cutoff charging current. A not fully charged target battery can be understood as the target battery not being charged to the cutoff charging voltage and cutoff charging current.

[0055] Understandably, terminal devices can draw power from an external power source by connecting to a charger. The power management modes for these terminal devices can include external power supply mode and battery charging mode. In external power supply mode, the external power source provides power for the terminal device's operation, and the target battery is in a target off-charging state. In battery charging mode, the external power source charges the target battery through the charger, and the target battery is in a target charging state. Optionally, the terminal device can switch power management modes based on the Power Path management function.

[0056] Understandably, the main difference between the first and second charging stop states lies in the timing of when charging stops. For example, when the target battery is fully charged and the terminal device is powered externally, the target battery is fully charged and the external power source stops charging the target battery, i.e., the target battery is in the first charging stop state. Conversely, when the target battery is not fully charged and the terminal device is powered externally, the target battery is not fully charged and the external power source stops charging the target battery, i.e., the target battery is in the second charging stop state.

[0057] The target time window can be understood as one or more pre-set continuous or periodic sampling time periods. For example, it may include multiple first-cycle windows (e.g., every 15 seconds) within the first 30 minutes after charging is stopped, and multiple second-cycle windows (e.g., every 10 minutes) after charging is stopped for more than 30 minutes, to implement differentiated calibration strategies at different stages.

[0058] Among them, battery voltage can be understood as the battery terminal voltage (VBTA) of the target battery, that is, the real-time potential difference between the positive and negative terminals of the target battery.

[0059] In an optional embodiment, connection information of the terminal device can be obtained, including target connection information for characterizing the terminal device's connection to the charger; in response to obtaining the target connection information and the terminal device being in external power supply mode, the battery voltage of the target battery within different target time windows can be obtained.

[0060] S120. For each target time window, determine the target open-circuit voltage of the target battery based on the battery voltage corresponding to the target time window.

[0061] The target open circuit voltage (OCV) can be understood as the voltage determined based on the battery voltage corresponding to the target time window, used to characterize the battery in a state of no load, no charging current flowing through, or a small current flowing through. The small current can refer to the battery current (IBAT) not exceeding a preset current threshold.

[0062] The preset current threshold can be set by technicians according to their needs or experience, or determined through extensive experiments; this application does not impose any limitations on this. For example, the preset current threshold can be 20mA. Understandably, the formula for calculating the target open-circuit voltage is: OCV = VBAT - IBAT * RBAT. Here, RBAT represents the total internal resistance of the battery. As can be seen from the above formula, if IBAT is sufficiently small, for example, 0, then the influence of the total internal resistance RBAT term can be eliminated, greatly reducing the difficulty in obtaining the target open-circuit voltage OCV and improving the accuracy of OCV acquisition.

[0063] In an optional embodiment, at least one candidate voltage can be selected from the battery voltages corresponding to the target time window, wherein the battery current at the sampling point corresponding to the candidate voltage is less than a preset current threshold; and the target open-circuit voltage of the target battery is determined based on the at least one candidate voltage.

[0064] Within the target time window, there can be at least one sampling point; correspondingly, the battery voltage and battery current corresponding to each sampling point can be obtained, thereby selecting the battery voltage with a battery current less than a preset current threshold as a candidate voltage.

[0065] Optionally, at least one candidate voltage can be averaged to obtain a voltage average; the voltage average can then be used as the target open-circuit voltage.

[0066] In another optional embodiment, the battery voltage corresponding to the target time window can be averaged to obtain the target open-circuit voltage of the target battery.

[0067] S130, Determine the calibration charge that matches the target open-circuit voltage.

[0068] The calibration charge can be understood as the charge value determined based on the target open-circuit voltage, used to characterize the current state of charge of the target battery, and can be expressed as a percentage.

[0069] In an optional embodiment, a calibration charge that matches the target open-circuit voltage can be determined based on a preset matching relationship.

[0070] Optionally, the preset matching relationship may include a target fitting function with the target open-circuit voltage as the independent variable and the calibrated charge as the dependent variable. The target fitting function is used to characterize the relationship between the target open-circuit voltage and the calibrated charge, i.e., the OCV-SOC (Open Circuit Voltage-State of Charge) relationship. Here, the state of charge (SOC) can be understood as a parameter used to quantify the remaining energy of the battery, and can be expressed as the ratio of the current usable capacity of the target battery to its nominal rated capacity. For example, the target fitting function can be obtained based on the sample open-circuit voltage and the corresponding sample calibrated charge, or derived through mathematical formulas; this application does not impose any limitations on this.

[0071] Optionally, the preset matching relationship may include a preset matching relationship table; correspondingly, the calibration charge that matches the target open-circuit voltage can be queried from the preset matching relationship table. The preset matching relationship table may include the calibration charge corresponding to different target open-circuit voltages, and the preset matching relationship table can be constructed based on the sample open-circuit voltage and the sample calibration charge.

[0072] In another alternative embodiment, the target open-circuit voltage can be input into the calibration charge determination model to obtain the calibration charge.

[0073] The calibration power determination model can be a traditional machine learning model or a neural network model. This application does not impose any restrictions on the specific model type of the calibration power determination model.

[0074] This application does not impose any limitations on the construction method of the calibration power determination model. Furthermore, when training the calibration power determination model, the sample open-circuit voltage can be input into the calibration power determination model, and the calibration power prediction result output by the sample open-circuit voltage and the calibration power label corresponding to the sample open-circuit voltage can be used to train the calibration power determination model, so as to improve the model accuracy of the calibration power determination model.

[0075] In another optional embodiment, correlation parameters can be obtained, including at least one of the target battery's charge-discharge cycle count, operating temperature, and discharge current reference. Accordingly, a calibration charge matching the target open-circuit voltage and the correlation parameters can be determined. For example, for different correlation parameters, a preset matching relationship between the target open-circuit voltage and the calibration charge under that correlation parameter can be pre-constructed; thereby obtaining the preset matching relationship corresponding to the correlation parameter, and determining the calibration charge corresponding to the target open-circuit voltage based on the preset matching relationship corresponding to the correlation parameter.

[0076] refer to Figure 1B The figure shows the relationship between the target open-circuit voltage and the depth of discharge. Figure 1B The horizontal axis represents the depth of discharge (DOD), i.e., the percentage of battery charge discharged; the horizontal axis represents the voltage, i.e., the target open-circuit voltage (OCV); Age represents the number of charge-discharge cycles; T represents the operating temperature; and I represents the discharge current reference. Figure 1B The example shows three curves under different associated parameters: the first curve corresponds to 100 charge-discharge cycles, an operating temperature of 20℃, and a discharge current reference of 40mA; the second curve corresponds to 200 charge-discharge cycles, an operating temperature of 30℃, and a discharge current reference of 30mA; and the third curve corresponds to 300 charge-discharge cycles, an operating temperature of 40℃, and a discharge current reference of 20mA.

[0077] Specifically, based on the correlation parameters determined at the current time period or current moment, the target curve corresponding to the corresponding correlation parameter can be located from the graph; the depth of discharge (DOD) corresponding to the target open circuit voltage can be read from the target curve; and the calibration charge can be determined based on the depth of discharge (DOD).

[0078] S140. To calibrate the battery level, update the displayed battery level on the terminal device.

[0079] In an optional embodiment, the calibration power level can be numerically determined, and if the numerical determination conditions are met, the calibration power level can be used to update the displayed power level of the terminal device.

[0080] For example, in the first charging stop scenario, the estimated actual charge level of the target battery under full charge can be determined; in response to the calibrated charge level being less than the estimated actual charge level, the charge level is calibrated, and the displayed charge level of the terminal device is smoothly updated. Optionally, in response to the calibrated charge level being greater than the estimated actual charge level, the charge level is calibrated, and the displayed charge level of the terminal device is smoothly updated.

[0081] The aforementioned power calibration method, in response to the terminal device being connected to a charger and the target battery being in a target off-charging state, acquires the battery voltage of the target battery within different target time windows. This allows for voltage sampling under ideal conditions where the battery has no or near-no-load current, fundamentally eliminating measurement errors caused by voltage drop due to internal resistance, and providing a data foundation for subsequent power display calibration. For each target time window, based on the corresponding battery voltage, the target open-circuit voltage of the target battery is determined, and a calibration power matching the target open-circuit voltage is determined. This maps the target open-circuit voltage to accurate calibration power in different target time windows, bypassing the estimation path of coulomb integration calculations and avoiding inaccurate power determination due to accumulated errors. By updating the displayed power of the terminal device with the calibration power, continuous updating of the displayed power is achieved, which helps improve the real-time accuracy of the power display.

[0082] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment in which the steps for obtaining the battery voltage are refined.

[0083] In an optional embodiment, the target charging stop state includes a first charging stop state, which is used to characterize that the target battery is fully charged and has not continued to charge; the target time window includes a first time window and / or a second time window, wherein the length of the first time window is less than the length of the second time window.

[0084] The lengths of the first and second time windows can be set by technicians according to their needs or experience, or determined through extensive experiments; this application does not impose any limitations on this. For example, the length of the first time window can be 15 seconds, and the length of the second time window can be 10 minutes.

[0085] Optionally, in response to the terminal device being connected to a charger and the target battery of the terminal device being in a first off-charging state, the battery voltage of the target battery under different first time windows within the target time period can be obtained; the target time period is associated with the first off-charging time corresponding to the first off-charging state. For example, the start time of the target time period can be the first off-charging time, or there can be a preset time gap between the start time of the target time period and the first off-charging time.

[0086] The length of the target time period can be set by technicians based on needs or experience, or determined through extensive experimentation; this application does not impose any limitations on this. (Reference) Figure 2A The diagram shown illustrates the open-circuit voltage stabilization process. Wherein, Figure 2AIn this context, "Voltage, V" represents the target open-circuit voltage in volts (V); "current, A" represents the battery current in amperes (A); and "time, hr" represents the time in hours. From... Figure 2A As indicated by the arrow, the target open-circuit voltage (OCV) stabilizes in approximately 30 minutes during the transition from a scenario with battery current (IBAT > 0 or IBAT < 0) to a scenario without battery current (IBAT = 0). Therefore, the target time period can be set to 30 minutes.

[0087] Optionally, in response to the terminal device being connected to a charger and the target battery of the terminal device being in a first off-charging state, the battery voltage of the target battery under different second time windows after the first moment can be obtained; the first moment is the end time of the target time period.

[0088] In an optional embodiment, an estimated actual charge level of the target battery under full charge can be determined; in response to a calibration charge level being lower than the estimated actual charge level, the charge level is calibrated, and the displayed charge level of the terminal device is updated. The estimated actual charge level can be determined using conventional charge estimation methods, such as coulomb counting, or based on a charge estimation model; this application does not impose any limitations on this method.

[0089] In an optional embodiment, the target battery is controlled to be in a charging state in response to the updated displayed battery level being less than a preset battery level threshold.

[0090] To facilitate understanding, the following example illustrates the battery calibration method for the first charging stop scenario described above. It should be noted that this should not be construed as a limitation on any specific calibration method.

[0091] refer to Figure 2B The diagram shows the full-charge calibration timeline under the first charging stop scenario. The full-charge calibration timeline, from beginning to end, includes: physical full charge; calibration to 100% capacity; after physical full charge, checking every 15 seconds whether the low-power OCV meets the calibration conditions, and performing calibration if the conditions are met; and after 30 minutes of physical full charge, calibrating the capacity every 10 minutes using the low-power OCV. The low-power OCV, or target open-circuit voltage, refers to the open-circuit voltage obtained by averaging candidate voltages. The calibration conditions may include that the calibrated capacity corresponding to the target open-circuit voltage is less than the estimated actual capacity. The calibration process may include the following stages:

[0092] Full charge stage: When the target battery is charged to full charge, that is, when the charging cutoff voltage and charging cutoff current are reached, the full charge level (100%) is reported to the UI (User Interface); in response to the terminal device being connected to the charger and the target battery of the terminal device being in the target off-charging state, the actual charge level of the target battery under full charge is estimated as SOC_FULL, and the displayed charge level is SOC=SOC_FULL.

[0093] Rapid calibration phase: During the target period after charging is stopped, such as within 30 minutes after charging is stopped, the battery voltage of the target battery is acquired for each time window with a length of 15 seconds. Candidate voltages are selected from the battery voltages, and the battery current at the sampling point corresponding to the candidate voltage is less than 20mA. The candidate voltages are averaged to obtain the target open-circuit voltage of the target battery. Based on a preset matching relationship, the calibration capacity OCV_SOC that matches the target open-circuit voltage OCV is determined. If OCV_SOC > SOC_FULL, no calibration is performed. If OCV_SOC is less than SOC_FULL, the displayed capacity SOC of the terminal device is smoothly updated with the calibration capacity OCV_SOC.

[0094] Stable calibration phase: After the first moment, for example, after charging is stopped for 30 minutes, for each second time window with a length of 10 minutes, the battery voltage of the target battery in the second time window is obtained; the target open circuit voltage is determined based on the battery voltage; the calibration capacity that matches the target open circuit voltage is determined based on the preset matching relationship; and the displayed capacity of the terminal device is updated with the calibration capacity.

[0095] refer to Figure 2C The diagram shows the calibration process in the first charging stop scenario. Figure 2C The horizontal axis represents time, and the vertical axis represents the displayed battery level. Figure 2C The middle section uses three arrows from left to right to indicate the physical full charge point, the rapid calibration phase, and the stable calibration phase, respectively; from... Figure 2C The image shows the changes in the displayed battery level during the rapid calibration and stable calibration phases. During the rapid calibration phase, the displayed battery level rapidly calibrates from its physical full charge position; during the stable calibration phase, the displayed battery level stabilizes and changes slowly.

[0096] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment, in which another step for obtaining battery voltage is provided.

[0097] In an optional embodiment, the target charging stop state includes a second charging stop state, which is used to characterize that the target battery is not fully charged and is not continuing to charge; the target time window includes a third time window.

[0098] Optionally, in response to the terminal device being connected to a charger and the target battery of the terminal device being in a second off-charging state, the battery voltage of the target battery under different third time windows after the second moment can be obtained; wherein, the second moment is later than the second off-charging moment corresponding to the second off-charging state, and there is a preset time interval between the second moment and the second off-charging moment.

[0099] Referring to the above, the settling time of the target open-circuit voltage (OCV) is approximately 30 minutes. Therefore, the preset time interval can be set to 30 minutes.

[0100] To facilitate understanding, the following example illustrates the power calibration method for the second charging stop scenario described above. It should be noted that this should not be construed as a limitation on any specific calibration method.

[0101] refer to Figure 3A The diagram shows the charging stop calibration timeline under the second charging stop scenario. The charging stop calibration timeline, from beginning to end, includes: calibration based on low-power OCV during the first 30 minutes of charging stop; calibration based on low-power OCV during the 40th minute of charging stop; and calibration based on low-power OCV during the Nth 10-minute period of charging stop. The calibration process may include the following steps:

[0102] After the second time point, for example, after charging is stopped for 30 minutes, for each third time window with a length of 10 minutes, the battery voltage of the target battery in the third time window is obtained; the target open circuit voltage is determined based on the battery voltage; the calibration power that matches the target open circuit voltage is determined based on the preset matching relationship; and the displayed power of the terminal device is updated with the calibration power.

[0103] refer to Figure 3B The diagram shows the calibration process in the second charging stop scenario. Figure 3B The horizontal axis represents time, and the vertical axis represents the displayed battery level. Two arrows from left to right indicate the moment charging stopped and the calibration triggered 30 minutes after charging stopped.

[0104] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment in which the above-mentioned power calibration method is described in detail.

[0105] refer to Figure 4A The diagram shown is a flowchart of a power calibration method in another embodiment, including the following steps:

[0106] S401A, in response to the terminal device being connected to a charger and the target battery of the terminal device being in a first off-charging state, the first battery voltage of the target battery under different first time windows during the target time period is obtained.

[0107] The target time period is associated with the first charging stop time corresponding to the first charging stop state.

[0108] S402A: For each first time window, select at least one first candidate voltage from the first battery voltages corresponding to the first time window; the battery current at the sampling point corresponding to the first candidate voltage is less than a preset current threshold.

[0109] S403A: Determine the first target open-circuit voltage of the target battery based on at least one first candidate voltage.

[0110] S403A, Determine the first calibration charge that matches the first target open-circuit voltage.

[0111] S405A: In response to the first calibrated power level being less than the estimated actual power level, the displayed power level of the terminal device is updated with the first calibrated power level.

[0112] S406A: Obtain the second battery voltage of the target battery under different second time windows after the first moment; the first moment is the end time of the target time period.

[0113] S407A. For each second time window, select at least one second candidate voltage from the second battery voltages corresponding to the second time window; the battery current at the sampling point corresponding to the second candidate voltage is less than a preset current threshold.

[0114] S408A: Determine the second target open-circuit voltage of the target battery based on at least one second candidate voltage.

[0115] S409A, Determine the second calibration charge that matches the second target open-circuit voltage.

[0116] S410A updates the displayed battery level of the terminal device using the second calibration battery level.

[0117] refer to Figure 4B The diagram shown is a flowchart of a power calibration method in another embodiment, including the following steps:

[0118] S401B, in response to the terminal device being connected to a charger and the target battery of the terminal device being in a second off-charging state, acquires the third battery voltage of the target battery under different third time windows after the second time.

[0119] The second time is later than the second charging stop time corresponding to the second charging stop state, and there is a preset time interval between the second time and the second charging stop time.

[0120] S402B: For each third time window, select at least one third candidate voltage from the third battery voltages corresponding to the third time window; the battery current at the sampling point corresponding to the third candidate voltage is less than a preset current threshold.

[0121] S403B: Determine the third target open-circuit voltage of the target battery based on at least one third candidate voltage.

[0122] S404B, Determine the third calibration charge that matches the third target open-circuit voltage.

[0123] S405B updates the displayed battery level of the terminal device using the third calibration battery level.

[0124] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0125] Based on the same inventive concept, this application also provides a power calibration device for implementing the power calibration method described above. This device can be applied to or integrated into a chip or chip module, for example. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more power calibration device embodiments provided below can be found in the limitations of the power calibration method described above, and will not be repeated here.

[0126] In one exemplary embodiment, such as Figure 5 As shown, a power calibration device is provided, including: an acquisition module 510, a first determination module 520, a second determination module 530, and an update module 540, wherein:

[0127] The acquisition module 510 is used to acquire the battery voltage of the target battery within different target time windows in response to the terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state.

[0128] The first determining module 520 is used to determine the target open-circuit voltage of the target battery for each target time window based on the battery voltage corresponding to the target time window.

[0129] The second determining module 530 is used to determine the calibration charge that matches the target open-circuit voltage;

[0130] Update module 540 is used to update the displayed battery level of the terminal device by calibrating the battery level.

[0131] In one embodiment, the first determining module 520 includes: a selection unit, configured to select at least one candidate voltage from the battery voltages corresponding to the target time window; the battery current at the sampling point corresponding to the candidate voltage is less than a preset current threshold; and a first determining unit, configured to determine the target open-circuit voltage of the target battery based on the at least one candidate voltage.

[0132] In one embodiment, the target charging off state includes a first charging off state, which characterizes the target battery as fully charged and not continuing to charge; the target time window includes a first time window and / or a second time window; accordingly, the acquisition module 510 includes at least one of the following: a first acquisition unit, configured to acquire the battery voltage of the target battery under different first time windows during the target time period in response to the terminal device being connected to a charger and the target battery of the terminal device being in the first charging off state; the target time period is associated with the first charging off moment corresponding to the first charging off state; a second acquisition unit, configured to acquire the battery voltage of the target battery under different second time windows after the first moment in response to the terminal device being connected to a charger and the target battery of the terminal device being in the first charging off state; the first moment is the end moment of the target time period; wherein, the first time window length of the first time window is less than the second time window length of the second time window.

[0133] In one embodiment, the update module 540 includes: a second determining unit, configured to determine an estimated actual charge level of the target battery under full charge; and an updating unit, configured to calibrate the charge level and smoothly update the displayed charge level of the terminal device in response to the calibrated charge level being less than the estimated actual charge level; or to calibrate the charge level and smoothly update the displayed charge level of the terminal device in response to the calibrated charge level being greater than the estimated actual charge level.

[0134] In one embodiment, the device further includes a control module, configured to control the target battery to be in a charging state in response to an updated displayed battery level being less than a preset battery level threshold.

[0135] In one embodiment, the target charging off state includes a second charging off state, which is used to characterize that the target battery is not fully charged and is not continuing to charge; the target time window includes a third time window; accordingly, the acquisition module 510 includes: a third acquisition unit, used to acquire the battery voltage of the target battery under different third time windows after the second moment in response to the terminal device being connected to the charger and the target battery of the terminal device being in the second charging off state; wherein, the second moment is later than the second charging off moment corresponding to the second charging off state, and there is a preset time interval between the second moment and the second charging off moment.

[0136] Regarding the modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or a combination of both. For example, for various devices and products applied to or integrated into a chip, all of their modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on a processor integrated within the chip, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits; for various devices and products applied to or integrated into a chip module, all of their modules / units can be implemented using hardware methods such as circuits, and different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units can be implemented using hardware methods such as circuits. The components can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, each of its components / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or in different components within the terminal. Alternatively, at least some modules / units can be implemented using software programs that run on the processor integrated within the terminal, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits.

[0137] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a power calibration method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0138] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0139] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0140] Based on the same inventive concept, this application also provides a chip, including a processor coupled to a memory, for executing a computer program or instructions stored in the memory, and implementing the steps in the above method embodiments when the processor executes the computer program or instructions.

[0141] It is understood that the chip involved in the embodiments of this application may be a field-programmable gate array (FPGA), may be an application-specific integrated circuit (ASIC), may be a system on chip (SoC), may be a central processor unit (CPU), may be a network processor (NP), may be a digital signal processor (DSP), may be a microcontroller unit (MCU), may be a programmable logic device (PLD), or other integrated chips, etc.

[0142] Based on the same inventive concept, this application also provides a chip module, such as... Figure 7 As shown, the chip module includes a communication module, a power module, a storage module, and a chip. Among them:

[0143] The power module is used to provide power to the chip module; the storage module is used to store data and instructions; the communication module is used for internal communication within the chip module, or for communication between the chip module and external devices; this chip corresponds to the chip in the above chip embodiment.

[0144] The implementation method of this chip module can be found in the relevant content of the above chip embodiment, and will not be repeated here.

[0145] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

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

[0147] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0148] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0149] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A power calibration method, characterized in that, The method includes: In response to a terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state, the battery voltage of the target battery within different target time windows is obtained; For each target time window, the target open-circuit voltage of the target battery is determined based on the battery voltage corresponding to the target time window. Determine the calibration charge that matches the target open-circuit voltage; The displayed battery level of the terminal device is updated based on the calibrated battery level.

2. The method according to claim 1, characterized in that, The step of determining the target open-circuit voltage of the target battery based on the battery voltage corresponding to the target time window includes: At least one candidate voltage is selected from the battery voltages corresponding to the target time window; the battery current at the sampling point corresponding to the candidate voltage is less than a preset current threshold. The target open-circuit voltage of the target battery is determined based on the at least one candidate voltage.

3. The method according to claim 1 or 2, characterized in that, The target charging off state includes a first charging off state, which characterizes that the target battery is fully charged and not being charged; the target time window includes a first time window and / or a second time window; correspondingly, in response to the terminal device being connected to a charger and the target battery of the terminal device being in the target charging off state, obtaining the battery voltage of the target battery within different target time windows includes at least one of the following: In response to a terminal device being connected to a charger and the target battery of the terminal device being in a first off-charging state, the battery voltage of the target battery under different first time windows during a target time period is obtained; the target time period is associated with the first off-charging time corresponding to the first off-charging state. In response to the terminal device being connected to a charger and the target battery of the terminal device being in a first off-charging state, the battery voltage of the target battery is obtained under different second time windows after the first moment; the first moment is the end time of the target time period; Wherein, the first time window length of the first time window is less than the second time window length of the second time window.

4. The method according to claim 3, characterized in that, Updating the displayed battery level of the terminal device with the calibrated battery level includes: Determine the estimated actual charge level of the target battery under full charge. In response to the calibrated battery level being less than the estimated actual battery level, the displayed battery level of the terminal device is smoothly updated using the calibrated battery level; or... In response to the calibrated power level being greater than the estimated actual power level, the displayed power level of the terminal device is smoothly updated using the calibrated power level.

5. The method according to claim 3, characterized in that, The method further includes: In response to the updated displayed battery level being less than a preset battery level threshold, the target battery is controlled to enter a charging state.

6. The method according to claim 1, characterized in that, The target charging off state includes a second charging off state, which indicates that the target battery is not fully charged and is not continuing to charge; the target time window includes a third time window; correspondingly, in response to the terminal device being connected to a charger and the target battery of the terminal device being in the target charging off state, obtaining the battery voltage of the target battery within different target time windows includes: In response to the terminal device being connected to a charger and the target battery of the terminal device being in a second off-charging state, the battery voltage of the target battery is obtained under different third time windows after the second time moment; Wherein, the second time is later than the second charging stop time corresponding to the second charging stop state, and there is a preset time interval between the second time and the second charging stop time.

7. A power calibration device, characterized in that, The device includes: The acquisition module is used to acquire the battery voltage of the target battery within different target time windows in response to the terminal device being connected to a charger and the target battery of the terminal device being in a target off-charging state; The first determining module is used to determine the target open-circuit voltage of the target battery for each target time window based on the battery voltage corresponding to the target time window. The second determining module is used to determine the calibration charge that matches the target open-circuit voltage; An update module is used to update the displayed battery level of the terminal device based on the calibrated battery level.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A chip, characterized in that, The device includes a processor and a communication interface, wherein the processor is configured to cause the chip to perform the steps of the method described in any one of claims 1 to 6.

10. A chip module, characterized in that, This includes communication modules, power modules, storage modules, and chips, among which: The power module is used to provide power to the chip module; The storage module is used to store data and instructions; The communication module is used for internal communication within the chip module, or for communication between the chip module and external devices. The chip is used to perform the steps of the method according to any one of claims 1 to 6.