A test method and device for lithium battery state estimation algorithm

By using python scripting program and modbus protocol in the lithium battery state estimation algorithm, the real-time working condition data of lithium battery is quickly collected and sent, and the problem of long running time of the state estimation algorithm in the existing technology is solved, and more efficient debugging is achieved and test.

CN117665684BActive Publication Date: 2024-11-29GUANGDONG TIANHUI ENERGY STORAGE TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202311658265.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2024-11-29
Estimated Expiration
2043-12-05

AI Technical Summary

Technical Problem

The running results of the existing lithium battery state estimation algorithm converge to the target value for too long, resulting in inefficient code debugging and testing, especially in long-term state estimation, which takes a long time to complete a maximum drop of 1.5% update, for example, from 100% to 80%, about 28 charge and discharge cycles are required, about one month.

Method used

Use python scripting program to read the standard working condition data collected by the battery collector, generate real-time working condition data, and send it to the data middle platform at a preset second time interval through the modbus protocol, collect data and record time using the first time interval. Stick to achieve faster state estimation algorithm testing.

Benefits of technology

By increasing the frequency of data transmission, the debugging and testing efficiency of state estimation algorithms is improved, and more flexible and accurate algorithm testing is achieved, which saves test time and shortens the time required for calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117665684B_ABST
    Figure CN117665684B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of lithium batteries, and discloses a test method and device for a lithium battery state estimation algorithm. The method uses a python script program to read the battery standard operating condition data collected by a battery collector according to a preset first time interval, generates single operating condition data at a single temperature and forms combined operating condition data by randomly switching operating condition data at different temperatures, determines the single operating condition data and the combined operating condition data as real-time operating condition data, sends the real-time operating condition data to a data center through a modbus protocol according to a preset second time interval, and completes the test of the lithium battery state estimation algorithm. The present invention can improve the debugging efficiency and test efficiency of the state estimation algorithm, realize more flexible and accurate algorithm testing, and save test time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lithium batteries, and in particular to a testing method and device for a lithium battery state estimation algorithm. Background Art

[0002] Lithium batteries are widely used in the field of energy storage due to their high energy density, cycle life and safety. In the process of widespread application of energy storage, the consistency management problem of lithium batteries is more prominent. The energy storage system charges and discharges through groups of batteries. Inconsistencies in battery capacity, power, life, etc. will lead to a decline in the function of the group of batteries, and even cause degraded batteries to catch fire and explode, causing serious accidents. The consistency problem of battery management mainly depends on the accuracy and robustness of the battery state estimation algorithm. It can be said that the battery state estimation algorithm is the key to the entire lithium battery energy storage system.

[0003] Battery status is divided into long-term status and short-term status. Short-term status includes state of charge (SOC), state of energy (SOE), state of power (SOP), etc., and long-term status includes state of health (SOH), remaining life (SOL), etc. Short-term state estimation algorithms can use data from a shorter period of time for calculation, while long-term state estimation algorithms need to use data from a longer period of time for calculation. To be realistic, the algorithm needs to run in the manner of real-time data collection and calculation as much as possible to ensure the end-to-end availability of the business, which raises a problem that the time it takes for the long-term state estimation algorithm to converge to the target value is too long, resulting in inefficient code debugging and testing.

[0004] Taking the estimation of battery state of health (SOH) as an example, the commonly used two-point method uses the interval of 30%-70% SOC to calculate the battery capacity. Compared with the initial capacity of the new battery in this interval, the ratio is used as the current candidate SOH. Considering the influence of noise, 4 values ​​of this interval are selected. Under the premise of not exceeding the previous SOH value and the decline is not higher than 1.5%, the highest value is taken as the current SOH value output. If the decline is higher than 1.5%, the previous value minus 1.5% is taken as the output. The reason for taking the highest value and the decline is not higher than 1.5% is to consider the user experience. As time goes by, SOH can only decrease and not increase, and the judgment requirements for the decline of the current SOH value are relatively strict. Under such an algorithm, even if the battery is charged and discharged every time across the 30%-70% SOC range, two charge and discharge cycles are required to complete an update with a maximum drop of 1.5%. To test the SOH estimation result of an 80% decay battery, (100%-80%) / 1.5 is required, which is approximately equal to 14 cycles, or 28 charge and discharge cycles. Taking 0.5C constant current charging + standard NEDC operating condition discharge as an example, a complete charge and discharge cycle takes about 22 hours, and 28 charge and discharge cycles take nearly a month. Such a time period brings great difficulties to the testing and debugging of the code. Summary of the invention

