Method and electronic device for evaluating the accuracy of battery state of charge estimation algorithm

By obtaining current and voltage data from the initial data set, generating the state-of-charge reference value and estimated value, calculating the error value, and verifying the accuracy of the state-of-charge estimation algorithm through simulation when meeting the preset conditions, it solves the existing problem The technology solves the problem of high time and cost required to verify the accuracy of the battery state-of-charge estimation algorithm, and achieves an efficient testing process.

CN116184223BActive Publication Date: 2024-09-10BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111437846.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-09-10
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

In the existing technology, verifying the accuracy of the battery state-of-charge estimation algorithm requires measured cycle condition data, which results in high time and cost. In addition, different SOC intervals require independent testing, and the workload increases exponentially.

Method used

By obtaining current and voltage data from the initial data set, generating the state of charge reference value and estimated value, calculating the error value, and generating an error value set through simulation verification under satisfying the preset cycle simulation conditions, verifying the accuracy of the state of charge estimation algorithm Spend.

Benefits of technology

Obtaining a large amount of test data through a single charge and discharge data reduces the time and cost of actual measurement, significantly reduces test requirements, and improves algorithm verification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116184223B
    Figure CN116184223B
Patent Text Reader

Abstract

The embodiments of the present application provide a method and an electronic device for evaluating the accuracy of a battery state of charge estimation algorithm, including: obtaining current data and voltage data corresponding to an initial state of charge value from a first data set, and using the position corresponding to the initial state of charge value as a current flag; generating a state of charge reference value and a state of charge estimation value based on the current data, the voltage data, a preset nominal capacity, and a preset bias capacity; calculating an initial error value based on the state of charge reference value and the state of charge estimation value; generating a first error value through simulation verification to obtain a first error value set when the state of charge reference value meets a first preset cycle simulation condition; generating cycle simulation verification information based on the initial error value and the first error value set; and verifying the accuracy of the state of charge estimation algorithm according to the cycle simulation verification information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of battery management technology, and more specifically, to a method for evaluating the accuracy of a battery state of charge estimation algorithm and an electronic device. Background Art

[0002] Currently, there are few methods for verifying the accuracy of the state of charge (SOC) estimation algorithm. The accuracy of the SOC estimation algorithm is generally obtained by comparing the SOC measurement data obtained by testing with the SOC estimation data obtained by simulation. To ensure the effectiveness of the comparison, the current and voltage data of the test process must be the same as the current and voltage data used in the simulation. To verify the accuracy of the SOC estimation algorithm when the battery is cycled in a specific SOC range, the current and voltage data of the corresponding cycle conditions are required. The existing method obtains data by measuring the cycle conditions, and different SOC ranges require independent testing.

[0003] However, obtaining data on cyclic operating conditions through actual measurements requires a long time and high costs. If verification requirements such as capacity bias, current bias, and random intervals are added, the testing workload will increase exponentially. Summary of the invention

[0004] An object of the present disclosure is to provide a new technical solution for accuracy verification of an SOC estimation algorithm.

[0005] According to a first aspect of the present disclosure, there is provided an embodiment of a method for evaluating the accuracy of a battery state of charge estimation algorithm, comprising:

[0006] Acquire current data and voltage data corresponding to the initial state of charge value from the first data set, and use the position corresponding to the initial state of charge value as the current flag bit;

[0007] generating a state of charge reference value and a state of charge estimation value based on the current data, the voltage data, a preset nominal capacity, and a preset bias capacity, wherein the state of charge estimation value is obtained using a state of charge estimation algorithm to be verified;

[0008] An initial error value is calculated based on the state of charge reference value and the state of charge estimation value;

[0009] When the state of charge reference value satisfies a first preset cycle simulation condition, a first error value is generated through simulation verification to obtain a first error value set, wherein the first error value is a difference between the state of charge reference value and the state of charge estimated value during the simulation verification process;

[0010] Generate cycle simulation verification information based on the initial error value and the first error value set;

[0011] The accuracy of the state of charge estimation algorithm is verified according to the cycle simulation verification information.

[0012] Optionally, generating the first error value through simulation verification includes:

[0013] Update the current flag bit according to a preset step value;

[0014] From the first data set, obtaining the current data and voltage data corresponding to the updated current flag as target current data and target voltage data;

[0015] generating a target state of charge reference value and a target state of charge estimation value based on the target current data, the target voltage data, the preset nominal capacity and the preset bias capacity;

[0016] A target error value is calculated based on the target state of charge reference value and the target state of charge estimated value, and the target error value is used as the first error value.

[0017] Optionally, the first preset cycle simulation condition includes at least one of the following:

[0018] In the case where the first data set is discharge data, the state of charge reference value is greater than the state of charge boundary value;

