Open circuit voltage prediction method, device, electronic device and storage medium
By acquiring characteristic parameters in the battery's resting state, constructing an open-circuit voltage prediction model and performing integrated power calculations, it solves the problems of slow open-circuit voltage acquisition and low accuracy in the existing technology, and achieves high-precision battery testing in a short time. Voltage prediction.
Patent Information
- Application Number
- CN202410861529.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In the existing technology, the speed of obtaining the battery open circuit voltage is slow and the accuracy is not high. In particular, the current fluctuations and resting time of the battery under different working conditions have a great impact, resulting in a decrease in the accuracy of the power estimation.
By obtaining the characteristic parameters of the sampling voltage, sampling time and battery state before the battery is in a static state when the battery to be tested is in a static state, an open circuit voltage prediction model is constructed based on the preset parameter model, and the sampling current and voltage change rate are used to calculate the integrated power and Compensation, adjusts the sampling frequency to improve prediction accuracy.
It improves the prediction accuracy of battery open circuit voltage in a short period of time, reduces power estimation errors, and adapts to different application scenarios and battery modeling needs.
Smart Images

Figure CN118393369B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to an open circuit voltage prediction method, device, electronic device and storage medium. Background Art
[0002] The terminal voltage of a battery in an open circuit state is called the open circuit voltage (OCV). The open circuit voltage of a battery is equal to the difference between the electrode potential of the positive electrode and the electrode potential of the negative electrode of the battery when the battery is disconnected (that is, when no current passes through the two electrodes).
[0003] Currently, the battery needs to be left stationary for a long time to obtain the open circuit voltage. However, under different working conditions, factors such as the fluctuation of the current in the battery and the length of time the battery is stationary will affect the open circuit voltage, making the obtained open circuit voltage slow and inaccurate.
[0004] It should be noted that the above statements are only used to provide background technical information related to the present application and do not necessarily constitute prior art. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide an open circuit voltage prediction method, device, electronic device and storage medium. The present application can specifically solve the problem that the existing open circuit voltage is obtained slowly and with low accuracy.
[0006] Based on the above-mentioned purpose, in a first aspect, the present application proposes a method for predicting an open circuit voltage, the method comprising: when the battery to be tested is in a static state, obtaining characteristic parameters of the battery to be tested at each moment under a preset sampling frequency, the characteristic parameters including a sampling voltage, a sampling time and a battery state before static state; determining an open circuit voltage prediction model based on the sampling voltage, the sampling time and a preset parameter model, the preset parameter model being used to obtain model parameters of the open circuit voltage prediction model according to the sampling voltage and the sampling time to determine the open circuit voltage prediction model; obtaining a predicted value of the open circuit voltage of the battery to be tested according to the sampling time, the open circuit voltage prediction model and the battery state before static state.
[0007] In some embodiments, the characteristic parameter also includes a sampling current; the open circuit voltage prediction model includes a preset linear function or a preset nonlinear function; the open circuit voltage prediction model is determined based on the sampling voltage, the sampling time and the preset parameter model, including: obtaining the integrated power of the battery to be tested based on the sampling current; according to the integrated power being less than an integral preset value, obtaining a first open circuit voltage prediction model based on the sampling voltage, the sampling time and the preset nonlinear function; or, according to the integrated power being greater than or equal to the integral preset value, obtaining a second open circuit voltage prediction model based on the sampling voltage, the sampling time and the preset linear function.
[0008] In some embodiments, obtaining the predicted open circuit voltage value of the battery to be tested based on the sampling time, the open circuit voltage prediction model and the battery state before standing still includes: taking the voltage prediction value of the second open circuit voltage prediction model corresponding to the current sampling time as the first predicted value; calculating the average current from the start time of sampling to the current sampling time, the absolute charge corresponding to the battery to be tested at the current temperature, and the impedance of the battery to be tested under the current temperature and its corresponding absolute charge; compensating the first predicted value according to the average current and the impedance to obtain the predicted open circuit voltage value of the battery to be tested.
[0009] In some embodiments, the preset sampling frequency includes a first sampling frequency and a second sampling frequency, the first sampling frequency is greater than the second sampling frequency, and the obtaining of characteristic parameters of the battery to be tested at each moment under the preset sampling frequency includes: obtaining a first number of sampled voltages of the battery to be tested under the first sampling frequency; when the first number is greater than the first preset number, comparing the relationship between the integrated power and the integrated preset value; when the integrated power is less than the integrated preset value, adjusting the sampling frequency of the battery to be tested from the first sampling frequency to the second sampling frequency, and obtaining the sampled voltage of the battery to be tested under the second sampling frequency.
[0010] In some embodiments, the method further includes: taking a second preset number of consecutive sampled voltages as a sampled voltage set; updating the sampled voltage set according to the sampled voltage corresponding to the current sampling time; and updating the open circuit voltage prediction value of the battery to be tested based on the sampled voltages in the updated sampled voltage set.
[0011] In some embodiments, the method further includes: when the temperature difference of the battery to be tested corresponding to any two sampling moments in the sampled voltage set is greater than a preset temperature difference value, clearing the sampled voltage set.
[0012] In some embodiments, the method further includes: at any sampling moment, calculating the voltage change rate of the battery to be tested according to the sampled voltage and sampling time; when the voltage change rate of the battery to be tested is less than or equal to a preset voltage change rate, updating the open circuit voltage value of the battery to be tested based on the sampled voltage value at the current moment.
[0013] In a second aspect, an open circuit voltage prediction device is also provided, including: a sampling module, used to obtain characteristic parameters of the battery to be tested at each moment at a preset sampling frequency when the battery to be tested is in a static state, the characteristic parameters including a sampling voltage, a sampling time and a battery state before static state; a calculation module, used to determine an open circuit voltage prediction model based on the sampling voltage, the sampling time and a preset parameter model, the preset parameter model is used to obtain model parameters of the open circuit voltage prediction model according to the sampling voltage and the sampling time to determine the open circuit voltage prediction model; an open circuit voltage prediction module, used to obtain a predicted value of the open circuit voltage of the battery to be tested according to the sampling time, the open circuit voltage prediction model and the battery state before static state.
[0014] According to a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect.
[0015] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the program is executed by a processor to implement any method described in the first aspect.
[0016] In general, this application has at least the following beneficial effects:
[0017] The embodiment of the present application obtains an open circuit voltage prediction model through the battery sampling voltage, sampling time, battery state before standing still and a preset parameter model, and then the voltage change rate and the open circuit voltage when the voltage is standing still can be predicted according to the obtained open circuit voltage prediction model. Since the preset parameter model is the model parameters of the open circuit voltage prediction model obtained by fitting the sampling voltage and the sampling time, the accuracy of the open circuit voltage prediction model can be improved. Therefore, the present embodiment can improve the accuracy of the open circuit voltage prediction of the battery under short-time standing conditions.
[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application. In addition, the same reference numerals are used to represent the same parts in all the drawings.
[0020] Figure 1 A flowchart showing a method for predicting an open circuit voltage provided by an embodiment of the present application is shown;
[0021] Figure 2 Another step flow chart of an open circuit voltage prediction method provided by an embodiment of the present application is shown;
[0022] Figure 3 An open circuit voltage prediction comparison diagram of an embodiment of the present application is shown;
[0023] Figure 4 A voltage change rate prediction effect diagram of an embodiment of the present application is shown;
[0024] Figure 5 A schematic diagram showing the structure of an open circuit voltage prediction device provided in an embodiment of the present application is shown;
[0025] Figure 6 A schematic diagram showing the structure of an electronic device provided by an embodiment of the present application is shown;
[0026] Figure 7 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0029] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0030] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0032] In the related art, a fuel meter is used to sample the battery voltage and obtain the open circuit voltage value, thereby estimating the power of the battery under test. However, obtaining the open circuit voltage value requires the battery to be left stationary for a long time, and has relatively high requirements on the current fluctuation of the battery. It is necessary to verify whether the voltage change rate meets the open circuit voltage acquisition conditions, which makes it difficult to obtain the open circuit voltage value.
[0033] Specifically, if the power estimation is performed in real time in the actual application scenario of the battery to be tested, since there may be communication needs (5G or Bluetooth) during the standby process of the electronic device, the battery will be awakened for power supply at regular intervals, and the static state of the battery will be interrupted, making it difficult to obtain the open circuit voltage under various working conditions of the whole machine. And because the open circuit voltage is difficult to obtain, it will make it difficult to clear the integrated power. As the integral error accumulates, it will further affect the accuracy of power estimation.
[0034] In the battery modeling scenario, due to the different discharge depths of the batteries, the polarization degrees of the batteries are also different. If the voltage change rate conditions need to be met, a long standing time is required. If the standing time is short, the voltage change rate is large, and the open circuit voltage acquisition conditions are not met, affecting the acquisition of the open circuit voltage, resulting in certain standing points in the entire OCV-SOCAb curve (a curve describing the relationship between the battery open circuit voltage OCV and the battery state charge SOC) not meeting the requirements. Therefore, the voltage change rate conditions may not be met within the specified standing time, ultimately affecting the accuracy of the battery model.
[0035] It can be seen that in the related art, in actual application scenarios of real-time power estimation or battery modeling scenarios, there are problems such as slow speed and low accuracy in obtaining open circuit voltage.
[0036] In order to solve the above technical problems and improve the speed and accuracy of obtaining the open circuit voltage, the embodiment of the present application obtains an open circuit voltage prediction model through the battery sampling voltage, sampling time, battery state before standing still and a preset parameter model, and then the voltage change rate and the open circuit voltage when the voltage is standing still can be predicted according to the obtained open circuit voltage prediction model. Since the preset parameter model is the model parameters of the open circuit voltage prediction model obtained by fitting the sampling voltage and sampling time, the accuracy of the open circuit voltage prediction model can be improved. Therefore, the present embodiment can improve the accuracy of the open circuit voltage prediction of the battery under short-term standing conditions.
[0037] The embodiments of the present application are described in detail below.
[0038] Figure 1 A flowchart showing the steps of an open circuit voltage prediction method provided by an embodiment of the present application is shown. Figure 1 In an embodiment of the present application, an open circuit voltage prediction method includes the following steps S101 to S103:
[0039] S101 . When the battery to be tested is in a static state, obtain characteristic parameters of the battery to be tested at each moment under a preset sampling frequency.
[0040] Among them, the battery under test is in a static state, which means that the battery is not involved in charging and discharging activities, that is, there is no current flow or the current flow is very small. In this state, the battery's voltage, temperature and other parameters are relatively stable and will not change significantly. When the battery under test is in a static state, the open circuit voltage of the battery during the static process can be calculated, and then the power can be estimated.
[0041] The preset sampling frequency can be, for example, once every 120 seconds, once every 150 seconds, once every 200 seconds, once every 250 seconds, or once every 360 seconds. The specific sampling frequency can be set according to the actual accuracy requirements and is not listed here one by one.
[0042] The characteristic parameters include sampling voltage, sampling time and battery state before standing still. The sampling voltage is the actual voltage value of the battery to be tested collected at a preset frequency, and the sampling voltage can be obtained by a voltage collection device. The sampling time includes the standing time of the battery at the sampling time, and the battery state before standing still includes any one of the battery being in a charging state before standing still and the battery being in a discharging state before standing still. The battery state before standing still is used to determine whether the model parameter of the open circuit voltage prediction model is a positive value or a negative value.
[0043] S102: Determine an open circuit voltage prediction model based on the sampled voltage, the sampled time, and a preset parameter model.
[0044] The preset parameter model is used to obtain the model parameters of the open circuit voltage prediction model according to the sampling voltage and the sampling time, so as to determine the open circuit voltage prediction model.
[0045] In one example, the voltage rebound y1 after the battery is discharged can be expressed by formula (1), and the voltage rebound y2 after the battery is charged can be expressed by formula (2),
[0046] y1=a1*log(e)(x1)+b1=a1*ln(x1)+b1 formula (1)
[0047] y2=a2*log(1 / e)(x2)+b2=-a2*ln(x2)+b2Formula (2)
[0048] Wherein, a1 is the coefficient of the voltage change rate of the voltage rebound y1 after discharge, b1 is the voltage rebound basic value after discharge, a2 is the coefficient of the voltage change rate of the voltage rebound y2 after charging, b2 is the voltage rebound basic value after charging. From formula (1) and formula (2), it can be seen that the rebound voltage of the battery after charging or discharging can be expressed as:
[0049] y=aln(x)+b formula (3)
[0050] If the battery is left to stand for a period of time after charge and discharge, the internal chemical reaction can reach equilibrium, and the voltage after rebound can be approximated to the open circuit voltage of the battery. In other words, the open circuit voltage of the battery can be expressed by formula (3), that is, formula (3) can be used as an open circuit voltage prediction model. Among them, y represents the rebound voltage without current interference, which can represent the open circuit voltage value without current interference, a and b are model parameters of the open circuit voltage prediction model, and x represents the standing time of the battery.
[0051] In addition, by taking the derivative of formula (3), we can get the calculation formula of voltage change rate y`:
[0052] y`=a / x formula (4)
[0053] When the voltage change rate satisfies the preset change rate, the static time (i.e., the open circuit voltage point) when the preset change rate is met can be obtained according to formula (4), and then the open circuit voltage value can be obtained according to the static time when the preset change rate is met and formula (3).
[0054] In this embodiment, since the parameters of formula (1) and formula (2) during the battery charging and discharging process are difficult to obtain directly, that is, the parameters a and b in the above formula (3) are difficult to obtain directly, therefore, in this embodiment, the values of a and b are solved by a preset parameter model.
[0055] In one example, if the static voltage at a certain moment is expressed as Vbat=a*ln(x)+b, then c=ln(x) can be obtained. By solving a and b by the least squares method, the following linear equations can be obtained:
[0056] n * b + a * sum(c) = sum(Vbat) Formula (5)
[0057] b * sum(c) + a * sum(c^2) = sum(c * Vbat) Formula (6)
[0058] Wherein, n is the total number of samples, sum(c) is the sum of the ln(x) values, and sum(Vbat) is the sum of the static voltage Vbat.
[0059] From formula (5), we can get:
[0060] )Formula (7)
[0061] From formula (6), we can get:
[0062] )Formula (8)
[0063] In this way, formula (7) and formula (8) are used as the preset parameter model of the embodiment of the present application, and the value of c=ln(x) is calculated according to the sampling time, and the value of the static voltage Vbat is calculated according to the sampling voltage, and then the values of a and b can be solved, that is, the model parameters of the open circuit voltage prediction model. After obtaining the model parameters, the open circuit voltage prediction model can be obtained.
[0064] S103, obtaining a predicted value of the open circuit voltage of the battery to be tested according to the sampling time, the open circuit voltage prediction model and the battery state before standing still.
[0065] In this embodiment, the model parameter b represents the basic value of the rebound voltage, so the value of b is continuously positive.
[0066] It can be seen from the above embodiments that the battery state before standing still includes any one of the battery being in a charging state before standing still and the battery being in a discharging state before standing still. It can be seen from formula (1) that when the battery is in a discharging state before standing still, the value a is positive. It can be seen from formula (2) that when the battery is in a charging state before standing still, the value a is negative.
[0067] Therefore, in this embodiment, the predicted value of the open circuit voltage of the battery to be tested is obtained according to the sampling time, the open circuit voltage prediction model and the battery state before being placed at rest.
[0068] In other words, when the battery is at rest after being discharged, the open circuit voltage prediction model is y=aln(x)+b, and when the battery is at rest after being charged, the open circuit voltage prediction model is y=-aln(x)+b. After obtaining the sampling time x, since the values of parameters a and b have been calculated in step S102, the open circuit voltage prediction value can be calculated by the open circuit voltage prediction model.
[0069] It should be noted that, since the sampling time is a non-negative number, before determining the open circuit voltage prediction model, the sampling time is filtered to remove data with negative sampling time.
[0070] When the sampling time changes and the sampling voltage at each moment is the same, the preset parameter model has no solution. Therefore, before determining the open circuit voltage prediction model, the sampling voltage is filtered to determine whether the sampling voltage can be used to determine the open circuit voltage prediction model.
[0071] As can be seen from the above embodiments, the present embodiment solves the preset parameter model by sampling voltage and sampling time to obtain the solution value, and the parameter model is obtained according to the open circuit voltage prediction model, and the solution value of the parameter model is the model parameter of the open circuit voltage prediction model, and then after obtaining the solution value of the preset parameter model, the parameter size of the open circuit voltage prediction model can be obtained, wherein since the rest after charging and the rest after discharging will cause the positive and negative differences of the model parameters of the open circuit voltage prediction model, therefore, the open circuit voltage prediction value of the battery to be tested is also obtained according to the sampling time, the open circuit voltage prediction model and the battery state before resting. Among them, since the present embodiment only needs a certain number of characteristic parameters of the battery to be tested to calculate the open circuit voltage prediction model, and there is no need to wait for the battery to rest for a long time, the open circuit voltage can be quickly obtained, and since the open circuit voltage prediction model is constructed based on the actual voltage rebound, the deviation from the actual open circuit voltage value can be reduced, and the accuracy of the open circuit voltage acquisition is improved.
[0072] In an embodiment of the present application, the open circuit voltage prediction model includes a preset linear function or a preset nonlinear function, and the characteristic parameter also includes a sampling current. Based on the sampling voltage and the sampling time and the preset parameter model, the open circuit voltage prediction model is determined, including: obtaining the integrated power of the battery to be tested based on the sampling current; according to the integrated power being less than the integral preset value, obtaining the first open circuit voltage prediction model based on the sampling voltage, the sampling time and the preset nonlinear function; or, according to the integrated power being greater than or equal to the integral preset value, obtaining the second open circuit voltage prediction model based on the sampling voltage, the sampling time and the preset linear function.
[0073] It is understandable that if the power estimation is performed in real time in the actual application scenario of the battery to be tested, there will be current fluctuations, which makes the open circuit voltage acquisition accuracy not high. If it is in a battery modeling scenario, it can be considered to be in an ideal static environment, so there is no need to calculate the impact of small current fluctuations. Therefore, this embodiment matches the open circuit voltage prediction model suitable for the current scenario for the battery to be tested through the size of the integral.
[0074] Specifically, the integrated power of the battery to be tested can be obtained by sampling the current. When the integrated power is less than the preset integrated value, it indicates that there is a small current influence in the current open circuit voltage acquisition environment. At this time, in order to improve the open circuit voltage prediction accuracy, a first open circuit voltage prediction model is obtained based on the sampled voltage, the sampling time and the preset nonlinear function, that is, formula (3) in the above embodiment.
[0075] When the integrated power is greater than or equal to the preset integrated value, it indicates that the current in the current open circuit voltage acquisition environment is large. The large current will directly affect the voltage rebound curve and the nonlinear function calculation result of formula (3). At this time, the linear function can better predict the standard value. The preset linear function can be expressed as:
[0076] y=ax+b Formula (9)
[0077] Among them, a and b are model parameters of the open circuit voltage prediction model, and x represents the static time of the battery.
[0078] Specifically, multiple sampling voltages and sampling times can be substituted into the above formula (9) to first calculate the values of a and b, and then obtain the second open circuit voltage prediction model.
[0079] In an embodiment of the present application, in order to further improve the prediction accuracy of the second open circuit voltage prediction model, the open circuit voltage prediction value of the battery to be tested is obtained according to the sampling time, the open circuit voltage prediction model and the battery state before standing still, including: taking the voltage prediction value of the second open circuit voltage prediction model corresponding to the current sampling time as the first prediction value; calculating the average current from the start time of sampling to the current sampling time, the absolute charge corresponding to the battery to be tested at the current temperature, and the impedance of the battery to be tested under the current temperature and its corresponding absolute charge; compensating the first prediction value according to the average current and impedance to obtain the open circuit voltage prediction value of the battery to be tested.
[0080] For example, if the current sampling time is that the battery to be tested has been standing for 5 hours, then the open circuit voltage value after standing for 5 hours is obtained according to the second open circuit voltage prediction model as the first prediction value Vbat_pre_old, and the average current I_relax_av from the sampling start time to the current sampling time is calculated according to the collected sampling current, the current temperature T of the battery to be tested is obtained, and the corresponding absolute charge SOCAb at the current temperature is obtained by looking up the table according to the current temperature T, and then the impedance Rout (SOCAb, T) of the battery to be tested under the current temperature and its corresponding absolute charge can be queried. Then, the first prediction value is compensated according to the average current and impedance to obtain the open circuit voltage prediction value of the battery to be tested.
[0081] That is to say, the open circuit voltage prediction value Vbat_pre_new after compensation is:
[0082] Vbat_pre_new=I_relax_av*Rout(SOCAb, T)+Vbat_pre_old formula (10)
[0083] The above embodiment can realize compensation for the voltage prediction value of the second open circuit voltage prediction model to obtain an open circuit voltage prediction value with higher accuracy.
[0084] In the embodiment of the present application, the preset sampling frequency includes a first sampling frequency and a second sampling frequency, and the first sampling frequency is greater than the second sampling frequency, that is, in the same time period, the number of samples corresponding to the first sampling frequency is greater than the number of samples corresponding to the second sampling frequency. For example, the first sampling frequency may be sampled once every 120 seconds, and the second sampling frequency may be sampled once every 360 seconds.
[0085] The characteristic parameters of the battery to be tested at each moment under the preset sampling frequency are obtained, including: obtaining a first number of sampled voltages of the battery to be tested at the first sampling frequency; when the first number is greater than the first preset number, comparing the relationship between the integrated power and the integrated preset value; when the integrated power is less than the integrated preset value, adjusting the sampling frequency of the battery to be tested from the first sampling frequency to the second sampling frequency, and obtaining the sampled voltage of the battery to be tested at the second sampling frequency.
[0086] In this embodiment, when the battery to be tested enters a static state from a charging state, or enters a static state from a discharging state in the early stage, the voltage changes greatly. At this time, a first sampling frequency with a larger frequency can be used for sampling to improve the sampling accuracy, and the number of sampled voltages of the battery to be tested at the first sampling frequency needs to meet the requirements of building an open circuit voltage prediction model. Therefore, when the first number is greater than the first preset number, the relationship between the integrated power and the integrated preset value is compared, and then a suitable open circuit voltage prediction model is matched for the battery to be tested according to whether the battery to be tested is in an actual application scenario or a battery modeling scenario.
[0087] It can be seen from the above embodiment that when the integrated power is less than the integrated preset value, the open circuit voltage value is predicted by the open circuit voltage prediction model of formula (3), and when the first number is greater than the first preset number, the battery has been stationary for a period of time, and its voltage change rate gradually decreases, so a second sampling frequency with a smaller frequency can be used to obtain the voltage of the battery to be tested, and the sampling frequency of the battery to be tested is adjusted from the first sampling frequency to the second sampling frequency to obtain the sampled voltage of the battery to be tested at the second sampling frequency. In this way, the sampled voltages of the same value within a period of time can be reduced, and the calculation efficiency can be improved.
[0088] The method of this embodiment also includes: taking a second preset number of consecutive sampled voltages as a sampled voltage set; updating the sampled voltage set according to the sampled voltage corresponding to the current sampling time; and updating the open circuit voltage prediction value of the battery to be tested based on the sampled voltages in the updated sampled voltage set.
[0089] Taking the continuous second preset number of sampled voltages as a sampled voltage set can be understood as taking the preset number of sampled voltage data in a sliding window as a sampled voltage set, wherein the second preset number can be set according to the actual voltage prediction requirements, for example, the sampled voltage set adopts a fifo (First In First Out) data structure, and the second preset number is 16, for example, then the sampled voltage set is updated according to the sampled voltage corresponding to the current sampling time, that is, when the data in the sampled voltage set reaches 16, the earliest acquired sampled voltage is deleted from the sampled voltage set, and the sampled voltage corresponding to the current sampling time is put into the sampled voltage set. Then, based on the sampled voltage in the updated sampled voltage set, the predicted value of the open circuit voltage of the battery to be tested is updated, that is, the open circuit voltage value is recalculated according to the sampled voltage in the updated sampled voltage set.
[0090] The above-mentioned embodiment can realize the real-time update of the sampling data and improve the prediction accuracy of the open circuit voltage value.
[0091] In one example, in order to reduce the interference of temperature on the open circuit voltage, the method of the embodiment of the present application further includes: clearing the sampled voltage set when the temperature difference of the battery to be tested corresponding to any two sampling moments in the sampled voltage set is greater than a preset temperature difference.
[0092] The preset temperature difference in this embodiment can be customized according to the open circuit voltage prediction accuracy, for example, the preset temperature difference can be 5°C.
[0093] The method of the embodiment of the present application also includes: at any sampling moment, calculating the voltage change rate of the battery to be tested based on the sampled voltage and the sampling time; when the voltage change rate of the battery to be tested is less than or equal to the preset voltage change rate, updating the open circuit voltage value of the battery to be tested based on the sampled voltage value at the current moment.
[0094] In this embodiment, the voltage change rate of the battery to be tested can be calculated according to the voltage difference of the sampled voltages corresponding to the two sampling times and the ratio between the time difference of the two sampling times. The voltage change rate can also be calculated according to formula (4). When the voltage change rate is less than or equal to the preset voltage change rate, it can be considered that the battery is in a relatively stable state. The voltage value at this time can more accurately reflect the open circuit performance of the battery and can be used as the open circuit voltage. Therefore, the open circuit voltage value of the battery to be tested can be updated based on the sampled voltage value at the current moment.
[0095] The present application is described below by applying the open circuit voltage prediction method provided in an embodiment of the present application in a specific example.
[0096] like Figure 2 As shown, it is detected whether the battery to be tested is in a static state. When the battery to be tested is in a static state, characteristic parameters of the battery to be tested at each moment under a preset sampling frequency are obtained, and data filtering processing is performed. The characteristic parameters include sampling voltage, sampling time, sampling current and battery state before static state.
[0097] A first number of sampled voltages at a first sampling frequency is obtained, and whether the first number is greater than 11 (a first preset number) is detected. When the first number is greater than 11, the relationship between the integrated power of the battery to be tested and the integrated preset value is detected. When the integrated power is less than the integrated preset value, the sampling frequency of the battery to be tested is adjusted from the first sampling frequency to the second sampling frequency, and an open circuit voltage prediction value is obtained based on the first open circuit voltage prediction model.
[0098] When the integrated power is greater than or equal to the preset integrated value, an open circuit voltage prediction is performed based on the second open circuit voltage prediction model to obtain a first prediction value, and the first prediction value is compensated according to the average current and impedance to obtain a predicted open circuit voltage value of the battery to be tested.
[0099] After obtaining the above-mentioned open circuit voltage prediction value, obtain the sampling voltage of the battery to be tested at the second sampling frequency, and record the second number, and detect whether the second number is greater than 16 (the second preset number). When the second number is greater than 16, update the sampling voltage set according to the sampling voltage corresponding to the current sampling time, and update the open circuit voltage prediction value of the battery to be tested based on the sampling voltage in the updated sampling voltage set.
[0100] Figure 3 A comparison diagram of open circuit voltage prediction of an embodiment of the present application is shown, wherein curve 1 is an actual voltage rebound curve after standing for a period of time after discharge, curve 2 is a predicted open circuit voltage curve, and curve 3 is a voltage curve obtained by a power meter. Figure 3 The horizontal axis is time, in seconds, and the vertical axis is the sampled voltage value, in mV. Figure 3 It can be seen that after standing for a period of time, the battery voltage in curve 1 rebounds from the initial value to 4298mV, the predicted voltage in curve 2 changes from the initial value to around 4300mV, and the maximum error is within 2mV. The electric meter curve in curve 3 changes from the initial value to more than 4302mV, the sampling error exceeds 3mV, and the electric meter sampling voltage fluctuates significantly. It can be seen that the error of this embodiment is much smaller than the error of the electric meter, and the prediction accuracy of the open circuit voltage can be improved.
[0101] Figure 4 A voltage change rate prediction effect diagram of an embodiment of the present application is shown as follows: Figure 4 As shown, the horizontal axis is time, the vertical axis is the voltage change rate, curve 4 is the actual voltage change rate, and curve 5 is the predicted voltage change rate of this embodiment. Figure 4 It can be clearly seen that the voltage change rates of curve 5 and curve 4 are basically close, that is, the predicted voltage change rate obtained in the embodiment of the present application is relatively close to the actual voltage change rate.
[0102] Among them, Figure 4 It can be seen that with the increase of time, the voltage change rate gradually decreases. In an example, if the preset voltage change rate is 10, when the voltage change rate is less than the preset voltage change rate, for example, when the voltage change rate is 9.827992862 in curve 5, it can be considered that the battery is already in a relatively stable state, and the open circuit voltage value of the battery to be tested can be updated based on the sampled voltage value at the current moment.
[0103] Figure 5 FIG. 1 is a schematic diagram showing the structure of an open circuit voltage prediction device provided by an embodiment of the present application. Figure 5 , an open circuit voltage prediction device 500 comprises:
[0104] The sampling module 501 is used to obtain characteristic parameters of the battery under test at each time at a preset sampling frequency when the battery under test is in a static state, wherein the characteristic parameters include sampling voltage, sampling time and battery state before static state;
[0105] A calculation module 502, configured to determine an open circuit voltage prediction model based on the sampled voltage, the sampling time, and a preset parameter model, wherein the preset parameter model is configured to obtain model parameters of the open circuit voltage prediction model according to the sampled voltage and the sampling time, so as to determine the open circuit voltage prediction model;
[0106] The open circuit voltage prediction module 503 is used to obtain the predicted value of the open circuit voltage of the battery to be tested according to the sampling time, the open circuit voltage prediction model and the battery state before the static state.
[0107] In one example, the characteristic parameter also includes a sampling current, and the open circuit voltage prediction model includes a preset linear function or a preset nonlinear function. The calculation module 502 is used to obtain the integrated power of the battery to be tested based on the sampling current; according to the integrated power being less than the preset integral value, based on the sampling voltage, the sampling time and the preset nonlinear function, obtain the first open circuit voltage prediction model; or, according to the integrated power being greater than or equal to the preset integral value, based on the sampling voltage, the sampling time and the preset linear function, obtain the second open circuit voltage prediction model.
[0108] In one example, the calculation module 502 is used to use the voltage prediction value of the second open circuit voltage prediction model corresponding to the current sampling time as the first prediction value; calculate the average current from the start time of sampling to the current sampling time, the absolute charge corresponding to the battery to be tested at the current temperature, and the impedance of the battery to be tested under the current temperature and its corresponding absolute charge; compensate the first prediction value according to the average current and the impedance to obtain the open circuit voltage prediction value of the battery to be tested.
[0109] In one example, the preset sampling frequency includes a first sampling frequency and a second sampling frequency, the first sampling frequency is greater than the second sampling frequency, and the sampling module 501 is used to obtain a first number of sampled voltages of the battery to be tested at the first sampling frequency; when the first number is greater than the first preset number, the integrated power is compared with the integrated preset value; when the integrated power is less than the integrated preset value, the sampling frequency of the battery to be tested is adjusted from the first sampling frequency to the second sampling frequency, and the sampled voltage of the battery to be tested at the second sampling frequency is obtained.
[0110] In one example, the sampling module 501 is used to take a second preset number of consecutive sampled voltages as a sampled voltage set; update the sampled voltage set according to the sampled voltage corresponding to the current sampling time; and update the open circuit voltage prediction value of the battery to be tested based on the sampled voltage in the updated sampled voltage set.
[0111] In one example, the sampling module 501 is used to clear the sampled voltage set when the temperature difference of the battery to be tested corresponding to any two sampling moments in the sampled voltage set is greater than a preset temperature difference value.
[0112] In one example, the open circuit voltage prediction module 503 is used to calculate the voltage change rate of the battery to be tested according to the sampled voltage and sampling time at any sampling moment; when the voltage change rate of the battery to be tested is less than or equal to the preset voltage change rate, the open circuit voltage value of the battery to be tested is updated based on the sampled voltage value at the current moment.
[0113] The open circuit voltage prediction device provided in this embodiment is based on the same concept as the above-mentioned open circuit voltage prediction method, so it can at least achieve the above-mentioned beneficial effects, and any of the above-mentioned implementation methods can be applied to the open circuit voltage prediction device provided in this embodiment, which will not be repeated here.
[0114] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the open circuit voltage prediction method provided in the above embodiment.
[0115] Please refer to Figure 6 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 6 As shown, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, and the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and when the processor 200 runs the computer program, it executes the open circuit voltage prediction method provided in any of the aforementioned embodiments of the present application.
[0116] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0117] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs, and the processor 200 executes the programs after receiving the execution instruction. The open circuit voltage prediction method disclosed in any implementation of the above-mentioned embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.
[0118] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 200. The above processor 200 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201 , and the processor 200 reads the information in the memory 201 , and completes the steps of the above-mentioned open circuit voltage prediction method in combination with its hardware.
[0119] The electronic device provided in the embodiment of the present application and the open circuit voltage prediction method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0120] The present application also provides a computer-readable storage medium corresponding to the open circuit voltage prediction method provided in the above embodiment. Figure 7 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the open circuit voltage prediction method provided by any of the aforementioned embodiments will be executed.
[0121] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0122] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the open circuit voltage prediction method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.
Claims
1. A method for predicting open circuit voltage, characterized in that: The method comprises: When the battery to be tested is in a static state, characteristic parameters of the battery to be tested at each moment under a preset sampling frequency are obtained, wherein the characteristic parameters include a sampling voltage, a sampling time, and a battery state before the static state; Determine an open circuit voltage prediction model based on the sampled voltage, the sampling time and a preset parameter model, wherein the preset parameter model is used to obtain model parameters of the open circuit voltage prediction model according to the sampled voltage and the sampling time to determine the open circuit voltage prediction model; Obtaining a predicted value of the open circuit voltage of the battery to be tested according to the sampling time, the open circuit voltage prediction model and the battery state before standing still; Wherein, the characteristic parameter further includes a sampling current; the open circuit voltage prediction model includes a preset linear function or a preset nonlinear function; and the open circuit voltage prediction model is determined based on the sampling voltage, the sampling time and the preset parameter model, including: Obtaining the integrated electric quantity of the battery to be tested based on the sampled current; According to the fact that the integrated electric quantity is less than the preset integrated value, a first open circuit voltage prediction model is obtained based on the sampled voltage, the sampling time and the preset nonlinear function, wherein the first open circuit voltage prediction model is y=aln(x)+b; Alternatively, according to the integrated power being greater than or equal to the integrated preset value, based on the sampling voltage, the sampling time and the preset linear function, a second open circuit voltage prediction model is obtained, and the second open circuit voltage prediction model is y=ax+b; a and b are model parameters of the open circuit voltage prediction model, respectively, and x represents the static time of the battery.
2. The open circuit voltage prediction method according to claim 1, characterized in that: The step of obtaining the predicted open circuit voltage value of the battery to be tested according to the sampling time, the open circuit voltage prediction model and the battery state before standing still includes: Using the voltage prediction value of the second open circuit voltage prediction model corresponding to the current sampling time as the first prediction value; Calculate the average current from the sampling start time to the current sampling time, the absolute charge corresponding to the battery under test at the current temperature, and the impedance of the battery under test at the current temperature and its corresponding absolute charge; The first predicted value is compensated according to the average current and the impedance to obtain a predicted value of the open circuit voltage of the battery to be tested.
3. The open circuit voltage prediction method according to claim 1, characterized in that: The preset sampling frequency includes a first sampling frequency and a second sampling frequency, the first sampling frequency is greater than the second sampling frequency, and the acquiring characteristic parameters of the battery to be tested at each moment under the preset sampling frequency includes: Acquire a first number of sampled voltages of the battery to be tested at the first sampling frequency; When the first quantity is greater than a first preset quantity, comparing the integrated power quantity with the integrated preset value; When the integrated power is less than the preset integrated value, the sampling frequency of the battery to be tested is adjusted from the first sampling frequency to the second sampling frequency, and a sampling voltage of the battery to be tested at the second sampling frequency is obtained.
4. The open circuit voltage prediction method according to any one of claims 1 to 3, characterized in that: The method further comprises: Taking a second preset number of continuous sampled voltages as a sampled voltage set; Update the sampled voltage set according to the sampled voltage corresponding to the current sampling time; The open circuit voltage prediction value of the battery to be tested is updated based on the sampled voltages in the updated sampled voltage set.
5. The open circuit voltage prediction method according to claim 4, characterized in that: The method further comprises: When the temperature difference of the battery to be tested corresponding to any two sampling moments in the sampled voltage set is greater than a preset temperature difference value, the sampled voltage set is cleared.
6. The open circuit voltage prediction method according to any one of claims 1 to 3, characterized in that: The method further comprises: At any sampling moment, calculating the voltage change rate of the battery to be tested according to the sampled voltage and the sampling time; When the voltage change rate of the battery to be tested is less than or equal to a preset voltage change rate, the open circuit voltage value of the battery to be tested is updated based on the sampled voltage value at the current moment.
7. An open circuit voltage prediction device, characterized in that: include: A sampling module, used for obtaining characteristic parameters of the battery under test at each moment under a preset sampling frequency when the battery under test is in a static state, wherein the characteristic parameters include sampling voltage, sampling time and battery state before static state; a calculation module, configured to determine an open circuit voltage prediction model based on the sampled voltage, the sampling time, and a preset parameter model, wherein the preset parameter model is configured to obtain model parameters of the open circuit voltage prediction model according to the sampled voltage and the sampling time, so as to determine the open circuit voltage prediction model; An open circuit voltage prediction module, used to obtain a predicted value of the open circuit voltage of the battery to be tested according to the sampling time, the open circuit voltage prediction model and the battery state before standing still; Wherein, the characteristic parameter further includes a sampling current; the open circuit voltage prediction model includes a preset linear function or a preset nonlinear function; and the open circuit voltage prediction model is determined based on the sampling voltage, the sampling time and the preset parameter model, including: Obtaining the integrated electric quantity of the battery to be tested based on the sampled current; According to the fact that the integrated electric quantity is less than the preset integrated value, a first open circuit voltage prediction model is obtained based on the sampled voltage, the sampling time and the preset nonlinear function, wherein the first open circuit voltage prediction model is y=aln(x)+b; Alternatively, according to the integrated power being greater than or equal to the integrated preset value, based on the sampling voltage, the sampling time and the preset linear function, a second open circuit voltage prediction model is obtained, and the second open circuit voltage prediction model is y=ax+b; a and b are model parameters of the open circuit voltage prediction model, respectively, and x represents the static time of the battery.
8. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the open circuit voltage prediction method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the open circuit voltage prediction method according to any one of claims 1 to 6.
