Terminal voltage electric quantity calibration method and system of terminal equipment and storage medium
By determining the battery's charge and discharge status and power consumption in the terminal device, calibrating the voltage based on the terminal voltage, and combining it with a voltage state of charge mapping table, the problem of inaccurate power display in the existing technology is solved, and accurate calculation and display of the battery power is achieved.
Patent Information
- Application Number
- CN202511311776.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-15
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-09-15
AI Technical Summary
Existing power display solutions based on coulomb counters and open-circuit voltage (OCV) curves have cumulative errors, especially as the battery ages, where the errors increase. 100% accuracy in power measurement cannot be guaranteed. Real-time acquisition of OCV curves is difficult and relies on a complex battery internal resistance model.
By determining the charge and discharge status and duration of the terminal device 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 target battery power is accurately calculated.
The accuracy of battery power display is improved, errors are reduced, and the accuracy of battery remaining capacity calculation is ensured, avoiding user inconvenience and hardware concerns caused by inaccurate power.
Smart Images

Figure CN120802091A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of battery management, in particular to a terminal device terminal voltage and power calibration method, system and storage medium in the technical field of battery management. BACKGROUND
[0002] In related technologies, one of the important technical routes of lithium battery power is the power display scheme based on coulomb counter and open circuit voltage (OCV) curve. The problem of coulomb counter is that there is cumulative error, and the error becomes larger due to the continuous accumulation of error in long time charging and discharging. The problem of OCV curve is that although the OCV curve is accurate in power, it is very difficult to obtain OCV in real time. The calculation of OCV by Ohm's law depends on the battery internal resistance model, and the battery internal resistance model is very complex. Therefore, the existing power estimation schemes based on coulomb counter and OCV cannot guarantee 100% accuracy of power accuracy, especially as the battery ages, the error of power accuracy increases. SUMMARY
[0003] The purpose of the present application is to provide a terminal device terminal voltage and power calibration method, system and storage medium, and the technical solutions adopted are as follows: In a first aspect, the present application embodiment provides a terminal device terminal voltage and power calibration method, which comprises: determining the charging and discharging state of the battery of the terminal device; based on the charging and discharging state, determining the duration of the battery in the charging and discharging state; if the duration meets the preset duration, determining the current power consumption of the battery; if the current power consumption is less than the preset power consumption, determining the calibration voltage of the battery based on the terminal voltage of the battery and the corresponding voltage accuracy; determining the voltage state of charge of the battery matched with the calibration voltage; based on the voltage state of charge and the charging and discharging state of the battery, determining the target battery remaining capacity of the battery.
[0004] In a second aspect, the present application embodiment provides a terminal device terminal voltage and power calibration system, which comprises: a first determination module for determining the charging and discharging state of the battery of the terminal device; a second determination module for determining the duration of the battery in the charging and discharging state based on the charging and discharging state; a third determination module for determining the current power consumption of the battery if the duration meets the preset duration; a fourth determining module, configured to determine a calibration voltage of the battery based on the terminal voltage of the battery and the corresponding voltage accuracy if the current power consumption is less than the preset power consumption; a fifth determining module, configured to determine a voltage state of charge of the battery matched with the calibration voltage; a sixth determining module, configured to determine a target battery remaining capacity of the battery based on the voltage state of charge and the charge-discharge state of the battery.
[0005] In a third aspect, a computer program product is provided, which includes computer program code for causing a computer to perform the method of the first aspect when the computer program code is run on the computer.
[0006] In a fourth aspect, a computer readable storage medium is provided, which stores computer program code for causing a computer to perform the method of the first aspect when the computer program code is run on the computer.
[0007] The present application has the following beneficial effects: after determining the charge-discharge state of the battery of the terminal device, it is judged whether the duration of the battery in the charge-discharge state reaches a preset duration based on the charge-discharge state; in the case that the duration meets the preset duration, it is further determined whether the current power consumption of the battery is less than the preset power consumption; in this way, in the case that the duration is long, it is further judged whether the current power consumption of the battery is less than the preset power consumption, so that the battery remaining capacity can be calculated more accurately. If the current power consumption is less than the preset power consumption, the calibration voltage of the battery is determined based on the terminal voltage of the battery and the corresponding voltage accuracy, and the voltage state of charge of the battery matched with the calibration voltage is determined; in this way, for the case of low power consumption, the calibration voltage of the battery can be quickly calculated through the terminal voltage and the voltage accuracy of the battery, and then the target battery remaining capacity of the battery can be more accurately calculated through the voltage state of charge of the battery matched with the calibration voltage and the charge-discharge state of the battery; thereby the display accuracy of the battery power is improved. BRIEF DESCRIPTION OF DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, and the advantages thereof, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0009] Figure 1 is an OCV curve diagram provided by the related art; Figure 2is another OCV curve schematic diagram provided by the related art; Figure 3 is an implementation flow schematic diagram of a terminal device terminal voltage and electric quantity calibration method provided by an embodiment of the application; Figure 4 is another implementation flow schematic diagram of a terminal device terminal voltage and electric quantity calibration method provided by an embodiment of the application; Figure 5 is still another implementation flow schematic diagram of a terminal device terminal voltage and electric quantity calibration method provided by an embodiment of the application; Figure 6 is a calibration effect schematic diagram of a terminal device terminal voltage and electric quantity calibration method provided by an embodiment of the application; Figure 7 is a component structure schematic diagram of a terminal device terminal voltage and electric quantity calibration system provided by an embodiment of the application; Figure 8 is a structure schematic diagram of a computer device provided by an embodiment of the application. DETAILED DESCRIPTION
[0010] In order to further illustrate the technical means and effects taken by the application to achieve the predetermined object of the application, the following describes in detail the specific implementation, structure, features and effects of a terminal device terminal voltage and electric quantity calibration method according to the application, combined with the preferred embodiments and the drawings. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, the specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.
[0011] In the description of the embodiments of the application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B: "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone, in addition, in the description of the embodiments of the application, "multiple" means two or more than two.
[0012] Hereinafter, the terms "first", "second" are only used for description purposes, and cannot be understood as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more features.
[0013] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as understood by those skilled in the art to which the application belongs.
[0014] The accuracy of battery charge display has always been a major concern for end users, especially mobile phone users. Inaccurate battery levels prevent users from accurately estimating their phone's remaining usable time, leading to unexpected battery drain and shutdown. Inaccurate battery levels can also cause the battery's shutdown voltage to drop, potentially leading to prolonged system operation in unexpectedly low-performance or unsafe voltage ranges. Inaccurate battery levels can also cause the phone to prematurely shut down after indicating 0%, impacting user usage. These issues can cause unnecessary disruption to normal phone use and may even lead users to believe there's a hardware issue with the phone, leading to complaints at best and even cancellations.
[0015] Mobile terminals are basically powered by lithium batteries, and the open circuit voltage-state of charge (OCV-SOC) curve of lithium batteries at different temperatures is one of the most accurate and reliable basic solutions for estimating the power of lithium batteries. Figure 1 As shown, three OCV curves under different parameters are Figure 1 The horizontal axis (DoD) represents the depth of discharge, and the vertical axis (Voltage) represents the voltage. Once the accurate OCV is determined during system operation, the battery level can be accurately displayed using a pre-calibrated OCV-SOC curve table at different temperatures.
[0016] Under load, the battery terminal voltage (VBAT) is greater than OCV during charging, and less than OCV during discharging. The relationship between the OCV curve and the VBAT curve in the discharge state is as follows: Figure 2 As shown, the VBAT curve exhibits a voltage drop (IR drop) due to load, and VBAT is generally less than OCV. Therefore, during discharge, the measured VBAT must be less than OCV. To do so, use VBAT as the OCV and consult an OCV table to obtain the charge level and calibrate the current charge level to ensure it is not less than the charge level represented by VBAT. Similarly, during charge, the measured VBAT must be greater than OCV. This means you can use VBAT as the OCV and consult an OCV table to obtain the charge level and calibrate the current charge level to ensure it is not greater than the charge level represented by VBAT. Terminal voltage measurement has accuracy deviations, which only need to be taken into account.
[0017] The following describes in detail a method for calibrating terminal voltage and electricity of a terminal device provided by the present invention in conjunction with the accompanying drawings. Figure 3 , which shows a schematic diagram of an implementation flow of a terminal voltage and electricity calibration method for a terminal device provided by an embodiment of the present invention, the method comprising: 301. Determine the charge and discharge status of the battery of the terminal device.
[0018] Here, the terminal device can be any type of device, such as a mobile phone, a tablet, etc. The charge-discharge state of the battery of the terminal device includes a charging state and a discharging state.
[0019] 302, based on the charge-discharge state, determine the duration that the battery is in the charge-discharge state.
[0020] Here, after determining the charge-discharge state of the battery, it is further determined whether the duration that the battery is in the charge-discharge state reaches a preset duration.
[0021] In some possible implementations, if the charge-discharge state is a discharging state, the duration that the battery is in the discharging state is determined; for example, if the battery is in a discharging state, it is further determined how long the battery has been continuously in the discharging state, i.e., the duration. If the charge-discharge state is a charging state, the duration that the battery is in the charging state is determined; for example, if the battery is in a charging state, it is further determined how long the battery has been continuously in the charging state, i.e., the duration.
[0022] 303, in the case where the duration meets the preset duration, determine the current power consumption of the battery.
[0023] Here, the preset duration is a self-defined configurable value. Taking a preset duration of 30 minutes as an example: if the charge-discharge state is a discharging state, it is determined whether the duration that the battery has been continuously in the discharging state reaches 30 minutes, and if so, it is determined that the duration meets the preset duration, and the current power consumption of the battery is further determined. In the case where the duration reaches 30 minutes, the current of the battery is determined, and the power consumption is calculated based on the current.
[0024] In some possible implementations, the above step 303 can be implemented by the steps shown in FIG. 4: Figure 4 401, if the charge-discharge state is a discharging state, determine whether the duration that the battery has been continuously in the discharging state reaches the preset duration. 402, if the duration that the battery has been continuously in the discharging state reaches the preset duration, determine the discharging current of the battery.
[0025] Here, if the charge-discharge state is a discharging state and the duration that the battery has been continuously in the discharging state reaches half an hour, the discharging current of the battery is further determined. If the charge-discharge state is a charging state and the duration that the battery has been continuously in the charging state reaches half an hour, the charging current of the battery is further determined.
[0026] 403, based on the discharging current, determine the current power consumption.
[0027]
[0028] Here, after the discharge current is calculated, the current power consumption under the discharge current is further calculated, so as to determine whether the small-current discharge occurs, and further to accurately calculate the current power consumption.
[0029] 304, if the current power consumption is less than the preset power consumption, a calibration voltage of the battery is determined based on the terminal voltage of the battery and the corresponding voltage accuracy.
[0030] For example, in the discharge state, it is determined whether the discharge current is less than 0.5 ampere (A), and if the discharge current is less than 0.5 A, it is determined that the current power consumption is less than the preset power consumption. Then, the terminal voltage (VBAT) of the battery and the corresponding voltage accuracy (Vthd) are obtained. The calibration voltage (Vadj) of the battery is calculated based on the terminal voltage of the battery and the corresponding voltage accuracy.
[0031] In some possible implementation manners, if the charge-discharge state is the discharge state and the current power consumption is less than the preset power consumption, a difference between the terminal voltage of the battery and the corresponding voltage accuracy is determined to determine the calibration voltage of the battery. For example, in the small-current discharge state, VBAT – Vthd is calculated to obtain the calibration voltage of the battery.
[0032] If the charge-discharge state is the charge state and the current power consumption is less than the preset power consumption, a sum of the terminal voltage of the battery and the corresponding voltage accuracy is determined to determine the calibration voltage of the battery.
[0033] For example, in the small-current charge state, VBAT + Vthd is calculated to obtain the calibration voltage of the battery. In this way, the calibration voltage of the battery can be accurately calculated based on the terminal voltage of the battery and the corresponding voltage accuracy.
[0034] 305, a voltage state of charge of the battery that matches the calibration voltage is determined.
[0035] Here, according to the calibration voltage, a table lookup operation is performed in a preset mapping table to obtain the voltage state of charge of the battery that matches the calibration voltage. The preset mapping table can represent a mapping relationship between the OCV and the SOC.
[0036] In some possible implementation manners, the step 305 can be implemented by the following steps 351 and 352 (not shown in the figure): 351, a preset mapping table representing a corresponding relationship between the remaining capacity of the battery and the open circuit voltage is obtained.
[0037] Here, the preset mapping table can be constructed by the remaining capacity of the battery and the corresponding open circuit voltage, and can represent the corresponding relationship between the remaining capacity of the battery and the open circuit voltage.
[0038] 352, determine the voltage state of charge of the battery based on the preset mapping table and the calibration voltage.
[0039] Here, after creating the preset mapping table, a lookup operation is performed in the preset mapping table according to the calibration voltage, so as to obtain the voltage state of charge of the battery.
[0040] In some possible implementation manners, the calibration voltage is determined as the open circuit voltage of the battery, and in the preset mapping table, the voltage state of charge matched with the open circuit voltage is determined.
[0041] Here, the calibration voltage Vadj is taken as the open circuit voltage OCV, and the preset mapping table is looked up, so as to obtain the voltage state of charge VSOC.
[0042] 306, determine the target battery remaining capacity of the battery based on the voltage state of charge and the charge-discharge state of the battery.
[0043] Here, the charge-discharge state of the battery is calibrated by the voltage state of charge, so as to obtain the target battery remaining capacity of the battery.
[0044] In some possible implementation manners, the above step 306 can be implemented by the following steps 361 to 363 (not shown in the figure): 361, determine the initial battery remaining capacity of the battery based on the power algorithm.
[0045] Here, the battery remaining capacity is calculated by the power algorithm, so as to obtain the initial battery remaining capacity of the battery, that is, the battery remaining capacity (RM_SOC) calculated by the power algorithm.
[0046] 362, determine the calibration mode based on the charge-discharge state of the battery.
[0047] Here, if the battery is in the charging state, the calibration mode is to determine whether the voltage state of charge is less than the initial battery remaining capacity; if the battery is in the discharging state, the calibration mode is to determine whether the voltage state of charge is greater than the initial battery remaining capacity.
[0048] 363, calibrate the initial battery remaining capacity based on the voltage state of charge by using the calibration mode, so as to obtain the target battery remaining capacity.
[0049] Here, if the battery is in the charging state, it is determined whether the voltage state of charge is less than the initial battery remaining capacity, and if the voltage state of charge is less than the initial battery remaining capacity, the voltage state of charge is assigned to the initial battery remaining capacity, so as to calibrate the initial battery remaining capacity by the voltage state of charge, and obtain the target battery remaining capacity.
[0050] If the battery is in a discharging state, it is judged whether the voltage state of charge is greater than the initial battery remaining capacity, if the voltage state of charge is greater than the initial battery remaining capacity, the voltage state of charge is assigned to the initial battery remaining capacity, the voltage state of charge is calibrated to the initial battery remaining capacity, and the target battery remaining capacity is obtained.
[0051] In some embodiments, if the current power consumption is greater than the preset power consumption, the terminal voltage of the battery is obtained; and the terminal voltage is determined as the calibration voltage of the battery. That is, if the current is in a large current scenario, the terminal voltage VBAT of the battery is taken as the calibration voltage Vadj.
[0052] In the embodiment of the application, after the charging and discharging state of the battery of the terminal device is determined, it is judged whether the duration of the battery in the charging and discharging state reaches a preset duration based on the charging and discharging state; in the case where 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; in this way, in the case where the duration is long, it is further determined whether the current power consumption of the battery is less than the preset power consumption, so that the battery remaining capacity can be calculated more accurately. If the current power consumption is less than the preset power consumption, the calibration voltage of the battery is determined based on the terminal voltage of the battery and the corresponding voltage accuracy, and the voltage state of charge of the battery matched with the calibration voltage is determined; in this way, for the case of small power consumption, the calibration voltage of the battery can be quickly calculated through the terminal voltage of the battery and the voltage accuracy, and then the target battery remaining capacity of the battery can be more accurately calculated through the voltage state of charge of the battery matched with the calibration voltage and the charging and discharging state of the battery; thereby the display accuracy of the battery power is improved.
[0053] In some embodiments, the terminal voltage power calibration method provided by the embodiment of the application can be implemented by the flow shown in the figure: Figure 5 Firstly, the charging and discharging state is judged.
[0054] Here, in the discharging scenario, it is judged whether it is in a discharging state, and the discharging calibration is only performed in the discharging state; Secondly, if it is in a discharging state, it is judged whether it is continuously discharged for 30 minutes; If it is not continuously discharged for 30 minutes, no calibration is performed.
[0055] Thirdly, if it is continuously discharged for 30 minutes, the terminal voltage VBAT is obtained.
[0056] Secondly, it is judged whether it is small power consumption discharging.
[0057] If it is not small power consumption discharging, the calibration voltage Vadj=VBAT is determined. If it is small power consumption discharging, the calibration voltage Vadj=VBAT-Vthd is determined.
[0058] Here, it is judged whether the continuous discharge exceeds a certain time (e.g., 30 minutes), and after a certain time of stable discharge, the VBAT obtained under any discharge current is less than the OCV. The current battery terminal voltage VBAT is obtained, and it is judged whether it is a small-current discharge. The voltage impact of the small-current discharge IBAR*RBAT (i.e., the product of the battery internal resistance and the current) is very small, and can be less than the voltage precision when VBAT is collected. Therefore, in the small-current discharge scenario, the calibration voltage Vadj = VBAT-Vthd, and Vthd is the VBAT collection precision voltage.
[0059] Again, Vadj is used to query the OCV-SOC table (i.e., the preset mapping table) to obtain the capacity VSOC (i.e., the voltage state of charge of the battery).
[0060] Here, Vadj is used to query the OCV-SOC table as the OCV to obtain the capacity, so as to obtain VSOC. At this time, VSOC is certainly less than the true capacity of the battery.
[0061] Finally, the capacity calibration is realized. If the battery remaining capacity (RM_SOC) calculated by the capacity algorithm < the voltage state of charge (VSOC) of the battery, the RM_SOC is calibrated, and RM_SOC = VSOC.
[0062] In the charging scenario, first, it is judged whether it is in the charging state. Only in the charging state, the charging calibration is performed. Secondly, if it is in the charging state, it is judged whether it is continuously charged for 30 minutes. It is judged whether the continuous charging exceeds a certain time (e.g., 30 minutes), and after a certain time of stable charging, the VBAT obtained under any charging current is greater than the OCV. If the continuous charging is not 30 minutes, no calibration is performed.
[0063] Thirdly, if the continuous charging is 30 minutes, the terminal voltage VBAT is obtained.
[0064] Secondly, it is judged whether it is a small-power-consumption charging.
[0065] It is judged whether it is a small-current charging. The voltage impact of the small-current charging IBAR*RBAT is very small, and can be less than the voltage precision when VBAT is collected. Therefore, in the small-current charging scenario, the calibration voltage Vadj = VBAT + Vthd, and Vthd is the VBAT collection precision voltage. In the large-current charging scenario, Vadj = VBAT.
[0066] Thirdly, Vadj is used to query the OCV-SOC table (i.e., the preset mapping table) to obtain the capacity VSOC (i.e., the voltage state of charge of the battery).
[0067] Here, use Vadj as OCV to check the OCV-SOC table to obtain VSOC, at this time VSOC must be greater than the true capacity of the battery.
[0068] Finally, the capacity calibration is implemented, if the battery remaining capacity (RM_SOC) calculated by the capacity algorithm > voltage state of charge (VSOC) of the battery, then the RM_SOC is calibrated, RM_SOC = VSOC.
[0069] In one specific example, taking the discharge calibration as an example, the effect diagram is as shown in Figure 6 , the horizontal axis is time, the left vertical axis is the capacity percentage, the right vertical axis is the voltage V, BATT_SOC is the capacity percentage counted by the capacity meter, CALI_SOC is the capacity percentage after calibration; MSOC is the final output capacity percentage of the capacity meter; IBAT_AVG is the real-time discharge current; SMSOC is the smooth capacity reported to the upper layer; UISOC is the capacity seen by the user. Figure 6 It can be seen that after artificially introducing 20% error, continuously discharging for more than 30 minutes, the capacity starts to be calibrated (the effect of the first triggered calibration is as shown in the calibration result 61 in Figure 6 ), which can quickly calibrate the capacity to a small error range, with the current gradually decreasing, triggering the second calibration (the calibration result of the second triggered calibration is as shown in the calibration result 62 in Figure 6 ), which calibrates the capacity to a very accurate value.
[0070] The embodiment of the present application provides a terminal device end voltage capacity calibration system, please refer to Figure 7 , which shows the component structure schematic diagram of the terminal device end voltage capacity calibration system provided by the embodiment of the present application, the system 700 comprises: The first determination module 701 is used for determining the charge-discharge state of the battery of the terminal device; The second determination module 702 is used for determining the duration that the battery is in the charge-discharge state based on the charge-discharge state; The third determination module 703 is used for determining the current power consumption of the battery in the case that the duration meets the preset duration; The fourth determination module 704 is used for determining the calibration voltage of the battery based on the end voltage of the battery and the corresponding voltage accuracy if the current power consumption is less than the preset power consumption; The fifth determination module 705 is used for determining the voltage state of charge of the battery matched with the calibration voltage; The sixth determination module 706 is used for determining the target battery remaining capacity of the battery based on the voltage state of charge and the charge-discharge state of the battery.
[0071] In some possible implementation manners, the second determining module 702 is further configured to determine a duration that the battery is in the discharging state if the charging and discharging state is the discharging state, or determine a duration that the battery is in the charging state if the charging and discharging state is the charging state.
[0072] In some possible implementation manners, the third determining module 703 is further configured to determine whether the duration that the battery is continuously in the discharging state reaches the preset duration if the charging and discharging state is the discharging state, or determine a discharging current of the battery if the duration that the battery is continuously in the discharging state reaches the preset duration, and determine the current power consumption based on the discharging current.
[0073] In some possible implementation manners, the third determining module 703 is further configured to determine a difference between an end voltage of the battery and a corresponding voltage accuracy to determine a calibrated voltage of the battery if the charging and discharging state is the discharging state and the current power consumption is less than a preset power consumption, or determine a summation result between the end voltage of the battery and the corresponding voltage accuracy to determine the calibrated voltage of the battery if the charging and discharging state is the charging state and the current power consumption is less than the preset power consumption.
[0074] In some possible implementation manners, the fifth determining module 705 is further configured to acquire a preset mapping table representing a corresponding relationship between a battery remaining capacity and an open circuit voltage, and determine a voltage state of charge of the battery based on the preset mapping table and the calibrated voltage.
[0075] In some possible implementation manners, the fifth determining module 705 is further configured to determine the calibrated voltage as the open circuit voltage of the battery, and determine, in the preset mapping table, a voltage state of charge that matches the open circuit voltage.
[0076] In some possible implementation manners, the fourth determining module 704 is further configured to acquire an end voltage of the battery if the current power consumption is greater than a preset power consumption, and determine the end voltage as a calibrated voltage of the battery.
[0077] In some possible implementation manners, the sixth determining module 706 is further configured to determine an initial battery remaining capacity of the battery based on an electricity amount algorithm, determine a calibration manner based on a charging and discharging state of the battery, and calibrate the initial battery remaining capacity based on the voltage state of charge by using the calibration manner to obtain the target battery remaining capacity.
[0078] Optionally, the transmission medium can be a wired link (for example, but not limited to, a coaxial cable, an optical fiber, a Digital Subscriber Line (DSL), and the like) or a wireless link (for example, but not limited to, Wireless Fidelity (WIFI), Bluetooth, and a mobile device network, and the like). It should be noted that the system provided in the above embodiments is only used as an example for the division of the above functional modules, and in actual applications, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the above described functions. In addition, the method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is shown in the method embodiments, which will not be described here.
[0079] Figure 8 is a structural schematic diagram of a computer device provided by an embodiment of the application. As shown in the example, Figure 8 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 execute the terminal device end voltage and power calibration method described above.
[0080] In addition, an embodiment of the application also protects a system, which can include a memory and a processor, wherein the memory stores executable program code, and the processor is configured to call and execute the executable program code to execute the terminal device end voltage and power calibration method provided by an embodiment of the application. The system can be divided into functional modules according to the above method examples, for example, each functional module can be corresponding, or two or more functions can be integrated in one processing module, and the integrated module can be realized in the form of hardware. It should be noted that the division of the modules in the embodiment is illustrative, and is only a logical function division, and another division mode can be used in actual implementation. It should be noted that all related contents of each step involved in the above method embodiments can be cited to the function description of the corresponding functional module, and will not be described here.
[0081] It should be understood that the system provided by the embodiment is used to execute the terminal device end voltage and power calibration method described above, so as to achieve the same effect as the implementation method described above. In the case of integrated units, the system can 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 actions of the device. The storage module can be used to support the device to execute related program codes and the like. The processing module can be a processor or a controller, which can realize or execute various exemplary logical blocks, modules and circuits described in combination with the disclosure. The processor can also be a combination of computing functions, such as one or more microprocessor combinations, combinations of digital signal processing (DSP) and microprocessors, and the like. The storage module can be a memory.
[0082] In addition, the system provided by the embodiment of the present application can be a chip, a component or a module, the chip can include a connected processor and a memory; wherein the memory is used to store instructions, when the processor calls and executes the instructions, the chip can execute the terminal device end voltage and power calibration method provided by the above embodiment. The present embodiment also provides a computer readable storage medium, the computer readable storage medium stores computer program code, when the computer program code runs on the computer, the computer executes the related method steps to realize the terminal device end voltage and power calibration method provided by the above embodiment.
[0083] This embodiment also provides a computer program product. When the computer program product is run on a computer, it causes the computer to execute the above-mentioned steps to implement a 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 method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding method 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 convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual application, the above-mentioned functions can be distributed to different functional modules as needed, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiment described above is only illustrative. For example, the division of modules or units is only a logical function 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 performed. On the other hand, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, system or unit, which may be electrical, mechanical or other forms.
[0084] It should be noted that the above-mentioned order of the embodiments of the present invention is for description only and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-task processing and parallel processing are also 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 referenced to each other. Each embodiment focuses on the differences from other embodiments. The above content is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed by the present invention, which should be covered within the scope of protection of the present invention.
Claims
1. A terminal voltage and electricity calibration method for a terminal device, characterized in that: The terminal voltage and electricity calibration method of the terminal device includes: Determine the charge and discharge status of the battery of the terminal device; Based on the charge and discharge state, determining a duration for which the battery is in the charge and discharge state; When the duration meets a preset duration, determining the current power consumption of the battery; If the current power consumption is less than the preset power consumption, determining a calibration voltage of the battery based on the terminal voltage of the battery and a corresponding voltage accuracy; determining a voltage state of charge of the battery that matches the calibration voltage; A target remaining battery capacity of the battery is determined based on the voltage state of charge and a charge and discharge state of the battery.
2. The terminal voltage and electrical quantity calibration method of a terminal device according to claim 1, characterized in that: The determining, based on the charge and discharge state, a duration for which the battery is in the charge and discharge state includes: If the charge-discharge state is a discharge state, determining a duration for which the battery is in the discharge state; If the charge-discharge state is a charging state, a duration of time that the battery is in the charging state is determined.
3. The terminal voltage and electricity calibration method of a terminal device according to claim 1, characterized in that: When the duration meets a preset duration, determining the current power consumption of the battery includes: If the charge-discharge state is the discharge state, determining whether the duration for which the battery has been 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, determining the discharge current of the battery; The current power consumption is determined based on the discharge current.
4. The terminal voltage and electrical quantity calibration method of a terminal device according to claim 3, characterized in that: If the current power consumption is less than the preset power consumption, determining the calibration voltage of the battery based on the terminal voltage of the battery and the corresponding voltage accuracy includes: If the charge-discharge state is a discharge state and the current power consumption is less than a preset power consumption, determining a difference between a terminal voltage of the battery and a corresponding voltage accuracy to determine a calibration voltage of the battery; If the charge-discharge state is a charging state and the current power consumption is less than a preset power consumption, a summation result between the terminal voltage of the battery and a corresponding voltage accuracy is determined to determine a calibration voltage of the battery.
5. The terminal voltage and electricity calibration method of a terminal device according to claim 1, characterized in that: Determining a voltage state of charge of the battery that matches the calibration voltage includes: Obtaining a preset mapping table representing a correspondence between a battery's remaining capacity and an open circuit voltage; A voltage state of charge of the battery is determined based on the preset mapping table and the calibration voltage.
6. The terminal voltage and electrical quantity calibration method of a terminal device according to claim 5, characterized in that: The determining the voltage state of charge of the battery based on the preset mapping table and the calibration voltage includes: determining the calibration voltage as the open circuit voltage of the battery; In the preset mapping table, a voltage state of charge that matches the open circuit voltage is determined.
7. The terminal voltage and electricity calibration method of a terminal device according to claim 1, characterized in that: The method further comprises: If the current power consumption is greater than the preset power consumption, obtaining the terminal voltage of the battery; The terminal voltage is determined as a calibration voltage of the battery.
8. The terminal voltage and electrical quantity calibration method of a terminal device according to claim 1, characterized in that: The determining a target remaining battery capacity of the battery based on the voltage state of charge and the charge and discharge state of the battery includes: Determining the initial remaining battery capacity of the battery based on a power algorithm; determining a calibration method based on the charge and discharge status of the battery; The calibration method is adopted to calibrate the initial battery remaining capacity based on the voltage state of charge to obtain the target battery remaining capacity.
9. A terminal voltage and electricity calibration system for a terminal device, characterized in that: The terminal voltage and electricity calibration system of the terminal device includes: A first determining module, configured to determine a charge and discharge status of a battery of a terminal device; a second determining module, configured to determine, based on the charge and discharge state, a duration for which the battery is in the charge and discharge state; a third determining module, configured to determine the current power consumption of the battery when the duration satisfies a preset duration; a fourth determining module, configured to determine a calibration voltage of the battery based on the terminal voltage of the battery and a corresponding voltage accuracy if the current power consumption is less than a preset power consumption; a fifth determining module, configured to determine a voltage state of charge of the battery that matches the calibration voltage; A sixth determining module is configured to determine a target remaining battery capacity of the battery based on the voltage state of charge and the charge and discharge state of the battery.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method and system for estimating remaining capacity of battery
CN116338472A
Method for correcting residual electric quantity, vehicle and storage medium
CN116359775A
Self-adaptive calibration method and device for state of charge of battery
CN120195548A
Capacity calibration method and related device
CN120254675A
Method of calculating remaining capacity of rechargeable battery
US20080150489A1