[0019] When the first data set is charging data, the state of charge reference value is less than a state of charge upper boundary value.

[0020] Optionally, the state of charge lower boundary value and the state of charge upper boundary value are obtained by the following steps:

[0021] Based on the preset nominal capacity and the preset bias capacity, an upper boundary value of the state of charge and a middle boundary value of the state of charge are generated.

[0022] Optionally, when the state of charge reference value does not meet the first preset cycle simulation condition, current data and voltage data corresponding to the state of charge reference value are obtained from the second data set, and the position corresponding to the state of charge reference value is used as the current flag bit;

[0023] Generate a new state-of-charge reference value and a new state-of-charge estimated value based on the current data and voltage data corresponding to the state-of-charge reference value, the preset nominal capacity, and the preset bias capacity;

[0024] Calculate a new initial error value based on the new state of charge reference value and the new state of charge estimated value;

[0025] When the new state of charge reference value satisfies a second preset cycle simulation condition, a second error value is generated through simulation verification to obtain a second error value set;

[0026] The cycle simulation verification information is generated based on the new initial error value and the second error value set.

[0027] Optionally, the second preset cycle simulation condition is obtained by the following steps:

[0028] In the case where the state of charge reference value meets the preset cycle simulation condition, generating a new state of charge upper boundary value and a new state of charge boundary value based on the state of charge reference value;

[0029] The second preset cycle simulation condition is generated based on the new state of charge upper boundary value and the new state of charge middle boundary value.

[0030] Optionally, the state of charge reference value is obtained by the following steps:

[0031] The preset nominal capacity, current data and voltage data corresponding to the initial state of charge value are used to calculate the state of charge reference value through the ampere-hour integration method.

[0032] Optionally, the state of charge estimation value is obtained by the following steps:

[0033] Adding a bias to the current data based on the current data and a preset first experimental process current bias coefficient to obtain a bias current;

[0034] The bias current, the voltage data and the preset bias capacity are used to calculate a state of charge estimation value through an estimation algorithm.

[0035] Optionally, the voltage data and current data of the first experimental process and the voltage data and current data of the second experimental process obtained by the test are processed respectively to obtain corresponding state of charge values ​​respectively;

[0036] By using the interpolation method, the voltage data and current data of the first experimental process, the voltage data and current data of the second experimental process and the corresponding state of charge values ​​are calculated respectively to obtain a first data set and a second data set corresponding to the simulation step length.

[0037] According to a second aspect of the present disclosure, an embodiment of a method for estimating a state of charge is provided, comprising:

[0038] Obtain voltage data and current data of the target battery;

[0039] According to the voltage data and the current data, based on a target state of charge estimation algorithm, the target state of charge of the target battery is obtained, wherein the target state of charge estimation algorithm is an algorithm whose corresponding accuracy meets a preset condition determined according to the method described in the first aspect of this specification.

[0040] According to a third aspect of the present disclosure, an embodiment of an electronic device is provided, including:

[0041] A memory for storing executable instructions;

[0042] A processor is used to operate the electronic device to execute the method described in the first aspect of this specification under the control of the instruction.

[0043] According to a fourth aspect of the present disclosure, there is provided an embodiment of a computer-readable storage medium, comprising:

[0044] The computer-readable storage medium stores a computer program that can be read and executed by a computer. When the computer reads and executes the computer program, the computer program is used to execute the log processing method described in the first aspect of the present specification.

[0045] One beneficial effect of the embodiments of the present disclosure is that, according to the embodiments of the present disclosure, by acquiring current data and voltage data corresponding to the initial state of charge value from the first data set, and using the position corresponding to the initial state of charge value as the current flag, a state of charge reference value and a state of charge estimation value are generated based on the current data, voltage data, preset nominal capacity and preset bias capacity, wherein the state of charge estimation value is obtained using the state of charge estimation algorithm to be verified, and a relatively accurate state of charge reference value can be obtained, thereby calculating the initial error value based on the state of charge reference value and the state of charge estimation value, and a relatively accurate error value can be obtained, When the state of charge reference value meets the first preset cycle simulation condition, a first error value is generated through simulation verification to obtain a first error value set, wherein the first error value is the difference between the state of charge reference value and the state of charge estimation value during the simulation verification process, and cycle simulation verification information is generated based on the initial error value and the first error value set; the accuracy of the state of charge estimation algorithm is verified according to the cycle simulation verification information, and a large amount of test data can be obtained by analyzing the data of a single charge and discharge, thereby avoiding the high cost incurred in order to obtain a large amount of test data during actual measurement, saving a lot of time, and greatly reducing the testing requirements.

[0046] Other features and advantages of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the specification.

