A method, device, system and medium for estimating initial state of charge

Through cyclic filtering technology and the master-slave interaction to determine the initial state of charge, the problem of poor estimation accuracy of the initial state of charge of the battery is solved, and more accurate acquisition of state of charge information is achieved, and the stability and accuracy of the battery management system are improved.

CN118501724BActive Publication Date: 2024-11-12TINYCHIP MICROELECTRONICS (SHANGHAI) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410968707.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-12
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

The prior art is difficult to accurately estimate the initial state of charge of a battery, especially in the case of interference or abnormal start-up, resulting in inaccurate chip reset and voltage sampling, resulting in loss of state of charge accuracy and jump.

Method used

A method of initial state of charge estimation is adopted, the sampling voltage is processed through cyclic filtering technology, the sampling average value is calculated in segments, outliers are removed, the initial state of charge is estimated using preset relationships, and the host and slaves are interacted with each other. Determine the final initial state of charge.

Benefits of technology

It effectively improves the estimation accuracy of the initial state of charge, avoids voltage sampling errors caused by interference, ensures the accuracy of the initial state voltage information, and improves the stability of the battery management system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118501724B_ABST
    Figure CN118501724B_ABST
Patent Text Reader

Abstract

An initial state of charge estimation method, device, system and medium provided by an embodiment of the present invention have the following beneficial effects: by assigning the sampled voltage to the first minimum value, the second minimum value, the second maximum value and the first maximum value in sequence; performing cyclic filtering, obtaining the reference state of charge of the nth sampled average value according to a preset corresponding relationship, and estimating the initial state of charge according to the reference state of charge. The present invention removes abnormal values ​​by cyclic filtering the initial voltage, effectively ensures the accuracy of the initial state voltage information, avoids voltage sampling errors caused by interference, and thus improves the estimation accuracy of the initial state of charge.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery management, and in particular to an initial state of charge estimation method, device, system and medium. Background Art

[0002] With the continuous breakthrough of battery technology, low-cost, high-performance batteries have accelerated the process of electrification and intelligent products. SOC (English: State of Charge, Chinese: State of Charge) has also been increasingly valued, and the accuracy of the state of charge is the focus of customer attention. For chips that carry SOC algorithm carriers, their stability and performance will be tested. In particular, interference or abnormal startup will cause the chip to reset and thus fail to obtain an accurate initial state of charge. For example, when the battery management PCBA board (English: Printed Circuit Board Assembly, Chinese: Printed Circuit Board) is assembled, strong interference caused by laser welding and electric shock welding will cause abnormal chip resets, such as software resets such as door-watching, and some low-voltage resets, high-voltage impact resets, high-current resets, and short-circuit resets. During reset, if the state of charge at the previous moment cannot be accurately known, the state of charge calculated using the initialization method will have a huge deviation from the product display value, resulting in loss of accuracy or jumps in the state of charge. On the other hand, after the reset due to some interference, the interference source has always existed, causing inaccurate voltage sampling and inaccurate initial state of charge, which will also cause loss of accuracy and jumps in the state of charge.

[0003] It can be seen from the above description that it is currently difficult to accurately estimate the initial state of charge. How to improve the estimation accuracy of the initial state of charge is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0004] In order to overcome the shortcomings of poor accuracy of existing initial state of charge estimation methods, the present invention proposes an initial state of charge estimation method, device, system and medium.

[0005] In order to achieve the above object, according to a first aspect of the present invention, an embodiment of the present invention provides an initial state of charge estimation method, the method comprising the following steps:

[0006] When n is equal to m+1, the sampled voltages are assigned to the first minimum value, the second minimum value, the second maximum value and the first maximum value in order from small to large; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values;

[0007] When n is greater than m+1 and less than the preset number of filters, executing the circular filtering includes: if the nth sampling voltage is less than or equal to the first minimum value, calculating the nth sampling average value according to the first formula, assigning the first minimum value to the second minimum value, and assigning the nth sampling voltage to the first minimum value; if the nth sampling voltage is greater than the first minimum value and less than the second minimum value, calculating the nth sampling average value according to the first formula, and assigning the nth sampling voltage to the second minimum value; if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, calculating the nth sampling average value according to the second formula; if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, calculating the nth sampling average value according to the second formula; If the nth sampling voltage is greater than the second maximum value and less than the first maximum value, the nth sampling average value is calculated according to the third formula, and the nth sampling voltage is assigned to the second maximum value; if the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, the first maximum value is assigned to the second maximum value, and the nth sampling voltage is assigned to the first maximum value; wherein the preset number of filters is greater than m+1, the first formula is a stage function for filtering a sampling voltage less than the second minimum value, the second formula is a stage function for filtering a sampling voltage between the second minimum value and the second maximum value, and the third formula is a stage function for filtering a sampling voltage greater than or equal to the second maximum value;