[0005] The present invention provides a testing method and device for a lithium battery state estimation algorithm, which can improve the debugging efficiency and testing efficiency of the state estimation algorithm and realize more flexible and accurate algorithm testing.

[0006] In order to solve the above technical problems, the present invention provides a testing method for a lithium battery state estimation algorithm, comprising:

[0007] Using a battery collector to collect battery standard operating condition data according to a preset first time interval; wherein the battery standard operating condition data includes time data, current data, voltage data and temperature data;

[0008] Using a python script program to read the battery standard operating condition data and generate real-time operating condition data;

[0009] According to a preset second time interval, real-time operating condition data is sent to the data center through the modbus protocol to complete the test of the lithium battery state estimation algorithm; wherein, the first time interval is a preset multiple of the second time interval.

[0010] Furthermore, the python script program is used to read the battery standard operating condition data and generate real-time operating condition data, specifically:

[0011] Using a python script program to read the battery standard operating condition data;

[0012] Forming single operating condition data according to the operating condition data at a single temperature in the battery standard operating condition data;

[0013] In the battery standard operating condition data, combined operating condition data is formed by randomly switching operating condition data at different temperatures;

[0014] Determine that the single operating condition data and the combined operating condition data are real-time operating condition data.

[0015] Furthermore, the method of collecting the battery standard operating condition data according to a preset first time interval using the battery collector also includes:

[0016] While the battery collector is used to collect the battery standard operating condition data according to the preset first time interval, the timestamp of the battery standard operating condition data collected by the battery collector in real time is recorded.

[0017] Furthermore, the real-time working condition data is sent to the data center through the modbus protocol according to the preset second time interval, specifically:

[0018] Determine the timestamp of the battery standard operating condition data collected by the battery collector in real time as the sending timestamp when the real-time operating condition data is sent;

[0019] Determine a second time interval using the sending timestamp according to the data sending requirement;

[0020] The real-time operating condition data is sent to the data center through the modbus protocol according to the second time interval.

[0021] Furthermore, the sending of real-time operating data to the data center through the modbus protocol according to the preset second time interval also includes:

[0022] The number of docking devices of the data center is determined to be 1; wherein, the docking device is a device that sends real-time working condition data.

[0023] Furthermore, the battery standard operating condition data includes charging operating condition data and discharging operating condition data.

[0024] The present invention provides a test method for a lithium battery state estimation algorithm, which uses a python script program to read the battery standard operating condition data collected by a battery collector according to a preset first time interval, generates single operating condition data at a single temperature and forms combined operating condition data by randomly switching operating condition data at different temperatures, determines the single operating condition data and the combined operating condition data as real-time operating condition data, sends the real-time operating condition data to a data center through a modbus protocol according to a preset second time interval, and completes the test of the lithium battery state estimation algorithm. The present invention can improve the debugging efficiency and test efficiency of the state estimation algorithm, realize more flexible and accurate algorithm testing, and save test time.

[0025] Accordingly, the present invention provides a test device for a lithium battery state estimation algorithm, comprising: a collection module, a generation module and a sending module;

[0026] The acquisition module is used to collect battery standard operating condition data according to a preset first time interval using a battery acquisition instrument; wherein the battery standard operating condition data includes time data, current data, voltage data and temperature data;

[0027] The generating module is used to read the battery standard operating condition data using a python script program and generate real-time operating condition data;

[0028] The sending module is used to send real-time operating data to the data center through the modbus protocol according to a preset second time interval to complete the test of the lithium battery state estimation algorithm; wherein the first time interval is a preset multiple of the second time interval.