[0048] Figure 1 It is a flow chart of a method for evaluating the accuracy of a battery state of charge estimation algorithm provided by an embodiment of the present disclosure.

[0049] Figure 2 It is a flowchart of another method for evaluating the accuracy of a battery state of charge estimation algorithm provided by an embodiment of the present disclosure.

[0050] Figure 3 It is a block diagram of a loop simulation implementation provided by an embodiment of the present disclosure.

[0051] Figure 4 It is a flow chart of a method for estimating a state of charge provided in an embodiment of the present disclosure.

[0052] Figure 5 is a schematic diagram of a curve for illustrating error values.

[0053] Figure 6 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0054] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0055] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0056] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0057] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0058] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0059] <Method Example>

[0060] The state of charge is a basic parameter of the battery management system and a global variable in the control logic of the battery management system (BMS). It has a direct impact on the charging and discharging strategy and energy feedback. SOC estimation technology is one of the core technologies in the research and development of battery management systems and is a technical difficulty recognized by the industry.

[0061] Because the SOC parameter is so important, many SOC estimation algorithms have been proposed at home and abroad. These methods can achieve different accuracies, resource occupancy, computing speed and other performance indicators. Generally speaking, the higher the estimation accuracy, the more complex the estimation algorithm is and the more resources it consumes.

[0062] Generally, the accuracy verification of the SOC estimation algorithm requires a relatively accurate SOC reference value. The working condition test of the battery can obtain the current and voltage data at each time point. By processing the current data, a relatively accurate SOC value can be obtained. At this time, the correspondence between the current, voltage and SOC reflects the characteristics of the battery itself. If the data obtained without actual testing can guarantee this correspondence, then these data can also be used as the reference value for verification.

[0063] The accuracy of the SOC estimation algorithm is generally obtained by comparing the SOC measurement data obtained by testing with the SOC estimation data obtained by simulation. To ensure the effectiveness of the comparison, the current and voltage data of the test process must be the same as the current and voltage data used in the simulation. To verify the accuracy of the SOC estimation algorithm when the battery is cycled in a specific SOC range, the current and voltage data of the corresponding cycle conditions are required. It takes a long time and high cost to obtain data on cycle conditions through actual measurement. If verification requirements such as adding capacity bias, current bias, and random intervals are considered, the workload of the test will increase exponentially.

[0064] In order to improve the accuracy of the SOC estimation algorithm, the embodiment of the present disclosure provides a method for evaluating the accuracy of the battery state of charge estimation algorithm. Figure 1 , which is a flow chart of a method for evaluating the accuracy of a battery state of charge estimation algorithm provided by an embodiment of the present disclosure, and the method can be implemented in an electronic device.

[0065] like Figure 1 As shown, the method of this embodiment may include the following steps S1100-S1500, which are described in detail below.

[0066] Step S1100, obtaining current data and voltage data corresponding to an initial state of charge value from a first data set, and taking a position corresponding to the initial state of charge value as a current flag bit.

[0067] In some embodiments, the execution subject (for example, a server) of the method for evaluating the accuracy of the battery state of charge estimation algorithm can obtain the current data and voltage data corresponding to the initial state of charge value from the first data set through a wired connection or a wireless connection, and use the position corresponding to the initial state of charge value as the current flag. The first data set can be a charging data table or a discharging data table; the data in the first data set are voltage data, current data and state of charge value, wherein the voltage data and current data have time correspondence, for example, the voltage data and current data are the current data generated by the same battery at the same voltage at the same time. The initial state of charge value can be pre-set, for example, it can be 95%. Specifically, because when the state of charge value of a device such as a battery reaches below 80%, we generally believe that the device is not in use, and the state of charge value of the device generally cannot reach 100% due to various reasons, so the initial state of charge value is generally between 80% and 100%.

[0068] In some optional implementations of some embodiments, the voltage data and current data of the first experimental process and the voltage data and current data of the second experimental process obtained by the test are processed separately to obtain corresponding state of charge values ​​respectively; specifically, the voltage data and current data of the first experimental process and the voltage data and current data of the second experimental process can be sorted according to the test time, wherein the voltage data and the current data correspond one to one.

[0069] By using the interpolation method, the voltage data and current data of the first experimental process and the voltage data and current data of the second experimental process and the corresponding state of charge value are calculated respectively to obtain the first data set and the second data set corresponding to the simulation step. Specifically, the interpolation method generally refers to interpolation, which is an important method for approximating discrete functions. It can be used to estimate the approximate value of the function at other points through the value of the function at a finite number of points. The simulation step can be pre-set, and the simulation step cannot be greater than one tenth of the minimum time constant in the circuit. The smaller the simulation step, the more accurate the simulation result, but the longer the simulation time.