[0008] When n is equal to the preset number of filters, a reference state of charge of the nth sampling average value is obtained according to a preset corresponding relationship, and an initial state of charge is estimated according to the reference state of charge.

[0009] Optionally, the nth sampling average value is calculated according to the first formula, by the following formula:

[0010] ;

[0011] in, represents the nth sample average, represents the n-1th sampling average, Indicates the second smallest value.

[0012] Optionally, the nth sampling average value is calculated according to the second formula, by the following formula:

[0013] ;

[0014] in, represents the nth sample average, represents the n-1th sampling average, Indicates the nth sampling voltage.

[0015] Optionally, the nth sampling average value is calculated according to the third formula, and is calculated by the following formula:

[0016] ;

[0017] in, represents the nth sample average, represents the n-1th sampling average, Indicates the second largest value.

[0018] Optionally, estimating an initial state of charge according to the reference state of charge includes:

[0019] When communication with the host fails, using the reference state of charge as an initial state of charge;

[0020] When communication with the host is successful and the acquired state of charge flag is 0, the reference state of charge is used as the initial state of charge;

[0021] When communication with the host is successful and the acquired state of charge flag is 1, the state of charge stored in the host is used as the initial state of charge;

[0022] The state of charge flag is an identifier of whether the host has successfully stored the state of charge.

[0023] According to a second aspect of the present invention, an embodiment of the present invention further provides an initial state of charge estimation device, comprising:

[0024] A recording module, used for assigning the sampled voltages to a first minimum value, a second minimum value, a second maximum value and a first maximum value in ascending order when n is equal to m+l; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values;

[0025] The loop filtering module is used for performing loop filtering when n is greater than m+1 and less than a preset filtering number, including: if the nth sampling voltage is less than or equal to the first minimum value, calculating the nth sampling average value according to the first formula, assigning the first minimum value to the second minimum value, and assigning the nth sampling voltage to the first minimum value; if the nth sampling voltage is greater than the first minimum value and less than the second minimum value, calculating the nth sampling average value according to the first formula, and assigning the nth sampling voltage to the second minimum value; if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, calculating the nth sampling average value according to the second formula; if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, calculating the nth sampling average value according to the second formula; If the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, and the nth sampling voltage is assigned to the second maximum value; if the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, the first maximum value is assigned to the second maximum value, and the nth sampling voltage is assigned to the first maximum value; wherein the preset number of filters is greater than m+1, the first formula is a stage function for filtering a sampling voltage less than the second minimum value, the second formula is a stage function for filtering a sampling voltage between the second minimum value and the second maximum value, and the third formula is a stage function for filtering a sampling voltage greater than or equal to the second maximum value;

[0026] The estimation module is used to obtain the target value corresponding to the nth sampling average value when n is equal to the preset number of filters, and estimate the initial state of charge according to the target value.

[0027] Optionally, the loop filtering module is used to calculate the nth sampling average value according to the first formula, which is calculated by the following formula:

[0028] ;

[0029] in, represents the nth sample average, represents the n-1th sampling average, represents the second smallest value;

[0030] The loop filtering module is used to calculate the nth sampling average value according to the second formula, which is calculated by the following formula:

[0031] ;

[0032] in, Indicates the nth sampling voltage;

[0033] The loop filtering module is used to calculate the nth sampling average value according to the third formula, which is calculated by the following formula:

[0034] ;

[0035] in, Indicates the second largest value.

[0036] According to a third aspect of the present invention, an embodiment of the present invention further provides an initial state of charge estimation system, comprising a host and a slave, wherein the slave comprises a first memory and a first processor, the first memory stores a computer program, and the first processor implements the steps of the initial state of charge estimation method described in the above embodiment when executing the computer program; the host comprises a second memory and a second processor, the first processor and the second processor are communicatively linked, the second memory is used to store the state of charge, and the second processor sets the corresponding state of charge flag bit according to whether the state of charge storage is successful.

