SOC calculation method and terminal voltage correction system for lithium iron phosphate battery under low temperature environment

By employing a dual-layer logic of temperature range segmented correction coefficients and CEDV dynamic compensation, combined with hardware protection, the problems of low SOC estimation accuracy and undervoltage false triggering of lithium iron phosphate batteries in low-temperature environments are solved, achieving high-precision SOC calculation and battery safety, which is suitable for new energy vehicles and energy storage devices.

CN123183544APending Publication Date: 2026-11-27FUZHOU FUCHAO INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611233726.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for lithium iron phosphate batteries exhibit low SOC estimation accuracy and poor robustness in low-temperature environments, making them prone to false triggering of undervoltage protection. Furthermore, inconsistent power-on and power-off states prevent them from adapting to dynamic voltage compensation in low-temperature, high-current scenarios, leading to cell over-discharge and shortened lifespan.

Method used

It employs a two-layer logic of temperature range segmented correction coefficient and CEDV dynamic compensation, combined with hardware undervoltage protection, to form a state memory closed loop across power-on and power-off cycles. Through the triple mechanism of temperature-capacity correction, CEDV compensation, and hardware protection, it ensures the accuracy and safety of SOC estimation.

Benefits of technology

It achieves SOC estimation accuracy within ±2% in low-temperature environments, prevents undervoltage false triggering, extends cell lifespan, improves system stability and robustness, and is compatible with a variety of lithium iron phosphate battery products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123183544A_ABST
    Figure CN123183544A_ABST
Patent Text Reader

Abstract

This invention provides a method for calculating the State of Charge (SOC) of lithium iron phosphate (LFP) batteries in low-temperature environments and a terminal voltage correction system. Based on the low-temperature capacity decay characteristics of LFP batteries, it performs parameter pre-configuration; power-on initialization judgment; and employs a dual-correction logic combining temperature coefficient correction and CEDV-triggered terminal linear correction, combined with hardware undervoltage protection detection, to calculate the final SOC. Parameters are updated during cell charging. Before the BMS (Battery Management System) is powered off, a state saving logic is executed to ensure consistent parameters upon the next power-on execution, forming a state memory closed loop across power-on and power-off conditions in low-temperature environments. This invention achieves this by binding and storing three variables—coefficient, temperature, and uncharged flag—and linking them together for judgment, forming a state memory closed loop across power-on and power-off conditions. All key parameters are saved upon power-off, and adaptive parameters are determined upon power-on, completely solving the problems of inconsistent power-on and power-off states and abrupt SOC calculations in existing technologies, thus improving the robustness of the BMS system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power battery technology, specifically relating to a method for calculating the state of charge (SOC) of a lithium iron phosphate battery under low-temperature conditions and a system for correcting the end voltage. Background Technology

[0002] Lithium iron phosphate batteries have become the mainstream cell type in the new energy field due to their advantages such as high safety, long cycle life, and low cost. However, the low-temperature characteristics of this type of cell have significant shortcomings: in low-temperature environments (≤10℃), the cell capacity will decay significantly, the terminal voltage is prone to rapid drop, and the voltage polarization effect is significant, which leads to a significant increase in the SOC estimation error. At the same time, undervoltage protection is prone to false triggering during low-temperature high-current discharge, which affects the normal operation of the equipment and, in severe cases, can lead to over-discharge of the cell and shorten its service life.

[0003] Existing SOC estimation and voltage correction schemes for lithium iron phosphate batteries mainly suffer from several drawbacks. These schemes rely on DC internal resistance (DCIR) or OCV-SOC (open-circuit voltage - remaining capacity) models for SOC correction. However, at low temperatures, cell internal resistance fluctuates significantly, and the OCV curve is flat, making model parameters prone to drift. This results in low estimation accuracy and poor robustness. Furthermore, the complex models increase the difficulty of engineering deployment, hindering mass production applications. Existing technologies lack unidirectional correction logic for low-temperature scenarios. When the device is powered off and the ambient temperature further decreases, the old correction parameters are reused upon the next power-on, potentially leading to an artificially high SOC and the risk of over-discharge of the cells, failing to provide adequate safety protection at low temperatures. Finally, existing technologies only retain a single parameter (such as the correction parameter) when power is off. The existing technology lacks a dynamic voltage compensation mechanism adapted to low-temperature, high-current scenarios, relying solely on a fixed cutoff voltage. This fails to address the voltage drop characteristics at low temperatures, leading to false triggering of undervoltage protection and impacting device stability. Furthermore, the existing technology uses a periodic update correction coefficient method, which, due to temperature rise during discharge, causes frequent parameter updates, resulting in SOC display fluctuations and algorithm oscillations. A sole pursuit of stability sacrifices SOC estimation accuracy, making it difficult to balance these two requirements and failing to meet the actual needs of low-temperature scenarios. Summary of the Invention

[0004] This invention provides a method for calculating the state of charge (SOC) of a lithium iron phosphate battery under low-temperature conditions and a system for correcting the terminal voltage.

[0005] This invention is achieved through the following technical solution:

[0006] A method for calculating the state of charge (SOC) of a lithium iron phosphate battery under low-temperature conditions, the method comprising the following steps:

[0007] Step 1: Based on the low-temperature capacity decay characteristics of lithium iron phosphate, perform parameter pre-configuration;