[0070] As an example, the first data set and the second data set may be a charging data table and a discharging data table, respectively, which may be as shown in the following table:

[0071] I (current data) 10A 10A 10A V(voltage data) 100V 110V 90V SOC (State of Charge) 90% 95% 85%

[0072] Step S1200, generating a state of charge reference value and a state of charge estimation value based on the current data, the voltage data, the preset nominal capacity and the preset bias capacity, wherein the state of charge estimation value is obtained using a state of charge estimation algorithm to be verified.

[0073] In some embodiments, the execution subject can generate a state of charge reference value and a state of charge estimation value based on the current data, the voltage data, the preset nominal capacity and the preset bias capacity, wherein the state of charge estimation value is obtained using a state of charge estimation algorithm to be verified. Because the state of charge value of the battery and other equipment in use is above 80%, the bias capacity = 1-current usage time / battery service life * 20%. For example, when the battery service life is two years, the battery has been used for 1 year, and the bias capacity of the battery is 1-1 / 2*20% = 90%. The above-mentioned bias capacity can also be a capacity that is set artificially based on experience and deviates from the nominal capacity due to environmental factors. The preset nominal capacity and the preset bias capacity can both be pre-set. For example, the preset nominal capacity can be 100Ah and the preset bias capacity can be 95Ah.

[0074] In some optional implementations of some embodiments, the state of charge reference value is obtained by the following steps: using the preset nominal capacity, the current data and the voltage data corresponding to the initial state of charge value to calculate the state of charge reference value through the ampere-hour integration method. Specifically, the ampere-hour integration method lithium batteries have been widely used in industries, daily life and other fields, and the estimation of battery state of charge has become an important part of battery management. The ampere-hour integration method is the most commonly used SOC estimation method.

[0075] In some optional implementations of some embodiments, the state of charge estimation value is obtained by the following steps: adding a bias to the current data based on the current data and a preset first experimental process current bias coefficient to obtain a bias current; using the bias current, the voltage data and the preset bias capacity through an estimation algorithm to calculate the state of charge estimation value. The first experimental process current bias coefficient may be preset. The estimation algorithm may be an open circuit voltage method, an ampere-hour integration method, an internal resistance method, a neural network, a Kalman filter method, etc. Among them, the first experimental process current bias coefficient may be preset.

[0076] As an example, when the first experimental process is a discharge process, the bias current may be calculated by the following formula: Ibias=I*I_r_dis, wherein Ibias represents the bias current, I represents the current data, and I_r_dis represents the current bias coefficient of the first experimental process.

[0077] When the first experimental process is a charging process, the bias current may be calculated by the following formula: Ibias=I*I_r_ch, wherein Ibias represents the bias current, I represents the current data, and I_r_ch represents the current bias coefficient of the first experimental process.

[0078] Step S1300: calculating an initial error value based on the state of charge reference value and the state of charge estimated value.

[0079] In some embodiments, the execution entity may calculate an initial error value based on the state of charge reference value and the state of charge estimation value.

[0080] Step S1400, when the state of charge reference value meets the first preset cycle simulation condition, a first error value is generated through simulation verification to obtain a first error value set, wherein the first error value is the difference between the state of charge reference value and the state of charge estimated value during the simulation verification process.

[0081] In some embodiments, the execution entity can generate a first error value through simulation verification to obtain a first error value set when the state of charge reference value meets a first preset cycle simulation condition, wherein the first error value is the difference between the state of charge reference value and the state of charge estimated value during the simulation verification process.

[0082] In some optional implementations of some embodiments, the first preset cycle simulation condition includes at least one of the following: when the first data set is discharge data, the state of charge reference value is greater than the state of charge boundary value; when the first data set is charging data, the state of charge reference value is less than the state of charge upper boundary value. As an example, the state of charge upper boundary value and the state of charge boundary value are randomly generated. For example, the state of charge upper boundary value may be 80%, and the state of charge boundary value may be 40%. Determine whether the first data set is discharge data. When the first data set is discharge data, the first preset cycle simulation condition may be that the state of charge reference value is greater than 40%. When the first data set is charging data, the first preset cycle simulation condition may be that the state of charge reference value is less than 80%.

[0083] In some optional implementations of some embodiments, the state of charge boundary value and the state of charge upper boundary value are obtained by the following steps: based on the preset nominal capacity and the preset bias capacity, the state of charge upper boundary value and the state of charge boundary value are generated. As an example, the preset nominal capacity can be 100Ah, and the preset bias capacity can be 95Ah, then it can be known that the corresponding state of charge value can be 95%, the state of charge boundary value should generally be less than 95%, and the state of charge upper boundary value should be greater than the state of charge boundary value.

