Correction method, correction device, electronic equipment and readable storage medium
By reducing power operation when the battery is close to the end of charging or discharging, and using temperature, current and voltage data to calculate the actual remaining power and correct the displayed power, the problem of inaccurate power display of lithium iron phosphate batteries is solved, and the accuracy and correction efficiency of battery power display are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, the state of charge of lithium iron phosphate batteries cannot be accurately estimated, resulting in a jump in the remaining charge at the end of the charging or discharging process, which affects the user experience. Furthermore, existing correction methods are computationally intensive, inefficient, and cannot be corrected in a timely manner.
By reducing power operation when the remaining battery charge is close to the end of charging or discharging, temperature, current and voltage data are acquired, the actual remaining charge is calculated using a preset lookup table, and the displayed charge is corrected based on the difference to avoid sudden changes.
This effectively avoids sudden changes in battery power when the remaining battery power is at the end of the charging or discharging cycle, improving the accuracy and correction efficiency of battery power display.
Smart Images

Figure CN121741484A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things, in particular to a correction method, a correction device, an electronic device and a readable storage medium. BACKGROUND
[0002] The state of charge (SOC) of a lithium iron phosphate battery, that is, the remaining capacity of the battery, cannot be directly measured by instruments. Currently, a series of algorithms are used to estimate the SOC, such as ampere-hour integration method, open circuit voltage method, Kalman filtering method and neural network algorithm. These algorithms will have cumulative errors, which will cause the remaining capacity to jump to 100% at the end of the charging cutoff of the battery, or cause the remaining capacity to jump to 0% at the end of the discharging cutoff of the battery. This cannot provide the user of the battery with advance preparation time, which will seriously reduce the user's experience.
[0003] In related technologies, the remaining capacity of the battery is corrected based on different temperatures, different power multiples and a series of calculations. However, these correction methods have a large amount of calculation, which will result in low correction efficiency and late correction opportunity, and thus cannot smoothly display the remaining capacity in time, which will also cause the remaining capacity of the battery to jump. SUMMARY
[0004] The present application aims to at least solve one of the technical problems existing in the prior art.
[0005] To this end, a first aspect of the present application provides a correction method.
[0006] A second aspect of the present application provides a correction device.
[0007] A third aspect of the present application provides an electronic device.
[0008] A fourth aspect of the present application provides a readable storage medium.
[0009] A fifth aspect of the present application provides a computer program product.
[0010] The first aspect of the present application provides a correction method for correcting the displayed capacity of a battery. The correction method comprises: in the case that the battery is running at a first power, acquiring a first temperature, a first current and a first voltage of the battery; determining an interval in which the remaining capacity of the battery is located according to the first temperature, the first current and the first voltage; in the case that the remaining capacity of the battery is in a preset interval, controlling the battery to run at a second power, wherein the second power is less than the first power; in the case that the battery is running at the second power, acquiring a second temperature, a second current and a second voltage of the battery; determining an actual remaining capacity of the battery according to the second temperature, the second current and the second voltage; and correcting the displayed capacity according to the actual remaining capacity.
[0011] The correction method provided by the application can be used to correct the displayed remaining power of the battery, thereby avoiding the jump phenomenon when the remaining power of the battery reaches the charging cut-off end or the discharging cut-off end, and ensuring the accuracy of the display of the remaining power of the battery.
[0012] Firstly, in the case that the battery operates at a first power, the first temperature, the first current and the first voltage of the battery are obtained, so as to determine whether the remaining power of the battery is in a preset interval according to the first temperature, the first current and the first voltage, that is, to determine whether the battery is at the charging cut-off end or at the discharging cut-off end. Specifically, in the case that the battery is in the charging state, the preset interval can be the interval that the remaining power of the battery is 90% to 100%, and in the case that the battery is in the discharging state, the preset interval can be the interval that the remaining power of the battery is 0% to 10%. The first power can be 100% to 50% of the maximum operating power of the battery, that is, the process that the battery operates at a higher power.
[0013] Further, in the case that the remaining power of the battery is in the preset interval, the battery can be first controlled to operate at a second power, wherein the second power is less than the first power, specifically, the second power can be 5% to 15% of the maximum operating power of the battery, that is, in the case that the remaining power of the battery reaches the charging cut-off end or the discharging cut-off end, the battery is controlled to operate at a smaller power, and specifically, the second power can be set to 10% of the maximum operating power of the battery.
[0014] Further, in the case that the battery operates at the second power, the second temperature, the second current and the second voltage of the battery are obtained, and then the current actual remaining power of the battery is determined according to the second temperature, the second current and the second voltage.
[0015] It should be noted that in the case that the remaining power of the battery is in the preset interval, that is, in the case that the remaining power of the battery reaches the charging cut-off end or the discharging cut-off end, by controlling the battery to operate at a smaller second power, on the one hand, the charging and discharging speed of the battery can be slowed down, thereby avoiding the display of the remaining power of the battery from jumping due to the too fast charging or discharging speed, and more time can be provided to calculate the actual remaining power of the battery. On the other hand, reducing the operating power of the battery can reduce the amount of data used in the process of determining the current actual remaining power of the battery according to the second temperature, the second current and the second voltage, only a smaller amount of data needs to be matched, and thus the calculation speed can be effectively improved.
[0016] Further, after the current actual remaining capacity of the battery is determined according to the second temperature, the second current and the second voltage, the actual remaining capacity can be compared with the current displayed capacity of the battery, and the displayed capacity of the battery is corrected according to the comparison result. Specifically, if the difference between the calculated actual remaining capacity and the current displayed capacity is large, the displayed capacity needs to be corrected to prevent the displayed capacity of the battery from jumping and ensure the accuracy of the displayed capacity of the battery. On the contrary, if the difference between the actual remaining capacity and the current displayed capacity is small, no correction is needed.
[0017] The correction method provided in the application can effectively prevent the displayed capacity of the battery from jumping when the remaining capacity of the battery reaches the charging cutoff end or the discharging cutoff end, and ensure the accuracy of the displayed capacity of the battery. Moreover, when the remaining capacity of the battery is in the preset interval, the battery is controlled to operate at a small second power, which can slow down the charging and discharging speed of the battery, so that the battery has more time to calculate the actual remaining capacity, avoiding the failure to correct the displayed capacity in time. Meanwhile, in the process of determining the current actual remaining capacity of the battery, the value of each data can be reduced, and the calculation amount can be reduced in the calculation process, so as to improve the calculation speed and the correction efficiency.
[0018] According to a second aspect of the application, a correction device is provided for correcting the displayed capacity of a battery. The correction device comprises: an acquisition unit configured to acquire a first temperature, a first current and a first voltage of the battery when the battery operates at a first power; a determination unit configured to determine an interval in which the remaining capacity of the battery is located according to the first temperature, the first current and the first voltage; a control unit configured to control the battery to operate at a second power when the remaining capacity of the battery is in a preset interval, wherein the second power is less than the first power; the acquisition unit is further configured to acquire a second temperature, a second current and a second voltage of the battery when the battery operates at the second power; the determination unit is further configured to determine an actual remaining capacity of the battery according to the second temperature, the second current and the second voltage; and a correction unit configured to correct the displayed capacity according to the actual remaining capacity.
[0019] The correction device provided in this application, when the remaining battery power is within a preset range—that is, when the remaining battery power has reached the charging or discharging cutoff point—calculates the actual remaining battery power and corrects the displayed battery power accordingly. This effectively prevents sudden changes in the displayed battery power when the remaining battery power reaches the charging or discharging cutoff point, ensuring the accuracy of the displayed battery power. Furthermore, by controlling the battery to operate at a lower secondary power when the remaining battery power is within the preset range, the charging and discharging speed of the battery is slowed down, allowing more time to calculate the actual remaining battery power and preventing delays in correcting the displayed battery power. Simultaneously, by reducing the value of each data point during the determination of the current actual remaining battery power, the computational load is reduced, increasing calculation speed and correction efficiency.
[0020] Further, the determining unit is specifically used to: determine a reference voltage based on a first temperature and a first current; and determine that the remaining charge of the battery is within a preset range when the relationship between the first voltage and the reference voltage satisfies a first preset condition; wherein, when the battery is in a charging state, the first voltage is the highest voltage of each cell of the battery, and the first preset condition is that the first voltage is greater than the reference voltage; and when the battery is in a discharging state, the first voltage is the lowest voltage of each cell of the battery, and the first preset condition is that the first voltage is less than the reference voltage.
[0021] Furthermore, the determining unit is specifically used to: determine the reference voltage corresponding to the first temperature and the first current in a preset first lookup table; wherein, the first lookup table is a pre-established table of correspondence between the battery's operating temperature, operating current and operating voltage when the battery is at the first operating power and the remaining charge of the battery is within a preset range.
[0022] Furthermore, the determining unit is specifically used to: determine the actual remaining charge corresponding to the second temperature, the second current, and the second voltage in a preset second lookup table; wherein, the second lookup table is a pre-established table of correspondence between the remaining charge of the battery and the battery's operating temperature, operating current, and operating voltage when the battery is at the second power.
[0023] Furthermore, the acquisition unit is specifically used to: acquire the third current of the battery at multiple time points within a preset time period; the determination unit is also used to determine the current state of the battery based on the multiple third currents; the acquisition unit is also used to acquire the second temperature, the second current, and the second voltage when the current state of the battery is in a stable state.
[0024] In some embodiments, optionally, the correction unit is specifically configured to: obtain the power difference between the actual remaining power and the displayed power; determine a change factor based on the power difference, wherein the change factor is used to indicate the rate of change of the displayed power; and control the change of the displayed power based on the change factor.
[0025] Furthermore, the correction unit is specifically used to: when the displayed power level is the same as the actual remaining power level, control the change of the displayed power level according to the original change factor of the displayed power level.
[0026] According to a third aspect of this application, an electronic device is proposed, comprising: a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the correction method as provided in the first aspect.
[0027] The electronic device provided in this application includes a memory and a processor, and also includes a program or instructions stored in the memory. When the program or instructions are executed by the processor, they can implement the steps of the correction method of the first aspect described above. Therefore, the electronic device has all the beneficial effects of the correction method described above, which will not be repeated here.
[0028] According to a fourth aspect of this application, a readable storage medium is proposed, on which a program or instructions are stored, which, when executed by a processor, implement the modification method of any of the above-described technical solutions.
[0029] The readable storage medium provided in this application stores a program or instructions. When the program or instructions are executed by a processor, they can implement the correction method of any of the above-described technical solutions. Therefore, the storage medium has all the beneficial effects of the above-described correction methods, which will not be elaborated here.
[0030] According to a fifth aspect of this application, a computer program product is proposed, comprising a computer program or instructions that, when executed by a processor, implement the modified method as described in any of the above-described technical solutions.
[0031] The computer program product provided in this application includes a computer program or instructions. When the computer program or instructions are executed by a processor, they implement the modification method of any of the above-mentioned technical solutions. Therefore, the computer program product has all the beneficial effects of the above-mentioned modification methods, which will not be repeated here.
[0032] Additional aspects and advantages of this application will become apparent in the following description or may be learned by practice of this application. Attached Figure Description
[0033] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0034] Figure 1 One of the flowcharts of the correction method provided in the embodiments of this application is shown;
[0035] Figure 2 A second schematic flowchart of the correction method provided in an embodiment of this application is shown;
[0036] Figure 3 One of the graphs showing the relevant parameters during battery operation according to an embodiment of this application is illustrated.
[0037] Figure 4 The second graph shows the relevant parameters during battery operation according to an embodiment of this application;
[0038] Figure 5 The third graph shows the relevant parameters during battery operation according to an embodiment of this application;
[0039] Figure 6 The fourth graph shows the relevant parameters during battery operation according to an embodiment of this application;
[0040] Figure 7 The fifth graph shows the relevant parameters during battery operation according to an embodiment of this application;
[0041] Figure 8 The sixth graph shows the relevant parameters during battery operation according to an embodiment of this application;
[0042] Figure 9 The seventh graph shows the relevant parameters during battery operation according to an embodiment of this application;
[0043] Figure 10 A structural block diagram of the correction device provided in an embodiment of this application is shown;
[0044] Figure 11 A structural block diagram of an electronic device provided in an embodiment of this application is shown.
[0045] in, Figure 10 and Figure 11 The correspondence between the reference numerals and component names in the attached drawings is as follows:
[0046] 600 Correction device, 602 Acquisition unit, 604 Determination unit, 606 Control unit, 608 Correction unit, 700 Electronic device, 702 Processor, 704 Memory. Detailed Implementation
[0047] To better understand the above-mentioned objectives, features, and advantages of this application, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0048] Many specific details are set forth in the following description in order to provide a full understanding of this application. However, this application may also be implemented in other ways different from those described herein. Therefore, the scope of protection of this application is not limited to the specific embodiments disclosed below.
[0049] The following reference Figures 1 to 11 This application describes correction methods, correction devices, electronic devices, and readable storage media provided according to some embodiments of the present application.
[0050] like Figure 1 As shown, according to one embodiment of this application, a correction method is proposed, performed by the device to be connected, the connection method including:
[0051] S102, when the battery is operating at a first power, acquire the first temperature, first current and first voltage of the battery;
[0052] S104, determine the range of the remaining charge of the battery based on the first temperature, the first current and the first voltage;
[0053] S106, when the remaining battery power is within a preset range, control the battery to operate at a second power, wherein the second power is less than the first power;
[0054] S108, when the battery is operating at a second power, acquires the battery's second temperature, second current and second voltage;
[0055] S110 determines the actual remaining charge of the battery based on the second temperature, the second current, and the second voltage;
[0056] S112, adjust the displayed battery level based on the actual remaining battery level.
[0057] The correction method provided in this application can be used to correct the displayed remaining battery power, thereby avoiding jumps when the remaining battery power reaches the charging cutoff end or the discharging cutoff end, and ensuring the accuracy of the displayed remaining battery power.
[0058] First, with the battery operating at a first power, the first temperature, first current, and first voltage of the battery are acquired. Based on these parameters, it is determined whether the remaining battery charge is within a preset range, i.e., whether the battery is at the end of the charging or discharging cycle. Specifically, when the battery is charging, the preset range can be between 90% and 100% of the remaining charge; when the battery is discharging, the preset range can be between 0% and 10% of the remaining charge. The first power can be between 100% and 50% of the battery's maximum operating power, representing the process where the battery operates at a higher power.
[0059] Furthermore, when the remaining battery power is within a preset range, the battery can first be controlled to operate at a second power, where the second power is less than the first power. Specifically, the second power can be 5% to 15% of the battery's maximum operating power. That is, when the remaining battery power reaches the end of the charging or discharging cycle, the battery is controlled to operate at a lower power. Specifically, the second power can be set to 10% of the battery's maximum operating power.
[0060] Furthermore, when the battery is operating at a second power, the battery's second temperature, second current, and second voltage are acquired, and then the battery's current actual remaining power is determined based on the second temperature, second current, and second voltage.
[0061] It should be noted that when the battery's remaining charge is within a preset range—that is, when the battery has reached the end of the charging or discharging cycle—by controlling the battery to operate at a lower secondary power, the charging and discharging rates can be slowed down. This prevents the displayed remaining charge from fluctuating due to excessively rapid charging or discharging, allowing more time to calculate the actual remaining charge. Furthermore, reducing the battery's operating power reduces the amount of data used in determining the current actual remaining charge based on the secondary temperature, current, and voltage, thus improving calculation speed.
[0062] Furthermore, after determining the battery's actual remaining charge based on the second temperature, second current, and second voltage, the actual remaining charge can be compared with the currently displayed battery charge. Based on the comparison result, the displayed battery charge can be corrected. Specifically, if the difference between the calculated actual remaining charge and the currently displayed charge is large, the displayed charge needs to be corrected to prevent jumps in the displayed battery charge and ensure its accuracy. Conversely, if the difference between the actual remaining charge and the currently displayed charge is small, no correction is needed.
[0063] The correction method provided in this application, when the remaining battery power is within a preset range—that is, when the remaining battery power has reached the charging or discharging cutoff point—calculates the actual remaining battery power and corrects the displayed battery power accordingly. This effectively prevents sudden changes in the displayed battery power when the remaining battery power reaches the charging or discharging cutoff point, ensuring the accuracy of the displayed battery power. Furthermore, by controlling the battery to operate at a lower secondary power when the remaining battery power is within the preset range, the charging and discharging speed of the battery is slowed down, allowing more time to calculate the actual remaining battery power and preventing delays in correcting the displayed battery power. Simultaneously, by reducing the value of each data point during the determination of the current actual remaining battery power, the computational load is reduced, increasing calculation speed and correction efficiency.
[0064] In some embodiments, optionally, determining the range of the remaining battery charge based on a first temperature, a first current, and a first voltage includes: determining a reference voltage based on the first temperature and the first current; and determining that the remaining battery charge is within a preset range if the relationship between the first voltage and the reference voltage satisfies a first preset condition. Wherein, when the battery is in a charging state, the first voltage is the highest voltage of the multiple cells of the battery, and the first preset condition is that the first voltage is greater than the reference voltage; when the battery is in a discharging state, the first voltage is the lowest voltage of the multiple cells of the battery, and the first preset condition is that the first voltage is less than the reference voltage.
[0065] In this embodiment, in the process of determining the range of the remaining charge of the battery based on the first temperature, the first current and the first voltage, firstly, a reference voltage can be determined based on the first temperature and the first current. Then, based on whether the relationship between the obtained first voltage of the battery and the reference voltage satisfies the first preset condition, the battery is determined to be within the preset range.
[0066] Understandably, as a battery operates at its initial power, its voltage changes with the remaining charge. For example, during charging, the voltage increases as the remaining charge increases, and conversely, during discharging, the voltage decreases as the remaining charge decreases. Therefore, comparing the battery's initial voltage with a reference voltage determines whether the current remaining charge is within a preset range, i.e., whether the battery is at the end of its charging or discharging cycle. Furthermore, the charging and discharging rates are also affected by the battery's temperature and the charging and discharging current. Therefore, the reference voltage can be determined based on the battery's operating temperature and current—specifically, its initial temperature and current—to ensure accuracy.
[0067] Furthermore, after determining the reference voltage of the battery, it is possible to determine whether the relationship between the first voltage of the battery and the reference voltage meets the first preset condition based on the actual operating state of the battery, that is, whether the battery is in the charging state or the discharging state. If the first preset condition is met, it can be determined that the remaining power of the battery is within the preset range.
[0068] Specifically, a battery typically comprises multiple cells. When the battery is charging, the first voltage can be the highest voltage among the cells. In this case, the first preset condition is that the first voltage is greater than a reference voltage. That is, during battery charging, when the highest voltage among the cells is greater than the reference voltage, the remaining charge of the battery is determined to be within a preset range, indicating that charging has reached its end. Conversely, when the battery is discharging, the first voltage can be the lowest voltage among the cells. In this case, the first preset condition is that the first voltage is less than a reference voltage. That is, during battery discharging, when the lowest voltage among the cells is less than the reference voltage, the remaining charge of the battery is determined to be within a preset range, indicating that discharging has reached its end.
[0069] In one specific embodiment, such as Figure 2 As shown, the process of correcting the displayed battery level is as follows:
[0070] S202, the battery is operating at the first power. Determine the battery's operating state. If it is in the charging state, execute S204; if it is in the discharging state, execute S208.
[0071] S204, determine the reference voltage of the battery based on the battery's first temperature and first current;
[0072] S206: Compare the reference voltage with the first voltage of the battery to determine whether the first voltage is greater than the reference voltage. If yes, execute S212. If no, there is no need to correct the displayed battery level.
[0073] Among them, the first voltage is the highest value among the voltages of the multiple cells of the battery;
[0074] S208, determine the reference voltage of the battery based on the battery's first temperature and first current;
[0075] S210: Compare the reference voltage with the first voltage of the battery to determine whether the first voltage is less than the reference voltage. If yes, execute S212. If no, there is no need to correct the displayed battery level.
[0076] Among them, the first voltage is the lowest value among the voltages of the multiple cells of the battery;
[0077] S212 controls the battery to operate at a second power;
[0078] S214, within a preset time period, acquire multiple third currents of the battery, and determine the stable state of the battery based on the multiple third currents.
[0079] S216, when the battery is in a stable state, obtain the battery's second temperature, second current and second voltage;
[0080] S218, determine the actual remaining voltage of the battery based on the second temperature, the second current and the second voltage;
[0081] S220 corrects the displayed voltage based on the actual remaining voltage.
[0082] In some embodiments, optionally, determining the reference voltage based on the first temperature and the first current includes: determining the reference voltage corresponding to the first temperature and the first current in a preset first lookup table; wherein the first lookup table is a pre-established table of correspondence between the battery's operating temperature, operating current, and operating voltage when the battery is at a first operating power and the remaining charge of the battery is within a preset range.
[0083] In this embodiment, the reference voltage of the battery can be determined according to a preset first lookup table. That is, in the process of determining the reference voltage, the corresponding reference voltage can be looked up in the preset first lookup table according to the first temperature and the first current.
[0084] The first lookup table is a pre-established table showing the correspondence between the battery's operating temperature, operating current, and operating voltage when the battery is operating at its first power level and its remaining charge is within a preset range. Specifically, as shown... Figure 3 , Figure 4 ,Figure 5 , Figure 6 , Figure 7 and Figure 8 As shown, in establishing the first lookup table, the battery can first be controlled to operate at a first power level under different operating temperatures. During operation, the battery's operating current, operating voltage, and remaining charge are collected. The operating temperatures are 0 degrees Celsius, 10 degrees Celsius, and 45 degrees Celsius. Here, SOC represents the remaining charge, Volt represents the operating voltage, Curr represents the operating current, and Cyc represents the number of runs. Further, at different temperatures, the operating current and operating voltage are selected when the battery's remaining charge is within a preset range. Specifically, the preset range can be 70%, 90%, and 95%. Then, as... Figure 9 As shown, the selected operating temperature, operating current, operating voltage, and remaining power are organized to create a first lookup table. It should be noted that... Figure 9 The three axes in the table are the remaining power, operating voltage, and temperature. However, the remaining power, operating voltage, and temperature are different for different operating currents. Therefore, the number of the first lookup tables varies depending on the different operating currents.
[0085] In determining the reference voltage of the battery, by looking up the corresponding reference voltage in a preset first lookup table based on the first temperature and the first current, the difficulty of determining the reference voltage can be reduced and the efficiency of determining the reference voltage can be improved. This makes it easier to determine whether the remaining battery power is within the preset range, which also improves the correction efficiency of the battery's displayed power.
[0086] In some embodiments, optionally, determining the actual remaining charge of the battery based on the second temperature, the second current, and the second voltage includes: determining the actual remaining charge corresponding to the second temperature, the second current, and the second voltage in a preset second lookup table; wherein the second lookup table is a pre-established table of correspondence between the remaining charge of the battery and the battery's operating temperature, operating current, and operating voltage when the battery is at a second power level.
[0087] In this embodiment, the actual remaining battery capacity can be determined by looking up a table. That is, the remaining battery capacity corresponding to the second temperature, the second current, and the second voltage can be determined in the second lookup table.
[0088] The second lookup table is a pre-established table showing the correspondence between the battery's operating temperature, operating current, operating voltage, and remaining charge when the battery is operating at its second power setting. Specifically, in establishing the second lookup table, the battery is first controlled to operate at its second power setting under different operating temperatures. During this operation, the battery's operating current, operating voltage, and remaining charge are collected. Then, the operating temperature, operating current, operating voltage, and remaining charge are analyzed and processed to establish the second lookup table.
[0089] In determining the actual remaining battery power, the difficulty of determining the actual remaining power can be reduced by looking up the corresponding remaining power, i.e., the actual remaining power, in a preset second lookup table based on the second temperature, second current, and second voltage. This improves the efficiency of determining the actual remaining power and also enhances the correction efficiency of the battery's displayed voltage.
[0090] In some embodiments, optionally, when the battery is operating at a second power, acquiring the second temperature, second current, and second voltage of the battery includes: acquiring the third current of the battery at multiple time points within a preset time period; determining the current state of the battery based on the multiple third currents; and acquiring the second temperature, second current, and second voltage when the current state of the battery is in a stable state.
[0091] In this embodiment, before obtaining the second temperature, second current, and second voltage, it is first necessary to determine the current stability of the battery during operation at the second power. That is, after determining that the current of the battery is in a stable state during operation at the second power, the second temperature, second current, and second voltage are obtained to ensure the accuracy of the determination of the actual remaining battery capacity.
[0092] Understandably, after the battery switches from the first power operating state to the second power operating state, the battery's operating state may become unstable due to the influence of the battery itself and external factors. If the actual remaining battery capacity is determined based on the second temperature, second current, and second voltage at this time, the actual remaining capacity may be inaccurate, leading to inaccurate correction of the displayed battery capacity. Therefore, after the battery switches from the first power operating state to the second power operating state, it is first necessary to determine the stability of the current during battery operation, that is, to determine whether the battery is in a stable operating state.
[0093] Specifically, after the battery switches from the first power operating state to the second power operating state, the third current of the battery at multiple time points is first acquired within a preset time period, and then the current state of the battery is determined based on the multiple third currents.
[0094] For example, the preset duration can be set to 180 seconds, and the number of third currents is 180, meaning that after the battery switches to the second power operation state, the third current is acquired once per second. Then, it is determined whether the 180 third currents meet preset conditions. If the preset conditions are met, it can be determined that the battery is in a stable operating state; otherwise, it is necessary to continue acquiring the third current until it is determined that the battery is in a stable operating state. Specifically, the preset conditions include: 1. Determining whether the third current is acquired in all 180 acquisitions. If the third current value is not acquired in one acquisition, the timer can be restarted, that is, acquiring the third current 180 times again, until the third current is acquired in all 180 acquisitions. 2. Checking whether the specific current values of the 180 third currents satisfy the condition that the maximum difference between more than 90% of the third currents is less than or equal to a preset value. 3. Checking the 5 most recently acquired third currents, the maximum difference between these 5 third currents is less than or equal to a preset value. The preset value can be set to 2 amps. If the above three preset conditions are met, it can be determined that the battery is in a stable operating state. Otherwise, it is determined that the battery is not in a stable state. In this case, it is necessary to continue to acquire multiple third currents within a preset time period and judge the stability of the battery's operating state based on the third currents until the battery is in a stable operating state.
[0095] In some embodiments, optionally, the displayed battery level is corrected based on the actual remaining battery level, including: obtaining the battery level difference between the actual remaining battery level and the displayed battery level; determining a change factor based on the battery level difference, wherein the change factor is used to indicate the rate of change of the displayed battery level; and controlling the change of the displayed battery level based on the change factor.
[0096] In this embodiment, once the actual remaining battery power is determined, the displayed battery power can be adjusted accordingly. Specifically, first, the difference between the actual remaining power and the displayed power is obtained, then a change factor is determined based on this difference. Finally, the displayed power is adjusted according to this change factor.
[0097] It should be noted that this change factor is used to measure the rate of change of the displayed battery level. For example, if the change factor is 2, 3, or 4, it means that the displayed battery level needs to change at 2, 3, or 4 times the original rate of change in order to correct the displayed battery level.
[0098] For example, after determining the actual remaining battery power, the difference between the actual remaining power and the displayed power is obtained, and then based on the power difference, it is determined whether the displayed power needs to be corrected, and how to correct the displayed power.
[0099] Specifically, if the ratio of the power difference to the displayed power is less than or equal to 1%, then the real-time remaining power can be displayed directly.
[0100] When the battery is charging, if the actual remaining power is greater than the displayed power, and the ratio of the difference between the actual remaining power and the displayed power to the displayed power is between 10% and 20%, the displayed power can be controlled at a 4x change rate to accelerate the change in the displayed power.
[0101] If the ratio of the difference between the actual remaining battery power and the displayed battery power to the displayed battery power is between 20% and 30%, the displayed battery power can be controlled at a 5x multiplier to accelerate the rate of change of the displayed battery power.
[0102] If the ratio of the difference between the actual remaining battery power and the displayed battery power to the displayed battery power is between 30% and 40%, the displayed battery power can be controlled at a 6x change rate to accelerate the rate of change of the displayed battery power.
[0103] If the ratio of the difference between the actual remaining battery power and the displayed battery power to the displayed battery power is between 40% and 50%, the displayed battery power can be controlled at an 8x multiplier to accelerate the rate of change of the displayed battery power.
[0104] If the ratio of the difference between the actual remaining battery power and the displayed battery power to the displayed battery power is greater than 50%, the displayed battery power can be controlled at a 10x multiplier to accelerate the change in the displayed battery power.
[0105] Conversely, if the actual remaining battery power is less than the displayed battery power, the rate at which the displayed battery power changes can be reduced accordingly. When the battery is discharging, the rate at which the displayed battery power changes is increased or decreased in the same way.
[0106] In some embodiments, optionally, after correcting the displayed battery level according to the change factor, the correction method further includes: when the displayed battery level is the same as the actual remaining battery level, controlling the change of the displayed battery level according to the original change factor of the displayed battery level.
[0107] In this embodiment, when the displayed battery level is the same as the actual remaining battery level, the adjustment of the display battery level change factor can be stopped. That is, the display battery level change is controlled by the original change factor of the displayed battery level to ensure the accuracy of the displayed battery level.
[0108] In some embodiments, such as Figure 10As shown, a correction device 600 is proposed for correcting the displayed battery charge. The correction device 600 includes: an acquisition unit 602, used to acquire a first temperature, a first current, and a first voltage of the battery when the battery is operating at a first power; a determination unit 604, used to determine the range of the remaining battery charge based on the first temperature, the first current, and the first voltage; a control unit 606, used to control the battery to operate at a second power when the remaining battery charge is within a preset range, wherein the second power is less than the first power; the acquisition unit 602 is further used to acquire a second temperature, a second current, and a second voltage of the battery when the battery is operating at the second power; the determination unit 604 is further used to determine the actual remaining battery charge based on the second temperature, the second current, and the second voltage; and a correction unit 608, used to correct the displayed charge based on the actual remaining charge.
[0109] The correction device 600 provided in this application, when the remaining battery power is within a preset range (i.e., when the remaining battery power has reached the charging or discharging cutoff point), calculates the actual remaining battery power and corrects the displayed battery power accordingly. This effectively prevents sudden changes in the displayed battery power when the remaining battery power reaches the charging or discharging cutoff point, ensuring the accuracy of the displayed battery power. Furthermore, by controlling the battery to operate at a lower second power when the remaining battery power is within the preset range, the charging and discharging speed of the battery is slowed down, allowing more time to calculate the actual remaining battery power and preventing delays in correcting the displayed battery power. Simultaneously, the amount of data used at the second operating power is reduced during the determination of the current actual remaining battery power, requiring less data matching and thus effectively improving calculation speed.
[0110] Understandably, as a battery operates at its initial power, its voltage changes with the remaining charge. For example, during charging, the voltage increases as the remaining charge increases, and conversely, during discharging, the voltage decreases as the remaining charge decreases. Therefore, comparing the battery's initial voltage with a reference voltage determines whether the current remaining charge is within a preset range, i.e., whether the battery is at the end of its charging or discharging cycle. Furthermore, the charging and discharging rates are also affected by the battery's temperature and the charging and discharging current. Therefore, the reference voltage can be determined based on the battery's operating temperature and current—specifically, its initial temperature and current—to ensure accuracy.
[0111] Furthermore, after determining the reference voltage of the battery, it is possible to determine whether the relationship between the first voltage of the battery and the reference voltage meets the first preset condition based on the actual operating state of the battery, that is, whether the battery is in the charging state or the discharging state. If the first preset condition is met, it can be determined that the remaining power of the battery is within the preset range.
[0112] Furthermore, the reference voltage of the battery can be determined according to a preset first lookup table. That is, in the process of determining the reference voltage, the corresponding reference voltage can be looked up in the preset first lookup table based on the first temperature and the first current.
[0113] In determining the reference voltage of the battery, by looking up the corresponding reference voltage in a preset first lookup table based on the first temperature and the first current, the difficulty of determining the reference voltage can be reduced and the efficiency of determining the reference voltage can be improved. This makes it easier to determine whether the remaining battery power is within the preset range, which also improves the correction efficiency of the battery's displayed power.
[0114] Furthermore, the actual remaining battery capacity can be determined by looking up a table. In other words, the remaining capacity corresponding to the second temperature, second current, and second voltage can be determined in the second lookup table.
[0115] In determining the actual remaining battery power, the difficulty of determining the actual remaining power can be reduced by looking up the corresponding remaining power, i.e., the actual remaining power, in a preset second lookup table based on the second temperature, second current, and second voltage. This improves the efficiency of determining the actual remaining power and also enhances the correction efficiency of the battery's displayed voltage.
[0116] Furthermore, before obtaining the second temperature, second current, and second voltage, it is first necessary to determine the current stability of the battery during operation at the second power. That is, only after determining that the current of the battery is in a stable state during operation at the second power can the second temperature, second current, and second voltage be obtained, so as to ensure the accuracy of the determination of the actual remaining capacity of the battery.
[0117] Understandably, after the battery switches from the first power operating state to the second power operating state, the battery's operating state may become unstable due to the influence of the battery itself and external factors. If the actual remaining battery capacity is determined based on the second temperature, second current, and second voltage at this time, the actual remaining capacity may be inaccurate, leading to inaccurate correction of the displayed battery capacity. Therefore, after the battery switches from the first power operating state to the second power operating state, it is first necessary to determine the stability of the current during battery operation, that is, to determine whether the battery is in a stable operating state.
[0118] Specifically, after the battery switches from the first power operating state to the second power operating state, the third current of the battery at multiple time points is first acquired within a preset time period, and then the current state of the battery is determined based on the multiple third currents.
[0119] For example, the preset duration can be set to 180 seconds, and the number of third currents is 180, meaning that after the battery switches to the second power operation state, the third current is acquired once per second. Then, it is determined whether the 180 third currents meet preset conditions. If the preset conditions are met, it can be determined that the battery is in a stable operating state; otherwise, it is necessary to continue acquiring the third current until it is determined that the battery is in a stable operating state. Specifically, the preset conditions include: 1. Determining whether the third current is acquired in all 180 acquisitions. If the third current value is not acquired in one acquisition, the timer can be restarted, that is, acquiring the third current 180 times again, until the third current is acquired in all 180 acquisitions. 2. Checking whether the specific current values of the 180 third currents satisfy the condition that the maximum difference between more than 90% of the third currents is less than or equal to a preset value. 3. Checking the 5 most recently acquired third currents, the maximum difference between these 5 third currents is less than or equal to a preset value. The preset value can be set to 2 amps. If the above three preset conditions are met, it can be determined that the battery is in a stable operating state. Otherwise, it is determined that the battery is not in a stable state. In this case, it is necessary to continue to acquire multiple third currents within a preset time period and judge the stability of the battery's operating state based on the third currents until the battery is in a stable operating state.
[0120] Furthermore, once the actual remaining battery power is determined, the displayed battery power can be adjusted accordingly. Specifically, first, the difference between the actual remaining power and the displayed power is obtained, then a change factor is determined based on this difference. Finally, the displayed power is adjusted based on this change factor.
[0121] It should be noted that this change factor is used to measure the rate of change of the displayed battery level. For example, if the change factor is 2, 3, or 4, it means that the displayed battery level needs to change at 2, 3, or 4 times the original rate of change in order to correct the displayed battery level.
[0122] Furthermore, when the displayed battery level is the same as the actual remaining battery level, the adjustment rate of the displayed battery level can be stopped. In other words, the change in the displayed battery level is controlled by the original change rate of the displayed battery level to ensure the accuracy of the displayed battery level.
[0123] In some embodiments, such as Figure 11As shown, an electronic device 700 is proposed, including a processor 702 and a memory 704. The memory 704 stores programs or instructions that can run on the processor 702. When the program or instructions are executed by the processor 702, they implement the steps of the correction method as provided in the first aspect.
[0124] The electronic device 700 provided in this application includes a memory 704 and a processor 702, and also includes a program or instructions stored in the memory 704. When the program or instructions are executed by the processor 702, they can implement the steps of the correction method in any of the above embodiments. Therefore, the electronic device 700 has all the beneficial effects of the above correction method, which will not be repeated here.
[0125] In some embodiments, a readable storage medium is provided on which a program or instructions are stored, which, when executed by a processor, implement the correction method as described in any of the above embodiments.
[0126] The readable storage medium provided in this application stores a program or instructions. When the program or instructions are executed by a processor, they can implement the correction method as described in any of the above embodiments. Therefore, the storage medium has all the beneficial effects of the above correction methods, which will not be repeated here.
[0127] The modification methods can be implemented in various ways depending on specific features and / or example applications. For example, these methods can be implemented through a combination of hardware, firmware, and / or software. For instance, in a hardware implementation, the processor can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, electronic devices, other device units for performing the above functions, and / or combinations thereof.
[0128] A readable storage medium can be a tangible device that holds and stores instructions for use by an instruction execution device. A readable storage medium can be an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing, but is not limited thereto. A non-exhaustive list of more specific examples of readable storage media includes: portable computer floppy disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable optical disc read-only memory (CD-ROM), digital universal disk (DVD), memory cards, floppy disks, encoding mechanical devices (e.g., punched cards or grooves with raised structures for recording instructions), and any suitable combination of the foregoing. The readable storage medium used herein should not be construed as the transmission of signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media, or electrical signals transmitted through wires.
[0129] In some embodiments, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the correction method as described in any of the above embodiments.
[0130] The computer program product provided in this application includes a computer program or instructions. When the computer program or instructions are executed by a processor, they implement the correction method of any of the above embodiments. Therefore, the computer program product has all the beneficial effects of the above correction methods, which will not be repeated here.
[0131] In the description of this application, the term "multiple" refers to two or more. Unless otherwise expressly defined, the terms "upper," "lower," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. The terms "connection," "installation," "fixing," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediate medium. For those skilled in the art, the specific meaning of the above terms in this application can be understood according to the specific circumstances.
[0132] In the description of this specification, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0133] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A correction method for correcting the displayed battery level, characterized in that, The correction method includes: When the battery is operating at a first power, the first temperature, first current, and first voltage of the battery are obtained; Based on the first temperature, the first current, and the first voltage, determine the range of the remaining charge of the battery; When the remaining charge of the battery is within a preset range, the battery is controlled to operate at a second power, wherein the second power is less than the first power; When the battery is operating at the second power, the second temperature, the second current, and the second voltage of the battery are obtained; The actual remaining charge of the battery is determined based on the second temperature, the second current, and the second voltage. The displayed battery level is adjusted based on the actual remaining battery level.
2. The correction method according to claim 1, characterized in that, Determining the range of remaining battery power based on the first temperature, the first current, and the first voltage includes: The reference voltage is determined based on the first temperature and the first current; If the relationship between the first voltage and the reference voltage satisfies a first preset condition, the remaining charge of the battery is determined to be within the preset range. Wherein, when the battery is in a charging state, the first voltage is the highest value of the voltage of the multiple cells of the battery, and the first preset condition is that the first voltage is greater than the reference voltage; when the battery is in a discharging state, the first voltage is the lowest value of the voltage of the multiple cells of the battery, and the first preset condition is that the first voltage is less than the reference voltage.
3. The correction method according to claim 2, characterized in that, The step of determining the reference voltage based on the first temperature and the first current includes: In a preset first lookup table, the reference voltage corresponding to the first temperature and the first current is determined; The first lookup table is a pre-established table showing the correspondence between the battery's operating temperature, operating current, and operating voltage when the battery is operating at a first power level and the remaining charge of the battery is within a preset range.
4. The correction method according to claim 1, characterized in that, Determining the actual remaining charge of the battery based on the second temperature, the second current, and the second voltage includes: In a preset second lookup table, determine the actual remaining power corresponding to the second temperature, the second current, and the second voltage; The second lookup table is a pre-established table showing the correspondence between the remaining charge of the battery and its operating temperature, operating current, and operating voltage when the battery is at the second power level.
5. The correction method according to claim 1, characterized in that, The step of acquiring the second temperature, second current, and second voltage of the battery when the battery is operating at the second power includes: The third current of the battery at multiple time points is acquired within a preset time period; The current state of the battery is determined based on the plurality of said third currents; When the current state of the battery is in a stable state, the second temperature, the second current, and the second voltage are obtained.
6. The correction method according to claim 1, characterized in that, The displayed battery level is corrected based on the actual remaining battery level, including: Obtain the power difference between the actual remaining power and the displayed power. Based on the power difference, a change factor is determined, wherein the change factor is used to indicate the rate of change of the displayed power level; The displayed battery level is controlled to change according to the change factor.
7. The correction method according to claim 6, characterized in that, After controlling the displayed battery level change according to the change factor, the correction method further includes: When the displayed battery level is the same as the actual remaining battery level, the displayed battery level is controlled to change according to the original change factor of the displayed battery level.
8. A correction device for correcting the displayed battery charge level, characterized in that, The correction device includes: The acquisition unit is configured to acquire a first temperature, a first current, and a first voltage of the battery when the battery is operating at a first power. The determining unit is used to determine the range of the remaining charge of the battery based on the first temperature, the first current, and the first voltage. A control unit is configured to control the battery to operate at a second power when the remaining charge of the battery is within a preset range, wherein the second power is less than the first power; The acquisition unit is further configured to acquire a second temperature, a second current, and a second voltage of the battery when the battery is operating at the second power. The determining unit is further configured to determine the actual remaining charge of the battery based on the second temperature, the second current, and the second voltage; The correction unit is used to correct the displayed battery level based on the actual remaining battery level.
9. An electronic device, characterized in that, include: A processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as claimed in any one of claims 1 to 7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 7.
11. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method as described in any one of claims 1 to 7.