A method, system, and storage medium for calibrating the terminal voltage and charge of a terminal device.
By determining the battery's charge/discharge state and power consumption in the terminal device, calibrating the voltage based on the terminal voltage, and combining the voltage-state-of-charge mapping table, the cumulative error problem of lithium battery power display is solved, achieving accuracy and reliability of power display.
Patent Information
- Application Number
- CN202511311776.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-15
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2045-09-15
AI Technical Summary
In existing technologies, lithium battery power display solutions suffer from cumulative errors, which increase especially as the battery ages. Furthermore, it is difficult to obtain the OCV curve in real time, resulting in inaccurate power display accuracy.
By determining the charge/discharge state and duration of the terminal device's battery, the current power consumption is calculated. When the power consumption is less than the preset power consumption, the calibration voltage is determined based on the terminal voltage and voltage accuracy. Combined with the voltage-state-of-charge mapping table, the remaining battery capacity is accurately calculated.
It improves the accuracy of battery level display, avoiding user inconvenience and hardware concerns caused by inaccurate battery level readings, and ensuring that the battery functions normally as expected.
Smart Images

Figure CN120802091B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery management technology, and more specifically to a terminal voltage and charge calibration method, system, and storage medium for a terminal device in the field of battery management technology. Background Technology
[0002] In related technologies, one important technical route for lithium battery power estimation is the power display scheme based on coulomb counters and open circuit voltage (OCV) curves. The problem with coulomb counters is the cumulative error; the error accumulates over long periods of charging and discharging, leading to a larger overall error. The problem with OCV curves is that while the OCV curve is accurate, obtaining the OCV in real time is very difficult. Calculating OCV using Ohm's law relies on a battery internal resistance model, which is extremely complex. Therefore, existing power estimation schemes based on coulomb counters and OCV cannot guarantee 100% accuracy, especially as the battery ages, the error in power accuracy increases. Summary of the Invention
[0003] The purpose of this invention is to provide a method, system, and storage medium for calibrating the terminal voltage and charge of a terminal device. The specific technical solution adopted is as follows:
[0004] In a first aspect, embodiments of the present invention provide a method for calibrating the terminal voltage and power of a terminal device, the method comprising:
[0005] Determine the charge / discharge status of the terminal device's battery;
[0006] Based on the charge / discharge state, determine the duration for which the battery remains in the charge / discharge state;
[0007] If the duration meets the preset duration, determine the current power consumption of the battery;
[0008] If the current power consumption is less than the preset power consumption, the calibration voltage of the battery is determined based on the battery's terminal voltage and the corresponding voltage accuracy.
[0009] Determine the state of charge (SOC) of the battery that matches the calibration voltage;
[0010] Based on the voltage state of charge and the charge / discharge state of the battery, the target remaining battery capacity is determined.
[0011] Secondly, embodiments of the present invention provide a terminal voltage and power calibration system for a terminal device, the system comprising:
[0012] The first determining module is used to determine the charging and discharging state of the battery of the terminal device;
[0013] The second determining module is used to determine the duration of the battery being in the charging and discharging state based on the charging and discharging state.
[0014] The third determining module is used to determine the current power consumption of the battery when the duration meets the preset duration.
[0015] The fourth determining module is used to determine the calibration voltage of the battery based on the battery's terminal voltage and corresponding voltage accuracy if the current power consumption is less than the preset power consumption.
[0016] The fifth determining module is used to determine the voltage state of charge of the battery that matches the calibration voltage;
[0017] The sixth determining module is used to determine the target remaining battery capacity of the battery based on the voltage state of charge and the charge / discharge state of the battery.
[0018] Thirdly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the method described in the first aspect.
[0019] Fourthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the method described in the first aspect.
[0020] This invention offers the following advantages: After determining the charging / discharging state of the terminal device's battery, based on this state, it is determined whether the duration of the battery's charging / discharging state has reached a preset duration. If the duration meets the preset duration, it is further determined whether the battery's current power consumption is less than a preset power consumption. Thus, in cases with a longer duration, further determining whether the battery's current power consumption is less than the preset power consumption allows for a more accurate calculation of the remaining battery capacity. If the current power consumption is less than the preset power consumption, based on the battery's terminal voltage and corresponding voltage accuracy, the battery's calibration voltage is determined, and the voltage state of charge (SBC) of the battery matching the calibration voltage is determined. Thus, for low power consumption scenarios, the battery's calibration voltage can be quickly calculated using the battery's terminal voltage and voltage accuracy. Then, by combining the SBC of the battery matching the calibration voltage with the battery's charging / discharging state, the target remaining battery capacity can be calculated more accurately, thereby improving the accuracy of battery power display. Attached Figure Description
[0021] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a schematic diagram of the OCV curve provided by the relevant technology;
[0023] Figure 2 This is another schematic diagram of the OCV curve provided by related technologies;
[0024] Figure 3 This is a schematic diagram illustrating the implementation process of a terminal voltage and power calibration method for a terminal device provided in an embodiment of the present invention;
[0025] Figure 4 This is a schematic diagram of another implementation process of a terminal device voltage and power calibration method provided in an embodiment of the present invention;
[0026] Figure 5 This is a schematic diagram illustrating another implementation of a terminal voltage and power calibration method for a terminal device provided in an embodiment of the present invention.
[0027] Figure 6 This is a schematic diagram illustrating the calibration effect of a terminal voltage and power calibration method for a terminal device provided in an embodiment of the present invention;
[0028] Figure 7 This is a schematic diagram of the composition structure of a terminal voltage and power calibration system for a terminal device provided in an embodiment of the present invention;
[0029] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0030] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of a terminal device voltage and power calibration method proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments may be combined from any suitable form.
[0031] In the description of the embodiments of the present invention, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" means two or more.
[0032] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0033] 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 invention pertains.
[0034] The accuracy of battery level displays is always a major concern for end users, especially mobile phone users. Inaccurate battery level displays prevent users from accurately estimating how long the phone will last, causing it to run out of power and shut down unexpectedly. Inaccurate battery level displays can also cause the battery's shutdown voltage to drop, potentially leading the system to operate for extended periods in unexpectedly low-performance or unsafe low-voltage ranges. Furthermore, inaccurate battery level displays can cause the phone to prematurely report a 0% battery level and shut down, further reducing user battery life. All of these issues can cause unnecessary inconvenience for users, and may even lead them to believe there is a hardware problem with the phone, resulting in customer complaints or, in more serious cases, refunds.
[0035] Mobile terminals are primarily powered by lithium batteries, and the open-circuit voltage-state-of-charge (OCV-SOC) curve of lithium batteries at different temperatures is currently one of the most accurate and reliable basic methods for estimating lithium battery capacity. For example... Figure 1 As shown, the three OCV curves under different parameters, in Figure 1 The horizontal axis DoD represents the depth of discharge, and the vertical axis Voltage represents the voltage. As long as the accurate OCV is found during the operation of the mobile phone system, the accurate battery value can be obtained by looking up a table using the pre-calibrated OCV-SOC battery curves at different temperatures, thus ensuring the accuracy of the phone's battery display.
[0036] Under load, the battery terminal voltage (VBAT) is greater than OCV during charging, and less than OCV during discharging. The relationship between the OCV and VBAT curves during discharging is as follows: Figure 2As shown, the VBAT curve is affected by the load, resulting in a voltage drop (IR drop), and VBAT is generally less than OCV. Therefore, to ensure that the collected VBAT is less than OCV during discharge, VBAT can be used as OCV to look up the OCV table, obtain the charge level, and calibrate that the current charge level is not less than the charge level represented by VBAT at this time. Similarly, during charging, the collected VBAT must be greater than OCV, meaning VBAT can be used as OCV to look up the OCV table, obtain the charge level, and calibrate that the current charge level is not greater than the charge level represented by VBAT at this time. There is an accuracy deviation in the terminal voltage acquisition; this accuracy deviation only needs to be taken into account.
[0037] The specific scheme of the terminal voltage and power calibration method for a terminal device provided by the present invention will be described in detail below with reference to the accompanying drawings. Please refer to... Figure 3 The diagram illustrates a flowchart of a terminal device voltage and power calibration method according to an embodiment of the present invention. The method includes:
[0038] 301, Determine the charge / discharge status of the terminal device's battery.
[0039] Here, the terminal device can be any type of device, such as a mobile phone or tablet. The charging and discharging state of the terminal device's battery includes: charging state and discharging state.
[0040] 302. Based on the charge / discharge state, determine the duration for which the battery is in the charge / discharge state.
[0041] Here, after determining the battery's charge / discharge state, it is further determined whether the duration of the battery's charge / discharge state has reached the preset duration.
[0042] In some possible implementations, if the charge / discharge state is a discharge state, the duration of the battery being in the discharge state is determined; for example, if the battery is in a discharge state, the duration of the battery continuously being in the discharge state is further determined, i.e., the duration. If the charge / discharge state is a charging state, the duration of the battery being in the charging state is determined. For example, if the battery is in a charging state, the duration of the battery continuously being in the charging state is further determined, i.e., the duration.
[0043] 303. If the duration meets the preset duration, determine the current power consumption of the battery.
[0044] Here, the preset duration is a customizable value. Taking a preset duration of 30 minutes as an example: if the charging / discharging state is a discharging state, it is determined whether the continuous duration of the discharging state reaches 30 minutes. If it reaches 30 minutes, it is determined that the duration meets the preset duration, and the current power consumption of the battery is further determined. If the duration reaches 30 minutes, the battery current is determined, and the power consumption is calculated using this current.
[0045] In some possible implementations, step 303 above can be achieved by... Figure 4 The steps shown are to be implemented as follows:
[0046] 401. If the charging / discharging state is a discharging state, determine whether the duration for which the battery is continuously in the discharging state reaches the preset duration.
[0047] 402. If the duration of the battery being continuously in the discharge state reaches the preset duration, the discharge current of the battery is determined.
[0048] Here, if the charge / discharge state is a discharge state, and the continuous discharge state lasts for half an hour, then the discharge current of the battery is further determined. If the charge / discharge state is a charging state, and the continuous charging state lasts for half an hour, then the charging current of the battery is further determined.
[0049] 403. Based on the discharge current, determine the current power consumption.
[0050] Here, after calculating the discharge current, the current power consumption under that discharge current is further calculated to determine whether it is a small current discharge, and thus the current power consumption can be accurately calculated.
[0051] 304. If the current power consumption is less than the preset power consumption, determine the calibration voltage of the battery based on the battery's terminal voltage and the corresponding voltage accuracy.
[0052] For example, during discharge, it checks if the discharge current is less than 0.5 amps (A). If the discharge current is less than 0.5A, it determines that the current power consumption is less than the preset power consumption. Then, it obtains the battery's terminal voltage (VBAT) and the corresponding voltage accuracy (Vthd). Using the battery's terminal voltage and corresponding voltage accuracy, it calculates the battery's calibration voltage (Vadj).
[0053] In some possible implementations, if the charge / discharge state is a discharge state and the current power consumption is less than a preset power consumption, the difference between the battery terminal voltage and the corresponding voltage accuracy is determined to determine the battery calibration voltage.
[0054] For example, under low-current discharge conditions, VBAT – Vthd is calculated to obtain the battery's calibration voltage.
[0055] If the charge / discharge state is a charging state and the current power consumption is less than the preset power consumption, the summation result between the battery terminal voltage and the corresponding voltage accuracy is determined to determine the battery calibration voltage.
[0056] For example, under low-current charging conditions, VBAT + Vthd can be calculated to obtain the battery's calibration voltage. Thus, by using the battery's terminal voltage and its corresponding voltage accuracy, the battery's calibration voltage can be accurately calculated.
[0057] 305, determine the voltage state of charge of the battery that matches the calibration voltage.
[0058] Here, a lookup operation is performed in a preset mapping table according to the calibration voltage to obtain the voltage state of charge (SOC) of the battery matched to that calibration voltage. This preset mapping table can characterize the mapping relationship between OCV and SOC.
[0059] In some possible implementations, step 305 above can be achieved through the following steps 351 and 352 (not shown in the figures):
[0060] 351. Obtain a preset mapping table that represents the correspondence between the remaining battery capacity and the open-circuit voltage.
[0061] Here, the preset mapping table can be constructed using the remaining battery power and the corresponding open-circuit voltage, which can reflect the correspondence between the remaining battery capacity and the open-circuit voltage.
[0062] 352. Based on the preset mapping table and the calibration voltage, determine the voltage state of charge of the battery.
[0063] Here, after creating a preset mapping table, a lookup operation is performed in the preset mapping table according to the calibration voltage to obtain the battery's voltage state of charge.
[0064] In some possible implementations, the calibration voltage is determined as the open-circuit voltage of the battery, and a voltage state of charge that matches the open-circuit voltage is determined in the preset mapping table.
[0065] Here, the calibration voltage Vadj is used as the open-circuit voltage OCV, and a preset mapping table is looked up to obtain the voltage state of charge VSOC.
[0066] 306. Based on the voltage state of charge and the charge / discharge state of the battery, determine the target remaining battery capacity.
[0067] Here, the battery's charge and discharge states are calibrated using voltage state of charge to obtain the target remaining battery capacity.
[0068] In some possible implementations, step 306 above can be achieved through the following steps 361 to 363 (not shown in the figures):
[0069] 361. Based on the power algorithm, determine the initial remaining battery capacity of the battery.
[0070] Here, the remaining battery capacity is calculated using a power algorithm to obtain the initial remaining battery capacity, which is the remaining battery capacity (RM_SOC) calculated by the power algorithm.
[0071] 362. Determine the calibration method based on the charge / discharge state of the battery.
[0072] Here, if the battery is in a charging state, the calibration method is to determine whether the voltage state of charge is less than the initial remaining battery capacity; if the battery is in a discharging state, the calibration method is to determine whether the voltage state of charge is greater than the initial remaining battery capacity.
[0073] 363. Using the aforementioned calibration method, the remaining capacity of the initial battery is calibrated based on the voltage state of charge to obtain the remaining capacity of the target battery.
[0074] Here, if the battery is in a charging state, it is determined whether the voltage state of charge is less than the initial remaining battery capacity. If the voltage state of charge is less than the initial remaining battery capacity, then the voltage state of charge is assigned to the initial remaining battery capacity, thereby calibrating the voltage state of charge to the initial remaining battery capacity and obtaining the target remaining battery capacity.
[0075] If the battery is in a discharging state, determine whether the voltage state of charge is greater than the initial remaining battery capacity. If the voltage state of charge is greater than the initial remaining battery capacity, then assign the voltage state of charge to the initial remaining battery capacity to achieve voltage state of charge calibration of the initial remaining battery capacity, and obtain the target remaining battery capacity.
[0076] In some embodiments, if the current power consumption is greater than a preset power consumption, the battery terminal voltage is obtained; the terminal voltage is then determined as the battery calibration voltage. That is, if the current scenario is a high current scenario, the battery terminal voltage VBAT is used as the calibration voltage Vadj.
[0077] In this embodiment of the invention, after determining the charging / discharging state of the terminal device's battery, based on the charging / discharging state, it is determined whether the duration of the battery being in the charging / discharging state reaches a preset duration. If the duration meets the preset duration, it is further determined whether the current power consumption of the battery is less than a preset power consumption. Thus, when the duration is relatively long, further determining whether the current power consumption of the battery is less than the preset power consumption allows for a more accurate calculation of the remaining battery capacity. If the current power consumption is less than the preset power consumption, based on the battery's terminal voltage and corresponding voltage accuracy, the battery's calibration voltage is determined, and the voltage state of charge (SBC) of the battery matching the calibration voltage is determined. Thus, for low power consumption scenarios, the battery's calibration voltage can be quickly calculated using the battery's terminal voltage and voltage accuracy. Then, by combining the voltage SBC of the battery matching the calibration voltage with the battery's charging / discharging state, the target remaining battery capacity can be calculated more accurately, thereby improving the accuracy of battery power display.
[0078] In some embodiments, the terminal voltage and power calibration method for a terminal device provided in this application can be achieved through... Figure 5 The process shown is implemented as follows:
[0079] First, determine the charging / discharging status.
[0080] Here, in the discharge scenario, it is determined whether the system is in a discharge state, and discharge calibration is only performed when the system is in a discharge state.
[0081] Secondly, if it is in a discharge state, determine whether it has been continuously discharging for 30 minutes;
[0082] If the discharge is not continuous for 30 minutes, no calibration is performed.
[0083] Next, if the discharge continues for 30 minutes, obtain the terminal voltage VBAT.
[0084] Next, determine whether it is a low-power discharge.
[0085] If it is not a low-power discharge, determine the calibration voltage Vadj = VBAT. If it is a low-power discharge, determine the calibration voltage Vadj = VBAT - Vthd.
[0086] Here, it is determined whether the continuous discharge exceeds a certain time (e.g., 30 minutes). After a stable discharge period, the VBAT obtained under any discharge current is less than OCV. The current battery terminal voltage VBAT is obtained, and it is determined whether it is a small current discharge. The voltage impact of IBAR*RBAT (i.e., the product of battery internal resistance and current) is very small during small current discharge, and may be less than the voltage accuracy when VBAT is acquired. Therefore, in the small current discharge scenario, the calibration voltage Vadj = VBAT – Vthd, where Vthd is the VBAT acquisition accuracy voltage.
[0087] Next, use Vadj to look up the OCV-SOC table (i.e., the preset mapping table) to obtain the VSOC (i.e., the battery's voltage state of charge).
[0088] Here, Vadj is used as OCV to look up the OCV-SOC table to obtain the battery capacity and then obtain the VSOC. At this time, the VSOC will definitely be less than the actual battery capacity.
[0089] Finally, power calibration is performed. If the remaining battery capacity (RM_SOC) calculated by the power algorithm is less than the battery's voltage state of charge (VSOC), then RM_SOC is calibrated and RM_SOC = VSOC.
[0090] In a charging scenario, first, it is determined whether the device is in a charging state; charging calibration is only performed if the device is in a charging state.
[0091] Secondly, if it is in a charging state, determine whether it has been charging continuously for 30 minutes;
[0092] To determine if continuous charging has exceeded a certain time (e.g., 30 minutes), after a period of stable charging, VBAT must be greater than OCV under any charging current. If continuous charging for less than 30 minutes is not performed, no calibration is required.
[0093] Next, if charging is performed continuously for 30 minutes, obtain the terminal voltage VBAT.
[0094] Next, determine whether it is low-power charging.
[0095] To determine whether it's low-current charging, the voltage impact of IBAR*RBAT is minimal, potentially less than the voltage accuracy during VBAT acquisition. Therefore, in low-current charging scenarios, the calibration voltage Vadj = VBAT + Vthd, where Vthd is the VBAT acquisition accuracy voltage. In high-current charging scenarios, Vadj = VBAT.
[0096] Next, use Vadj to look up the OCV-SOC table (i.e., the preset mapping table) to obtain the VSOC (i.e., the battery's voltage state of charge).
[0097] Here, Vadj is used as OCV to look up the OCV-SOC table and obtain VSOC. At this time, VSOC must be greater than the actual battery capacity.
[0098] Finally, power calibration is performed. If the remaining battery capacity (RM_SOC) calculated by the power algorithm is greater than the battery's voltage state of charge (VSOC), then RM_SOC is calibrated and RM_SOC = VSOC.
[0099] In a specific example, taking discharge calibration as an example, the effect diagram is as follows: Figure 6As shown, the horizontal axis represents time, the left vertical axis represents battery percentage, the right vertical axis represents voltage (V), BATT_SOC is the battery percentage recorded by the fuel gauge, CALI_SOC is the calibrated battery percentage, MSOC is the final battery percentage output by the fuel gauge, IBAT_AVG is the real-time discharge current, SMSC is the smoothed battery percentage reported to the upper layer, and the battery percentage seen by the UISOC user. Figure 6 It can be seen that after artificially introducing a 20% error, the battery level begins to calibrate after continuous discharge for more than 30 minutes (the effect of the first calibration trigger is as follows). Figure 6 The calibration results (as shown in Figure 61) can quickly calibrate the power to a small error range. As the current gradually decreases, a second calibration is triggered (the calibration results of the second triggered calibration are shown in Figure 61). Figure 6 As shown in calibration result 62), the power was calibrated to a very accurate value.
[0100] This invention provides a terminal voltage and power calibration system for a terminal device. Please refer to [link / reference]. Figure 7 This illustration shows a schematic diagram of the composition structure of a terminal voltage and power calibration system for a terminal device according to an embodiment of the present invention. The system 700 includes:
[0101] The first determining module 701 is used to determine the charging and discharging state of the battery of the terminal device;
[0102] The second determining module 702 is used to determine the duration of the battery being in the charging and discharging state based on the charging and discharging state.
[0103] The third determining module 703 is used to determine the current power consumption of the battery when the duration meets the preset duration.
[0104] The fourth determining module 704 is used to determine the calibration voltage of the battery based on the battery terminal voltage and the corresponding voltage accuracy if the current power consumption is less than the preset power consumption.
[0105] The fifth determining module 705 is used to determine the voltage state of charge of the battery that matches the calibration voltage;
[0106] The sixth determining module 706 is used to determine the target remaining battery capacity of the battery based on the voltage state of charge and the charge / discharge state of the battery.
[0107] In some possible implementations, the second determining module 702 is further configured to determine the duration of the battery being in the discharge state if the charge / discharge state is a discharge state; and to determine the duration of the battery being in the charging state if the charge / discharge state is a charging state.
[0108] In some possible implementations, the third determining module 703 is further configured to: if the charging / discharging state is a discharging state, determine whether the duration for which the battery has been continuously in the discharging state has reached the preset duration; if the duration for which the battery has been continuously in the discharging state has reached the preset duration, determine the discharge current of the battery; and determine the current power consumption based on the discharge current.
[0109] In some possible implementations, the third determining module 703 is further configured to: if the charge / discharge state is a discharge state and the current power consumption is less than a preset power consumption, determine the difference between the battery terminal voltage and the corresponding voltage accuracy to determine the battery calibration voltage; if the charge / discharge state is a charging state and the current power consumption is less than the preset power consumption, determine the summation result between the battery terminal voltage and the corresponding voltage accuracy to determine the battery calibration voltage.
[0110] In some possible implementations, the fifth determining module 705 is further configured to obtain a preset mapping table characterizing the correspondence between the remaining battery capacity and the open-circuit voltage; and to determine the voltage state of charge of the battery based on the preset mapping table and the calibration voltage.
[0111] In some possible implementations, the fifth determining module 705 is further configured to determine the calibration voltage as the open-circuit voltage of the battery; and to determine a voltage state of charge that matches the open-circuit voltage in the preset mapping table.
[0112] In some possible implementations, the fourth determining module 704 is further configured to obtain the terminal voltage of the battery if the current power consumption is greater than the preset power consumption; and determine the terminal voltage as the calibration voltage of the battery.
[0113] In some possible implementations, the sixth determining module 706 is further configured to determine the initial remaining battery capacity of the battery based on a power algorithm; determine a calibration method based on the charge / discharge state of the battery; and calibrate the initial remaining battery capacity based on the voltage state of charge using the calibration method to obtain the target remaining battery capacity.
[0114] Optionally, the transmission medium can be a wired link (e.g., but not limited to, coaxial cable, optical fiber, and Digital Subscriber Line (DSL)) or a wireless link (e.g., but not limited to, Wireless Fidelity (WIFI), Bluetooth, and mobile device networks). It should be noted that the system provided in the above embodiments is only an example illustrating the division of the functional modules described above. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the method embodiments provided in the above embodiments belong to the same concept, and their specific implementation processes are detailed in the method embodiments, and will not be repeated here.
[0115] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. For example, as shown... Figure 8 As shown, the computer device 800 includes: a memory 801, a processor 802, and a computer program 803 stored in the memory 801 and running on the processor 802, wherein when the processor 802 executes the computer program 803, the computer device can perform the terminal voltage and power calibration method of any of the terminal devices described above.
[0116] Furthermore, this embodiment of the invention also protects a system that may include a memory and a processor. The memory stores executable program code, and the processor is used to call and execute the executable program code to perform a terminal voltage and power calibration method for a terminal device provided by this embodiment of the invention. This embodiment can divide the system into functional modules based on the above method example. For example, each module can correspond to a specific function, or two or more functions can be integrated into a single processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents a logical functional division; other division methods may exist in actual implementation. It should also be noted that all relevant content of each step involved in the above method embodiment can be referenced to the functional description of the corresponding functional module, and will not be repeated here.
[0117] It should be understood that the system provided in this embodiment is used to execute the terminal voltage and power calibration method of a terminal device described above, and therefore can achieve the same effect as the above implementation method. When using integrated units, the system may include a processing module and a storage module. When the system is applied to a device, the processing module can be used to control and manage the device's operations. The storage module can be used to support the device in executing relevant program code, etc. The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of Digital Signal Processing (DSP) and a microprocessor, etc., and the storage module may be a memory.
[0118] Furthermore, the system provided in the embodiments of the present invention may specifically be a chip, component, or module. The chip may include a connected processor and a memory. The memory stores instructions, and when the processor calls and executes the instructions, the chip can perform a terminal voltage and power calibration method for a terminal device provided in the above embodiments. This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the aforementioned method steps to implement the terminal voltage and power calibration method for a terminal device provided in the above embodiments.
[0119] This embodiment also provides a computer program product. When the computer program product is run on a computer, it causes the computer to perform the aforementioned related steps to implement the terminal voltage and power calibration method for a terminal device provided in the above embodiment. The system, computer-readable storage medium, computer program product, or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they achieve can be referred to in the beneficial effects of the corresponding methods provided above, and will not be repeated here. Through the description of the above embodiments, those skilled in the art can understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by this invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of modules or units is merely a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, system or unit, and can be electrical, mechanical or other forms.
[0120] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multiple task processing and parallel processing are possible or may be advantageous. The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. The above content is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for calibrating the terminal voltage and charge of a terminal device, characterized in that, The terminal voltage and power calibration method for the terminal device includes: Determine the charge / discharge status of the terminal device's battery; Based on the charge / discharge state, determine the duration for which the battery remains in the charge / discharge state; If the duration meets the preset duration, determine the current power consumption of the battery; If the charge / discharge state is a discharge state and the current power consumption is less than the preset power consumption, determine the difference between the battery terminal voltage and the corresponding voltage accuracy to determine the battery calibration voltage; If the charge / discharge state is a charging state and the current power consumption is less than the preset power consumption, the summation result between the battery terminal voltage and the corresponding voltage accuracy is determined to determine the battery calibration voltage; Obtain a preset mapping table representing the correspondence between the remaining battery capacity and the open-circuit voltage; Based on the preset mapping table and the calibration voltage, the voltage state of charge of the battery is determined; Based on the power calculation algorithm, the initial remaining battery capacity is determined. The calibration method is determined based on the charge / discharge state of the battery; Using the aforementioned calibration method, the initial remaining battery capacity is calibrated based on the voltage state of charge to obtain the target remaining battery capacity.
2. The terminal voltage and power calibration method for a terminal device according to claim 1, characterized in that, Determining the duration of the battery being in the charge / discharge state based on the charge / discharge state includes: If the charge / discharge state is a discharge state, determine the duration for which the battery is in the discharge state; If the charge / discharge state is a charging state, determine the duration for which the battery is in the charging state.
3. The terminal voltage and power calibration method for a terminal device according to claim 1, characterized in that, If the duration meets a preset duration, determine the current power consumption of the battery, including: If the charge / discharge state is a discharge state, determine whether the duration for which the battery is continuously in the discharge state reaches the preset duration; If the duration of the battery being continuously in the discharge state reaches the preset duration, the discharge current of the battery is determined; The current power consumption is determined based on the discharge current.
4. The terminal voltage and power calibration method for a terminal device according to claim 1, characterized in that, Determining the voltage state of charge of the battery based on the preset mapping table and the calibration voltage includes: The calibration voltage is determined as the open-circuit voltage of the battery; In the preset mapping table, the voltage state of charge that matches the open circuit voltage is determined.
5. The terminal voltage and power calibration method for a terminal device according to claim 1, characterized in that, The method further includes: If the current power consumption is greater than the preset power consumption, obtain the terminal voltage of the battery; The terminal voltage is determined as the calibration voltage of the battery.
6. A terminal voltage and power calibration system for a terminal device, characterized in that, The terminal voltage and power calibration system of the terminal device includes: The first determining module is used to determine the charging and discharging state of the battery of the terminal device; The second determining module is used to determine the duration of the battery being in the charging and discharging state based on the charging and discharging state. The third determining module is used to determine the current power consumption of the battery when the duration meets the preset duration. The fourth determining module is used to determine the battery's calibration voltage by determining the difference between the battery's terminal voltage and the corresponding voltage accuracy if the charge / discharge state is a discharge state and the current power consumption is less than a preset power consumption; and to determine the battery's calibration voltage by determining the summation result between the battery's terminal voltage and the corresponding voltage accuracy if the charge / discharge state is a charging state and the current power consumption is less than a preset power consumption. The fifth determining module is used to obtain a preset mapping table characterizing the correspondence between the remaining capacity of the battery and the open-circuit voltage; and to determine the voltage state of charge of the battery based on the preset mapping table and the calibration voltage. The sixth determining module is used to determine the initial remaining battery capacity of the battery based on the power algorithm; Based on the charge / discharge state of the battery, a calibration method is determined; using the calibration method, the initial remaining capacity of the battery is calibrated based on the voltage state of charge to obtain the target remaining capacity of the battery.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system for estimating remaining capacity of battery
CN116338472A
Self-adaptive calibration method and device for state of charge of battery
CN120195548A