[0008] Step 2: Perform power-on initialization judgment based on the parameters pre-configured in Step 1;

[0009] Step 3: Based on the power-on initialization judgment in Step 2, a dual correction logic of temperature coefficient correction and CEDV trigger end linear correction is adopted, combined with hardware undervoltage protection detection, to calculate the final SOC;

[0010] Step 4: Based on the final SOC obtained in Step 3, update the parameters during the cell charging process;

[0011] Step 5: Before powering down the BMS, execute the state saving logic to ensure that the parameters are consistent when powering up again, forming a closed loop of state memory across power-on and power-off cycles in low-temperature environments.

[0012] Furthermore, step 1 specifically involves dividing the temperature into five ranges: ≤-20℃, -20~0℃, 0~10℃, 10~25℃, and >25℃. For each temperature range, a dedicated capacity correction coefficient, dedicated CEDV temperature compensation values ​​Comp_T and Comp_I, and a dedicated hardware undervoltage protection point are configured. At the same time, CEDV-related parameters, CEDV reference voltage, uncharged_flag, valid charging judgment conditions, charging prohibition conditions, charging power matching rules, and effective temperature range are stored in the BMS's Flash non-volatile storage device to ensure that data is not lost after power failure.

[0013] Furthermore, step 2 includes determining if the device is not charged:

[0014] If the battery cell is not charged and its current real-time temperature T1 is less than the battery cell temperature T0 that was previously stored in the Flash memory at the last shutdown, then the capacity correction coefficient corresponding to the temperature range of T1 will be forcibly updated, and the CEDV compensation voltages at all levels and the hardware undervoltage protection points will be updated simultaneously.

[0015] If the battery is not charged and the current real-time temperature T1 of the battery cell is greater than or equal to the battery cell temperature T0 of the last shutdown that was previously saved in the Flash, then the old capacity correction factor, the corresponding CEDV compensation voltage, and the hardware undervoltage protection point saved in the Flash will be used.

[0016] Furthermore, step 2 also includes a charge determination:

[0017] If it is already charged, the capacity correction coefficient for the corresponding temperature range is matched according to the current temperature T1, and the CEDV compensation voltage at each level and the hardware undervoltage protection point are calculated simultaneously under the current temperature and default current.

[0018] However, if T1 exceeds the effective temperature range of -40℃ to 85℃, the default parameters will be used without additional compensation.

[0019] Furthermore, step 3 specifically includes the following steps:

[0020] Step 3.1: Calculate the temperature coefficient correction;

[0021] Step 3.2: Process cell voltage filtering;

[0022] Step 3.3: CEDV trigger determination and end-point linear correction;

[0023] Step 3.4: Boundary constraints of SOC;

[0024] Step 3.5: Hardware undervoltage protection detection.

[0025] Furthermore, step 3.1 specifically involves multiplying the original SOC of the battery cell collected by the BMS with the capacity correction coefficient determined in step 2 to obtain the preliminary SOC;

[0026] Specifically, step 3.2 involves performing a 5-point moving average filter on the collected real-time cell voltage.

[0027] Specifically, step 3.3 involves calculating CEDV2, CEDV1, and CEDV0 corresponding to the current temperature and discharge current in real time; if the real-time voltage of the filtered cell is ≤ CEDV2, the final SOC linear correction mode is entered to calculate the final SOC; if the real-time voltage of the filtered cell is > CEDV2, then the final SOC = SOC1.

[0028] Specifically, step 3.4 involves limiting the final SOC to the range of 0% to 100%.

[0029] Specifically, step 3.5 involves performing anti-jitter detection based on the filtered voltage and the hardware undervoltage protection point corresponding to the current temperature. If the voltage remains below the protection point, the hardware undervoltage protection is triggered, forcibly setting the SOC to 0 and cutting off the discharge circuit.

[0030] Furthermore, step 4 specifically includes the following steps:

[0031] Step 4.1: Monitor the cell temperature in real time to determine the feasibility of charging;

[0032] Step 4.2: Match the corresponding charging power according to the current cell temperature;

[0033] Step 4.3: Continuously accumulate charging time, update charging SOC synchronously, and monitor charging progress in real time;

[0034] Step 4.4: Valid charging determination and parameter update;

[0035] Step 4.5: Reset after parameter update.

[0036] Furthermore, step 4.1 specifically involves continuously collecting the current temperature of the battery cell during the charging process. If the temperature is <0℃, charging is immediately stopped, and the charging time and charging SOC are reset to avoid damage to the battery cell during low-temperature charging.

[0037] Specifically, step 4.2 involves matching the corresponding charging power according to the current cell temperature to ensure charging safety and efficiency: low power charging is used for 0~10℃, standard power charging is used for 10~25℃, and conventional power charging is used for >25℃; if the actual charging current exceeds the power range of the corresponding temperature range, the charging current is automatically adjusted to a reasonable range.

[0038] Specifically, step 4.4 involves updating parameters only when valid charging conditions are met: rematching the capacity correction coefficient and hardware undervoltage protection point based on the current temperature, matching the discharge rate with the current charging current, and calculating the corresponding CEDV compensation voltages at each stage; setting the uncharged_flag flag to 0, and storing all updated key parameters in Flash to achieve power-off preservation.

