A SOC correction method and SOC correction device at a battery charging terminal
The SOC of lithium iron phosphate batteries is corrected through the fuzzy self-tuning PID control algorithm, which solves the problem of inaccurate SOC estimation in the prior art, and realizes the precise SOC management and battery life extension of the battery management system.
Patent Information
- Application Number
- CN202411163434.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-08-23
AI Technical Summary
The existing SOC estimation methods, especially the model-free ATM method, cannot eliminate errors in the process, resulting in inaccurate SOC estimation of lithium iron phosphate batteries for automotive use, making it difficult to achieve accurate SOC management.
Using the fuzzy self-tuning PID control algorithm, the terminal voltage detected in real time is compared with the threshold for the charging terminal starting correction voltage, determine whether the battery enters the terminal correction, obtains the SOC target value, and corrects based on the error between the actual SOC value and the target value. , gradually reduce the error so that it smoothly approaches the SOC target value.
Accurate estimation of SOC is achieved, the accuracy and stability of the battery management system is improved, the service life of the battery is extended, energy management and safety management are optimized, and overcharging and overdischarge are prevented.
Smart Images

Figure CN118707366B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a SOC correction method and an SOC correction device at a battery charging terminal. Background Art
[0002] Lithium iron phosphate batteries are widely used in energy storage fields such as photovoltaics, electric vehicles, and communication base stations due to their safety, long life, and high temperature resistance. Real-time estimation of the state of charge (SOC) of lithium iron phosphate batteries is strongly related to battery charge and discharge management and electric vehicle energy management. Accurate SOC estimation is of great significance for extending battery life, optimizing energy management and safety management, and preventing overcharging and over-discharging of power batteries. However, for automotive lithium iron phosphate batteries, there are fewer measurable parameters and many factors to consider, such as high dynamic loads, self-discharge, aging, and hysteresis characteristics. At the same time, during the operation of lithium batteries, they are affected by the nonlinearity between various physical quantities, electrothermal coupling, and uncertain external interference, making it difficult to accurately estimate the battery SOC.
[0003] At present, the mainstream estimation methods include open circuit voltage method, ampere-hour integration method, model-based observer method and data-driven estimation algorithm. Among the many SOC estimation algorithms, the model-free ampere-hour integration method is simple in structure and easy to implement, and is widely used in battery management systems (BMS). However, the ampere-hour integration method is an open-loop algorithm and is heavily dependent on the initial value of SOC. Due to the accuracy of the sensor itself and the limited time interval, there are cumulative errors in the ampere-hour integration process. This algorithm cannot eliminate errors in the process, and the SOC estimation effect is not good using only the ampere-hour integration method. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a SOC correction method and an SOC correction device for a battery charging terminal. When the battery is at the charging terminal, the SOC target value is obtained through the measurable terminal voltage, and based on the error between the actual SOC value and the SOC target value, a fuzzy self-tuning PID control algorithm is used to correct the falsely high SOC point in advance, and the error between the actual SOC value and the SOC target value is continuously reduced, so that it smoothly approaches the SOC target value, so as to achieve accurate estimation of the SOC.
[0005] In a first aspect, an embodiment of the present application provides a method for correcting the SOC of a battery charging terminal, the method comprising:
[0006] When it is determined through the battery management system and the charging current of the battery that the battery is currently in a charging state and the temperature of the battery is within a preset temperature range, obtaining the terminal voltage of the battery;
[0007] Determine the current charging stage of the battery according to the terminal voltage and the charging terminal start correction voltage threshold; wherein the charging stage includes a non-charging terminal, a pseudo-charging terminal and a charging terminal;
[0008] When the battery is currently in the charging terminal stage, the SOC target value corresponding to the battery is obtained based on the terminal voltage, and based on the error between the actual SOC value of the battery and the SOC target value, a fuzzy self-tuning PID control algorithm is used to correct the actual SOC value to obtain the SOC correction value of the battery.
[0009] Furthermore, based on the error between the actual SOC value of the battery and the target SOC value, the actual SOC value is corrected using a fuzzy self-tuning PID control algorithm to obtain a corrected SOC value of the battery, including:
[0010] Determining an SOC error value according to the SOC actual value and the SOC target value;
[0011] When the absolute value of the SOC error value is less than or equal to a preset error threshold, determining an error change rate based on the SOC error value, and using the SOC error value and the error change rate as input parameters of the fuzzy self-tuning PID control algorithm;
[0012] The input parameters are subjected to fuzzification processing, fuzzy reasoning and defuzzification processing by the fuzzy self-tuning PID control algorithm to obtain a correction coefficient of the fuzzy self-tuning PID control algorithm;
[0013] The fuzzy self-tuning PID control algorithm and the correction coefficient are used to adjust the ampere-hour integration rate of the ampere-hour integration method to obtain a first target ampere-hour integration rate, and the actual SOC value is corrected using the ampere-hour integration method and the first target ampere-hour integration rate to obtain the SOC correction value.
[0014] Further, based on the error between the actual SOC value of the battery and the SOC target value, the actual SOC value is corrected by using a fuzzy self-tuning PID control algorithm to obtain a corrected SOC value of the battery, and further includes:
[0015] When the absolute value of the SOC error value is greater than the preset error threshold, the integral effect in the fuzzy self-tuning PID control algorithm is canceled, and the SOC actual value is corrected by PD control to obtain the SOC correction value.
[0016] Furthermore, when the current charging stage of the battery is the pseudo charging terminal, the actual SOC value is corrected by the following steps:
[0017] A second target ampere-hour integration rate is determined within a preset integration rate range, and the actual SOC value is corrected using the ampere-hour integration method and the second target ampere-hour integration rate to obtain the SOC correction value.
[0018] Further, judging the current charging stage of the battery according to the terminal voltage and the charging terminal start correction voltage threshold includes:
[0019] When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is less than or equal to the SOC threshold, it is considered that the current charging stage of the battery is the non-charging terminal;
[0020] When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is greater than the SOC threshold, it is considered that the current charging stage of the battery is the pseudo charging terminal;
[0021] When the terminal voltage reaches the charging terminal start correction voltage threshold, it is considered that the current charging stage of the battery is the charging terminal.
[0022] Further, the obtaining the SOC target value corresponding to the battery based on the terminal voltage includes:
[0023] Acquiring multiple historical terminal voltages of the battery during the charging process;
[0024] When it is determined based on the historical terminal voltage and the terminal voltage that the terminal voltage of the battery shows a monotonically increasing trend, acquiring an SOC target value corresponding to the temperature, current rate and terminal voltage of the battery from an SOC mapping relationship table;
[0025] When it is judged that the terminal voltage of the battery shows a monotonically decreasing trend based on the historical terminal voltage and the terminal voltage, the SOC value corresponding to the battery at the current rate switching moment is used as the SOC initial value of the variable rate ampere-hour integration method at the next moment, and the variable rate ampere-hour integration method and the SOC initial value are used to determine the SOC target value.
[0026] Furthermore, the SOC correction method further includes:
[0027] When it is detected that the battery is in a fully charged state, the actual SOC value is corrected to a fully charged SOC value.
[0028] In a second aspect, an embodiment of the present application further provides a SOC correction device for a battery charging terminal, the SOC correction device comprising:
[0029] A terminal voltage acquisition module, used for acquiring the terminal voltage of the battery when it is determined through the battery management system and the charging current of the battery that the battery is currently in a charging state and the temperature of the battery is within a preset temperature range;
[0030] A charging stage determination module, used to determine the current charging stage of the battery according to the terminal voltage and the charging terminal start correction voltage threshold; wherein the charging stage includes a non-charging terminal, a pseudo-charging terminal and a charging terminal;
[0031] The charging terminal SOC correction module is used to obtain the SOC target value corresponding to the battery based on the terminal voltage when the battery is currently in the charging stage of the charging terminal, and to correct the SOC actual value based on the error between the SOC actual value of the battery and the SOC target value by using a fuzzy self-tuning PID control algorithm to obtain the SOC correction value of the battery.
[0032] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the SOC correction method for the battery charging terminal as described above are performed.
[0033] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the SOC correction method for the battery charging terminal as described above are executed.
[0034] The embodiments of the present application provide a SOC correction method and SOC charging device for a battery charging terminal. By comparing the terminal voltage detected in real time with the starting correction voltage threshold of the charging terminal, it is determined whether the battery has entered the terminal correction. If the battery is at the charging terminal, the SOC target value is obtained through the measurable terminal voltage. Based on the error between the actual SOC value and the SOC target value, a fuzzy self-tuning PID control algorithm is used to correct the falsely high SOC point in advance, and the error between the actual SOC value and the SOC target value is continuously reduced so that the SOC point smoothly approaches the SOC target value, thereby realizing accurate estimation of the SOC.
[0035] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flow chart of a method for correcting the SOC of a battery charging terminal provided in an embodiment of the present application;
[0038] Figure 2 A voltage and current curve diagram of a lithium iron phosphate battery during charging provided in an embodiment of the present application;
[0039] Figure 3 A structural diagram of a fuzzy self-tuning PID controller provided in an embodiment of the present application;
[0040] FIG4 (A) is a distribution curve of a system error e membership function provided in an embodiment of the present application;
[0041] FIG4 (B) is a distribution curve of a membership function of a system error change rate ec provided in an embodiment of the present application;
[0042] FIG4 (C) is a membership function distribution curve of ΔKp provided in an embodiment of the present application;
[0043] Figure 5 A flow chart of a SOC correction algorithm for a lithium iron phosphate battery charging terminal provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the structure of a SOC correction device for a battery charging terminal provided in an embodiment of the present application;
[0045] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0047] First, the application scenarios to which the present application is applicable are introduced. The present application can be applied in the field of battery technology.
[0048] Lithium iron phosphate batteries are widely used in energy storage fields such as photovoltaics, electric vehicles, and communication base stations due to their safety, long life, and high temperature resistance. Real-time estimation of the state of charge (SOC) of lithium iron phosphate batteries is strongly related to battery charge and discharge management and electric vehicle energy management. Accurate SOC estimation is of great significance for extending battery life, optimizing energy management and safety management, and preventing overcharging and over-discharging of power batteries. However, for automotive lithium iron phosphate batteries, there are fewer measurable parameters and many factors to consider, such as high dynamic loads, self-discharge, aging, and hysteresis characteristics. At the same time, during the operation of lithium batteries, they are affected by the nonlinearity between various physical quantities, electrothermal coupling, and uncertain external interference, making it difficult to accurately estimate the battery SOC.
[0049] According to research, the mainstream estimation methods include open circuit voltage method, ampere-hour integration method, model-based observer method and data-driven estimation algorithm. Among the many SOC estimation algorithms, the model-free ampere-hour integration method is simple in structure and easy to implement, and is widely used in battery management systems (BMS). However, the ampere-hour integration method is an open-loop algorithm and is heavily dependent on the initial value of SOC. Due to the accuracy of the sensor itself and the limited time interval, there are cumulative errors in the ampere-hour integration process. This algorithm cannot eliminate errors in the process, and the SOC estimation effect is not good using only the ampere-hour integration method.
[0050] Based on this, an embodiment of the present application provides a method for correcting the SOC at the charging terminal of a battery. When the battery is at the charging terminal, a fuzzy self-tuning PID control algorithm is used to correct the falsely high SOC point in advance, continuously reducing the error between the actual SOC value and the SOC target value, so that it smoothly approaches the SOC target value, thereby achieving accurate estimation of the SOC.
[0051] See also Figure 1 , Figure 1 This is a flow chart of a method for correcting the SOC of a battery charging terminal provided in an embodiment of the present application. Figure 1 As shown in , the SOC correction method provided by the embodiment of the present application includes:
[0052] S101, when it is determined through a battery management system and a charging current of a battery that the battery is currently in a charging state, and the temperature of the battery is within a preset temperature range, a terminal voltage of the battery is obtained.
[0053] For the above step S101, in the specific implementation, firstly determine whether the battery is currently in a charging state through the battery management system and the current charging current of the battery. If it is in a charging state, obtain the battery temperature. When the battery temperature is within the preset temperature range, obtain the terminal voltage of the battery and enter the subsequent stage of judgment. Specifically, it can be determined whether the battery is currently in a charging state based on the state of the power management system and the charging current of the battery. If the conditions are met and the battery temperature is also within the preset temperature range, enter the subsequent SOC correction stage.
[0054] S102, determining the current charging stage of the battery according to the terminal voltage and a charging terminal start correction voltage threshold.
[0055] Here, specifically, the charging stage includes a non-charging terminal, a pseudo-charging terminal, and a charging terminal. As an example, the charging terminal start correction voltage threshold may be the terminal voltage corresponding to the actual SOC value corresponding to the charging terminal start correction point when it reaches 95%. The charging terminal start correction voltage threshold may be determined based on demand, and this application does not make specific limitations on this.
[0056] For the above step S102, in the specific implementation, the terminal voltage of the battery and the preset charging terminal start correction voltage threshold are used to determine the current charging stage of the battery. According to the embodiment provided by the present application, the present application divides the entire charging process of the battery into three charging stages: non-charging terminal, pseudo-charging terminal and charging terminal.
[0057] As an optional embodiment, with respect to the above step S102, the step of determining the current charging stage of the battery according to the terminal voltage and the charging terminal start correction voltage threshold includes:
[0058] Step 1021, when the terminal voltage does not reach the charging terminal starting correction voltage threshold, and the actual SOC value is less than or equal to the SOC threshold, it is considered that the current charging stage of the battery is the non-charging terminal.
[0059] Step 1022: When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the actual SOC value is greater than the SOC threshold, it is considered that the current charging stage of the battery is the pseudo charging terminal.
[0060] Step 1023: When the terminal voltage reaches the charging terminal start correction voltage threshold, it is considered that the current charging stage of the battery is the charging terminal.
[0061] Here, as an example, the SOC threshold may be 95% SOC of the actual SOC value corresponding to the starting correction point of the charging terminal, and this application does not make any specific limitation on this.
[0062] For the above steps 1021 to 1023, in the specific implementation, when the terminal voltage of the battery does not reach the charging terminal start correction voltage threshold, and the actual SOC value is less than or equal to the SOC threshold, the battery is considered to be in a non-charging terminal. When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the actual SOC value is greater than the SOC threshold, the battery is considered to be in a pseudo-charging terminal. When the terminal voltage reaches the charging terminal start correction voltage threshold, the battery is considered to be in a charging terminal.
[0063] According to the SOC correction method provided in the present application, when the battery is at the non-charging terminal, no SOC correction operation is performed, and normal ampere-hour integration is maintained, and the integration rate is 1.
[0064] S103, when the battery is currently in the charging terminal stage, the SOC target value corresponding to the battery is obtained based on the terminal voltage, and based on the error between the actual SOC value of the battery and the SOC target value, the fuzzy self-tuning PID control algorithm is used to correct the actual SOC value to obtain the SOC correction value of the battery.
[0065] For the above step S103, in the specific implementation, when it is determined in step S102 that the current charging stage of the battery is the charging terminal, the SOC target value corresponding to the battery is obtained based on the terminal voltage, and the error rate between the actual SOC value of the battery and the SOC target value is used to adopt a fuzzy adaptive tuning PID control algorithm (FATPID- Fuzzy Adaptive Tuning PIDControl Algorithm), introduce an error feedback amount, and at the charging terminal, introduce a closed-loop algorithm into the open-loop ampere-hour integration method to correct the actual SOC value, thereby greatly improving the estimation accuracy of the SOC.
[0066] As an optional embodiment, with respect to the above step S103, the acquiring the SOC target value corresponding to the battery based on the terminal voltage includes:
[0067] A: Obtain multiple historical terminal voltages of the battery during the charging process.
[0068] Regarding the above step A, in the specific implementation, multiple historical terminal voltages of the battery during the charging process are obtained.
[0069] B: When it is determined based on the historical terminal voltage and the terminal voltage that the terminal voltage of the battery shows a monotonically increasing trend, an SOC target value corresponding to the temperature, current rate and terminal voltage of the battery is obtained from an SOC mapping relationship table.
[0070] C: When it is judged that the terminal voltage of the battery shows a monotonically decreasing trend based on the historical terminal voltage and the terminal voltage, the SOC value corresponding to the battery at the current rate switching moment is used as the SOC initial value of the variable rate ampere-hour integration method at the next moment, and the variable rate ampere-hour integration method and the SOC initial value are used to determine the SOC target value.
[0071] It should be noted that the SOC mapping relationship table refers to a pre-constructed data table used to store the corresponding relationship between charging terminal temperature-current rate-voltage-SOC.
[0072] Here, during the fast charging process, as the SOC gradually increases, a constant current charging current that decreases step by step is obtained based on the fast charging map. In the short time after the current switching, the terminal voltage shows a gradually decreasing trend. Thereafter, as the charging capacity accumulates, the terminal voltage shows a gradually increasing trend. Please refer to Figure 2 , Figure 2 A voltage and current curve diagram of a lithium iron phosphate battery during charging provided in an embodiment of the present application. In the charging state, when the current rate becomes smaller, the terminal voltage will show a short downward trend, and the SOC is in an upward trend. In this stage, the terminal voltage and SOC do not have a one-to-one correspondence and cannot be obtained by offline table lookup. In the voltage drop stage, the present application adopts the variable rate ampere-hour integration method to obtain the SOC target value of the decreasing part of the terminal voltage. The variable rate ampere-hour integration uses the charging rate as input, where a large current rate uses a smaller integration rate (0≤IntgRate<0.8), and for a small rate, it is as close to the actual integration rate as possible (0.8≤IntgRate≤1); in the terminal voltage rising stage, the SOC target value of the increasing part of the terminal voltage can be obtained by querying the charging terminal temperature-current rate-voltage-SOC table (offline calibration value).
[0073] During the entire charging process of the battery, for the charging terminal, at a certain temperature and a certain charging rate, there is a corresponding relationship between the terminal voltage of the battery and the SOC, and the SOC target value can be obtained through the terminal voltage at different charging stages. For the above steps B-C, in the specific implementation, when the terminal voltage of the battery is judged to be monotonically increasing based on the historical terminal voltage and the terminal voltage, the SOC target value corresponding to the temperature, current rate and terminal voltage of the battery is obtained from the SOC mapping relationship table. Specifically, under normal conditions at the charging terminal, the SOC target value is obtained by looking up the table: when the charging terminal correction condition is met and the terminal voltage is monotonically increasing, the SOC target value under the corresponding temperature and current rate can be obtained through the charging terminal temperature-current rate-voltage-SOC table. When it is judged that the terminal voltage of the battery is monotonically decreasing based on the historical terminal voltage and the terminal voltage, the SOC value corresponding to the battery at the moment of current rate switching is used as the SOC initial value of the variable rate ampere-hour integration method at the next moment, and the variable rate ampere-hour integration method and the SOC initial value are used to determine the SOC target value. Specifically, the SOC target value under abnormal conditions at the charging terminal is obtained by inheritance: when the charging rate is switched, the terminal voltage shows a monotonically decreasing trend and is maintained for a certain period of time, and cannot be obtained by table lookup. However, since the SOC target value at the previous moment is obtained by table lookup, it has a certain degree of credibility. The table lookup value corresponding to the current rate switching moment is used as the SOC initial value of the variable rate ampere-hour integration method at the next moment. In the subsequent terminal voltage drop segment, the variable rate ampere-hour integration method is used to obtain the SOC target value.
[0074] According to the SOC correction method provided in this application, when entering the charging terminal SOC correction stage, this application takes the power battery SOC ampere-hour integration system as the research object and designs a fuzzy self-tuning PID control algorithm. Please refer to Figure 3 , Figure 3 This is a structural diagram of a fuzzy self-tuning PID controller provided in an embodiment of the present application. It not only has high PID control accuracy, but also has the characteristics of fuzzy control flexibility and strong adaptability. Since the power battery SOC tracking does not require an accurate mathematical model, this application comprehensively considers the stability of the output, response speed, overshoot and steady-state accuracy, and uses empirical methods to adjust the specific parameters of the controller to meet the design requirements of the SOC tracking controller.
[0075] As an optional embodiment, for the above step S103, based on the error between the actual SOC value of the battery and the SOC target value, the actual SOC value is corrected using a fuzzy self-tuning PID control algorithm to obtain a corrected SOC value of the battery, including:
[0076] I: Determine an SOC error value according to the SOC actual value and the SOC target value.
[0077] For the above step I, in the specific implementation, the SOC error value is determined according to the actual SOC value and the SOC target value of the battery. Specifically, the difference between the actual SOC value and the SOC target value is taken as the SOC error value, and its expression is:
[0078]
[0079] in, Expressed as the actual SOC value, Expressed as the SOC target value, is the SOC error value.
[0080] II: When the absolute value of the SOC error value is less than or equal to a preset error threshold, an error change rate is determined based on the SOC error value, and the SOC error value and the error change rate are used as input parameters of the fuzzy self-tuning PID control algorithm.
[0081] Here, the definition is a preset error threshold.
[0082] For the above step II, in the specific implementation, when the SOC error value is less than or equal to the preset error threshold, that is, When the error change rate is determined based on the SOC error value, an integral link is introduced to eliminate the system steady-state error and improve the control accuracy. The SOC error value and the error change rate are used as input parameters of the fuzzy self-tuning PID control algorithm.
[0083] III: The input parameters are fuzzified, fuzzy inferred and defuzzified by the fuzzy self-tuning PID control algorithm to obtain a correction coefficient of the fuzzy self-tuning PID control algorithm.
[0084] In view of the above steps, during the specific implementation, the fuzzy self-tuning PID control algorithm is used to perform fuzzification, fuzzy reasoning and defuzzification on the input parameters to obtain the correction coefficient of the fuzzy self-tuning PID control algorithm.
[0085] The PID controller runs on the hardware system and is a sampling control. It calculates the control quantity based on the error information between the target value (SOCtarget) and the actual output (SOCCalibrat) at the sampling time. Its discrete PID expression is:
[0086]
[0087] In the above formula, discrete PID control is a linear controller that calculates the control quantity by linearly combining the three correction links of proportional control, integral control and differential control. The functions of each correction link are as follows:
[0088] Proportional coefficient Kp: proportionally reflects the error signal. Once an error exists, the controller immediately produces a control action to reduce the error, but the Kp value cannot eliminate the system steady-state error. The larger the Kp, the faster the system response speed and the higher the adjustment accuracy, but it is easy to produce overshoot; the smaller the Kp, the slower the system response speed and the lower the adjustment accuracy.
[0089] Integral coefficient Ki: used to eliminate the system steady-state error and improve the system's degree of freedom from error. However, if the integral effect is too strong, the system overshoot will increase, and even cause the system to oscillate. Due to the particularity of SOC correction, a large overshoot is not allowed, because the SOC calculated by the ampere-hour integral during the charging process cannot be reduced. If the SOC overshoot is too large, the purpose of SOC correction will be lost.
[0090] Differential coefficient Kd: reflects the changing trend of the error signal and can introduce an effective early correction signal into the system before the error signal becomes too large, which is used to improve the dynamic characteristics of the system, reduce overshoot, overcome oscillation, and improve the stability of the system. The larger the Kd, the earlier the response process will be braked, thereby extending the adjustment time.
[0091] The power battery SOC tracking process is strongly related to the user experience. The SOC tracking rate needs to be strictly controlled. It is not advisable to track too fast, and the SOC is not allowed to remain at a high level for a long time. That is, it is necessary to adjust the parameters of the above PID correction links to control the dynamic response speed of the tracking system. The fuzzy self-tuning PID control algorithm is an adaptive PID control algorithm. By analyzing the relationship between the three PID parameters and the control error e and the error change rate ec, the three PID parameters are adaptively adjusted according to the fuzzy principle to meet the different requirements of different e and ec for control parameters, so that the SOC tracking process at the charging terminal has good dynamic and static performance. The basic principles of its adjustment are as follows:
[0092] When the error |e| is large, in order to make the system have better fast tracking performance, a larger Kp value should be selected; at the same time, in order to prevent integral saturation and avoid large overshoot of system response, the integral control effect should be limited and a smaller Ki should be selected. Usually Ki=0; the selection of Kd is moderate.
[0093] When the error |e| is of medium size, smaller Kp and Ki values should be used to make the system response have smaller overshoot; at this time, the Kd value has a greater impact on the system. If the error |e| and the error change rate |ec| have opposite signs, a smaller Kd value should be used, otherwise a moderate Kd value should be used to prevent the error from continuing to increase.
[0094] When the error |e| is small, in order to make the system have better stability, larger Kp and Ki values should be selected; at the same time, in order to avoid oscillation of the system output near the target value, a smaller Kd value should be taken.
[0095] When the error change rate |ec| is large, in order to ensure the system response speed and stable accuracy and prevent excessive overshoot, a smaller Kp value should be selected; when the error change rate |ec| is of medium size, in order to speed up the system response speed and have better steady-state performance, the Kp and Ki values should be increased and a smaller Kd value should be taken; when the error change rate |ec| is small, in order to ensure that the system has a faster response speed, larger Kp, Ki values and appropriate Kd values should be taken.
[0096] If the error and the error change rate have opposite signs, a smaller Kd should be taken or Kd should be set to zero; conversely, if the error and the error change rate have the same sign at this time, a larger Kd should be taken to prevent the error from continuing to increase.
[0097] Here, specifically, for the above step III, the fuzzy self-tuning PID control algorithm design process is as follows:
[0098] Step 1: Determine the fuzzy control interface parameters: For the fuzzy self-tuning PID control algorithm, a 2-input 2-output control method is adopted, in which the input parameters are the SOC error value e and the error change rate ec, and the output parameters are the correction parameters ΔKp and ΔKd of the fuzzy self-tuning PID control algorithm.
[0099] Step 2: Determine the fuzzy domain: The domain of the SOC error value e on the fuzzy set is [-15001500], and its linguistic variable fuzzy subset is {NB, NM, NS, ZO, PS, PM, PB}. The domain value is divided into 7 types: "negative large" (NB), "negative medium" (NM), "negative small" (NS), "zero" (ZO), "positive small" (PS), "positive medium" (PM), "positive large" (PB), that is, e=100*[-15-10-5051015]. The domain of the error change rate ec on the fuzzy set is [-3030], and its linguistic variable fuzzy subset is {NB, NS, ZO, PS, PB}. The domain value is divided into 5 types: "negative large" (NB), "negative small" (NS), "zero" (ZO), "positive small" (PS), "positive large" (PB), that is, ec=6*[-5-2025]. The domain of the output PID correction parameter ΔKp on the fuzzy set is [-0.025 0.025], and its linguistic variable fuzzy subset is {NB, NM, NS, ZO, PS, PM, PB}, ΔKp=[-0.025 -0.020 -0.010 0 0.010 0.0200.025]; the domain of the output PID positive parameter ΔKd on the fuzzy set is [-2.5 2.5], and its linguistic variable fuzzy subset is {NB, NM, NS, ZO, PS, PM, PB}, ΔKd= [-2.5 -2 -1 0 1 2 2.5].
[0100] Step 3: Determine the fuzzy membership function: In this application, the input and output negative (NB) fuzzy vectors use the Z-type membership function (zmf), the input and output positive (PB) fuzzy vectors use the s-type membership function (smf), and the rest use the triangular membership function (trimf). Please refer to Figures 4 (A), 4 (B) and 4 (C), Figure 4 (A) is a system error e membership function distribution curve provided in the embodiment of the application, Figure 4 (B) is a system error change rate ec membership function distribution curve provided in the embodiment of the application, and Figure 4 (C) is a ΔKp membership function distribution curve provided in the embodiment of the application, where the membership functions of ΔKp and ΔKd are the same, and are only distinguished in the numerical value of the domain.
[0101] Based on the expert experience, according to the basic principle of setting between the three PID parameters and the control error e and the error change rate ec, adjustments are made through simulation experiments to summarize the fuzzy control rule table. Please refer to Table 1 and Table 2 below. Table 1 is a fuzzy control rule table of ΔKp provided in the embodiment of the present application, and Table 2 is a fuzzy control rule table of ΔKd provided in the embodiment of the present application.
[0102] Table 1 Fuzzy control rules of ΔKp
[0103]
[0104] Table 2 Fuzzy control rules of ΔKd
[0105]
[0106] Here, it should be noted that when the error change rate |ec| is small, Kd should not be selected too large, otherwise the system will be sensitive to disturbances and the oscillation will intensify; the above Tables 1 and 2 are one of the examples of a fuzzy control rule table provided in this application. In fact, the fuzzy control rule table is not limited to the above examples.
[0107] Based on the fuzzy rule table in step 3, fuzzy reasoning is performed, and the fuzzy matrix reasoning of PID parameters is designed using if-then conditional statements to map a fuzzy set in the output space to a certain point to achieve the purpose of practical application. The relationship is expressed by the following 35 relationships:
[0108] 1). If (e is NB) and (ec is NB) then (ΔKp is PB) (ΔKd is PS);
[0109] 2). If (e is NM) and (ec is NB) then (ΔKp is NM) (ΔKd is ZO);
[0110] …………
[0111] 35). If (e is PB) and (ec is PB) then (ΔKp is PB) (ΔKd is PB).
[0112] Step 4: Defuzzification: The output obtained by fuzzy reasoning is a fuzzy set. In actual use, a certain PID parameter must be used to control the SOC tracking process, which requires defuzzification. In this application, the "median method" is used, that is, the horizontal coordinate at 1 / 2 of the area enclosed by the fuzzy membership function curve and the fuzzy coordinate is taken as the decision value.
[0113] From this, we can get the precise quantity {e,ec} of fuzzy control, and its self-tuning control quantity parameters can be expressed as:
[0114]
[0115] In the formula, and The initial value of the parameter.
[0116] In this way, during the operation of the fuzzy self-tuning PID control algorithm, the two variables of SOC error value e and error change rate ec are detected in real time and quantified to the corresponding domain, and then the response values of each parameter are inferred from the fuzzy rule table to complete the online tuning of the three PID parameters.
[0117] IV: Using the fuzzy self-tuning PID control algorithm and the correction coefficient to adjust the ampere-hour integration rate of the ampere-hour integration method to obtain a first target ampere-hour integration rate, and using the ampere-hour integration method and the first target ampere-hour integration rate to correct the actual SOC value to obtain the SOC correction value.
[0118] For the above step IV, in the specific implementation, after the correction coefficient of the fuzzy self-tuning PID control algorithm is determined, the fuzzy self-tuning PID control algorithm and the correction coefficient are used to adjust the ampere-hour integration rate of the ampere-hour integration method to obtain the first target ampere-hour integration rate, and the ampere-hour integration method and the first target ampere-hour integration rate are used to correct the actual SOC value to obtain the SOC correction value. Here, the method of using the ampere-hour integration method to correct the SOC is described in detail in the prior art and will not be repeated here. In this way, according to the SOC correction method provided by the present application, when the power battery is at the end of charging, the SOC target value is first obtained based on the SOC lookup table method or the inheritance method, and the fuzzy self-tuning PID control algorithm (FATPID- Fuzzy Adaptive Tuning PID Control Algorithm) is used to obtain the ampere-hour integration rate through the real-time SOC estimation error value and the SOC error change rate, and the error feedback amount is introduced. At the end of charging, a closed-loop algorithm is introduced into the open-loop ampere-hour integration method, which greatly improves the estimation accuracy of the SOC.
[0119] As an optional embodiment, for the above step S103, based on the error between the actual SOC value of the battery and the SOC target value, the actual SOC value is corrected by using a fuzzy self-tuning PID control algorithm to obtain a corrected SOC value of the battery, and further includes:
[0120] When the absolute value of the SOC error value is greater than the preset error threshold, the integral effect in the fuzzy self-tuning PID control algorithm is canceled, and the SOC actual value is corrected by PD control to obtain the SOC correction value.
[0121] For the above steps, in the specific implementation, when the absolute value of the SOC error value is greater than the preset error threshold, that is, When the integral effect in the fuzzy self-tuning PID control algorithm is canceled, the actual SOC value is corrected by PD control to obtain the SOC correction value. In this way, the present application adopts an integral separation PID controller. When the SOC error value is greater than the preset error threshold, the integral link is canceled to prevent the system stability from being reduced due to the integral link and to avoid excessive overshoot of the SOC estimation value. Differential control can effectively reflect the changing trend of the system input signal, thereby obtaining an early correction signal through the controller to increase the damping degree of the system to improve the stability of the SOC convergence process.
[0122] As an optional embodiment, when the current charging stage of the battery is the pseudo charging terminal, the actual SOC value is corrected by the following steps:
[0123] A second target ampere-hour integration rate is determined within a preset integration rate range, and the actual SOC value is corrected using the ampere-hour integration method and the second target ampere-hour integration rate to obtain the SOC correction value.
[0124] When the battery is at the pseudo-charging end, the SOC target value directly takes the actual SOC value. The SOC target value cannot reflect the true SOC property. At this time, the deviation of the actual SOC value is zero, ensuring that no SOC correction is performed at the non-charging end. For the above steps, in the specific implementation, the second target ampere-hour integration rate is determined in the preset integration rate range, so as to correct the actual SOC value using the ampere-hour integration method and the second target ampere-hour integration rate to obtain the SOC correction value. Here, the preset integration rate range can be set to 0.1≤IntgRate<0.5, and this application does not make specific restrictions on this. Specifically, when the battery is at the pseudo charging terminal, the real-time detected terminal voltage does not reach the charging terminal starting correction voltage threshold, and the actual SOC value is greater than the SOC threshold. At this time, the SOC target value cannot be obtained based on the terminal voltage, and then the SOC correction cannot be performed based on the SOC real-time error. At this time, the real-time SOC estimate is in a falsely high state, and it is necessary to determine the second target ampere-hour integration rate from the preset integration rate range (0.1≤IntgRate<0.5), intervene in the terminal correction in advance, and avoid the SOC remaining at the full charge SOC value for a long time.
[0125] As an optional embodiment, the SOC correction method provided in the present application further includes:
[0126] When it is detected that the battery is in a fully charged state, the actual SOC value is corrected to the SOC fully charged value.
[0127] With respect to the above steps, during specific implementation, when it is detected that the battery has reached a fully charged state, a full charge correction is performed to directly correct the current SOC actual value to the SOC fully charged value.
[0128] See also Figure 5 , Figure 5 The present application provides a flow chart of a SOC correction algorithm for a lithium iron phosphate battery charging terminal. Figure 5 As shown in the figure, during the charging process, different charging states of the battery correspond to different SOC target values and different correction methods, such as Figure 5 As shown, the complete SOC correction method is introduced according to the process:
[0129] (1) Determine the current temperature. If the temperature meets the requirements, query the SOC voltage at the corresponding charging terminal. Otherwise, no charging terminal correction is performed.
[0130] (2) Judging the charging current and the BMS system status can determine whether the battery is currently in the charging state. If the conditions are met, the charging status flag is set, and the judgment of the subsequent stage is entered; otherwise, the charging end correction is not performed.
[0131] (3) Judge whether the charging rate meets the upper and lower limits of the preset charging rate. If the conditions are met, the charging rate limit flag is set, and the judgment of the subsequent stage is entered; otherwise, the charging end correction is not performed. (At the end of high-rate charging, due to the influence of polarization, the actual SOC will be falsely high. At this time, it is necessary to limit the battery charging current to operate under high-rate conditions; at the same time, in the charging process, the charging current at an extremely low rate will be considered that the charging has ended. Therefore, this algorithm also limits the battery charging conditions at an extremely low rate);
[0132] (4) Judge whether the terminal voltage meets the preset starting correction voltage threshold condition. If the conditions are not met, the SOC charging end correction range flag is not set, and the current SOC estimated value is greater than 95%, then enter the pseudo-end SOC correction and perform early correction at a small integration rate (0 < IntgRate < 0.5); otherwise, the pseudo-end SOC correction is not performed. If the conditions of step 4 are not met, directly enter step 5;
[0133] (5) Judge whether the terminal voltage meets the preset starting correction voltage threshold condition. If the conditions are met, the SOC charging end correction range flag is set (when charging ends, the SOC charging end correction range flag is reset, and this flag records the whole process of charging end correction), then enter the end SOC correction and perform subsequent judgments; otherwise, continue to maintain the pseudo-end SOC correction or not perform the correction;
[0134] (6) Judge whether the terminal voltage meets the preset starting correction voltage threshold condition. If the conditions are met, the terminal voltage correction threshold flag is set, and at this time, SOCtarget is obtained by looking up the table; if the conditions are not met, the terminal voltage correction threshold flag is reset, and at this time, SOCtarget is obtained by inheritance.
[0135] (7) When it is judged that the voltage drops (the voltage drop segment can be judged in time through the current rate switching and the differential information of the smoothed filtered terminal voltage drop), the terminal voltage drop flag is set, and then SOCtarget is obtained based on the variable-rate ampere-hour integration method. (In the terminal voltage drop segment, since there is no one-to-one correspondence between the terminal voltage CV and the SOC, in this segment, the target SOC_target is calculated by the variable-rate ampere-hour integration method using the current, and the initial SOC uses the look-up table target SOC_target at the moment before the current switching as the reference);
[0136] (8) When it is determined that the actual terminal voltage is greater than the terminal voltage threshold of the multiple termination, the termination correction flag is set, and the SOCtarget is obtained based on the variable rate ampere-hour integration method; otherwise, the SOCtarget is obtained by looking up the table; (due to the larger multiple, the closer to the end, the more serious the SOCtarget is, in order to reserve correction time, the large multiple and large voltage limit the SOC growth rate);
[0137] (9) When the temperature, charging rate, terminal voltage and terminal voltage change trend meet the conditions, that is, the temperature condition is met, the charging rate is within the allowable upper and lower limits, the terminal voltage is greater than the terminal voltage threshold of 95% SOC of the terminal, and the terminal voltage is in an increasing trend, the SOC charging terminal table lookup correction flag is set, and the SOCtarget is obtained based on the SOC charging terminal voltage table; if any of the above conditions is not met, the SOC charging terminal table lookup correction flag is reset, and no correction is performed;
[0138] (10) SOCtarget is obtained by the above steps 1 to 9. Based on the error information between the current SOC estimation value and SOCtarget, a fuzzy self-tuning PID control algorithm is used to perform SOC charging terminal correction. Finally, when the detection system reaches the full charge state, the current SOC is directly corrected to the full charge SOC value.
[0139] The SOC correction method for the battery charging terminal provided in the embodiment of the present application determines whether the battery has entered the terminal correction by comparing the terminal voltage detected in real time with the starting correction voltage threshold of the charging terminal. If the battery is at the charging terminal, the SOC target value is obtained through the measurable terminal voltage. Based on the error between the actual SOC value and the SOC target value, a fuzzy self-tuning PID control algorithm is used to correct the falsely high SOC point in advance, and the error between the actual SOC value and the SOC target value is continuously reduced so that the SOC point smoothly approaches the SOC target value, thereby realizing accurate estimation of the SOC.
[0140] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of a SOC correction device for a battery charging terminal provided in an embodiment of the present application. Figure 6 As shown in , the SOC correction device 600 includes:
[0141] The terminal voltage acquisition module 601 is used to acquire the terminal voltage of the battery when it is determined through the battery management system and the charging current of the battery that the battery is currently in a charging state and the temperature of the battery is within a preset temperature range;
[0142] A charging stage determination module 602 is used to determine the current charging stage of the battery according to the terminal voltage and the charging terminal start correction voltage threshold; wherein the charging stage includes a non-charging terminal, a pseudo-charging terminal and a charging terminal;
[0143] The charging terminal SOC correction module 603 is used to obtain the SOC target value corresponding to the battery based on the terminal voltage when the battery is currently in the charging stage of the charging terminal, and to correct the SOC actual value based on the error between the SOC actual value of the battery and the SOC target value by using a fuzzy self-tuning PID control algorithm to obtain the SOC correction value of the battery.
[0144] Furthermore, when the charging terminal SOC correction module 603 is used to correct the SOC actual value based on the error between the SOC actual value of the battery and the SOC target value by using a fuzzy self-tuning PID control algorithm to obtain the SOC correction value of the battery, the charging terminal SOC correction module 603 is also used to:
[0145] Determining an SOC error value according to the SOC actual value and the SOC target value;
[0146] When the absolute value of the SOC error value is less than or equal to a preset error threshold, determining an error change rate based on the SOC error value, and using the SOC error value and the error change rate as input parameters of the fuzzy self-tuning PID control algorithm;
[0147] The input parameters are subjected to fuzzification processing, fuzzy reasoning and defuzzification processing by the fuzzy self-tuning PID control algorithm to obtain a correction coefficient of the fuzzy self-tuning PID control algorithm;
[0148] The fuzzy self-tuning PID control algorithm and the correction coefficient are used to adjust the ampere-hour integration rate of the ampere-hour integration method to obtain a first target ampere-hour integration rate, and the actual SOC value is corrected using the ampere-hour integration method and the first target ampere-hour integration rate to obtain the SOC correction value.
[0149] Furthermore, when the charging terminal SOC correction module 603 is used to correct the SOC actual value based on the error between the SOC actual value of the battery and the SOC target value by using a fuzzy self-tuning PID control algorithm to obtain the SOC correction value of the battery, the charging terminal SOC correction module 603 is also used to:
[0150] When the absolute value of the SOC error value is greater than the preset error threshold, the integral effect in the fuzzy self-tuning PID control algorithm is canceled, and the SOC actual value is corrected by PD control to obtain the SOC correction value.
[0151] Furthermore, the SOC correction device 600 further includes a pseudo charging terminal SOC correction module. When the battery is currently in the charging stage of the pseudo charging terminal, the pseudo charging terminal SOC correction module is used to correct the actual SOC value through the following steps:
[0152] A second target ampere-hour integration rate is determined within a preset integration rate range, and the actual SOC value is corrected using the ampere-hour integration method and the second target ampere-hour integration rate to obtain the SOC correction value.
[0153] Furthermore, when the charging stage determination module 602 is used to determine the current charging stage of the battery according to the terminal voltage and the charging terminal start correction voltage threshold, the charging stage determination module 602 is also used to:
[0154] When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is less than or equal to the SOC threshold, it is considered that the current charging stage of the battery is the non-charging terminal;
[0155] When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is greater than the SOC threshold, it is considered that the current charging stage of the battery is the pseudo charging terminal;
[0156] When the terminal voltage reaches the charging terminal start correction voltage threshold, it is considered that the current charging stage of the battery is the charging terminal.
[0157] Further, when the charging terminal SOC correction module 603 is used to obtain the SOC target value corresponding to the battery based on the terminal voltage, the charging terminal SOC correction module 603 is also used to:
[0158] Acquiring multiple historical terminal voltages of the battery during the charging process;
[0159] When it is determined based on the historical terminal voltage and the terminal voltage that the terminal voltage of the battery shows a monotonically increasing trend, acquiring an SOC target value corresponding to the temperature, current rate and terminal voltage of the battery from an SOC mapping relationship table;
[0160] When it is judged that the terminal voltage of the battery shows a monotonically decreasing trend based on the historical terminal voltage and the terminal voltage, the SOC value corresponding to the battery at the current rate switching moment is used as the SOC initial value of the variable rate ampere-hour integration method at the next moment, and the variable rate ampere-hour integration method and the SOC initial value are used to determine the SOC target value.
[0161] Furthermore, the SOC correction device 600 further includes a full charge correction module, and the full charge correction module is used to:
[0162] When it is detected that the battery is in a fully charged state, the actual SOC value is corrected to the SOC fully charged value.
[0163] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown in , the electronic device 700 includes a processor 710 , a memory 720 and a bus 730 .
[0164] The memory 720 stores machine-readable instructions executable by the processor 710. When the electronic device 700 is running, the processor 710 communicates with the memory 720 via the bus 730. When the machine-readable instructions are executed by the processor 710, the above-mentioned Figure 1 The steps of the SOC correction method for the battery charging terminal in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.
[0165] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 The steps of the SOC correction method for the battery charging terminal in the method embodiment shown, the specific implementation method can be found in the method embodiment, and will not be repeated here.
[0166] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0167] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0168] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0170] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0171] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for correcting the SOC at the end of battery charging, characterized in that: The SOC correction method comprises: When it is determined through the battery management system and the charging current of the battery that the battery is currently in a charging state, and the temperature of the battery is within a preset temperature range, obtaining the terminal voltage of the battery; According to the comparison result between the terminal voltage and the charging terminal start correction voltage threshold, and the comparison result between the SOC actual value and the SOC threshold, the current charging stage of the battery is determined; wherein the charging stage includes a non-charging terminal, a pseudo-charging terminal and a charging terminal; When the current charging stage of the battery is the charging terminal, the SOC target value corresponding to the battery is obtained based on the terminal voltage, and the SOC error value is determined according to the SOC actual value and the SOC target value. When the absolute value of the SOC error value is less than or equal to a preset error threshold, the error change rate is determined based on the SOC error value, and the SOC error value and the error change rate are used as input parameters of a fuzzy self-tuning PID control algorithm. The fuzzy self-tuning PID control algorithm is used to correct the SOC actual value to obtain a SOC correction value of the battery; The step of determining the current charging stage of the battery according to the comparison result between the terminal voltage and the charging terminal start correction voltage threshold, and the comparison result between the SOC actual value and the SOC threshold, comprises: When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is less than or equal to the SOC threshold, it is considered that the current charging stage of the battery is the non-charging terminal; When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is greater than the SOC threshold, it is considered that the current charging stage of the battery is the pseudo charging terminal; When the terminal voltage reaches the charging terminal start correction voltage threshold, it is considered that the current charging stage of the battery is the charging terminal.
2. The SOC correction method according to claim 1, characterized in that: The adopting of the fuzzy self-tuning PID control algorithm to correct the actual SOC value to obtain a corrected SOC value of the battery includes: The input parameters are subjected to fuzzification processing, fuzzy reasoning and defuzzification processing by the fuzzy self-tuning PID control algorithm to obtain a correction coefficient of the fuzzy self-tuning PID control algorithm; The fuzzy self-tuning PID control algorithm and the correction coefficient are used to adjust the ampere-hour integration rate of the ampere-hour integration method to obtain a first target ampere-hour integration rate, and the actual SOC value is corrected using the ampere-hour integration method and the first target ampere-hour integration rate to obtain the SOC correction value.
3. The SOC correction method according to claim 1, characterized in that: The SOC correction method further includes: When the absolute value of the SOC error value is greater than the preset error threshold, the integral effect in the fuzzy self-tuning PID control algorithm is canceled, and the SOC actual value is corrected by PD control to obtain the SOC correction value.
4. The SOC correction method according to claim 1, characterized in that: When the current charging stage of the battery is the pseudo charging terminal, the actual SOC value is corrected by the following steps: A second target ampere-hour integration rate is determined within a preset integration rate range, and the actual SOC value is corrected using the ampere-hour integration method and the second target ampere-hour integration rate to obtain the SOC correction value.
5. The SOC correction method according to claim 1, characterized in that: The obtaining the SOC target value corresponding to the battery based on the terminal voltage includes: Acquiring multiple historical terminal voltages of the battery during the charging process; When it is determined based on the historical terminal voltage and the terminal voltage that the terminal voltage of the battery shows a monotonically increasing trend, acquiring an SOC target value corresponding to the temperature, current rate and terminal voltage of the battery from an SOC mapping relationship table; When it is judged that the terminal voltage of the battery shows a monotonically decreasing trend based on the historical terminal voltage and the terminal voltage, the SOC value corresponding to the battery at the current rate switching moment is used as the SOC initial value of the variable rate ampere-hour integration method at the next moment, and the variable rate ampere-hour integration method and the SOC initial value are used to determine the SOC target value.
6. The SOC correction method according to claim 1, characterized in that: The SOC correction method further includes: When it is detected that the battery is in a fully charged state, the actual SOC value is corrected to the SOC fully charged value.
7. A SOC correction device at the end of battery charging, characterized in that: The SOC correction device comprises: A terminal voltage acquisition module, used for acquiring the terminal voltage of the battery when it is determined through the battery management system and the charging current of the battery that the battery is currently in a charging state and the temperature of the battery is within a preset temperature range; A charging stage judgment module, used to judge the current charging stage of the battery according to the comparison result of the terminal voltage and the charging terminal start correction voltage threshold, and the comparison result of the SOC actual value and the SOC threshold; wherein the charging stage includes a non-charging terminal, a pseudo-charging terminal and a charging terminal; a charging terminal SOC correction module, for obtaining the SOC target value corresponding to the battery based on the terminal voltage when the battery is currently in the charging terminal stage, determining the SOC error value according to the SOC actual value and the SOC target value, and when the absolute value of the SOC error value is less than or equal to a preset error threshold, determining the error change rate based on the SOC error value, using the SOC error value and the error change rate as input parameters of a fuzzy self-tuning PID control algorithm, and using the fuzzy self-tuning PID control algorithm to correct the SOC actual value to obtain the SOC correction value of the battery; When the charging stage judgment module is used to judge the current charging stage of the battery according to the comparison result between the terminal voltage and the charging terminal start correction voltage threshold, and the comparison result between the SOC actual value and the SOC threshold, the charging stage judgment module is also used to: When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is less than or equal to the SOC threshold, it is considered that the current charging stage of the battery is the non-charging terminal; When the terminal voltage does not reach the charging terminal start correction voltage threshold, and the SOC actual value is greater than the SOC threshold, it is considered that the current charging stage of the battery is the pseudo charging terminal; When the terminal voltage reaches the charging terminal start correction voltage threshold, it is considered that the current charging stage of the battery is the charging terminal.
8. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and the machine-readable instructions are executed by the processor to execute the steps of the SOC correction method for the battery charging terminal as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the SOC correction method for a battery charging terminal as claimed in any one of claims 1 to 6 are executed.
