SOC (State of Charge) jumping prevention method suitable for BMS (Battery Management System) battery stack

By sorting and managing the SOC values ​​of the battery clusters and timer, the problem of jumping in the battery stack SOC values ​​at a specific percentage is solved, and the smooth transition and stable changes of the SOC values ​​are realized, ensuring the accurate calculation of the SOC values ​​of the battery stack Peaceful change.

CN118914890APending Publication Date: 2024-11-08SHANGHAI PYTES ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410973035.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The existing SOC calculation method of battery stack is likely to cause SOC value to jump when the SOC is larger or smaller, especially when the A/C integral method and table lookup method change each other, causing the SOC value to jump directly from one value to another difference. Larger values ​​lack transitional stages.

Method used

A BMS battery stack SOC anti-hopping method is designed. By sorting the SOC values ​​of the battery cluster and managing timer, it ensures that the SOC values ​​change by 1% per minute during jumping to avoid direct jumping. Steps S1-S17 are used. The process to calculate and update the SOC value to ensure a smooth transition of the SOC value.

Benefits of technology

It effectively solves the problem of jumping in the SOC value of the battery stack at a specific percentage, realizes a smooth transition of the SOC value, ensures that the SOC value changes stably under the charging or discharge state, and avoids the sudden jump of the SOC value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118914890A_ABST
    Figure CN118914890A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automatic testing, in particular to an SOC jumping prevention method suitable for a BMS battery stack. The method specifically comprises the following steps: S1, solving an average number of SOC values; s2, judging whether the average number of the SOC values is greater than or equal to 90 or less than or equal to 20; s3, sorting all the SOC values; s4, judging whether the average number of the SOC values is greater than or equal to 90 or not; s5, recording the value of Percents as the maximum value in the sequence; s6, whether the value of the current LastTimeSOC is larger than 20 and smaller than 90 or not is judged; s7, recording the value of Percents as an average number; s8, judging whether the average number of the SOC values is less than or equal to 20; s9, recording the value of Pergent as the minimum value in the SOC value sequence; s10, judging whether the SOC value is greater than or equal to 85 or less than or equal to 25; s11, judging whether the timer is greater than or equal to 60s or not; s12, judging whether the value of the LastTimeSOC is less than the value of the Pertent or not; s13, judging whether the state is a charging state or not; s14, adding 1 to the value of the current LastTimeSOC (state of charge); s15, judging whether the value of the LastTimeSOC is greater than the value of the Pertent or not; s16, judging whether the state is a discharge state or not; and S17, the value of the current LastTimeSOC is subtracted by 1. Compared with the prior art, the problem of percentage jump of the SOC value of the cell stack is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, and in particular to a method for preventing SOC jumps in a BMS battery stack. Background Art

[0002] The existing battery stack SOC calculation method relies on the maximum SOC deviation value between clusters and the number of battery clusters involved in power-on, and is not satisfactory in preventing battery SOC value jumps. Currently, mainstream battery products on the market have more or less a problem, that is, the SOC value will jump directly from one value to another with a large difference, for example, from 89% directly to 92%. This jump process lacks a transition stage in the middle, allowing the SOC value to smoothly transition from 89% to 92%.

[0003] Usually, the table lookup method is used to calculate SOC when the SOC is large or small, and the ampere-hour integration method is used at other times. For example, the ampere-hour integration method is used when the SOC is between 20% and 90%, and the table lookup method is used when it is below 20% and above 90%. When switching between the ampere-hour integration method and the table lookup method, the change in calculation method may cause the SOC value to jump. Summary of the invention

[0004] In order to overcome the deficiencies of the prior art, the present invention provides a method for preventing SOC jumps in a BMS battery stack, which solves the problem that the SOC value of the battery stack will jump at a certain percentage. When the SOC is about to jump, the SOC jump can be replaced by a SOC value change of 1% per minute.