[0039] Specifically, step 4.5 involves resetting the charging time and charging SOC after the parameter update is completed to avoid repeated parameter updates and ensure the uniqueness and stability of the parameter update.

[0040] Furthermore, step 5 specifically includes the following steps:

[0041] Step 5.1: Set the uncharged_flag bit to 1 for use in determining the status upon the next power-on.

[0042] Step 5.2: Update the current real-time temperature of the battery cell to the last shutdown temperature T0 and store it in Flash as the temperature comparison benchmark for the next power-on.

[0043] Step 5.3: Synchronously store all current key parameters into Flash / EEPROM non-volatile storage devices to ensure that data is not lost after power failure;

[0044] Step 5.4: After saving the parameters, disconnect the BMS power supply to ensure that the battery cell is in a safe state after power-off.

[0045] A system for correcting the end voltage of a lithium iron phosphate battery in a low-temperature environment includes,

[0046] Parameter pre-configuration module: Based on the low-temperature capacity decay characteristics of lithium iron phosphate, parameters are pre-configured;

[0047] Power-on initialization judgment module: performs power-on initialization judgment based on parameters pre-configured by the parameter pre-configuration module;

[0048] Calculation module: Based on the power-on initialization judgment module, the final SOC is calculated by using a dual correction logic of temperature coefficient correction and CEDV trigger terminal linear correction, combined with hardware undervoltage protection detection.

[0049] Parameter update module: Based on the final SOC obtained by the calculation module, parameters are updated during the cell charging process;

[0050] BMS Power-Off Status Saving Module: Before the BMS is powered off, the status saving logic is executed to ensure that the parameters are consistent when the power is turned on again, forming a closed loop of status memory across power-on and power-off cycles in low-temperature environments.

[0051] The beneficial effects of this invention are:

[0052] This invention only forces an update to the SOC correction coefficient and CEDV compensation voltage when the current power-on temperature is lower than the previous power-off temperature. It will never update when the temperature rises, and the correction can be completed even if the device is not charging. This is specifically designed to prevent artificially high SOC at low temperatures. Existing technologies do not have this safety bias and unidirectional triggering rule.

[0053] This invention synchronously saves the capacity correction coefficient, shutdown temperature T0, and uncharged_flag when power is off, and makes a joint judgment on the three when power is on, forming a complete state closed loop across power on and off, thus solving the problems of single variable storage and poor consistency between power on and off in the prior art.

[0054] The first layer of this invention corrects the capacity coefficient according to the temperature range to improve the accuracy of SOC estimation; the second layer designs a three-level CEDV compensation discharge termination voltage, which achieves dynamic adjustment through temperature and current segmented compensation, combined with linear correction of the end SOC, to prevent undervoltage false triggering under low temperature and high current. The two layers are complementary and in the same direction of protection, specifically adapted to the characteristics of the lithium iron phosphate platform, and do not rely on internal resistance and complex models; at the same time, the CEDV compensation voltage is precisely matched with the hardware undervoltage protection point, forming a dual protection of software and hardware.

[0055] During the discharge process, the SOC correction coefficient and CEDV compensation voltage are not updated regardless of the temperature rise. The relevant parameters are only allowed to be updated when the effective charging conditions are met, thus avoiding SOC jitter and algorithm oscillation from the root. Existing technologies do not have such a strict and clear constraint mechanism.

[0056] This invention does not rely on the complex DC internal resistance (DCIR) and OCV-SOC models of battery cells. It can achieve accurate SOC estimation in low-temperature environments by simply matching the capacity correction coefficient in the temperature range and dynamic compensation by CEDV, with the error controlled within ±2%. It is compatible with different types of lithium iron phosphate battery cells, and the parameters can be calibrated through actual measurement data. It does not require complex model debugging, which greatly reduces the difficulty of engineering deployment and facilitates mass production applications.

[0057] This invention adopts a strong constraint update rule that prioritizes stability. During the discharge process, the correction parameters are not updated regardless of the temperature rise. Updates are only made when the effective charging conditions are met. This eliminates SOC jumps, display jitter, and algorithm oscillations at the source, significantly improving the operational stability of the BMS system and optimizing the user experience.

[0058] This invention features a unique low-temperature unidirectional backup update mechanism. When the temperature is lower than the last shutdown temperature upon power-on, parameters can be forcibly updated without waiting for charging, effectively preventing over-discharge of the battery cells caused by artificially high SOC. Combined with a stepped protection system of "software correction → software cutoff → hardware backup," the CEDV compensation voltage is precisely matched with the hardware undervoltage protection point, avoiding false triggering of undervoltage protection during low-temperature high-current discharge, providing comprehensive protection for battery cell safety and extending battery cell lifespan.

[0059] This invention forms a closed-loop state memory across power-on and power-off states by binding and storing three variables: "coefficient, temperature, and non-charged flag". When power is off, all key parameters are saved, and when power is on, the appropriate parameters are determined in a linked manner. This completely solves the problems of inconsistent power-on and power-off states and SOC calculation jumps in existing technologies, and improves the robustness of the BMS system.