[0029] Further, the generating module comprises: a reading unit, a first forming unit, a second forming unit and a data determining unit;

[0030] The reading unit is used to read the battery standard operating condition data using a python script program;

[0031] The first forming unit is used to form single operating condition data according to the operating condition data at a single temperature in the battery standard operating condition data;

[0032] The second forming unit is used to form combined operating condition data by randomly switching the operating condition data at different temperatures in the battery standard operating condition data;

[0033] The data determination unit is used to determine that the single operating condition data and the combined operating condition data are real-time operating condition data.

[0034] Furthermore, the acquisition module includes: a timestamp recording unit;

[0035] The timestamp recording unit is used to record the timestamp of the battery standard operating condition data collected by the battery collector in real time while the battery collector is used to collect the battery standard operating condition data according to a preset first time interval.

[0036] Further, the sending module includes: a timestamp determination unit, a time interval determination unit and a time sending unit;

[0037] The timestamp determination unit is used to determine the timestamp of the battery standard operating condition data collected by the battery collector in real time as the sending timestamp when the real-time operating condition data is sent;

[0038] The time interval determining unit is used to determine the second time interval using the sending timestamp according to the data sending requirement;

[0039] The time sending unit is used to send real-time operating condition data to the data center through the modbus protocol according to the second time interval.

[0040] The present invention provides a test device for a lithium battery state estimation algorithm. Based on the organic combination between modules, a python script program is used to read the battery standard operating condition data collected by a battery collector according to a preset first time interval, generate single operating condition data at a single temperature and form combined operating condition data by randomly switching operating condition data at different temperatures, determine the single operating condition data and the combined operating condition data as real-time operating condition data, send the real-time operating condition data to a data center through a modbus protocol according to a preset second time interval, and complete the test of the lithium battery state estimation algorithm. The present invention can improve the debugging efficiency and test efficiency of the state estimation algorithm, realize more flexible and accurate algorithm testing, and save test time. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A flow chart of an embodiment of a test method for a lithium battery state estimation algorithm provided by the present invention;

[0042] Figure 2 A schematic diagram of the data center provided by the present invention;

[0043] Figure 3 A schematic structural diagram of an embodiment of a testing device for a lithium battery state estimation algorithm provided by the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] Example 1

[0046] See also Figure 1 , is a flow chart of an embodiment of a test method for a lithium battery state estimation algorithm provided by the present invention, the method comprises steps 101 to 103, each step is specifically as follows:

[0047] Step 101: using a battery collector to collect battery standard operating condition data according to a preset first time interval; wherein the battery standard operating condition data includes time data, current data, voltage data and temperature data.

[0048] Furthermore, in the first embodiment of the present invention, the battery standard operating condition data includes charging operating condition data and discharging operating condition data.

[0049] In the first embodiment of the present invention, the battery standard operating condition data can be collected by the battery collector, and the battery standard operating condition data includes data in four dimensions: time, current, voltage, and temperature, and can be sampled at a first time interval of 200ms. The collected battery standard operating condition data includes charging condition data and discharging condition data at various temperatures, such as constant current charging conditions at 15 degrees, 25 degrees, and 35 degrees, and NEDC discharging conditions at 15 degrees, 25 degrees, and 35 degrees.

[0050] Furthermore, in the first embodiment of the present invention, the battery standard operating condition data is collected according to a preset first time interval using a battery collector, and further includes:

[0051] While the battery collector is used to collect the battery standard operating condition data according to the preset first time interval, the timestamp of the battery standard operating condition data collected by the battery collector in real time is recorded.

[0052] In the first embodiment of the present invention, after the present invention collects the working condition data, the method adopted when sending the working condition data to the data center is to simulate the battery controller device BC to send data. Among them, there is a difference in the time processing of the data sent by the present invention and the BC device. When sending the collected data, the actual BC device generates a timestamp with its current time; while the present invention does not use the time of the current python script running computer to generate a timestamp when sending data, but uses the timestamp of the battery standard working condition data collected in real time by the battery collector as the sending timestamp, so as to adjust the sending frequency according to the data sending requirements. Therefore, when using the battery collector to collect the battery standard working condition data, it is necessary to simultaneously record the timestamp of the real-time collection of the battery standard working condition data.