[0037] According to the fourth aspect of the present invention, an embodiment of the present invention also provides a storage medium, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the steps of the initial state of charge estimation method in any of the above embodiments.

[0038] As described above, an initial state of charge estimation method, device, system and medium provided by an embodiment of the present invention have the following beneficial effects: when n is equal to m+1, the sampled voltage is assigned to the first minimum value, the second minimum value, the second maximum value and the first maximum value in ascending order; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values; when n is greater than m+1 and less than the preset number of filters, the preset number of filters is greater than m+1, and the execution of cyclic filtering includes: if the nth sampled voltage is less than or equal to the first minimum value, the nth sampled average value is calculated according to the first formula, the first minimum value is assigned to the second minimum value, and the nth sampled voltage is assigned to the first minimum value; if the nth sampled voltage is greater than the first minimum value and less than the second minimum value, the nth sampled average value is calculated according to the first formula, and the nth sampled voltage is assigned to the second minimum value; if the nth sampled voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, the nth sampled average value is calculated according to the second formula; if the nth sampled voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, the nth sampled average value is calculated according to the second formula; If the nth sampling voltage is greater than the second maximum value and less than the first maximum value, the nth sampling average value is calculated according to the third formula, and the nth sampling voltage is assigned to the second maximum value; if the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, the first maximum value is assigned to the second maximum value, and the nth sampling voltage is assigned to the first maximum value; wherein the first formula is a stage function for filtering a sampling voltage less than the second minimum value, the second formula is a stage function for filtering a sampling voltage between the second minimum value and the second maximum value, and the third formula is a stage function for filtering a sampling voltage greater than or equal to the second maximum value; when n is equal to the preset number of filters, the reference state of charge of the nth sampling average value is obtained according to the preset corresponding relationship, and the initial state of charge is estimated according to the reference state of charge. The present invention removes abnormal values ​​by cyclically filtering the initial voltage, effectively ensures the accuracy of the initial state voltage information, avoids the voltage sampling error caused by interference, and thus improves the estimation accuracy of the initial state of charge. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a flow chart of an initial state of charge estimation method provided by an embodiment of the present invention;

[0040] Figure 2 It is a schematic diagram of a process of determining an initial state of charge by master-slave interaction provided by an embodiment of the present invention;

[0041] Figure 3 is a structural schematic diagram of an initial state of charge estimation device provided by an embodiment of the present invention;

[0042] Figure 4 It is a structural schematic diagram of an initial state of charge estimation system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0044] See also Figures 1 to 4 It should be noted that the illustrations provided in this embodiment are only used to illustrate the basic concept of the present invention in a schematic manner, and the illustrations only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0045] In an embodiment of the present invention, the slave is used to manage the battery system. In the specific implementation, the slave can be understood as a chip that carries the initial state of charge algorithm. When the battery system is abnormally reset or powered off, the slave further implements system initialization and executes the corresponding initial state of charge calculation steps. In order to facilitate the description of the initial state of charge estimation method provided in an embodiment of the present invention, the implementation subject of the subsequent embodiments is the slave.

[0046] See also Figure 1 , is a flow chart of an initial state of charge estimation method provided by an embodiment of the present invention, such as Figure 1 As shown, the embodiment of the present invention shows the process of the initial state of charge estimation method.

[0047] Step S101: when n is equal to m+1, assign the sampled voltages to the first minimum value, the second minimum value, the second maximum value and the first maximum value in order from small to large; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values.

[0048] The system acquisition module in the slave starts sampling the voltage and completes the data statistics. The number of sampled voltages is represented by n, the number of filtered minimum values ​​is represented by m, and the number of filtered maximum values ​​is represented by l.