[0084] In some optional implementations of some embodiments, the generation of the first error value through simulation verification includes: updating the current flag according to a preset step value; obtaining the current data and voltage data corresponding to the updated current flag from the first data set as the target current data and target voltage data; generating a target state of charge reference value and a target state of charge estimation value based on the target current data, the target voltage data, the preset nominal capacity and the preset bias capacity; calculating a target error value based on the target state of charge reference value and the target state of charge estimation value, and using the target error value as the first error value. As an example, because the current data and voltage data in the first data set correspond to time, the step value of the current flag position may be 1, and the step value is updated once plus 1. The target error value may be the difference between the target state of charge reference value and the target state of charge estimation value.

[0085] Step S1500: Generate cycle simulation verification information based on the initial error value and the first error value set.

[0086] In some embodiments, the execution entity may generate loop simulation verification information based on the initial error value and the first error value set. When the initial error value and the error values ​​in the first error value set tend to be stable or differ too much, the execution entity may stop the simulation loop verification. When the error value tends to be stable, the loop simulation verification information may be "the accuracy verification result of the SOC estimation algorithm is very good, stop verification", and when the error values ​​differ too much, the loop simulation verification information may be "the accuracy verification of the SOC estimation algorithm fails, stop verification".

[0087] Step S1600: verifying the accuracy of the state of charge estimation algorithm according to the cycle simulation verification information.

[0088] In some embodiments, the execution subject can verify the accuracy of the state of charge estimation algorithm according to the cyclic simulation verification information. When the verification information is "the accuracy verification result of the SOC estimation algorithm is very good, stop verification" and "the accuracy verification of the SOC estimation algorithm fails, stop verification", the accuracy of the state of charge estimation algorithm corresponding to the former is greater than the accuracy of the state of charge estimation algorithm corresponding to the latter. When the verification information is "the accuracy verification result of the SOC estimation algorithm is very good, stop verification", the accuracy of the state of charge estimation algorithm can be determined according to the order of generating the verification information, and the accuracy of the state of charge estimation algorithm generated first is greater than the accuracy of the state of charge estimation algorithm generated later.

[0089] Some embodiments of the present disclosure disclose a method for evaluating the accuracy of a battery state of charge estimation algorithm, by obtaining current data and voltage data corresponding to an initial state of charge value from a first data set, and using the position corresponding to the initial state of charge value as a current flag, based on the current data, voltage data, a preset nominal capacity, and a preset bias capacity, generating a state of charge reference value and a state of charge estimation value, wherein the state of charge estimation value is obtained using a state of charge estimation algorithm to be verified, and a relatively accurate state of charge reference value can be obtained, thereby calculating an initial error value based on the state of charge reference value and the state of charge estimation value, and a relatively accurate error value can be obtained, and the state of charge estimation value can be obtained by calculating the initial error value based on the state of charge reference value and the state of charge estimation value. When the state of charge reference value meets the first preset cycle simulation condition, a first error value is generated through simulation verification to obtain a first error value set, wherein the first error value is the difference between the state of charge reference value and the state of charge estimation value during the simulation verification process, and based on the initial error value and the first error value set, cycle simulation verification information is generated; according to the cycle simulation verification information, the accuracy of the state of charge estimation algorithm is verified, and a large amount of test data can be obtained by analyzing the data of a single charge and discharge, thereby avoiding the high cost incurred in order to obtain a large amount of test data during actual measurement, saving a lot of time, greatly reducing the testing requirements, and improving the efficiency of algorithm verification.

[0090] The embodiments of the present disclosure provide another method for evaluating the accuracy of a battery state of charge estimation algorithm. Figure 2 , which is a flow chart of a method for evaluating the accuracy of a battery state of charge estimation algorithm provided by an embodiment of the present disclosure, and the method can be implemented in an electronic device.

[0091] like Figure 2 As shown, the method of this embodiment may include the following steps S2100-S2800, which are described in detail below.

[0092] Step S2100, obtaining current data and voltage data corresponding to the initial state of charge value from the first data set, and taking the position corresponding to the initial state of charge value as the current flag bit.

[0093] Step S2200, generating a state of charge reference value and a state of charge estimation value based on the current data, the voltage data, the preset nominal capacity and the preset bias capacity, wherein the state of charge estimation value is obtained using a state of charge estimation algorithm to be verified.

[0094] Step S2300: Calculate an initial error value based on the state of charge reference value and the state of charge estimated value.

[0095] In some embodiments, the specific implementation of steps S2100-S2300 and the technical effects brought about can be referred to Figure 1The corresponding steps S1100-S1300 in the embodiments are not described in detail here.