[0053] Step 102: Use a python script program to read the battery standard operating condition data and generate real-time operating condition data.

[0054] Furthermore, in the first embodiment of the present invention, a python script program is used to read the battery standard operating condition data and generate real-time operating condition data, specifically:

[0055] Using a python script program to read the battery standard operating condition data;

[0056] Forming single operating condition data according to the operating condition data at a single temperature in the battery standard operating condition data;

[0057] In the battery standard operating condition data, combined operating condition data is formed by randomly switching operating condition data at different temperatures;

[0058] Determine that the single operating condition data and the combined operating condition data are real-time operating condition data.

[0059] In the first embodiment of the present invention, the standard operating condition data of the battery can be read through a python script program to generate real-time operating condition data. Among them, by directly reading the operating condition data at a single temperature in the standard operating condition data of the battery, a single operating condition data can be formed to realize the test of the state estimation algorithm when a certain operating condition cycle is fully charged and discharged. However, the operating condition of the battery during actual operation is a random combination, that is, the temperature will change randomly, and the charge and discharge curve will also change randomly, and it will not be constant at a certain temperature and fully charged and discharged in a certain operating condition cycle. Therefore, after reading the standard operating condition data of the battery, the operating condition data at different temperatures can be randomly switched to form a combined operating condition data, so as to realize the test of the state estimation algorithm when multiple operating conditions are not fully charged and discharged and randomly operated.

[0060] As an example of the first embodiment of the present invention, the python script program can realize flexible combination of operating condition data at SOC points similar to the middle section of the battery standard operating condition data. For example, when the 15-degree constant current condition is charged to the SOC 20% point, it is switched to the SOC 20% point of the 25-degree constant current charging condition, and then continues to charge to 90%, and then switches to the 35-degree NEDC discharge condition, etc., thereby simulating the actual operating environment of the battery with changing internal and external environments, and realizing more flexible and accurate data testing.

[0061] Step 103: Send real-time operating data to the data center through the modbus protocol according to a preset second time interval to complete the test of the lithium battery state estimation algorithm; wherein the first time interval is a preset multiple of the second time interval.

[0062] Further, in the first embodiment of the present invention, the real-time working condition data is sent to the data center through the modbus protocol according to the preset second time interval, specifically:

[0063] Determine the timestamp of the battery standard operating condition data collected by the battery collector in real time as the sending timestamp when the real-time operating condition data is sent;

[0064] Determine a second time interval using the sending timestamp according to the data sending requirement;

[0065] The real-time operating condition data is sent to the data center through the modbus protocol according to the second time interval.

[0066] In the first embodiment of the present invention, the timestamp of the battery standard operating condition data collected in real time by the battery collector is determined as the sending timestamp. By determining the second time interval for sending data on the sending timestamp, the sending frequency can be adjusted to meet the data sending requirements for data testing. By sending the real-time operating condition data to the data center according to the second time interval, the testing of the lithium battery state estimation algorithm can be realized.

[0067] As an example of the first embodiment of the present invention, setting the first time interval to 200ms and setting the second time interval to 10ms, that is, sending samples with an interval of 200ms in a time interval of 10ms, can increase the sending speed by 20 times and compress the time required for the state estimation algorithm to calculate.

[0068] Further, in the first embodiment of the present invention, the real-time working condition data is sent to the data center through the modbus protocol according to the preset second time interval, specifically:

[0069] The number of docking devices of the data center is determined to be 1; wherein, the docking device is a device that sends real-time working condition data.

[0070] In the first embodiment of the present invention, see Figure 2 , is a schematic diagram of the data middle station provided by the present invention. Since the first time interval for collecting data is a preset multiple of the second time interval for sending data, the frequency of sending data is greatly improved. In order to avoid the data middle station crashing due to the speed increase, the number of devices originally connected to the data middle station is changed to 1 to ensure the security of data transmission.