[0049] In an exemplary embodiment, the data obtained from the sampled voltage is shown in the following table. A total of 10 voltage values are sampled, named V1, V2, V3 to V10 respectively. Thus, V1 represents the 1st sampled voltage, V2 represents the 2nd sampled voltage, V3 represents the 3rd sampled voltage, and so on until V10 represents the 10th sampled voltage. Similarly, for any n sampled voltages, Vn represents the nth sampled voltage. The number m of filtered minimum values represents the number of minimum values in the filtering. In the embodiment of the present invention, it can be set to 2. The first minimum value is represented by Vmin1, and the second minimum value is represented by Vmin2, where Vmin1 < Vmin2. In this way, the first minimum value Vmin1 and the second minimum value Vmin2 respectively correspond to the two smaller ones among the sampled voltages. Similarly, the number l of filtered maximum values represents the number of maximum values in the filtering. In the embodiment of the present invention, it is also set to 2. The second maximum value is represented by Vmax2, and the first maximum value is represented by Vmax1, where Vmax1 > Vmax2. In this way, the second maximum value Vmax2 and the first maximum value Vmax1 respectively correspond to the two larger ones among the sampled voltages. Of course, it should be noted that the number m of filtered minimum values and the number l of filtered maximum values can be set to any other natural numbers greater than or equal to 2, which are used to control the segmented range of the sampled voltage during the filtering process and are not limited in the embodiment of the present invention.

[0050] Specifically, the data table of the sampled voltage is shown as follows:

[0051]

[0052] Based on the above table, the 1st sampled voltage is 4.0150V. Continuing to collect the voltage, subsequently, the 2nd sampled voltage is 4.0010V, the 3rd sampled voltage is 4.0200V, and the 4th sampled voltage is 3.9870V. At this time, n is equal to m + l. Then, the four sampled voltages are further arranged in ascending order and assigned to the first minimum value Vmin1, the second minimum value Vmin2, the second maximum value Vmax2, and the first maximum value Vmax1 in sequence. As shown in the table, after the 4th sampled voltage is collected, the first minimum value Vmin1 is assigned 3.9870V, the second minimum value Vmin2 is assigned 4.0010V, the second maximum value Vmax2 is assigned 4.0150V, and the first maximum value Vmax1 is assigned 4.0200V. Each sampled voltage also corresponds to a sampled average value , when n is less than or equal to m + l, the corresponding sampled average values have not been calculated and are all 0, that is, the 1st sampled average value , the 2nd sampled average value , the 3rd sampled average value and the 4th sampled average value are all assigned the initial value 0.

[0053] Of course, it should be pointed out that the sampling voltages counted in the above table are only an exemplary embodiment, and the embodiment of the present invention does not limit the organization form of the sampling voltages.

[0054] Step S102: When n is greater than m+1 and less than a preset number of filters, perform circular filtering.

[0055] When the number n of sampled voltages is greater than m+1, loop filtering is performed. Based on the data in the above embodiment, the loop filtering process is described in detail as follows:

[0056] If the nth sampling voltage is less than or equal to the first minimum value, the nth sampling average value is calculated according to the first formula, the first minimum value is assigned to the second minimum value, and the nth sampling voltage is assigned to the first minimum value. The expression of the first formula is as follows:

[0057] ;

[0058] in, represents the nth sample average, represents the n-1th sampling average, Indicates the second smallest value.

[0059] According to the data of the above embodiment, n=5, that is, the fifth sampling voltage V5=3.9000V. Since V5 is less than the first minimum value Vmin1=3.9870, the fifth sampling average value is calculated according to the above formula, and the known data is substituted into it. =0, n=5, m=2, l=2, Vmin2=4.0010, then =Vmin2=4.0010. Further, assign the first minimum value to the second minimum value, then Vmin2=Vmin1=3.9870, assign the fifth sampling voltage to the first minimum value, then Vmin1=V5=3.9000, Vmax1 and Vmax2 remain unchanged, and finally the data corresponding to the fifth sampling voltage is obtained (the fifth row of data in the above table).

[0060] When n=6, the sixth sampling voltage V6=4.3500V, at which point V6 is greater than the first maximum value Vmax1=4.0200, and the following conditions are met: If the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, the first maximum value is assigned to the second maximum value, and the nth sampling voltage is assigned to the first maximum value. The expression of the third formula is as follows:

[0061] ;

[0062] Specifically, substitute the known conditions into the above formula to calculate the sixth sampling average value: , =4.0010, n=6, m=2, l=2, Vmax2=4.0150, thus we get =4.008. Further, the first maximum value is assigned to the second maximum value, Vmax2=Vmax1=4.0200, and the nth sampling voltage is assigned to the first maximum value, Vmax1=V6=4.3500, Vmin1 and Vmin2 remain unchanged, and finally the data corresponding to the 6th sampling voltage is obtained (the 6th row of data in the above table).