[0005] In order to achieve the above purpose, a method for preventing SOC jump of a BMS battery stack is designed, including a battery stack, wherein the battery stack includes a plurality of battery clusters and a timer. The specific method is as follows: S1, calculate the average SOC value of all battery clusters in the battery stack; S2, determine whether the average SOC value is greater than or equal to 90 or less than or equal to 20; if yes, proceed to step S3, otherwise jump to step S6; S3, sorting the SOC values ​​of all battery clusters in the battery stack; S4, determine whether the average SOC value is greater than or equal to 90; if yes, proceed to step S5, otherwise jump to step S8; S5, record the value of Percent as the maximum value in the SOC value sorting, and jump to step S10; S6, determine whether the current Last_Time_SOC value is greater than 20 and less than 90; if yes, proceed to step S7, otherwise jump to step S9; S7, record the value of Percent as the average of the SOC values, and jump to step S10; S8, determine whether the average SOC value is less than or equal to 20; if yes, proceed to step S9, otherwise jump to step S4; S9, record the value of Percent as the minimum value in the SOC value ranking; S10, determining whether the SOC value of the battery cluster in the battery stack is greater than or equal to 85 or less than or equal to 25; if yes, proceeding to step S11, otherwise, the SOC value of the current battery cluster is output as the final value of Percent, and the timer is reset to zero; S11, determine whether the timer is greater than or equal to 60 seconds; if yes, proceed to step S12, otherwise, reset the timer to zero; S12, determine whether Last_Time_SOC is less than the value of Percent in steps S5, S7, and S9, if yes, proceed to step S13, otherwise jump to step S15; S13, determining whether the battery cluster in the battery stack is in a charging state; if yes, proceeding to step S14, otherwise, setting the timer to zero; S14, adding 1 to the current Last_Time_SOC value to output the final value of Last_Time_SOC, and setting the timer to zero; S15, determine whether Last_Time_SOC is greater than the value of Percent in steps S5, S7, and S9; if yes, proceed to step S16, otherwise the current value of Last_Time_SOC is output as the final value of Last_Time_SOC; S16, determining whether the state of the battery cluster in the battery stack is in a discharge state; if yes, proceeding to step S17, otherwise, setting the timer to zero; S17, subtract 1 from the current Last_Time_SOC value to output the final value of Last_Time_SOC, and reset the timer to zero.

[0006] The SOC value is a percentage. When the battery cluster is fully charged, the SOC value is 100%, and when the battery cluster is fully discharged, the SOC value is 0%.

[0007] The specific process of step S1 is as follows: S1-1, storing the SOC value of each battery cluster in the battery stack into the SOC_Arr array; S1-2, find the average SOC value of all battery clusters.

[0008] The SOC values ​​of the battery clusters in step S3 are sorted from large to small or from small to large.

[0009] In the step S6, a variable Last_Time_SOC is defined. Last_Time_SOC is the final result of the calculated battery stack SOC. If the SOC value of the battery stack has been calculated during the code running process, the calculated Last_Time_SOC is directly used. If it is the first time to calculate Last_Time_SOC, the default Last_Time_SOC=50. After the calculation process is completed, the final Last_Time_SOC value is calculated.

[0010] In the step S11, in order to prevent the SOC value from jumping, the jump is changed to 1% per minute when the SOC value jumps, so the SOC value changes every 60 seconds. Therefore, when the timer value is less than 60 seconds, the current SOC value and the Last_Time_SOC value are kept unchanged, and the Last_Time_SOC value is output as the calculated current SOC value; when the timer value is greater than or equal to 60 seconds, the subsequent process continues.

[0011] In the step S13, in the charging state, the SOC value increases; in the discharging state, the SOC value decreases.

[0012] The final value of Last_Time_SOC is the final value of the current cycle and is also the SOC value of the battery cluster in the battery stack in the next cycle.

[0013] Compared with the prior art, the present invention provides a method for preventing SOC jumps in a BMS battery stack, which solves the problem that the SOC value of the battery stack will jump at a certain percentage. When the SOC is about to jump, the SOC jump can be replaced by a SOC value change of 1% per minute. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 , Figure 2 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0015] The present invention will be further described below with reference to the accompanying drawings.

[0016] like Figure 1 , Figure 2 As shown, a method for preventing SOC jump of BMS battery stack is provided, and the specific method is as follows: S1, calculate the average SOC value of all battery clusters in the battery stack; S2, determine whether the average SOC value is greater than or equal to 90 or less than or equal to 20; if yes, proceed to step S3, otherwise jump to step S6; S3, sorting the SOC values ​​of all battery clusters in the battery stack; S4, determine whether the average SOC value is greater than or equal to 90; if yes, proceed to step S5, otherwise jump to step S8; S5, record the value of Percent as the maximum value in the SOC value sorting, and jump to step S10; S6, determine whether the current Last_Time_SOC value is greater than 20 and less than 90; if yes, proceed to step S7, otherwise jump to step S9; S7, record the value of Percent as the average of the SOC values, and jump to step S10; S8, determine whether the average SOC value is less than or equal to 20; if yes, proceed to step S9, otherwise jump to step S4; S9, record the value of Percent as the minimum value in the SOC value ranking; S10, determining whether the SOC value of the battery cluster in the battery stack is greater than or equal to 85 or less than or equal to 25; if yes, proceeding to step S11, otherwise, the SOC value of the current battery cluster is output as the final value of Percent, and the timer is reset to zero; S11, determine whether the timer is greater than or equal to 60 seconds; if yes, proceed to step S12, otherwise, reset the timer to zero; S12, determine whether Last_Time_SOC is less than the value of Percent in steps S5, S7, and S9, if yes, proceed to step S13, otherwise jump to step S15; S13, determining whether the battery cluster in the battery stack is in a charging state; if yes, proceeding to step S14, otherwise, setting the timer to zero; S14, adding 1 to the current Last_Time_SOC value to output the final value of Last_Time_SOC, and setting the timer to zero; S15, determine whether Last_Time_SOC is greater than the value of Percent in steps S5, S7, and S9; if yes, proceed to step S16, otherwise the current value of Last_Time_SOC is output as the final value of Last_Time_SOC; S16, determining whether the state of the battery cluster in the battery stack is in a discharge state; if yes, proceeding to step S17, otherwise, setting the timer to zero; S17, subtract 1 from the current Last_Time_SOC value to output the final value of Last_Time_SOC, and reset the timer to zero.