[0060] This invention covers the entire effective temperature range of -40℃ to 85℃, is divided into 5 temperature zones, and has multiple discharge rate adaptations. It can be directly connected to BMS hardware without additional modification to the core logic. It is widely applicable to products that rely on lithium iron phosphate batteries, such as new energy vehicles, energy storage devices, and portable power supplies. It has strong versatility and high practicality.

[0061] This invention precisely links CEDV software compensation with hardware undervoltage protection, and reasonably adjusts hardware protection points in the low-temperature range to ensure that there is no conflict between software cutoff and hardware backup, forming dual protection, further enhancing the safety of low-temperature discharge, and solving the shortcomings of the single protection mode in the existing technology. Attached Figure Description

[0062] Figure 1 This is a flowchart of the method of the present invention.

[0063] Figure 2 This is the automatic SOC code generator configuration 1 of the present invention.

[0064] Figure 3This is the automatic SOC code generator configuration 2 of the present invention.

[0065] Figure 4 This is the automatic SOC code generator configuration 3 of the present invention. Detailed Implementation

[0066] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of this application with unnecessary detail.

[0067] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0068] It should also be understood that the terminology used in this application specification is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this application specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0069] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0070] 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. Those skilled in the art can make similar extensions without departing from the spirit of this application. Therefore, this application is not limited to the specific embodiments disclosed below.

[0071] Implementation Method 1

[0072] This embodiment provides a method for calculating the State of Charge (SOC) of a lithium iron phosphate battery under low-temperature conditions. This method, based on a temperature-zone compensation strategy, constructs a fully closed-loop control process encompassing power-on initialization, dual logic correction, charging parameter updates, and power-off state saving. The specific implementation steps are as follows:

[0073] Step S1: Pre-configuration of low-temperature characteristic parameters

[0074] In the initial stage of system power-on, based on the physical characteristics of low-temperature capacity decay of lithium iron phosphate batteries, the BMS is pre-configured with multi-dimensional parameters, and key data is solidified in Flash non-volatile memory to ensure that it is not lost when power is off.

[0075] 1.1 Temperature Range Division and Basic Mapping

[0076] The operating temperature of the battery cell is divided into 5 characteristic ranges: T≤−20∘C, −20∘C <T≤0∘C、0∘C<T≤10∘C、10∘C<T≤25∘C、T> 25°C. Each zone is configured with a dedicated capacity correction factor, CEDV (Compensated End of Discharge Voltage) temperature compensation value, and hardware undervoltage protection point.

[0077] 1.2 Core Parameter Configuration Details

[0078] Capacity correction factor (Kcap): Used to correct for usable capacity at low temperatures. The factors are set to 0.60, 0.75, 0.90, 0.98, and 1.00 respectively for the five temperature zones mentioned above. This factor can be calibrated based on measured data for specific cell models.

[0079] CEDV baseline and compensation parameters:

[0080] Reference voltages: Vbase2 = 3.04V (SOC ≈ 7% trigger point), Vbase1 = 2.95V (SOC ≈ 3% warning point), Vbase0 = 2.80V (SOC ≈ 0% hard cutoff point).

[0081] Temperature compensation value (CompT): Raises the cutoff voltage at low temperatures to allow for polarization margin. For example, at ≤−20∘C, CompT is +0.24V, +0.25V, and +0.25V respectively.

[0082] Current compensation value (CompI): Corrects the polarization voltage based on the discharge rate. For example, it compensates +0.05V for 1C~2C discharge and +0.08V for >2C discharge.

[0083] Hardware protection strategy: Configure tiered hardware undervoltage protection points, with the low-temperature range (e.g., ≤−20∘C set to 2.0V) lower than the normal temperature range. The design ensures that CEDV0 after software compensation is always higher than the hardware protection point, forming a three-level safety protection system of "software estimation - software cutoff - hardware fallback".

[0084] Charging management rules: Define matching rules for 0~10℃ low-power charging (≤0.3C), 10~25℃ standard-power charging (0.3C~0.5C), and >25℃ conventional-power charging (0.5C~1.0C); set the safety threshold for prohibiting charging below 0℃.

[0085] Status flag bit: Initialize the uncharged_flag (1 indicates uncharged, 0 indicates charged) and set the valid charging judgment condition (SOC ≥ 2% or duration ≥ 300s).

[0086] Step S2: Power-on initialization and state adaptive judgment

[0087] When the BMS powers on, it reads the historical state data stored in Flash (last shutdown temperature T0, historical correction coefficient, etc.), performs logical judgment combined with the current real-time temperature T1, and determines the initial parameters for this operation.

[0088] 2.1 Cold start processing in uncharged state

[0089] If uncharged_flag=1 (indicating no valid charging has been performed since the last shutdown):

[0090] If T1<T0 (temperature decreases), the system forcibly switches to the capacity correction coefficient of the temperature zone to which T1 belongs, and synchronously updates the CEDV compensation parameters and hardware protection points to adapt to the current low-temperature environment.

[0091] If T1≥T0 (temperature increases or remains unchanged), the system continues to use the original capacity correction coefficient and parameters stored in Flash to avoid SOC jumps caused by short-term temperature fluctuations.

[0092] 2.2 Charged state or abnormal handling