[0096] Step S2400, when the state of charge reference value does not meet the first preset cycle simulation condition, obtain current data and voltage data corresponding to the state of charge reference value from the second data set, and use the position corresponding to the state of charge reference value as the current flag bit.

[0097] In some embodiments, the execution subject can obtain the current data and voltage data corresponding to the state of charge reference value from the second data set when the state of charge reference value does not meet the first preset cycle simulation condition, and use the position corresponding to the state of charge reference value as the current flag. When the first data set is discharge data, the second data set is charge data. When the first data set is charge data, the second data set is discharge data.

[0098] Step S2500: generating a new state of charge reference value and a new state of charge estimated value based on the current data and voltage data corresponding to the state of charge reference value, the preset nominal capacity and the preset bias capacity.

[0099] In some embodiments, the execution subject may generate a new state of charge reference value and a new state of charge estimated value based on the current data and voltage data corresponding to the state of charge reference value, the preset nominal capacity and the preset bias capacity. The generation method of the new state of charge reference value and the new state of charge estimated value may be the same as the calculation method of the state of charge reference value and the state of charge estimated value described above, and will not be repeated here.

[0100] Step S2600: Calculate a new initial error value based on the new state of charge reference value and the new state of charge estimated value.

[0101] In some embodiments, the execution subject may calculate a new initial error value based on the new state of charge reference value and the new state of charge estimated value. The new initial error value may be the difference between the new state of charge reference value and the new state of charge estimated value.

[0102] Step S2700: When the new state of charge reference value satisfies a second preset cycle simulation condition, a second error value is generated through simulation verification to obtain a second error value set.

[0103] In some embodiments, the execution subject may generate a second error value through simulation verification to obtain a second error value set when the new state of charge reference value meets a second preset cycle simulation condition.

[0104] In some optional implementations of some embodiments, the second preset cycle simulation condition is obtained by the following steps: when the state of charge reference value satisfies the preset cycle simulation condition, based on the state of charge reference value, a new state of charge upper boundary value and a new state of charge lower boundary value are generated; based on the new state of charge upper boundary value and the new state of charge lower boundary value, the second preset cycle simulation condition is generated.

[0105] Step S2800: Generate the cycle simulation verification information based on the new initial error value and the second error value set.

[0106] In some embodiments, the execution entity may generate the cycle simulation verification information based on the new initial error value and the second error value set.

[0107] Some embodiments of the present disclosure disclose a method for evaluating the accuracy of a battery state of charge estimation algorithm, by obtaining current data and voltage data corresponding to an initial state of charge value from a first data set, and using the position corresponding to the initial state of charge value as a current flag, based on the current data, voltage data, a preset nominal capacity, and a preset bias capacity, generating a state of charge reference value and a state of charge estimation value, wherein the state of charge estimation value is obtained using a state of charge estimation algorithm to be verified, and a relatively accurate state of charge reference value can be obtained, thereby calculating an initial error value based on the state of charge reference value and the state of charge estimation value, and a relatively accurate error value can be obtained, and when the state of charge reference value does not meet the first preset cycle simulation condition, the state of charge reference value is obtained from a second data set. The corresponding current data and voltage data are obtained, and the position corresponding to the state of charge reference value is used as the current flag bit, and a new state of charge reference value and a new state of charge estimation value are generated based on the current data and voltage data corresponding to the state of charge reference value, the preset nominal capacity and the preset bias capacity; the corresponding data set is determined according to the state of charge reference value, and a new initial error value is calculated based on the new state of charge reference value and the new state of charge estimation value. When the new state of charge reference value meets the second preset cycle simulation condition, a second error value is generated through simulation verification to obtain a second error value set, and the cycle simulation verification information is generated based on the new initial error value and the second error value set. A large amount of test data can be obtained through the data of a single charge and discharge, which greatly reduces the test requirements and improves the efficiency of algorithm verification.

[0108] The embodiments of the present disclosure provide another method for evaluating the accuracy of a battery state of charge estimation algorithm. Figure 3 , which is a block diagram of a loop simulation implementation provided by an embodiment of the present disclosure, and the method can be implemented in an electronic device.

[0109] like Figure 3As shown, the method of this embodiment may include the following steps S301-S311, which are described in detail below.

[0110] Step S301, generating a state of charge upper boundary value and a state of charge middle boundary value based on the preset nominal capacity and the preset bias capacity.

[0111] Step S302, obtaining current data and voltage data corresponding to the initial state of charge value from the first data set, and taking the position corresponding to the initial state of charge value as the current flag bit.

[0112] Step S307 includes steps S303 to S306.

[0113] Step S303, using the preset nominal capacity, the current data and the voltage data corresponding to the initial state of charge value, and the ampere-hour integration method to calculate a state of charge reference value.