[0063] When n=7, the 7th sampling voltage V7=3.9820V. At this time, V7 is greater than the first minimum value and less than the second minimum value, and the following conditions are met: if the nth sampling voltage is greater than the first minimum value and less than the second minimum value, the nth sampling average value is calculated according to the first formula, and the nth sampling voltage is assigned to the second minimum value. The expression of the first formula can be found in the above description and will not be repeated again.

[0064] Specifically, substitute the known conditions into the first formula to calculate the 7th sampling average value: , =4.008, n=7, m=2, l=2, Vmin2=3.9870, thus we get =4.001. Further, the nth sampling voltage is assigned to the second minimum value, Vmin2=V7=3.9820, Vmin1, Vmax1 and Vmax2 remain unchanged, and finally the data corresponding to the 7th sampling voltage is obtained (the 7th row of data in the above table).

[0065] When n=8, the 8th sampling voltage V8=3.9900V. At this time, V8 is greater than the second minimum value and less than the second maximum value, and the following conditions are met: if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, the nth sampling average value is calculated according to the second formula, and the expression of the third formula is as follows:

[0066] ;

[0067] Specifically, substitute the known conditions into the above formula to calculate the 8th sampling average value: , =4.001, n=8, m=2, l=2, V8=3.9900, thus we get =3.9983, Vmin1, Vmin2, Vmax1 and Vmax2 remain unchanged, and finally the data corresponding to the 8th sampling voltage is obtained (the 8th row of data in the above table).

[0068] Similarly, if the nth sampling point smoke is greater than the second maximum value and less than the first maximum value, the nth sampling average value is calculated according to the third formula, and the nth sampling voltage is assigned to the second maximum value, which will not be repeated here.

[0069] In this way, the sampling voltage obtained for each sampling can be limited to a corresponding range, and the sampling average value can be calculated according to the corresponding formula. The first formula in the above embodiment is a stage function for filtering the sampling voltage less than the second minimum value, the second formula is a stage function for filtering the sampling voltage between the second minimum value and the second maximum value, and the third formula is a stage function for filtering the sampling voltage greater than or equal to the second maximum value.

[0070] In addition, in an embodiment of the present invention, the preset number of filters is used as the end condition of the loop filtering. When the number of sampled voltages n is less than or equal to the preset number of filters, the loop filtering is performed to obtain the data corresponding to each sampled voltage. The preset number of filters is a natural number greater than m+l.

[0071] It can be seen from the description of the above embodiments that the corresponding sampling average value can be obtained after n is greater than m+l, and there is no need to calculate the average value after all data are collected (when n is very large, the data occupies a large space), that is, the calculation of the sampling average value is updated in real time. In this way, on the one hand, the calculation accuracy of the sampling average value can be flexibly controlled by presetting the number of filters, and on the other hand, the sampling average value can be obtained with a small amount of data, which effectively improves the calculation efficiency and greatly saves memory space.

[0072] Step S103: when n is equal to the preset number of filters, a reference state of charge of the nth sampling average value is obtained according to a preset corresponding relationship, and an initial state of charge is estimated according to the reference state of charge.

[0073] In an exemplary embodiment, the preset number of filters is set to 10, and the cyclic filtering stops after the 10th sample voltage is sampled. Similarly, according to the data listed in the above table, the data corresponding to the 10th sample voltage (the data in the 10th row of the above table) is finally obtained, and the 10th sample average value is =3.9967. The reference state of charge can be obtained by querying the OCV-SOC (open circuit voltage-state of charge) correspondence table. The OCV-SOC correspondence table can be obtained through pre-testing, and the specific acquisition method is not repeated in this embodiment.

[0074] In the present invention, the host is usually configured with a processor and a memory, and the memory may be an eeprom (English: Electrically Erasable Programmable read only memory, Chinese: Electrically Erasable Programmable Read Only Memory), so the SOC will be non-volatilely saved on the host. The host side is configured with a charge state flag Flag_SaveSOC, which is used to identify whether the host has successfully stored the charge state. When Flag_SaveSOC is 1, it means that the SOC has been non-volatilely saved and the saved data can be trusted; but when Flag_SaveSOC is 0, it means that the SOC has not been non-volatilely saved.

[0075] Based on the above description, see Figure 2 , is a schematic diagram of a process of determining an initial state of charge by master-slave interaction provided by an embodiment of the present invention. As shown in the figure, the method determines the initial state of charge through information interaction between the master and the slave, and the process is as follows:

[0076] Step S1031: when communication with the host fails, taking the reference state of charge as the initial state of charge.

[0077] After the reference state of charge is obtained through the above embodiment, the slave device further communicates with the master device. When the communication fails, the reference state of charge is used as the initial state of charge.

[0078] Step S1032: When the communication with the host is successful and the acquired state of charge flag is 0, the reference state of charge is used as the initial state of charge:.

[0079] When the slave device communicates successfully with the host device and obtains the state of charge flag Flag_SaveSOC as 0 through signaling interaction, it indicates that there is no non-volatile saved SOC on the host side, and the reference state of charge is used as the initial state of charge.

[0080] Step S1033: When communication with the host is successful and the acquired state of charge flag is 1, the state of charge stored in the host is used as the initial state of charge.

[0081] When the slave communicates successfully with the host and the state of charge flag Flag_SaveSOC is 1 obtained through signaling interaction, it indicates that the host side has saved the last SOC when abnormal power failure, reset, etc. occur. If the saved data is trusted, the state of charge stored in the host is used as the initial state of charge.

[0082] It can be seen from the description of the above embodiments that an initial state of charge estimation method provided by an embodiment of the present invention is by assigning the sampled voltages to a first minimum value, a second minimum value, a second maximum value and a first maximum value in ascending order when n is equal to m+l; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values; when n is greater than m+l and less than a preset number of filters, the preset number of filters is greater than m+l, and performing cyclic filtering includes: if the nth sampled voltage is less than or equal to the first minimum value, calculating the nth sampled average value according to the first formula, assigning the first minimum value to the second minimum value, and assigning the nth sampled voltage to the first minimum value; if the nth sampled voltage is greater than the first minimum value and less than the second minimum value, calculating the nth sampled average value according to the first formula, and assigning the nth sampled voltage to the second minimum value; if the nth sampled voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, calculating the nth sampled average value according to the second formula; if the nth sampled voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, calculating the nth sampled average value according to the second formula; If the nth sampling voltage is greater than the second maximum value and less than the first maximum value, the nth sampling average value is calculated according to the third formula, and the nth sampling voltage is assigned to the second maximum value; if the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, the first maximum value is assigned to the second maximum value, and the nth sampling voltage is assigned to the first maximum value; wherein the first formula is a stage function for filtering a sampling voltage less than the second minimum value, the second formula is a stage function for filtering a sampling voltage between the second minimum value and the second maximum value, and the third formula is a stage function for filtering a sampling voltage greater than or equal to the second maximum value; when n is equal to the preset number of filters, the reference state of charge of the nth sampling average value is obtained according to the preset corresponding relationship, and the initial state of charge is estimated according to the reference state of charge. The present invention removes abnormal values ​​by cyclic filtering the initial voltage, effectively ensures the accuracy of the initial state voltage information, avoids the voltage sampling error caused by interference, and thereby improves the estimation accuracy of the initial state of charge. Moreover, the cyclic filtering method provided by the present invention uses a small amount of data, effectively improves the filtering efficiency, and saves memory resources.

[0083] Through the description of the above method embodiments, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk.

[0084] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the initial state of charge estimation method in any of the above method embodiments.

[0085] Corresponding to the embodiment of the battery health state estimation method provided by the present invention, the present invention also provides an initial charge state estimation device.

[0086] See also Figure 3 , is a schematic diagram of the structure of an initial state of charge estimation device provided by an embodiment of the present invention. As shown in the figure, the device includes:

[0087] The recording module 11 is used to assign the sampled voltages to the first minimum value, the second minimum value, the second maximum value and the first maximum value in order from small to large when n is equal to m+l; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values.

[0088] The loop filtering module 12 is used to perform loop filtering when n is greater than m+1 and less than a preset number of filters, including: if the nth sampling voltage is less than or equal to the first minimum value, the nth sampling average value is calculated according to the first formula, the first minimum value is assigned to the second minimum value, and the nth sampling voltage is assigned to the first minimum value; if the nth sampling voltage is greater than the first minimum value and less than the second minimum value, the nth sampling average value is calculated according to the first formula, and the nth sampling voltage is assigned to the second minimum value; if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, the nth sampling average value is calculated according to the second formula; if the nth sampling voltage If the nth sampling voltage is greater than the second maximum value and less than the first maximum value, the nth sampling average value is calculated according to the third formula, and the nth sampling voltage is assigned to the second maximum value; if the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, the first maximum value is assigned to the second maximum value, and the nth sampling voltage is assigned to the first maximum value; wherein the preset number of filters is greater than m+l, the first formula is a stage function for filtering a sampling voltage less than the second minimum value, the second formula is a stage function for filtering a sampling voltage between the second minimum value and the second maximum value, and the third formula is a stage function for filtering a sampling voltage greater than or equal to the second maximum value.