[0093] If uncharged_flag=0 (charged) or the detected temperature exceeds the effective range of -40℃~85℃, the system directly matches the corresponding temperature zone parameters according to the current T1; if the temperature exceeds the limit, the default safety parameters are enabled (coefficient 1.00, no compensation, hardware protection point 2.50V).

[0094] Step S3: Real-time SOC calculation based on dual correction logic

[0095] This step adopts a dual correction logic combining "temperature coefficient correction" and "CEDV terminal linear correction" to calculate and update the SOC value in real time.

[0096] 3.1 Preliminary correction by temperature coefficient

[0097] Collect the original SOC estimate (SOCraw) from the BMS, multiply it by the capacity correction factor Kcap determined in step S2, and obtain the preliminarily corrected SOC:

[0098] SOC1 = SOCraw × Kcap

[0099] 3.2 Voltage Signal Preprocessing

[0100] The collected cell terminal voltage is filtered by a 5-point moving average to eliminate noise interference and prevent false triggering of end correction caused by voltage jitter.

[0101] 3.3 CEDV Triggering and End-of-Terminal Linear Correction

[0102] Real-time calculation of dynamic cutoff voltage under current operating conditions:

[0103] CEDVx=Vbasex+CompT(T)+CompI(I)

[0104] Where x∈{2,1,0}.

[0105] When the filtered voltage Vcell ≤ CEDV2, it is determined that the region has entered the end of the discharge phase, and linear correction is initiated.

[0106] SOCfinal=SOC1×CEDV2−CEDV0Vcell−CEDV0

[0107] When Vcell > CEDV2, SOCfinal = SOC1.

[0108] 3.4 Boundary restrictions and safety net

[0109] Boundary limit: Limit SOCfinal to between 0% and 100% to prevent data overflow caused by logical exceptions.

[0110] Hardware undervoltage protection: The filtered voltage is subjected to 50ms anti-jitter detection. If the voltage continues to be lower than the hardware undervoltage protection point corresponding to the current temperature zone, the hardware protection is immediately triggered, forcibly setting the SOC to 0 and cutting off the discharge circuit as the last safety barrier of the system.

[0111] Step S4: Dynamic update of parameters during charging process

[0112] During the cell charging phase, the system dynamically adjusts the charging strategy based on temperature changes and updates the system parameters after effective charging is completed.

[0113] 4.1 Charging safety management

[0114] Continuously monitor the cell temperature. If the temperature is below 0°C, immediately stop charging and reset the charging timer to prevent lithium plating risk. Match the charging power range according to the current temperature and limit the charging current within a safe range.

[0115] 4.2 Effective charging determination and parameter solidification

[0116] The parameter update operation is only performed when the effective charging conditions are met (charging SOC increment ≥ 2% or continuous charging time ≥ 300s):

[0117] The capacity correction factor and hardware protection points are recalibrated based on the current temperature.

[0118] Update the CEDV compensation parameters based on the current charging current.

[0119] Set uncharged_flag to 0 (marking it as charged), and write all key parameters to Flash.

[0120] After the update is complete, the charging timer and SOC accumulation value will be reset to prevent repeated refreshes.

[0121] Step S5: Power-down state saving and closed-loop management

[0122] Before the BMS is powered off, the state saving logic is executed to ensure the continuity of data when it is powered on again, forming a closed loop of state memory across power-on and power-off cycles.

[0123] 5.1 Status Flags

[0124] Set uncharged_flag to 1 (to mark that no charging occurred during the power-off period).

[0125] 5.2 Data Snapshot

[0126] The current real-time temperature of the battery cell is recorded as "last shutdown temperature T0", and key operating parameters such as the current capacity correction factor, CEDV configuration, and hardware protection points are stored in the Flash.

[0127] 5.3 Safe Power-Off

[0128] After data storage is complete, disconnect the power supply to the BMS control system to ensure a safe system shutdown.

[0129] The following is the complete C language code adapted to the technical solution of this invention. It is written based on the BMS conventional development environment, has no dependencies, can be directly compiled and deployed, and covers the entire process of parameter configuration, power-on initialization, SOC double correction, CEDV calculation, charging update, power-off saving, and hardware undervoltage protection detection. It is adapted to meet the requirements of no internal resistance, and the code comments are clear, making it easy to debug and modify.

[0130] I. Core Design Objectives

[0131] To address the low-temperature characteristics of lithium iron phosphate batteries, a triple mechanism of "temperature-capacity correction," "voltage-CEDV compensation," and "hardware undervoltage dual protection" is employed to achieve the following:

[0132] Improved accuracy of SOC estimation at low temperatures;

[0133] Smoothing correction during voltage drop at the end of discharge to avoid undervoltage misjudgment;

[0134] Dynamic updating of charging process parameters and low-temperature charging protection;

[0135] The system remembers the power-on and power-off states to ensure parameter continuity.

[0136] II. Pre-configured parameters (corresponding to step 1 in the patent)

[0137] 1. Temperature range division (5 ranges in total, unit: °C)

[0138] ≤-20℃, -20~0℃, 0~10℃, 10~25℃, >25℃.

[0139] 2. Capacity correction factor (corresponding one-to-one with the temperature range)

[0140] The usable battery capacity decreases at low temperatures, with the following coefficients: 0.60 (≤-20℃), 0.75 (-20~0℃), 0.90 (0~10℃), 0.98 (10~25℃), and 1.00 (>25℃, based on room temperature).