[0114] Step S304: adding a bias to the current data based on the current data and a preset first experimental process current bias coefficient to obtain a bias current.

[0115] Step S305 , using the bias current, the voltage data and the preset bias capacity through an estimation algorithm to calculate a state of charge estimation value.

[0116] Step S306: Calculate an initial error value based on the state of charge reference value and the state of charge estimated value.

[0117] Step S308: determining whether a state transition is required according to the state of charge upper boundary value and the state of charge middle boundary value.

[0118] In some embodiments, it is first determined whether the first data set is a discharge data set or a charge data set. When the first data set is discharge data, it is determined whether the state of charge reference value is greater than the state of charge boundary value. When the state of charge reference value is greater than the state of charge boundary value, a state transition is required, and step S311 is executed.

[0119] When the first data set is charging data, it is determined whether the state of charge reference value is less than the state of charge upper boundary value. When the state of charge reference value is less than the state of charge upper boundary value, no state conversion is required, and step S309 is executed.

[0120] Step S309: update the current flag bit according to a preset step value.

[0121] Step S310: acquiring the current data and voltage data corresponding to the updated current flag bit from the first data set as target current data and target voltage data.

[0122] Step S311 , generating a new state of charge reference value and a new state of charge estimated value.

[0123] In some embodiments, the execution entity may randomly generate a new state of charge reference value and a new state of charge estimation value.

[0124] In some embodiments of the present disclosure, data is obtained by measuring cyclic operating conditions, and different SOC intervals require independent testing.

[0125] The embodiment of the present disclosure provides another method for estimating the state of charge. Figure 4 , which is a flow chart of a method for estimating the state of charge provided by an embodiment of the present disclosure, and the method can be implemented in an electronic device.

[0126] like Figure 4 As shown, the method of this embodiment may include the following steps S4100-S4200, which are described in detail below.

[0127] Step S4100, obtaining voltage data and current data of the target battery.

[0128] In some embodiments, the execution subject of the state of charge estimation method may obtain the voltage data and current data of the target battery in a wired or wireless manner.

[0129] Step S4200: Obtain a target state of charge of the target battery according to the voltage data and the current data based on a target state of charge estimation algorithm.

[0130] In some embodiments, the execution subject may obtain the target state of charge of the target battery based on the target state of charge estimation algorithm according to the voltage data and the current data, wherein the target state of charge estimation algorithm is an algorithm whose corresponding accuracy satisfies a preset condition. The preset condition may be pre-set, for example, it may be "selecting a state of charge estimation algorithm with an accuracy greater than 95%" or "selecting a state of charge estimation algorithm with the highest accuracy".

[0131] Some embodiments of the present disclosure disclose a state of charge estimation method, which obtains the voltage data and current data of a target battery, and obtains the target state of charge of the target battery based on the voltage data and the current data and based on a target state of charge estimation algorithm, wherein the target state of charge estimation algorithm is an algorithm whose corresponding accuracy meets preset conditions, and a more accurate state of charge is obtained by selecting an algorithm with higher accuracy.

[0132] Please continue to see Figure 5, which is a schematic diagram of a curve for illustrating an error value, and the method can be implemented in an electronic device.

[0133] Figure 5 SOC-REF represents a state of charge reference value, SOC-AhBias represents a state of charge bias value calculated by the ampere-hour integration method, and SOC-FUR represents a state of charge value calculated by the SOC estimation algorithm.

[0134] SOC-error-AhBias represents the difference between SOC-FUR and SOC-REF, and SOC-error-AhBias represents the difference between SOC-AhBias and SOC-REF. The smoother the SOC-error-AhBias curve is, the better the accuracy of the verified estimation algorithm is.

[0135] <Equipment Embodiment>

[0136] Corresponding to the above method embodiment, in this embodiment, an electronic device is also provided, see Figure 6 , which is a structural diagram of an electronic device provided by an embodiment of the present disclosure.

[0137] like Figure 6 As shown, the electronic device 600 may include a processor 620 and a memory 610, wherein the memory 610 is used to store executable instructions; the processor 620 is used to operate the electronic device according to the control of the instructions to execute the method according to any embodiment of the present disclosure.

[0138] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0139] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0140] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the current data and voltage data corresponding to the initial state of charge value from the first data set, and uses the position corresponding to the initial state of charge value as the current flag; generates a state of charge reference value and a state of charge estimation value based on the current data, the voltage data, the preset nominal capacity and the preset bias capacity; calculates an initial error value based on the state of charge reference value and the state of charge estimation value; generates a first error value through simulation verification to obtain a first error value set when the state of charge reference value meets the first preset cycle simulation condition; generates cycle simulation verification information based on the initial error value and the first error value set.