[0071] In summary, the first embodiment of the present invention provides a test method for a lithium battery state estimation algorithm, which uses a python script program to read the battery standard operating data collected by a battery collector according to a preset first time interval, generates single operating data at a single temperature and forms combined operating data by randomly switching operating data at different temperatures, determines the single operating data and the combined operating data as real-time operating data, and sends the real-time operating data to the data center through the modbus protocol according to a preset second time interval to complete the test of the lithium battery state estimation algorithm. The present invention can improve the debugging efficiency and test efficiency of the state estimation algorithm, realize more flexible and accurate algorithm testing, and save test time.

[0072] Example 2

[0073] See also Figure 3 , is a structural diagram of an embodiment of a test device for a lithium battery state estimation algorithm provided by the present invention, the device comprises a collection module 201, a generation module 202 and a sending module 203;

[0074] The acquisition module 201 is used to use a battery acquisition instrument to collect battery standard operating condition data according to a preset first time interval; wherein the battery standard operating condition data includes time data, current data, voltage data and temperature data;

[0075] The generating module 202 is used to read the battery standard operating condition data using a python script program and generate real-time operating condition data;

[0076] The sending module 203 is used to send real-time operating data to the data center through the modbus protocol according to a preset second time interval to complete the test of the lithium battery state estimation algorithm; wherein the first time interval is a preset multiple of the second time interval.

[0077] Further, in the second embodiment of the present invention, the generating module 202 includes: a reading unit, a first forming unit, a second forming unit and a data determining unit;

[0078] The reading unit is used to read the battery standard operating condition data using a python script program;

[0079] The first forming unit is used to form single operating condition data according to the operating condition data at a single temperature in the battery standard operating condition data;

[0080] The second forming unit is used to form combined operating condition data by randomly switching the operating condition data at different temperatures in the battery standard operating condition data;

[0081] The data determination unit is used to determine that the single operating condition data and the combined operating condition data are real-time operating condition data.

[0082] Further, in the second embodiment of the present invention, the acquisition module 201 includes: a timestamp recording unit;

[0083] The timestamp recording unit is used to record the timestamp of the battery standard operating condition data collected by the battery collector in real time while the battery collector is used to collect the battery standard operating condition data according to a preset first time interval.

[0084] Further, in the second embodiment of the present invention, the sending module 203 includes: a timestamp determination unit, a time interval determination unit and a time sending unit;

[0085] The timestamp determination unit is used to determine the timestamp of the battery standard operating condition data collected by the battery collector in real time as the sending timestamp when the real-time operating condition data is sent;

[0086] The time interval determining unit is used to determine the second time interval using the sending timestamp according to the data sending requirement;

[0087] The time sending unit is used to send real-time working condition data to the data center through the modbus protocol according to the second time interval.

[0088] Further, in the second embodiment of the present invention, the sending module 203 further includes: a device quantity determination unit;

[0089] The device quantity determination unit is used to determine the number of docking devices of the data center to be 1; wherein the docking device is a device that sends real-time working condition data.

[0090] Furthermore, in the second embodiment of the present invention, the battery standard operating condition data includes charging operating condition data and discharging operating condition data.

[0091] In summary, the second embodiment of the present invention provides a test device for a lithium battery state estimation algorithm, based on the organic combination of modules, using a python script program to read the battery standard operating data collected by the battery collector according to a preset first time interval, generating single operating data at a single temperature and forming combined operating data by randomly switching the operating data at different temperatures, determining the single operating data and the combined operating data as real-time operating data, and sending the real-time operating data to the data center through the modbus protocol according to the preset second time interval to complete the test of the lithium battery state estimation algorithm. The present invention can improve the debugging efficiency and testing efficiency of the state estimation algorithm, realize more flexible and accurate algorithm testing, and save testing time.