[0141] 3. CEDV Level 3 Compensation Voltage (Unit: V)

[0142] CEDV2: Reference voltage (3.04V) when SOC≈7%;

[0143] CEDV1: Reference voltage (2.95V) when SOC≈3%;

[0144] CEDV0: The reference voltage (2.80V) when SOC≈0%.

[0145] 4. CEDV temperature / current compensation value

[0146] Temperature compensation: Set the compensation amount for CEDV2 / CEDV1 / CEDV0 for each of the 5 temperature ranges (e.g., when ≤-20℃, CEDV2 compensates 0.24V, CEDV1 compensates 0.25V, and CEDV0 compensates 0.25V).

[0147] Current compensation: The compensation amount (0.00V, 0.02V, 0.05V, 0.08V) is set according to the discharge rate segment (≤0.5C, 0.5~1C, 1~2C, >2C).

[0148] 5. Hardware undervoltage protection point (unit: V)

[0149] It is bound to a temperature range, with a lower protection point at low temperatures (e.g., 2.00V at ≤-20℃, 2.05V at -20~0℃, 2.35V at 0~10℃, and 2.50V at 10~25℃ and above).

[0150] 6. Other key parameters

[0151] Effective charging threshold: SOC ≥ 2% or charging time ≥ 300 seconds;

[0152] Low-temperature charging is prohibited: Stop charging when the temperature is below 0℃.

[0153] Charging power ratings: 0~10℃ (≤0.3C), 10~25℃ (0.3~0.5C), >25℃ (0.5~1.0C);

[0154] Voltage filtering: 5-point moving average;

[0155] Undervoltage protection debounce: Triggered only if the voltage remains below the protection point for 50ms.

[0156] III. Core Functional Modules

[0157] 1. Temperature range matching

[0158] Based on the current cell temperature, return the corresponding interval index (0~4) for subsequent parameter lookup.

[0159] 2. Discharge rate matching

[0160] The multiplier is calculated by "discharge current / cell capacity", and the current compensation index (0~3) is returned to adapt to voltage drop compensation under different loads.

[0161] 3. Voltage moving average filtering

[0162] The acquired raw voltage is filtered by a 5-point ring buffer to reduce noise interference and output a stable voltage value.

[0163] 4. CEDV Compensation Voltage Calculation

[0164] Combining the current temperature (temperature compensation) and discharge rate (current compensation), the actual compensation values ​​of CEDV2 / CEDV1 / CEDV0 are calculated in real time according to the formula "CEDVx = reference voltage + temperature compensation + current compensation" for end-of-line SOC correction.

[0165] IV. BMS Main Process

[0166] Step S1: Power-on initialization (low temperature fallback + state memory)

[0167] Read the last shutdown temperature (T0), old capacity correction factor, and not charged flag stored in Flash;

[0168] Collect the current cell temperature; if it exceeds the valid range (-40~85℃), use the default parameters.

[0169] If it is in "not charging state":

[0170] If the current temperature is <T0 (lower temperature), force an update of the capacity factor, undervoltage protection point and CEDV parameters (low temperature fallback).

[0171] If the current temperature is greater than or equal to T0, the old parameters will be used.

[0172] If it is in "charged state", directly match the new parameters according to the current temperature.

[0173] Step S2: SOC Double Correction Calculation (Accuracy + Security)

[0174] Temperature coefficient correction: Original SOC × Current capacity correction factor, to obtain the preliminary SOC (soc1).

[0175] Voltage filtering: Perform a 5-point moving average on the acquired voltage to obtain a stable voltage value;

[0176] CEDV end correction: If the filtered voltage is less than or equal to CEDV2, it enters the linear correction range and scales soc1 according to the ratio of "(voltage-CEDV0) / (CEDV2-CEDV0)" to avoid SOC jump caused by voltage drop; if the voltage is greater than CEDV2, soc1 is used directly.

[0177] Boundary limits: SOC is limited to 0-100%;

[0178] Hardware undervoltage protection: If the voltage remains below the current undervoltage protection point for 50ms, the SOC is forced to be set to 0 and the discharge circuit is cut off (anti-jitter processing).

[0179] Step S3: Update charging process parameters (stability priority)

[0180] Low-temperature charging is prohibited: Charging will stop and parameters will not be updated when the temperature is below 0℃;

[0181] Match the charging power according to the temperature range (e.g., ≤0.3C for 0~10℃).

[0182] Only when the conditions of "charging SOC≥2% or charging time≥300 seconds" are met, the capacity coefficient, undervoltage protection point and CEDV parameters are updated, the "not charged flag" is cleared (marked as charged), and the current parameters are stored in Flash.

[0183] Step 4: Power-down state saving (state memory)

[0184] Before powering off, set the "not charged flag" to 1 and save the current temperature (as T0 for the next power-on), capacity factor, CEDV parameters, and undervoltage protection point to Flash to ensure a seamless connection for the next power-on.

[0185] V. Core Innovation Points

[0186] Low-temperature one-way backup: When not charging, if the current temperature is lower than the last shutdown temperature, the parameters will be forcibly updated to avoid the error of using high-temperature parameters at low temperatures;

