Method for state of charge calibration of a battery, computer program product and vehicle
By periodically waking up the battery management system to collect cell voltage and using a sliding window to update the state of charge (SOC) value, the problem of low SOC calibration efficiency in existing technologies is solved, enabling the acquisition of high-precision SOC values in a short time.
Patent Information
- Application Number
- CN202611365897.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-27
AI Technical Summary
Existing open-circuit voltage-based state of charge calibration methods require a long settling time to ensure calibration accuracy, resulting in low calibration efficiency and an inability to obtain accurate state of charge values in a short time.
By periodically waking up the battery management system, the cell voltage value is collected and converted into a temporary state of charge value. The difference is calculated and compared with a preset convergence threshold. The state of charge value is updated using a sliding window until the difference is less than the convergence threshold, and then a calibrated state of charge value is output.
It significantly shortens the battery resting time, improves the efficiency and accuracy of state of charge calibration, and ensures that accurate state of charge values can be obtained in a short time.
Smart Images

Figure CN123176573A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery technology, and more specifically to a method for calibrating the state of charge of a battery, a computer program product, and a corresponding vehicle. Background Technology
[0002] With the widespread application of lithium-ion batteries in electric vehicles, energy storage systems, and portable electronic devices, accurate estimation of the battery's state of charge (SOC) by the battery management system has become crucial for ensuring safe battery operation, extending battery life, and optimizing energy management strategies. SOC represents the ratio between the battery's current remaining usable capacity and its rated capacity, serving as a fundamental parameter for the Battery Management System (BMS) to perform functions such as charge / discharge control, remaining driving range estimation, and battery health assessment. Therefore, how to quickly and accurately obtain the battery's SOC value remains a highly relevant technical challenge in the field of battery management.
[0003] In existing battery management technologies, the open-circuit voltage-based state-of-charge (SOC-OCV) calibration method is a widely adopted approach. The basic principle of this method is based on the relatively definite correspondence between the battery's SOC and its open-circuit voltage (i.e., the SOC-OCV curve). By measuring the battery's open-circuit voltage in a resting state and then consulting a pre-stored SOC-OCV correspondence, the current SOC value can be obtained. Since this method does not rely on current integration, it is not affected by current sensor drift and accumulated errors. In long-term operation, it can provide an effective calibration benchmark for other estimation methods such as the ampere-hour integration method, offering advantages such as simplicity and ease of implementation.
[0004] However, the aforementioned calibration method based on open-circuit voltage faces a significant limitation in practical applications: it has strict requirements on battery resting time. After a battery undergoes a charge-discharge process, due to effects such as electrochemical polarization, concentration polarization, and ohmic polarization, the cell terminal voltage does not immediately reach the true thermodynamic equilibrium open-circuit voltage after the current is cut off. Instead, it requires a voltage relaxation process to gradually stabilize. Under normal temperature conditions, this voltage relaxation process typically takes several hours to complete; while at low temperatures, due to the slowdown in internal electrochemical reaction kinetics and the reduction in ion diffusion rate, the time required for voltage relaxation is often further extended, potentially exceeding ten hours. In traditional solutions, the battery management system (BMS) usually waits for the voltage to fully relax to a sufficiently stable open-circuit voltage value before performing a state-of-charge (SOC) calibration update. This means that during a long resting period, the BMS cannot effectively correct the SOC, leading to a contradiction between calibration efficiency and calibration accuracy—shortening the resting time compromises calibration accuracy, while pursuing high-precision calibration requires a longer waiting time.
[0005] Therefore, there is an urgent need to provide an improved battery state of charge calibration method that can determine as early as possible whether the state of charge value has converged to a reliable level during the battery resting process, thereby significantly shortening the resting waiting time required for the battery management system to obtain accurate state of charge values while ensuring calibration accuracy. Summary of the Invention
[0006] In view of this, the object of the present invention is to provide an improved method for calibrating the state of charge of a battery, an improved computer program product, and an improved vehicle, to at least solve some of the problems in the prior art and / or overcome other possible disadvantages not mentioned herein.
[0007] According to a first aspect of the present invention, a method for calibrating the state of charge (SOC) of a battery is provided, wherein the SOC calibration method includes: S100: after the battery enters a resting state, periodically waking up the battery management system at predetermined time intervals Δt and collecting cell voltage values at each sampling time; S200: based on a pre-stored correspondence between SOC and open-circuit voltage, treating each collected cell voltage value as an approximation of the current open-circuit voltage and converting it into a corresponding temporary SOC value; S300: for N temporary SOC values corresponding to N consecutive sampling times, calculating the difference between the maximum and minimum values, where N is an integer not less than three; S400: comparing the difference with a preset convergence threshold ΔSOC; S500: in response to the difference being less than the preset convergence threshold ΔSOC, outputting the most recent temporary SOC value among the N consecutive temporary SOC values as the calibrated SOC value of the battery.
[0008] According to an optional embodiment of the present invention, the state of charge calibration method further includes: S600: in response to the difference being not less than the preset convergence threshold ΔSOC, waking up the battery management system at the next sampling time to collect a new cell voltage value, and converting the new cell voltage value into a new temporary state of charge value; S700: updating N consecutive temporary state of charge values in a sliding window manner, wherein the earliest temporary state of charge value is discarded and incorporated into the new temporary state of charge value, and then re-executing steps S300 and S400 until the difference is less than the preset convergence threshold ΔSOC.
[0009] According to an optional embodiment of the present invention, the moment when the high voltage circuit of the battery is disconnected and the charging and discharging current drops to zero is taken as the starting time t0 when the battery enters the resting state, and the first cell voltage acquisition is performed at the first sampling moment after the predetermined time interval Δt after the starting time t0 to obtain the first temporary state of charge value, or the first cell voltage acquisition is performed at the starting time t0 to obtain the first temporary state of charge value.
[0010] According to an optional embodiment of the invention, N equals three.
[0011] According to an optional embodiment of the present invention, the predetermined time interval Δt ranges from 5 minutes to 60 minutes, preferably 10 minutes.
[0012] According to an optional embodiment of the present invention, the preset convergence threshold ΔSOC ranges from 0.01%SOC to 0.2%SOC, preferably 0.02%SOC.
[0013] According to an optional embodiment of the present invention, after the calibration state of charge value is output in step S500, the battery management system continues to collect new cell voltage values at the predetermined time interval Δt and convert them into new temporary state of charge values. If the subsequent N consecutive temporary state of charge values still meet the convergence condition, the previously output calibration state of charge value is updated with the latest temporary state of charge value.
[0014] According to an optional embodiment of the present invention, the preset convergence threshold ΔSOC is determined based on the predetermined time interval Δt, wherein preferably, the larger the predetermined time interval Δt is, the larger the corresponding preset convergence threshold ΔSOC is.
[0015] According to an optional embodiment of the present invention, the correlation between the preset convergence threshold ΔSOC and the predetermined time interval Δt is pre-stored in the battery management system in the form of a lookup table, and the battery management system reads the corresponding preset convergence threshold ΔSOC from the lookup table according to the currently used predetermined time interval Δt.
[0016] According to an optional embodiment of the present invention, the lookup table includes at least one set of the following mapping relationships: when the predetermined time interval Δt is 10 minutes, the corresponding preset convergence threshold ΔSOC is 0.01%SOC to 0.02%SOC; when the predetermined time interval Δt is 30 minutes, the corresponding preset convergence threshold ΔSOC is 0.05%SOC to 0.06%SOC; when the predetermined time interval Δt is 50 minutes to 60 minutes, the corresponding preset convergence threshold ΔSOC is 0.1%SOC.
[0017] According to an optional embodiment of the present invention, the preset convergence threshold ΔSOC and / or the predetermined time interval Δt are determined based on the chemical system of the battery.
[0018] According to an optional embodiment of the present invention, the preset convergence threshold ΔSOC and / or the predetermined time interval Δt are determined based on the current ambient temperature of the battery.
[0019] According to an optional embodiment of the present invention, the preset convergence threshold ΔSOC and / or the predetermined time interval Δt are dynamically adjusted according to the current ambient temperature of the battery. Preferably, in a low-temperature environment, the predetermined time interval Δt is set to a value greater than the corresponding value in a normal-temperature environment, and / or the preset convergence threshold ΔSOC is set to a value greater than the corresponding value in a normal-temperature environment.
[0020] According to an optional embodiment of the present invention, the chemical system of the battery includes a ternary lithium battery and / or a lithium iron phosphate battery.
[0021] According to an optional embodiment of the present invention, the correspondence between the state of charge and the open-circuit voltage is based on the SOC-OCV fitting curve pre-calibrated and stored in the battery management system according to the chemical system of the battery. The preset convergence threshold ΔSOC is preferably adaptively set according to the chemical system type of the battery and the slope of the SOC-OCV curve interval where the current temporary state of charge value is located. In the interval where the slope of the SOC-OCV curve is small, a larger preset convergence threshold ΔSOC is preferably used.
[0022] According to a second aspect of the present invention, a computer program product is provided, comprising computer program instructions, wherein, when executed by a processor, the computer program instructions implement the steps of the state of charge calibration method provided in the embodiments of the first aspect described above.
[0023] According to a third aspect of the present invention, a vehicle (especially an electric vehicle) is provided, wherein the vehicle includes a power battery and a computer program product provided in the embodiments of the second aspect described above.
[0024] Compared to traditional calibration methods that require waiting for the open-circuit voltage to fully relax to a steady state, certain embodiments of the present invention can significantly shorten the waiting time required for battery rest, thereby greatly improving the working efficiency of the battery management system and the user experience. Attached Figure Description
[0025] The invention will now be described in more detail with reference to the accompanying drawings, which will provide a better understanding of its principles, features, and advantages. The drawings include: Figure 1 A flowchart illustrating a method for calibrating the state of charge of a battery according to an exemplary embodiment of the present invention is shown schematically. Figure 2 A flowchart illustrating a method for calibrating the state of charge of a battery according to an exemplary embodiment of the present invention is shown schematically. Figure 3 A schematic structural framework diagram of a computer system according to an exemplary embodiment of the present invention is shown; and Figure 4 A vehicle according to an exemplary embodiment of the present invention is illustrated schematically. Detailed Implementation
[0026] To make the technical problems to be solved, the technical solutions, and the beneficial technical effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and several exemplary embodiments. It should be understood that the specific embodiments described herein are only for explaining the present invention and are not intended to limit the scope of protection of the present invention. Various embodiments may share the same view or multiple views for description, but not all features appearing in the same view should be interpreted as features that must be present in the exemplary embodiments.
[0027] Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings.
[0028] Figure 1 A flowchart illustrating a state-of-charge calibration method 2000 for a battery 1000 according to an exemplary embodiment of the present invention is shown schematically. Figure 1 As shown, the state of charge calibration method 2000 includes steps S100, S200, S300, S400 and S500.
[0029] In step S100, after the battery 1000 enters a resting state, the battery management system is periodically woken up at predetermined time intervals Δt to collect cell voltage values at each sampling time. Specifically, when the vehicle is powered off or the battery system is disconnected from the load and enters a resting state, the timer inside the battery management system (BMS) starts counting and periodically wakes up from the low-power sleep mode at predetermined time intervals Δt (e.g., 5 to 60 minutes, preferably 10 minutes). After waking up, the BMS collects the cell terminal voltage values in real time at each sampling time (e.g., t1, t2, t3, etc.).
[0030] In step S200, based on the pre-stored correspondence between state of charge and open-circuit voltage, each sampled cell voltage value is regarded as an approximation of the current open-circuit voltage and converted into the corresponding temporary state of charge value. Specifically, based on the pre-stored correspondence curve between state of charge and open-circuit voltage (SOC-OCV) in non-volatile memory, each sampled transient cell voltage value is directly regarded as an approximation of the current open-circuit voltage, and converted into the corresponding temporary state of charge value (such as SOC1, SOC2, SOC3) through table lookup or interpolation algorithm.
[0031] In step S300, for N temporary state-of-charge values corresponding to N consecutive sampling times, the difference between the maximum and minimum values is calculated, where N is an integer not less than three. Specifically, for example, a microcontroller unit (MCU) can cache N temporary state-of-charge values corresponding to N consecutive sampling times (N is an integer not less than three, e.g., N=3) in memory, obtain the maximum and minimum values from this set of N values, and then calculate the difference ΔSOC_calc between them.
[0032] In step S400, the difference is compared with a preset convergence threshold ΔSOC. Specifically, the calculated actual difference ΔSOC_calc is compared with a convergence threshold ΔSOC (e.g., 0.01%SOC to 0.2%SOC, preferably 0.02%SOC) preset in the software parameters.
[0033] In step S500, in response to the difference being less than the preset convergence threshold ΔSOC, the most recent temporary state of charge (SOC) value among the N consecutive temporary SOC values is output as the calibrated SOC value of the battery. Specifically, when the condition that the difference ΔSOC_calc is less than the preset convergence threshold ΔSOC is met, it is determined that the polarization voltage inside the battery has dissipated to a level that has minimal impact on SOC estimation. At this time, the BMS outputs the value with the most recent timestamp among these N consecutive temporary SOC values (i.e., the latest temporary SOC value) as the final calibrated SOC value of the battery and synchronously updates the global SOC variable inside the system.
[0034] By converting voltage relaxation into SOC convergence trend judgment, a SOC value that meets the accuracy requirements can be obtained in advance before the battery voltage has fully reached absolute physical stability. This significantly improves the success rate of SOC calibration in battery management systems, such as in short-term parking scenarios, and the accuracy of vehicle battery level display.
[0035] Figure 2 A flowchart illustrating a state-of-charge calibration method 2000 for a battery 1000 according to an exemplary embodiment of the present invention is shown schematically. Figure 2 As shown, the state of charge calibration method 2000 also includes steps S600 and S700.
[0036] In step S600, in response to the difference being not less than the preset convergence threshold ΔSOC, the battery management system is woken up at the next sampling time to collect the new cell voltage value and convert the new cell voltage value into a new temporary state of charge value.
[0037] In step S700, N consecutive temporary state of charge values are updated in a sliding window manner, wherein the earliest temporary state of charge value is discarded and a new temporary state of charge value is included. Then, steps S300 and S400 are re-executed until the difference is less than the preset convergence threshold ΔSOC.
[0038] Specifically, in step S400, if the system determines that the difference between the currently calculated maximum and minimum values, ΔSOC_calc, is not less than (i.e., greater than or equal to) the preset convergence threshold ΔSOC, this indicates that the electrochemical polarization and concentration polarization processes inside the battery are still proceeding violently, and the current temporary SOC value has not yet stabilized and cannot be used as the final calibration value. At this time, the battery management system will not output the calibration result, but will control the system to re-enter a sleep or low-power waiting state until the next predetermined time interval Δt arrives and it will wake up again. After waking up, the BMS will collect the new cell voltage value and convert it into a new temporary state of charge value using the SOC-OCV curve. Then, in step S700, the system updates the data set of these N consecutive temporary state of charge values in the memory array or queue in a sliding window manner. Specifically, the system dequeues or discards the temporary state of charge value with the earliest timestamp in the queue (i.e., the oldest data), and enqueues or appends the newly calculated temporary state of charge value, thereby maintaining the total number of data in the window at N. After the window sliding update is completed, the system automatically jumps back to step S300, recalculates the difference between the maximum and minimum values of the N temporary SOC values within the new window, and executes the comparison and judgment process in step S400 again. This loop process will repeat continuously. As the resting time increases, the polarization voltage gradually decreases, and the rate of change of the temporary SOC value will inevitably decrease until the difference calculated by a certain sliding window is strictly less than the preset convergence threshold ΔSOC. This dynamic evaluation mechanism using a sliding window not only ensures the robustness of the algorithm and avoids misjudgments caused by single abnormal fluctuations, but also adapts to battery states with different polarization degrees, ensuring that the final output calibrated SOC value has extremely high reliability and accuracy.
[0039] In a preferred embodiment, the moment when the battery disconnects the high-voltage circuit and the charging / discharging current drops to zero is taken as the starting time t0 when the battery enters the resting state. The first cell voltage acquisition is performed at the first sampling moment after a predetermined time interval Δt from the starting time t0 to obtain the first temporary state of charge value, or the first cell voltage acquisition is performed at the starting time t0 to obtain the first temporary state of charge value. In actual electric vehicle applications, when the vehicle key is turned off or the vehicle control unit (VCU) issues a sleep command, the high-voltage positive and negative contactors (relays) in the battery pack disconnect the high-voltage circuit. At this time, the battery management system detects that the charging / discharging current has strictly dropped to zero (or is within a very small mA-level static current range) through a Hall sensor or shunt, and the system accurately marks this physical disconnection moment as the starting time t0 when the battery enters the resting state. For the initial sampling strategy, two flexible engineering implementation paths are provided: The first path is that after marking the start time t0, the system immediately starts a timer. After the first complete predetermined time interval Δt (e.g., 10 minutes), i.e., at time t1, the first cell voltage acquisition is performed to obtain the first temporary state of charge (SOC1). The advantage of this method is that it avoids the largest ohmic polarization voltage drop fluctuation at the moment of power failure, making the first data point more valuable. The second path is that at the instant the current is confirmed to be zero at the start time t0, the system immediately performs a cell voltage acquisition to obtain the initial temporary state of charge (SOC0) as a reference point. Although the calculated SOC0 at time t0 often has a large error due to the polarization not being eliminated (e.g., the actual SOC is 46.8%, but the calculated SOC at t0 may be 40.31%), this does not affect the core logic of the invention, because this value is only used to fill the sliding window and compare the difference with the values at subsequent times (e.g., t1, t2). As the window slides, this initially erroneous value will be quickly discarded. Clearly defining time t0 and arranging the first sampling not only provides a clear trigger condition for the state machine transition within the BMS software, but also lays the timeline foundation for the accurate operation of the subsequent periodic wake-up timer, ensuring that the entire voltage relaxation-based SOC calibration algorithm can be stably and reliably activated and executed in various vehicle power-down scenarios.
[0040] In a preferred embodiment, after outputting the calibrated state of charge (SOC) value in step S500, the battery management system continues to collect new cell voltage values at predetermined time intervals Δt and convert them into new temporary SOC values. If the subsequent N consecutive temporary SOC values still meet the convergence condition, the previously output calibrated SOC value is updated with the latest temporary SOC value. In actual vehicle parking scenarios, users may leave the vehicle idle for a long time (e.g., overnight parking for 8 to 12 hours). The system may have already met the convergence condition within the first hour of inactivity (e.g., three consecutive temporary SOC differences less than 0.02%) and output a calibrated SOC value in step S500. However, the extremely slow concentration polarization inside the battery is still weakly occurring, and the absolutely true open-circuit voltage is still approaching the final steady state at an extremely slow rate. To pursue higher accuracy, after the initial output of the calibration value, as long as the vehicle remains idle and is not woken up and powered on, the battery management system will continue to periodically wake up and collect new cell voltage values at predetermined time intervals Δt (e.g., 10 minutes), converting them into new temporary SOC values. The system continues to maintain the sliding window of length N in the background. If, over time, the difference between the maximum and minimum values of the subsequently acquired N consecutive temporary state of charge (SOC) values is found to be less than the preset convergence threshold ΔSOC, the system will overwrite and update the previously output calibration SOC value with the freshest temporary SOC value in the current window. This ensures that the system can quickly provide a relatively accurate initial calibration value within a short period (e.g., 1 hour) (addressing the pain point in short-stop scenarios) while also fully utilizing redundant resting time in long-stop scenarios to continuously approach the battery's most realistic physical state. Through this continuous iterative update mechanism, the BMS can always maintain optimal control over the battery state, ensuring that when the user restarts the vehicle at any time, the SOC displayed on the dashboard is the high-precision value based on the current resting time.
[0041] In a preferred embodiment, the preset convergence threshold ΔSOC is determined based on a predetermined time interval Δt, wherein preferably, the larger the predetermined time interval Δt, the larger the corresponding preset convergence threshold ΔSOC. During battery rest, the voltage-time curve (relaxation curve) is a non-linear process with a gradually decreasing slope. If a shorter sampling time interval is chosen (e.g., Δt = 10 minutes), the time span between adjacent sampling points is small, and the changes in voltage and the corresponding temporary SOC are also small. To accurately determine whether such short-term changes truly represent a stable trend, a strict (small) convergence threshold (e.g., 0.01% or 0.02%) can be used; otherwise, it is easy to misjudge small segments in the normal relaxation process as stable. Conversely, if a longer sampling time interval (e.g., Δt = 30 minutes or 60 minutes) is chosen due to system power consumption limitations or other strategies, the total time spanned by N consecutive sampling points will be very long. During this long period, even if the battery is very close to its final steady state, the total change in temporary SOC at the first and last points will be relatively large due to the cumulative effect of time. If an extremely small threshold (such as 0.01%) is still used at this point, the algorithm may never determine convergence. Therefore, the convergence threshold can be relaxed (increased) accordingly (e.g., adjusted to 0.05% or 0.1%). By configuring ΔSOC and Δt in a positive correlation, the algorithm is given strong flexibility, enabling it to adapt to the timing wake-up strategies of different BMS platforms and ensuring that the convergence inflection point of SOC can be captured scientifically and accurately at any sampling frequency.
[0042] In a preferred embodiment, the correlation between the preset convergence threshold ΔSOC and the predetermined time interval Δt is pre-stored in the battery management system in the form of a lookup table. The battery management system reads the corresponding preset convergence threshold ΔSOC from the lookup table based on the currently used predetermined time interval Δt. In complex battery management system (BMS) software architectures, to avoid hardcoding complex nonlinear mathematical calculation formulas in the underlying code to save the computing power of the microcontroller (MCU), the correlation between the preset convergence threshold ΔSOC and the predetermined time interval Δt can be pre-stored in the BMS's non-volatile memory in the form of a one-dimensional lookup table (LUT). During actual operation, the BMS application layer software can dynamically adjust the predetermined time interval Δt for periodic wake-ups based on the current vehicle battery charge, low-voltage battery status, or user settings (for example, when the low-voltage battery charge is insufficient, the wake-up interval can be extended from 10 minutes to 30 minutes to save power). At this time, the BMS calibration algorithm module reads the value of the currently used predetermined time interval Δt in real time and inputs it as an index key into the pre-stored lookup table. By using a lookup table, the system can quickly and directly retrieve the preset convergence threshold ΔSOC that matches the current Δt. If the current Δt value lies between two discrete nodes in the lookup table, the system can also call a linear interpolation algorithm to calculate the precise threshold. This lookup table-based parameter configuration method offers extremely high engineering flexibility and maintainability.
[0043] In a specific embodiment, the lookup table can include the following three typical mapping rules: First, when the predetermined time interval Δt configured by the system is a short 10 minutes, this means a high sampling frequency and a short time span for the data within the window. To prevent misjudgment of unstable transient fluctuations, the lookup table specifies that the corresponding preset convergence threshold ΔSOC can be very strict, for example, set between 0.01%SOC and 0.02%SOC. Second, when the predetermined time interval Δt is extended to 30 minutes, three consecutive sampling points cover a relaxation process lasting up to one hour. At this time, the accumulated natural voltage change will increase. Therefore, the lookup table can appropriately relax the corresponding preset convergence threshold ΔSOC to between 0.05%SOC and 0.06%SOC to match a reasonable range of change over a longer time span. Finally, when the predetermined time interval Δt is further extended to 50 to 60 minutes, the time span of three consecutive sampling points has reached two to three hours, which is close to or even reaches the time required for some room-temperature batteries to fully relax. At this time, the corresponding preset convergence threshold ΔSOC can be set to a larger 0.1%SOC.
[0044] In a preferred embodiment, the preset convergence threshold ΔSOC and / or predetermined time interval Δt are determined based on the battery's chemical system. Different lithium-ion battery cathode materials exhibit drastically different thermodynamic and kinetic properties. For example, ternary lithium-ion (NMC) batteries have relatively steep open-circuit voltage curves and high lithium-ion diffusion coefficients, resulting in relatively fast polarization elimination; while lithium iron phosphate (LFP) batteries have extremely flat voltage plateau regions and high solid-state diffusion resistance, leading to exceptionally slow voltage relaxation processes. Therefore, during BMS software initialization, the battery pack configuration information is read to identify the current chemical system. For NMC batteries, the system can configure shorter predetermined time intervals and conventional convergence thresholds; for LFP batteries, to address their slow relaxation characteristics and flat voltage curves, the system can automatically lengthen the predetermined time interval and correspondingly match more stringent convergence thresholds, or employ specific voltage SOC conversion slope compensation. This design, which binds the core parameters of the algorithm to the battery chemical system, greatly expands the applicability of the calibration method, enabling it to adapt to various mainstream power battery systems on the market.
[0045] In a preferred embodiment, the preset convergence threshold ΔSOC and / or the predetermined time interval Δt are determined based on the current ambient temperature of the battery. In actual battery operation, temperature is the most critical factor affecting the electrochemical reaction rate and ion diffusion rate. At room temperature (e.g., 25°C), the polarization voltage inside the battery dissipates quickly, and the voltage relaxation process may be completed within a few hours. However, when the vehicle is in a frigid winter environment (e.g., -20°C), the battery polarization is extremely severe, and the voltage relaxation process becomes exceptionally slow, potentially taking more than ten hours or even longer to reach true physical steady state. Under such low-temperature conditions, if sampling is performed at short time intervals (e.g., 10 minutes) at room temperature during the initial resting period, the voltage change from three consecutive samples may be negligible due to the extremely slow relaxation, easily leading the algorithm to misjudge convergence and output an erroneous SOC value containing a large polarization error. Therefore, the BMS is required to read the current ambient or cell temperature in real time using NTC thermistors placed on the cell surface when entering the resting state. The system has a pre-stored temperature-based parameter mapping table. When a low-temperature environment is detected, the algorithm automatically calls a parameter set specifically calibrated for low temperatures. This temperature-sensing-based parameter adaptation mechanism effectively avoids algorithm failure under extreme weather conditions, ensuring that the vehicle receives accurate and reliable SOC calibration services regardless of whether it is a hot summer or a cold winter, significantly improving the user experience of the vehicle in all weather conditions.
[0046] As mentioned earlier, low-temperature environments cause extremely slow battery polarization elimination. To address this physical reality, the preset convergence threshold ΔSOC and / or the predetermined time interval Δt can be dynamically adjusted based on the current temperature. Preferably, in low-temperature environments (e.g., below 0°C), the system can set the predetermined time interval Δt to a value greater than the corresponding value at normal temperatures (e.g., dynamically extending 10 minutes at normal temperatures to 30 minutes or 60 minutes). The reason for lengthening the sampling interval is that since voltage changes are extremely slow at low temperatures, frequent wake-ups not only increase power consumption but also the amount of change in a short period is insufficient to reflect the true convergence trend. Only by extending the time span can the slow changes accumulate to a level that can be effectively evaluated. Alternatively, the system can also set the preset convergence threshold ΔSOC to a value greater than the corresponding value at normal temperatures (e.g., relaxing 0.02% at normal temperatures to 0.1% or 0.2%). For example, at low temperatures such as -20°C, since the overall relaxation time is extended to more than ten hours, if the stringent minimum threshold at normal temperatures is still maintained, the algorithm may fail to trigger the convergence condition throughout the entire overnight parking period. Through this dynamic adaptive adjustment strategy, the BMS can intelligently find the optimal balance point between accuracy and time in different temperature ranges, making the state of charge calibration method according to the present invention environmentally adaptable.
[0047] In a preferred embodiment, the correspondence between state of charge (SOC) and open-circuit voltage is based on a pre-calibrated SOC-OCV fitting curve stored in the battery management system according to the battery's chemical system. The preset convergence threshold ΔSOC is preferably adaptively set based on the battery's chemical system type and the slope of the SOC-OCV curve interval where the current temporary SOC value is located. A larger preset convergence threshold ΔSOC is preferred in intervals with a smaller SOC-OCV curve slope. In the battery management system, the correspondence between SOC and open-circuit voltage is typically represented by a pre-calibrated SOC-OCV fitting curve. Because this curve is non-linear, its slope (i.e., d(OCV) / d(SOC)) varies significantly across different SOC intervals. For example, in steep regions of the curve (such as near full charge or depletion), a voltage difference of 10 millivolts may only correspond to a 0.1% SOC change; while in flat regions (such as the intermediate plateau region of an LFP), the same 10 millivolt voltage difference may correspond to a SOC change as high as 5%. Using a globally uniform convergence threshold would inevitably lead to overly stringent conditions in steep regions and overly lenient conditions in flat regions. Therefore, the preset convergence threshold ΔSOC can be adaptively set based on the battery's chemical system type and the slope of the SOC-OCV curve interval where the current temporary state of charge value is located. Specifically, after calculating the first temporary SOC value, the BMS calculates or looks up the curve slope corresponding to that point in real time. In regions with a small slope of the SOC-OCV curve (i.e., flat regions where voltage changes have a significant impact on SOC), to prevent small unresolved polarization voltages from being amplified into large SOC errors, a larger preset convergence threshold ΔSOC is preferred (or, in the equivalent implementation of the algorithm, a stricter voltage change judgment standard is adopted); conversely, in steep regions with large slopes, a smaller threshold can be used. This dynamic compensation mechanism based on local slopes eliminates the conversion error amplification effect caused by nonlinear curves, enabling the calibration algorithm of this invention to maintain high calibration accuracy across the entire SOC range.
[0048] Figure 3 A schematic structural framework diagram of a computer system according to an exemplary embodiment of the present invention is shown, the computer system being configured to perform various steps of the state of charge calibration method 2000 provided according to the above embodiments of the present invention. Figure 3 As shown, the computer system includes a memory 1, a processor 2, a communication interface 3, and a bus 4. Here, the memory 1, processor 2, and communication interface 3 are interconnected via the bus 4. According to one aspect of the invention, a computer program product is also provided, comprising computer program instructions, wherein when executed by a processor, particularly by the processor 2 of the aforementioned computer system, the computer program instructions implement the various steps of the state of charge calibration method 2000 provided according to the above embodiments of the invention.
[0049] Figure 4 A vehicle 3000 according to an exemplary embodiment of the present invention is illustrated schematically.
[0050] like Figure 4 As illustrated, the vehicle 3000 is configured as an electric vehicle and includes a power battery 1000 (e.g., composed of hundreds of ternary lithium or lithium iron phosphate cells connected in series and parallel) as a power source, and a battery management system (BMS) responsible for monitoring and managing the battery pack. Crucially, the vehicle's BMS integrates the aforementioned computer program. In actual driving experience, this integration significantly enhances user value. When a user restarts a traditional electric vehicle after a short stop (such as a one-hour rest stop at a highway service area or for a meal), the BMS often cannot perform open-circuit voltage calibration because the resting time is insufficient for the battery voltage to fully relax. It can only continue to rely on the ampere-hour integration method, which has accumulated errors, leading to potential "phantom battery" or fluctuating range displayed on the dashboard. However, according to the present invention, after the user locks the vehicle and leaves, the BMS can be periodically woken up in the background with extremely low power consumption. Utilizing a sliding window and convergence threshold judgment logic, it can keenly capture the SOC convergence trend within a very short time (e.g., 50 to 60 minutes) and pre-calculate a high-precision calibrated SOC value. When the user finishes their meal, gets back into the car, and starts the engine, the vehicle's dashboard and central control screen will display precisely calibrated and accurate remaining battery power and driving range. This precise control over the battery status not only eliminates the user's range anxiety but also provides reliable data support for the vehicle control unit (VCU) to implement better torque distribution and energy recovery strategies, thereby improving the overall safety performance, energy efficiency, and intelligence level of the electric vehicle.
[0051] Although specific embodiments of the invention have been described in detail herein, they are given for illustrative purposes only and should not be construed as limiting the scope of the invention. Various substitutions, alterations, and modifications can be conceived without departing from the spirit and scope of the invention.
Claims
1. A method for calibrating the state of charge (SOC) of a battery, wherein, The state of charge calibration method includes: S100: After the battery enters a resting state, the battery management system is periodically woken up at a predetermined time interval Δt and the cell voltage value is collected at each sampling time. S200: Based on the pre-stored correspondence between the state of charge and the open circuit voltage, the cell voltage value collected each time is regarded as an approximate value of the current open circuit voltage and converted into the corresponding temporary state of charge value. S300: For N temporary state-of-charge values corresponding to N consecutive sampling times, calculate the difference between the maximum and minimum values, where N is an integer not less than three; S400: Compare the difference with a preset convergence threshold ΔSOC; S500: In response to the difference being less than the preset convergence threshold ΔSOC, the most recent temporary state of charge value among the N consecutive temporary state of charge values is output as the calibrated state of charge value of the battery.
2. The state of charge calibration method according to claim 1, wherein, The state of charge calibration method further includes: S600: In response to the difference being not less than the preset convergence threshold ΔSOC, the battery management system is woken up at the next sampling moment to collect a new cell voltage value and convert the new cell voltage value into a new temporary state of charge value. S700: Update N consecutive temporary state of charge values in a sliding window manner, discarding the earliest temporary state of charge value and incorporating the new temporary state of charge value, and then re-execute steps S300 and S400 until the difference is less than the preset convergence threshold ΔSOC.
3. The state of charge calibration method according to claim 1 or 2, wherein, The moment when the battery disconnects the high-voltage circuit and the charging / discharging current drops to zero is taken as the starting time t0 when the battery enters the resting state. The first cell voltage acquisition is performed at the first sampling moment after the predetermined time interval Δt following the starting time t0 to obtain the first temporary state of charge value; or the first cell voltage acquisition is performed at the starting time t0 to obtain the first temporary state of charge value; and / or N equals three; and / or The predetermined time interval Δt is in the range of 5 minutes to 60 minutes, preferably 10 minutes; and / or The preset convergence threshold ΔSOC ranges from 0.01%SOC to 0.2%SOC, preferably 0.02%SOC.
4. The state of charge calibration method according to any one of claims 1 to 3, wherein, After outputting the calibrated state of charge value in step S500, the battery management system continues to acquire new cell voltage values at the predetermined time interval Δt and convert them into new temporary state of charge values. If the subsequent N consecutive temporary state of charge values still meet the convergence condition, the previously output calibrated state of charge value is updated with the latest temporary state of charge value; and / or The preset convergence threshold ΔSOC is determined based on the predetermined time interval Δt, wherein preferably, the larger the predetermined time interval Δt is, the larger the corresponding preset convergence threshold ΔSOC is.
5. The state of charge calibration method according to claim 4, wherein, The relationship between the preset convergence threshold ΔSOC and the predetermined time interval Δt is pre-stored in the battery management system in the form of a lookup table. The battery management system reads the corresponding preset convergence threshold ΔSOC from the lookup table according to the currently used predetermined time interval Δt.
6. The state of charge calibration method according to claim 5, wherein, The lookup table contains at least one of the following mapping relationships: When the predetermined time interval Δt is 10 minutes, the corresponding preset convergence threshold ΔSOC is 0.01%SOC to 0.02%SOC; When the predetermined time interval Δt is 30 minutes, the corresponding preset convergence threshold ΔSOC is 0.05%SOC to 0.06%SOC; and When the predetermined time interval Δt is 50 to 60 minutes, the corresponding preset convergence threshold ΔSOC is 0.1%SOC.
7. The state of charge calibration method according to any one of claims 1 to 6, wherein, The preset convergence threshold ΔSOC and / or the predetermined time interval Δt are determined based on the battery's chemical system; and / or The preset convergence threshold ΔSOC and / or the predetermined time interval Δt are determined based on the current ambient temperature of the battery.
8. The state of charge calibration method according to claim 7, wherein, The preset convergence threshold ΔSOC and / or the predetermined time interval Δt are dynamically adjusted according to the current ambient temperature of the battery. Preferably, in a low-temperature environment, the predetermined time interval Δt is set to a value greater than the corresponding value in a normal-temperature environment, and / or the preset convergence threshold ΔSOC is set to a value greater than the corresponding value in a normal-temperature environment; and / or The battery's chemical system includes ternary lithium batteries and / or lithium iron phosphate batteries; and / or The correspondence between the state of charge and the open-circuit voltage is based on the SOC-OCV fitting curve pre-calibrated and stored in the battery management system according to the chemical system of the battery. The preset convergence threshold ΔSOC is preferably adaptively set according to the chemical system type of the battery and the slope of the SOC-OCV curve interval where the current temporary state of charge value is located. In the interval where the slope of the SOC-OCV curve is small, a larger preset convergence threshold ΔSOC is preferably used.
9. A computer program product comprising computer program instructions, wherein, When the computer program instructions are executed by the processor, they implement the steps of the state of charge calibration method according to any one of claims 1 to 8.
10. A vehicle, particularly an electric vehicle, wherein, The vehicle includes a power battery and a computer program product according to claim 9.