[0017] The SOC value is a percentage. When the battery cluster is fully charged, the SOC value is 100%, and when the battery cluster is fully discharged, the SOC value is 0%.

[0018] The specific process of step S1 is as follows: S11, storing the SOC value of each battery cluster in the battery stack into the SOC_Arr array; S12, finding the average SOC value of all battery clusters.

[0019] In step S3, the SOC values ​​of the battery clusters are sorted from large to small or from small to large.

[0020] In step S6, a variable Last_Time_SOC is defined. Last_Time_SOC is the final result of the calculated battery stack SOC. If the SOC value of the battery stack has been calculated during the code running process, the calculated Last_Time_SOC is directly used. If it is the first time to calculate Last_Time_SOC, the default Last_Time_SOC=50. After the calculation process is completed, the final Last_Time_SOC value is calculated.

[0021] In step S11, the SOC value changes every 60 seconds. Therefore, when the timer value is less than 60 seconds, the current SOC value and the Last_Time_SOC value are kept unchanged, and the Last_Time_SOC value is output as the calculated current SOC value; when the timer value is greater than or equal to 60 seconds, the subsequent process continues.

[0022] In step S13, in the charging state, the SOC value increases; in the discharging state, the SOC value decreases.

[0023] The final value of Last_Time_SOC is the final value of the current cycle and is also the SOC value of the battery cluster in the battery stack in the next cycle.

[0024] Implementation Cases: For example, when calculating the SOC of a battery stack with three battery clusters, the SOC of battery cluster 1, battery cluster 2, and battery cluster 3 are 87%, 88%, and 89% respectively. At this time, the SOC value of the entire battery stack should be the average value of the three clusters, that is, 88%. Next, if the battery stack is charged so that the SOC values ​​of the three battery clusters increase by 1%, the SOC values ​​of the three battery clusters will be 88%, 89%, and 90% respectively. The SOC of battery cluster 3 reaches 90%, which is the boundary between the calculation of SOC by the ampere-hour integration method and the table lookup method. Therefore, the table lookup method is used to calculate the SOC. Considering the error between the two methods, it is assumed that the SOC value calculated by the table lookup method for battery cluster 3 is 96%. At this time, the SOC values ​​of the three battery clusters become 88%, 89%, and 96%, and the SOC value of the entire battery stack should be the average value of the three clusters, that is, 91%. When the SOC value of the battery cluster is greater than or equal to 90, the maximum value of the SOC of each cluster of batteries is generally used to replace the average value, and the maximum value is used as the SOC value of the battery stack. This is because when a cluster of batteries is fully charged, the entire battery stack must stop charging. If the maximum value is not used to replace the average value, and the maximum value of the SOC of each cluster is used as the SOC value of the battery stack, the battery stack will be fully charged and the SOC value of the battery stack will be less than 100% when it is no longer charged. Therefore, when the average SOC value of the three clusters of batteries is 91%, the SOC value of the battery stack jumps from 88% to 96%. This is an obvious SOC jump of the battery stack. The use of the SOC anti-jump algorithm provided by this patent can circumvent this problem.

[0025] When the SOC anti-jump method for BMS battery stack provided by this patent is used to calculate SOC, then in step S2, it is determined that the SOC average value is greater than 90%, the SOC values ​​of all battery clusters in the battery stack are sorted, and then step S5 is performed to record the value of Percent as the maximum value (96%) in the SOC value sorting, and then jump to S10 in S5. The maximum value (96%) in the current battery cluster SOC value sorting is output as the final value of Percent to the next step of the process.

[0026] Wait for the timer to count for 60 seconds, and then determine whether Last_Time_SOC is less than the value of Percent in step S5; because the previously calculated battery stack SOC is 88%, the value of Last_Time_SOC is 88% at this time, and 88% is less than 96%, so proceed to the next step S13 to determine whether the state of the battery cluster in the battery stack is charging; if yes, proceed to step S14, add 1 to the current Last_Time_SOC value to output the final value of Last_Time_SOC, and set the timer to zero; the final output Last_Time_SOC (89%) is the battery cluster SOC value to be calculated. In this way, after waiting for 1 minute, the battery cluster SOC value is changed from 88% to 89%, and then the BMS battery stack SOC anti-jump method is continuously run, so the SOC value will be changed from 89% to 90% after 1 minute, and the real SOC value is continuously approached at a rate of 1% per minute (it is believed that the real SOC value is 96% at this time), and the real SOC value is obtained after 8 minutes: 96%.