[0187] Three variables are bound to the storage: storage capacity coefficient + power-off temperature + no-charge indicator, to ensure continuity of power-on and power-off states;

[0188] Stability is the priority: parameters are not updated during the discharge process, but only when the charging conditions are met, to avoid frequent fluctuations;

[0189] Three-level CEDV compensation: Through three voltage thresholds of CEDV2 / CEDV1 / CEDV0, the end-point SOC is smoothly corrected;

[0190] Software and hardware collaborative protection: Software SOC correction and hardware undervoltage protection are linked to temperature ranges, providing dual protection for battery safety.

[0191] VI. Engineering adaptability

[0192] The code is written based on a standard BMS development environment, with no third-party dependencies. It reserves hardware interfaces for Flash read / write, ADC acquisition, and charging driver, which can be directly replaced with actual hardware drivers, making it suitable for embedded system deployment.

[0193] In summary, the code fully implements the "low-temperature SOC calculation and end voltage correction" technical solution proposed in the patent, covering the entire process of parameter configuration, initialization, SOC correction, charging update, and power-off storage, while taking into account accuracy, safety, and engineering feasibility.

[0194] Implementation Method 2

[0195] This embodiment provides a terminal voltage correction system for lithium iron phosphate batteries in low-temperature environments.

[0196] CEDV2=3.04V: End correction start point (usually corresponding to SOC≈20%). If the voltage is lower than this value, linear correction will be initiated.

[0197] CEDV1=2.95V: End correction midpoint;

[0198] CEDV0=2.80V: End correction termination point (corresponding to SOC=0%). When the voltage drops to this point, it is determined that the power is exhausted.

[0199] These three points are the "correction scale" of the LFP terminal voltage, turning the flat voltage plateau into a quantifiable linear range.

[0200] Parameter pre-configuration module: Based on the low-temperature capacity decay characteristics of lithium iron phosphate, parameters are pre-configured;

[0201] Power-on initialization judgment module: performs power-on initialization judgment based on parameters pre-configured by the parameter pre-configuration module;

[0202] Calculation module: Based on the power-on initialization judgment module, the final SOC is calculated by using a dual correction logic of temperature coefficient correction and CEDV trigger terminal linear correction, combined with hardware undervoltage protection detection.

[0203] Parameter update module: Based on the final SOC obtained by the calculation module, parameters are updated during the cell charging process;

[0204] BMS Power-Off Status Saving Module: Before the BMS is powered off, the status saving logic is executed to ensure that the parameters are consistent when the power is turned on again, forming a closed loop of status memory across power-on and power-off cycles in low-temperature environments.

[0205] This invention breaks through the conventional design approach of existing technologies that rely on internal resistance and complex models, periodic parameter updates, and single variable storage. It has created a unique low-temperature unidirectional fallback update mechanism, a three-variable bound storage linkage judgment, a dual-layer collaborative protection and stability priority constraint rule, forming a closed-loop SOC calculation and end voltage correction scheme specifically designed for the low-temperature characteristics of lithium iron phosphate. This solves the core pain point of existing technologies that cannot simultaneously take into account accuracy, stability, safety and power-on / off consistency.

[0206] This invention has significantly improved the accuracy of low-temperature SOC estimation, system operation stability, cell safety protection, and engineering applicability. It can achieve SOC estimation accuracy within ±2% without the need for complex models, eliminate SOC fluctuations, completely solve the problems of falsely high low-temperature SOC and false undervoltage triggering, and reduce the difficulty of engineering deployment, making it suitable for multiple application scenarios.

[0207] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for calculating the state of charge (SOC) of a lithium iron phosphate battery under low-temperature conditions, characterized in that, The calculation method includes the following steps: Step 1: Based on the low-temperature capacity decay characteristics of lithium iron phosphate, perform parameter pre-configuration; Step 2: Perform power-on initialization judgment based on the parameters pre-configured in Step 1; Step 3: Based on the power-on initialization judgment in Step 2, a dual correction logic of temperature coefficient correction and CEDV trigger end linear correction is adopted, combined with hardware undervoltage protection detection, to calculate the final SOC; Step 4: Based on the final SOC obtained in Step 3, update the parameters during the cell charging process; Step 5: Before powering down the BMS, execute the state saving logic to ensure that the parameters are consistent when powering up again, forming a closed loop of state memory across power-on and power-off cycles in low-temperature environments.

2. The calculation method according to claim 1, characterized in that, Step 1 specifically involves dividing the temperature into five ranges: ≤-20℃, -20~0℃, 0~10℃, 10~25℃, and >25℃. For each temperature range, a dedicated capacity correction coefficient, dedicated CEDV temperature compensation values ​​Comp_T and Comp_I, and a dedicated hardware undervoltage protection point are configured. At the same time, CEDV-related parameters, CEDV reference voltage, uncharged_flag, valid charging judgment conditions, charging prohibition conditions, charging power matching rules, and effective temperature range are stored in the BMS's Flash non-volatile storage device to ensure that data is not lost after power failure.