[0089] The estimation module 13 is used to obtain a target value corresponding to the nth sampling average value when n is equal to a preset filtering number, and estimate the initial state of charge according to the target value.

[0090] Optionally, the loop filtering module 12 is used to calculate the nth sampling average value according to the first formula, which is calculated by the following formula:

[0091] ;

[0092] in, represents the nth sample average, represents the n-1th sampling average, represents the second smallest value;

[0093] The loop filtering module 12 is used to calculate the nth sampling average value according to the second formula, which is calculated by the following formula:

[0094] ;

[0095] in, Indicates the nth sampling voltage;

[0096] The loop filtering module 12 is used to calculate the nth sampling average value according to the third formula, which is calculated by the following formula:

[0097] ;

[0098] in, Indicates the second largest value.

[0099] Optionally, the estimation module 13 is also used to use the reference state of charge as the initial state of charge when communication with the host fails; when communication with the host is successful and the acquired state of charge flag is 0, use the reference state of charge as the initial state of charge; when communication with the host is successful and the acquired state of charge flag is 1, use the state of charge stored in the host as the initial state of charge.

[0100] Figure 4 is a schematic diagram of the structure of an initial state of charge estimation system provided by an embodiment of the present invention, such as Figure 4 As shown, the system includes a host 5 and a slave 4, wherein the slave 4 includes a first memory 420 and a first processor 410, wherein the first memory 410 stores a computer program, and the first processor 410 implements the steps of the initial state of charge estimation method of the above embodiment when executing the computer program; the host 5 includes a second memory 520 and a second processor 510, the first processor 410 and the second processor 510 are in communication link, the second memory 520 is used to store the state of charge, and the second processor 510 sets the corresponding state of charge flag bit according to whether the state of charge storage is successful. Of course, in the embodiment of the present invention, the second memory 520 is a non-volatile memory, so as to ensure that the data can be saved after power failure.

[0101] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0102] The electronic device of the embodiment of the present invention exists in various forms, including but not limited to:

[0103] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0104] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0105] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0106] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0107] (5) Other electronic devices with data interaction functions.

[0108] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0109] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0110] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0111] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for estimating an initial state of charge, characterized in that: include: When n is equal to m+1, the sampled voltages are assigned to the first minimum value, the second minimum value, the second maximum value and the first maximum value in order from small to large; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values; When n is greater than m+1 and less than the preset number of filters, a circular filtering is performed, including: if the nth sampling voltage is less than or equal to the first minimum value, the nth sampling average value is calculated according to the first formula, the first minimum value is assigned to the second minimum value, and the nth sampling voltage is assigned to the first minimum value; if the nth sampling voltage is greater than the first minimum value and less than the second minimum value, the nth sampling average value is calculated according to the first formula, and the nth sampling voltage is assigned to the second minimum value; if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, the nth sampling average value is calculated according to the second formula; if the nth sampling voltage is greater than the second maximum value and less than the first maximum value, the nth sampling average value is calculated according to the third formula, and the nth sampling voltage is assigned to the second maximum value; if the nth sampling voltage is greater than or equal to the first maximum value, the nth sampling average value is calculated according to the third formula, and the first maximum value is assigned to the second maximum value, and the nth sampling voltage is assigned to the first maximum value; wherein the preset number of filters is greater than m+1; The first formula is a phase function for filtering the sampled voltage less than the second minimum value, and the formula is as follows: , The second formula is a phase function for filtering the sampled voltage between the second minimum value and the second maximum value, and the formula is as follows: , The third formula is a phase function for filtering the sampled voltage that is greater than or equal to the second maximum value, and the formula is as follows: , in, represents the nth sample average, represents the n-1th sampling average, represents the second minimum value, represents the nth sampling voltage, represents the second maximum value; When n is equal to the preset number of filters, a reference state of charge of the nth sampling average value is obtained according to a pre-tested open circuit voltage state of charge correspondence table. When a reliable state of charge cannot be obtained, the reference state of charge is used as the initial state of charge. The reliable state of charge is a state of charge pre-stored in the host.