[0092] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A test method for a lithium battery state estimation algorithm, It is characterized in that include: Using a battery collector to collect battery standard operating condition data according to a preset first time interval; wherein the battery standard operating condition data includes time data, current data, voltage data and temperature data; Using a python script program to read the battery standard operating condition data and generate real-time operating condition data; Sending real-time operating data to the data center through the modbus protocol at a preset second time interval to complete the test of the lithium battery state estimation algorithm; wherein the first time interval is a preset multiple of the second time interval; The method of collecting the battery standard operating condition data according to the preset first time interval by using the battery collector also includes: While using the battery collector to collect the battery standard operating condition data according to the preset first time interval, recording the timestamp of the battery collector collecting the battery standard operating condition data in real time; The python script program is used to read the battery standard operating condition data and generate real-time operating condition data, specifically: Using a python script program to read the battery standard operating condition data; Forming single operating condition data according to the operating condition data at a single temperature in the battery standard operating condition data; In the battery standard operating condition data, combined operating condition data is formed by randomly switching operating condition data at different temperatures; Determining that the single operating condition data and the combined operating condition data are real-time operating condition data; The sending of real-time working condition data to the data center through the modbus protocol according to the preset second time interval is specifically: Determine the timestamp of the battery standard operating condition data collected by the battery collector in real time as the sending timestamp when the real-time operating condition data is sent; Determine a second time interval using the sending timestamp according to the data sending requirement; The real-time operating condition data is sent to the data center through the modbus protocol according to the second time interval.

2. The method for testing the lithium battery state estimation algorithm according to claim 1, It is characterized in that The sending of real-time working condition data to the data center through the modbus protocol according to the preset second time interval also includes: The number of docking devices of the data center is determined to be 1; wherein, the docking device is a device that sends real-time working condition data.

3. The testing method of the lithium battery state estimation algorithm according to claim 1, It is characterized in that The battery standard operating condition data includes charging operating condition data and discharging operating condition data.

4. A test device for lithium battery state estimation algorithm, It is characterized in that include: Acquisition module, generation module and sending module; The acquisition module is used to collect battery standard operating condition data according to a preset first time interval using a battery acquisition instrument; wherein the battery standard operating condition data includes time data, current data, voltage data and temperature data; The generating module is used to read the battery standard operating condition data using a python script program and generate real-time operating condition data; The sending module is used to send real-time operating condition data to the data center through the modbus protocol according to a preset second time interval to complete the test of the lithium battery state estimation algorithm; wherein the first time interval is a preset multiple of the second time interval; The acquisition module includes: a timestamp recording unit; The timestamp recording unit is used to record the timestamp of the battery standard operating condition data collected by the battery collector in real time while the battery standard operating condition data is collected by the battery collector according to the preset first time interval; The generating module comprises: a reading unit, a first forming unit, a second forming unit and a data determining unit; The reading unit is used to read the battery standard operating condition data using a python script program; The first forming unit is used to form single operating condition data according to the operating condition data at a single temperature in the battery standard operating condition data; The second forming unit is used to form combined operating condition data by randomly switching the operating condition data at different temperatures in the battery standard operating condition data; The data determination unit is used to determine that the single operating condition data and the combined operating condition data are real-time operating condition data; The sending module includes: a timestamp determination unit, a time interval determination unit and a time sending unit; The timestamp determination unit is used to determine the timestamp of the battery standard operating condition data collected by the battery collector in real time as the sending timestamp when the real-time operating condition data is sent; The time interval determining unit is used to determine the second time interval using the sending timestamp according to the data sending requirement; The time sending unit is used to send real-time operating condition data to the data center through the modbus protocol according to the second time interval.

Citation Information

Patent Citations

  • Battery working condition simulation test method, electronic equipment and computer readable storage medium

    CN110907838A

  • GRU-RNN-based SOC estimation method of lithium ion battery of electric vehicle

    CN112557907A

  • Method, device and system for predicting service life of battery

    CN112965000A

  • Method, device and system for evaluating health of fuel cell stack and electronic equipment

    CN114420983A

  • Adaptive adjustment data acquisition method and device

    CN114528192A