3. The calculation method according to claim 2, characterized in that, Step 2 includes determining if the device is not charged: If the battery cell is not charged and its current real-time temperature T1 is less than the battery cell temperature T0 that was previously stored in the Flash memory at the last shutdown, then the capacity correction coefficient corresponding to the temperature range of T1 will be forcibly updated, and the CEDV compensation voltages at all levels and the hardware undervoltage protection points will be updated simultaneously. If the battery is not charged and the current real-time temperature T1 of the battery cell is greater than or equal to the battery cell temperature T0 of the last shutdown that was previously saved in the Flash, then the old capacity correction factor, the corresponding CEDV compensation voltage, and the hardware undervoltage protection point saved in the Flash will be used.

4. The calculation method according to claim 3, characterized in that, Step 2 also includes a charge status check: If it is already charged, the capacity correction coefficient for the corresponding temperature range is matched according to the current temperature T1, and the CEDV compensation voltage at each level and the hardware undervoltage protection point are calculated simultaneously under the current temperature and default current. However, if T1 exceeds the effective temperature range of -40℃ to 85℃, the default parameters will be used without additional compensation.

5. The calculation method according to claim 1, characterized in that, Step 3 specifically includes the following steps: Step 3.1: Calculate the temperature coefficient correction; Step 3.2: Process cell voltage filtering; Step 3.3: CEDV trigger determination and end-point linear correction; Step 3.4: Boundary constraints of SOC; Step 3.5: Hardware undervoltage protection detection.

6. The calculation method according to claim 5, characterized in that, Specifically, step 3.1 involves multiplying the original SOC of the battery cell collected by the BMS with the capacity correction coefficient determined in step 2 to obtain the preliminary SOC. Specifically, step 3.2 involves performing a 5-point moving average filter on the collected real-time cell voltage. Specifically, step 3.3 involves calculating CEDV2, CEDV1, and CEDV0 corresponding to the current temperature and discharge current in real time; if the real-time voltage of the filtered cell is ≤ CEDV2, the final SOC linear correction mode is entered to calculate the final SOC; if the real-time voltage of the filtered cell is > CEDV2, then the final SOC = SOC1. Specifically, step 3.4 involves limiting the final SOC to the range of 0% to 100%. Specifically, step 3.5 involves performing anti-jitter detection based on the filtered voltage and the hardware undervoltage protection point corresponding to the current temperature. If the voltage remains below the protection point, the hardware undervoltage protection is triggered, forcibly setting the SOC to 0 and cutting off the discharge circuit.

7. The calculation method according to claim 1, characterized in that, Step 4 specifically includes the following steps: Step 4.1: Monitor the cell temperature in real time to determine the feasibility of charging; Step 4.2: Match the corresponding charging power according to the current cell temperature; Step 4.3: Continuously accumulate charging time, update charging SOC synchronously, and monitor charging progress in real time; Step 4.4: Valid charging determination and parameter update; Step 4.5: Reset after parameter update.

8. The calculation method according to claim 7, characterized in that, Specifically, step 4.1 involves continuously collecting the current temperature of the battery cell during the charging process. If the temperature is <0℃, charging is stopped immediately, and the charging time and SOC are reset to avoid damage to the battery cell during low-temperature charging. Specifically, step 4.2 involves matching the corresponding charging power according to the current cell temperature to ensure charging safety and efficiency: low power charging is used for 0~10℃, standard power charging is used for 10~25℃, and conventional power charging is used for >25℃; if the actual charging current exceeds the power range of the corresponding temperature range, the charging current is automatically adjusted to a reasonable range. Specifically, step 4.4 involves updating parameters only when valid charging conditions are met: rematching the capacity correction coefficient and hardware undervoltage protection point based on the current temperature, matching the discharge rate with the current charging current, and calculating the corresponding CEDV compensation voltages at each stage; setting the uncharged_flag flag to 0, and storing all updated key parameters in Flash to achieve power-off preservation. Specifically, step 4.5 involves resetting the charging time and charging SOC after the parameter update is completed to avoid repeated parameter updates and ensure the uniqueness and stability of the parameter update.

9. The calculation method according to claim 1, characterized in that, Step 5 specifically includes the following steps: Step 5.1: Set the uncharged_flag bit to 1 for use in determining the status upon the next power-on. Step 5.2: Update the current real-time temperature of the battery cell to the last shutdown temperature T0 and store it in Flash as the temperature comparison benchmark for the next power-on. Step 5.3: Synchronously store all current key parameters into Flash / EEPROM non-volatile storage devices to ensure that data is not lost after power failure; Step 5.4: After saving the parameters, disconnect the BMS power supply to ensure that the battery cell is in a safe state after power-off.

10. A terminal voltage correction system for lithium iron phosphate batteries under low-temperature conditions, characterized in that, include Parameter pre-configuration module: Based on the low-temperature capacity decay characteristics of lithium iron phosphate, parameters are pre-configured; Power-on initialization judgment module: performs power-on initialization judgment based on parameters pre-configured by the parameter pre-configuration module; Calculation module: Based on the power-on initialization judgment module, the final SOC is calculated by using a dual correction logic of temperature coefficient correction and CEDV trigger terminal linear correction, combined with hardware undervoltage protection detection. Parameter update module: Based on the final SOC obtained by the calculation module, parameters are updated during the cell charging process; BMS Power-Off Status Saving Module: Before the BMS is powered off, the status saving logic is executed to ensure that the parameters are consistent when the power is turned on again, forming a closed loop of status memory across power-on and power-off cycles in low-temperature environments.