2. The method for estimating the initial state of charge according to claim 1, characterized in that: Also includes: When communication with the host is successful and the acquired state of charge flag is 1, the state of charge stored in the host is used as the initial state of charge; The using the reference state of charge as the initial state of charge when the stored state of charge cannot be obtained includes: when communication with the host fails, using the reference state of charge as the initial state of charge; when communication with the host is successful and the acquired state of charge flag is 0, using the reference state of charge as the initial state of charge; The state of charge flag is an identifier of whether the host has successfully stored the state of charge.

3. An initial state of charge estimation device, characterized in that: include: A recording module, used for assigning the sampled voltages to a first minimum value, a second minimum value, a second maximum value and a first maximum value in ascending order when n is equal to m+l; wherein n is the number of sampled voltages, m is the number of filtered minimum values, and l is the number of filtered maximum values; A loop filtering module, for when n is greater than m+1 and less than a preset filtering number, performing loop filtering includes: if the nth sampling voltage is less than or equal to the first minimum value, calculating the nth sampling average value according to the first formula, assigning the first minimum value to the second minimum value, and assigning the nth sampling voltage to the first minimum value; if the nth sampling voltage is greater than the first minimum value and less than the second minimum value, calculating the nth sampling average value according to the first formula, and assigning the nth sampling voltage to the second minimum value; if the nth sampling voltage is greater than or equal to the second minimum value and less than or equal to the second maximum value, calculating the nth sampling average value according to the second formula; if the nth sampling voltage is greater than the second maximum value and less than the first maximum value, calculating the nth sampling average value according to the third formula, and assigning the nth sampling voltage to the second maximum value; if the nth sampling voltage is greater than or equal to the first maximum value, calculating the nth sampling average value according to the third formula, assigning the first maximum value to the second maximum value, and assigning the nth sampling voltage to the first maximum value; wherein the preset filtering number is greater than m+1; The first formula is a phase function for filtering the sampled voltage less than the second minimum value, and the formula is as follows: , The second formula is a phase function for filtering the sampled voltage between the second minimum value and the second maximum value, and the formula is as follows: , The third formula is a phase function formula for filtering the sampling voltage greater than or equal to the second maximum value as follows: , in, represents the nth sample average, represents the n-1th sampling average, represents the second minimum value, represents the nth sampling voltage, represents the second maximum value; An estimation module is used to obtain a reference state of charge of the nth sampling average value according to a pre-tested open circuit voltage state of charge correspondence table when n is equal to a preset number of filters, and to use the reference state of charge as an initial state of charge when a reliable state of charge cannot be obtained. The reliable state of charge is a state of charge pre-stored in the host.

4. The initial state of charge estimation device according to claim 3, characterized in that: The estimation module is also used to: When communication with the host is successful and the acquired state of charge flag is 1, the state of charge stored in the host is used as the initial state of charge; The using the reference state of charge as the initial state of charge when a reliable state of charge cannot be obtained includes: using the reference state of charge as the initial state of charge when communication with the host fails; using the reference state of charge as the initial state of charge when communication with the host succeeds and the acquired state of charge flag is 0; The state of charge flag is an identifier of whether the host has successfully stored the state of charge.

5. An initial state of charge estimation system, characterized in that: It includes a host and a slave, wherein the slave includes a first memory and a first processor, the first memory stores a computer program, and the first processor implements the steps of the initial state of charge estimation method as described in claim 1 or 2 when executing the computer program; the host includes a second memory and a second processor, the first processor and the second processor are communicatively linked, the second memory is used to store the state of charge, and the second processor sets the corresponding state of charge flag bit according to whether the state of charge storage is successful.

6. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the steps of the initial state of charge estimation method as described in claim 1 or 2.

Citation Information

Patent Citations

  • Algorithm for evaluating battery core capacity distribution interval of battery system

    CN110888064A

  • Weighing signal switching filtering processing method for electronic balance

    CN112329585A

  • Method and device for determining measurement precision of state of charge of battery, and electronic equipment

    CN113466722A

  • Filtering algorithm for battery cell sampling

    CN117805624A

  • Filter circuit

    JP1999163681A