[0141] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising a first acquisition unit, a determination unit, a second acquisition unit, a replacement unit and a completion unit. The names of these units do not, in certain cases, constitute limitations on the units themselves, for example, the first acquisition unit may also be described as "a unit for acquiring the current version information of the above application in response to detecting a first user operation on the application".

[0144] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0145] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for evaluating the accuracy of a battery state of charge estimation algorithm, characterized in that: include: Acquire current data and voltage data corresponding to the initial state of charge value from a first data set, and use the position corresponding to the initial state of charge value as a current flag, wherein the first data set is charging data or discharging data, and the data in the first data set is data corresponding to the voltage data, the current data and the state of charge value; Generate a state of charge reference value and a state of charge estimation value based on current data corresponding to the initial state of charge value, voltage data corresponding to the initial state of charge value, a preset nominal capacity, and a preset bias capacity, wherein the state of charge estimation value is obtained using a state of charge estimation algorithm to be verified; An initial error value is calculated based on the state of charge reference value and the state of charge estimation value; When the state of charge reference value satisfies a first preset cycle simulation condition, a first error value is generated through simulation verification to obtain a first error value set, wherein the first error value is a difference between the state of charge reference value and the state of charge estimated value during the simulation verification process; Based on the initial error value and the first error value set, generating cycle simulation verification information; According to the cycle simulation verification information, the accuracy of the state of charge estimation algorithm is verified; wherein, The state of charge reference value is obtained by the following steps: using the preset nominal capacity, the current data and the voltage data corresponding to the initial state of charge value to calculate the state of charge reference value through the ampere-hour integration method; The state of charge estimation value is obtained by the following steps: adding a bias to the current data based on the current data corresponding to the initial state of charge value and a preset first experimental process current bias coefficient to obtain a bias current; using the bias current, the voltage data corresponding to the initial state of charge value and the preset bias capacity through an estimation algorithm to calculate the state of charge estimation value; The generating of the first error value through simulation verification includes: updating the current flag according to a preset step value; acquiring the current data and voltage data corresponding to the updated current flag as the target current data and target voltage data from the first data set; generating a target state of charge reference value and a target state of charge estimation value based on the target current data, the target voltage data, the preset nominal capacity and the preset bias capacity; calculating a target error value based on the target state of charge reference value and the target state of charge estimation value, and using the target error value as the first error value.

2. The method according to claim 1, characterized in that The first preset cycle simulation condition includes at least one of the following: In the case where the first data set is discharge data, the state of charge reference value is greater than the state of charge boundary value; When the first data set is charging data, the state of charge reference value is less than a state of charge upper boundary value.

3. The method according to claim 2, characterized in that The state of charge boundary value and the state of charge upper boundary value are obtained by the following steps: Based on the preset nominal capacity and the preset bias capacity, an upper boundary value of the state of charge and a middle boundary value of the state of charge are generated.

4. The method according to claim 1, characterized in that: The method further comprises: When the state of charge reference value does not meet the first preset cycle simulation condition, current data and voltage data corresponding to the state of charge reference value are obtained from a second data set, and a position corresponding to the state of charge reference value is used as a current flag, wherein when the first data set is discharge data, the second data set is charge data, and when the first data set is charge data, the second data set is discharge data; Generate a new state-of-charge reference value and a new state-of-charge estimation value based on the current data and voltage data corresponding to the state-of-charge reference value, the preset nominal capacity and the preset bias capacity; Calculate a new initial error value based on the new state of charge reference value and the new state of charge estimated value; When the new state of charge reference value satisfies a second preset cycle simulation condition, a second error value is generated through simulation verification to obtain a second error value set; The cycle simulation verification information is generated based on the new initial error value and the second error value set.

5. The method according to claim 1, characterized in that The method further comprises: The voltage data and current data of the first experimental process and the voltage data and current data of the second experimental process obtained by the test are processed respectively to obtain corresponding state of charge values ​​respectively; By using the interpolation method, the voltage data and current data of the first experimental process, the voltage data and current data of the second experimental process and the corresponding state of charge values ​​are calculated respectively to obtain a first data set and a second data set corresponding to the simulation step length.

6. A method for estimating a state of charge, characterized in that: include: Obtain voltage data and current data of the target battery; According to the voltage data and the current data, based on a target state of charge estimation algorithm, the target state of charge of the target battery is obtained, wherein the target state of charge estimation algorithm is an algorithm whose corresponding accuracy meets a preset condition determined according to the method according to any one of claims 1-5.

7. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor is used to operate the electronic device to execute the method according to any one of claims 1 to 5 under the control of the instruction.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that can be read and executed by a computer, and the computer program is used to execute the method according to any one of claims 1 to 5 when being read and executed by the computer.