Claims

1. A method for preventing SOC jump of a BMS battery stack, comprising a battery stack, wherein the battery stack comprises a plurality of battery clusters and a timer. Features: The specific method is as follows: S1, calculate the average SOC value of all battery clusters in the battery stack; S2, determine whether the average SOC value is greater than or equal to 90 or less than or equal to 20; if yes, proceed to step S3, otherwise jump to step S6; S3, sorting the SOC values ​​of all battery clusters in the battery stack; S4, determine whether the average SOC value is greater than or equal to 90; if yes, proceed to step S5, otherwise jump to step S8; S5, record the value of Percent as the maximum value in the SOC value sorting, and jump to step S10; S6, determine whether the current Last_Time_SOC value is greater than 20 and less than 90; if yes, proceed to step S7, otherwise jump to step S9; S7, record the value of Percent as the average of the SOC values, and jump to step S10; S8, determine whether the average SOC value is less than or equal to 20; if yes, proceed to step S9, otherwise jump to step S4; S9, record the value of Percent as the minimum value in the SOC value ranking; S10, determining whether the SOC value of the battery cluster in the battery stack is greater than or equal to 85 or less than or equal to 25; if yes, proceeding to step S11, otherwise, the SOC value of the current battery cluster is output as the final value of Percent, and the timer is reset to zero; S11, determine whether the timer is greater than or equal to 60 seconds; if yes, proceed to step S12, otherwise, reset the timer to zero; S12, determine whether Last_Time_SOC is less than the value of Percent in steps S5, S7, and S9, if yes, proceed to step S13, otherwise jump to step S15; S13, determining whether the battery cluster in the battery stack is in a charging state; if yes, proceeding to step S14, otherwise, setting the timer to zero; S14, adding 1 to the current Last_Time_SOC value to output the final value of Last_Time_SOC, and setting the timer to zero; S15, determine whether Last_Time_SOC is greater than the value of Percent in steps S5, S7, and S9; if yes, proceed to step S16, otherwise the current value of Last_Time_SOC is output as the final value of Last_Time_SOC; S16, determining whether the state of the battery cluster in the battery stack is in a discharge state; if yes, proceeding to step S17, otherwise, setting the timer to zero; S17, subtract 1 from the current Last_Time_SOC value to output the final value of Last_Time_SOC, and reset the timer to zero.

2. A method for preventing SOC jump in a BMS battery stack according to claim 1, Features: The SOC value is a percentage. When the battery cluster is fully charged, the SOC value is 100%, and when the battery cluster is fully discharged, the SOC value is 0%.

3. A method for preventing SOC jump in a BMS battery stack according to claim 1, Features: The specific process of step S1 is as follows: S1-1, storing the SOC value of each battery cluster in the battery stack into the SOC_Arr array; S1-2, find the average SOC value of all battery clusters.

4. A method for preventing SOC jump in a BMS battery stack according to claim 1, Features: The SOC values ​​of the battery clusters in step S3 are sorted from large to small or from small to large.

5. A method for preventing SOC jump in a BMS battery stack according to claim 1, Features: In the step S6, a variable Last_Time_SOC is defined. Last_Time_SOC is the final result of the calculated battery stack SOC. If the SOC value of the battery stack has been calculated during the code running process, the calculated Last_Time_SOC is directly used. If it is the first time to calculate Last_Time_SOC, the default Last_Time_SOC=50. After the calculation process is completed, the final Last_Time_SOC value is calculated.

6. A method for preventing SOC jump in a BMS battery stack according to claim 1, Features: In the step S11, in order to prevent the SOC value from jumping, the jump is changed to 1% per minute when the SOC value jumps, so the SOC value changes every 60 seconds. Therefore, when the timer value is less than 60 seconds, the current SOC value and the Last_Time_SOC value are kept unchanged, and the Last_Time_SOC value is output as the calculated current SOC value; when the timer value is greater than or equal to 60 seconds, the subsequent process continues.

7. A method for preventing SOC jump in a BMS battery stack according to claim 1, Features: In the step S13, in the charging state, the SOC value increases; in the discharging state, the SOC value decreases.

8. A method for preventing SOC jump in a BMS battery stack according to claim 1, Features: The final value of Last_Time_SOC is the final value of the current cycle and is also the SOC value of the battery cluster in the battery stack in the next cycle.