Battery detection method, device storage medium and electronic device
By obtaining the target voltage data of multiple cells of the battery, determining the voltage deviation value and threshold, and detecting whether the voltage sampling line is abnormal, the problem of low accuracy in battery voltage acquisition abnormality detection in the existing technology is solved, and the battery quality of new energy vehicles is improved. Manage system security.
Patent Information
- Application Number
- CN202211559674.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-12-06
AI Technical Summary
Existing battery voltage acquisition anomaly detection methods have low accuracy and are easily affected by occasional abnormal voltage data and cause misjudgments, resulting in battery overcharge or overdischarge, which may lead to new energy vehicle safety accidents.
By obtaining the target voltage data of multiple cells of the battery, the voltage deviation value and threshold are determined, and whether the voltage sampling line is abnormal is detected to avoid misjudgment of accidental data.
It improves the accuracy of battery voltage sampling line abnormality detection, reduces misjudgments, enhances the reliability of the battery management system, and reduces the risk of safety accidents.
Smart Images

Figure CN115840153B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of battery technology, and in particular to a battery detection method, a device storage medium and an electronic device. Background Art
[0002] The battery management system of new energy vehicles needs to determine the working state and control strategy based on the voltage value of each battery cell in the battery, so the battery cell voltage value has a direct impact on the determination of the control strategy. If the battery cell voltage sampling line is abnormal, the collected voltage value will be inaccurate, which will lead to overcharging or overdischarging of the battery, resulting in a safety accident of the vehicle.
[0003] In the related art, the detection method of battery voltage acquisition abnormality mainly determines whether the battery voltage sampling line is abnormal by collecting the battery voltage in real time to see whether it meets the preset fault conditions under the corresponding working state. However, judging whether the battery voltage sampling line is abnormal based on the preset fault conditions is easily affected by occasional voltage abnormality data and misjudged, and the accuracy is low. Summary of the invention
[0004] The purpose of the present disclosure is to provide a battery detection method, a device storage medium and an electronic device to solve the problem of low accuracy of the detection method of abnormal battery voltage acquisition in the related art.
[0005] In order to achieve the above object, the first aspect of the present disclosure provides a battery detection method, the method comprising:
[0006] Acquire target voltage data of multiple battery cells of a battery, wherein the target voltage data of the multiple battery cells are target voltage values of the multiple battery cells at multiple moments;
[0007] Determining target voltage deviation values corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells;
[0008] Determine an upper voltage deviation threshold and a lower voltage deviation threshold of the battery according to target voltage deviation values corresponding to the plurality of battery cells;
[0009] According to the target voltage deviation values corresponding to the multiple battery cells, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold of the battery, it is detected whether the voltage sampling line of the battery is abnormal, and the voltage sampling line is used to collect the battery cell voltage.
[0010] Optionally, determining the target voltage deviation values corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells includes:
[0011] Determine, for each moment of the target voltage data of the plurality of battery cells, a median value of the target voltage data of the plurality of battery cells;
[0012] Determine the difference between the target voltage data of the plurality of battery cells and the median value, and use the difference corresponding to each of the plurality of battery cells as the target voltage deviation value corresponding to each of the plurality of battery cells.
[0013] Optionally, determining the target voltage deviation values corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells includes:
[0014] For the target voltage data of the multiple battery cells at each moment, determine a median value of the target voltage data of the multiple battery cells, and determine a difference between the target voltage data of the multiple battery cells and the median value;
[0015] For each battery cell, multiple moments of the battery cell are divided into a preset number of time periods, and the sum of the differences corresponding to each time period of the battery cell is determined as the target voltage deviation value corresponding to the battery cell.
[0016] Optionally, the target voltage deviation values corresponding to the plurality of battery cells, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold of the battery include:
[0017] For each battery cell, determining a target upper threshold value and a target lower threshold value of the battery cell according to a target voltage deviation value corresponding to the battery cell;
[0018] An upper voltage deviation threshold and a lower voltage deviation threshold of the battery are determined according to the target upper thresholds and the target lower thresholds of the plurality of battery cells.
[0019] Optionally, the detecting whether the voltage sampling line of the battery is abnormal according to the target voltage deviation values corresponding to the multiple battery cells, the voltage deviation upper limit threshold value and the voltage deviation lower limit threshold value of the battery includes:
[0020] determining, among the plurality of battery cells, a first target battery cell that satisfies a first abnormal condition;
[0021] For each of the first target cells, determining whether there is a second target cell that meets a second abnormal condition in the adjacent cells of the first target cell, and if so, determining that an abnormality occurs in a voltage sampling line between the first target cell and the second target cell;
[0022] Among them, the first abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold, and the second abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, or, the first abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, and the second abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold.
[0023] Optionally, for each of the first target cells, determining whether there is a second target cell in an adjacent cell of the first target cell that satisfies a second abnormal condition, and if so, determining that an abnormality occurs in a voltage sampling line between the first target cell and the second target cell, comprises:
[0024] For each of the first target battery cells, determine whether there is a second target battery cell that meets the second abnormal condition in the adjacent battery cells of the first target battery cell; if so, determine the voltage sampling line between the first target battery cell and the second target battery cell as the target voltage sampling line, and count the number of times that the first target battery cell meets the first abnormal condition and the second target battery cell meets the second abnormal condition;
[0025] If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration during which the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is less than or equal to the first preset duration, it is determined that an abnormality has occurred in the target voltage sampling line, and the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the first time is taken as the moment when the abnormality has occurred in the target voltage sampling line.
[0026] Optionally, the method further comprises:
[0027] If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is greater than the first preset duration, then the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition is recorded; and / or
[0028] If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition does not reach the preset number of times within a second preset time period, the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition is initialized.
[0029] A second aspect of the present disclosure further provides a battery detection device, the device comprising:
[0030] An acquisition module, used for acquiring target voltage data of a plurality of battery cells of a battery, wherein the target voltage data of the plurality of battery cells are target voltage values of the plurality of battery cells at a plurality of moments;
[0031] a deviation determination module, configured to determine a target voltage deviation value corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells;
[0032] A threshold determination module, used to determine a voltage deviation upper limit threshold and a voltage deviation lower limit threshold of the battery according to target voltage deviation values corresponding to the plurality of battery cells;
[0033] The detection module is used to detect whether there is an abnormality in the voltage sampling line of the battery according to the target voltage deviation values corresponding to the multiple battery cells, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold of the battery, and the voltage sampling line is used to collect the battery cell voltage.
[0034] The third aspect of the present disclosure further provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect above.
[0035] A fourth aspect of the present disclosure further provides an electronic device, comprising:
[0036] a memory having a computer program stored thereon;
[0037] A processor is used to execute the computer program in the memory to implement the steps of any one of the methods described in the first aspect above.
[0038] Through the above technical solution, at least the following technical effects can be achieved:
[0039] The voltage deviation value is determined by acquiring the voltage data of multiple cells of the battery, and then the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are determined according to the voltage deviation value, and the voltage deviation value, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are used to detect whether the voltage sampling line of the battery is abnormal. In the present disclosure, since the target voltage values of multiple cells of the battery at multiple times are acquired, and the voltage deviation value and the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are determined to detect whether the voltage sampling line of the battery is abnormal, it is possible to avoid misjudgment caused by occasional voltage abnormal data, and improve the accuracy of detecting whether the voltage sampling line of the battery is abnormal.
[0040] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0042] Figure 1is a flowchart of a battery detection method provided by an embodiment of the present disclosure;
[0043] Figure 2 It is a schematic diagram of multiple cells and voltage sampling lines in a battery;
[0044] Figure 3 is a block diagram of a battery detection device provided by an embodiment of the present disclosure;
[0045] Figure 4 It is a schematic diagram of an electronic device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0047] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0048] It should be understood that the various steps described in the method implementation of the present disclosure may be performed in different orders and / or in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect. The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the description below.
[0049] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0050] There are many reasons for new energy vehicle accidents, which may be sudden accidents of power batteries or the result of gradual accumulation of risks. Among them, the abnormal voltage sampling line of the power battery system single cell is one of the causes of safety accidents. Any accident problem will be reflected at the data level, that is, accidents of new energy vehicles usually have certain pattern characteristics. The high frequency of such characteristics means that the vehicle has a higher accident risk. Therefore, it is particularly important to find and identify these accident characteristics to prevent power battery safety accidents.
[0051] In the related art, the method for detecting abnormal voltage acquisition of a battery collects the single cell voltage of any single cell in the power-on self-test state, discharge state and charge state in real time, and detects whether the battery voltage meets the preset fault conditions under the corresponding working state to determine whether the voltage sampling line of the battery is abnormal. However, this method requires the acquisition module to collect the battery single cell voltage in real time, which is difficult to implement and inefficient, and the calculation amount is large by calculating the data of the single cell voltage in the power-on self-test state, discharge state and charge state. In addition, judging whether the voltage sampling line of the battery is abnormal based on the preset fault conditions is easily affected by occasional voltage abnormality data and misjudged, and the accuracy is low.
[0052] In view of this, the present disclosure provides a battery detection method, device, storage medium and electronic device to solve the above technical problems.
[0053] It is worth noting that the voltage data involved in the embodiments of the present disclosure is obtained based on the voltage data collected by the voltage sampling line of the battery. There is no need to set up an additional collection module to collect the voltage of the battery. It is easy to implement and does not require additional costs.
[0054] The technical solution of the present disclosure is described in detail below with reference to embodiments.
[0055] The present disclosure provides a battery detection method, referring to Figure 1 , the method comprising:
[0056] S101 . Obtain target voltage data of a plurality of battery cells.
[0057] The target voltage data of the multiple battery cells are target voltage values of the multiple battery cells at multiple moments.
[0058] S102 . Determine target voltage deviation values corresponding to the multiple battery cells according to target voltage data of the multiple battery cells.
[0059] S103 . Determine a voltage deviation upper limit threshold and a voltage deviation lower limit threshold of the battery according to target voltage deviation values corresponding to the plurality of battery cells.
[0060] S104 , detecting whether a voltage sampling line of the battery is abnormal according to target voltage deviation values corresponding to the plurality of battery cells, an upper voltage deviation threshold value and a lower voltage deviation threshold value of the battery.
[0061] Among them, the voltage sampling line is used to collect the battery cell voltage.
[0062] By adopting the above method, the voltage deviation value is determined by acquiring the voltage data of multiple cells of the battery, and then the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are determined according to the voltage deviation value, and the voltage deviation value, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are used to detect whether the voltage sampling line of the battery is abnormal. Compared with the related art that directly uses voltage data to determine whether the voltage sampling line of the battery is abnormal, in the present disclosure, since the target voltage values of multiple cells of the battery at multiple times are acquired, and the voltage deviation value and the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are determined to detect whether the voltage sampling line of the battery is abnormal, it is possible to avoid misjudgment caused by occasional voltage abnormality data, and improve the accuracy of detecting whether the voltage sampling line of the battery is abnormal.
[0063] In order to enable those skilled in the art to better understand the battery detection method provided by the present disclosure, the above steps are described in detail below with examples.
[0064] In a possible manner, the acquired voltage data of a plurality of battery cells of the battery are processed to obtain target voltage data.
[0065] For example, the voltage data obtained includes the collection time, the charge and discharge status of the battery, and the voltage. First, delete abnormal data, such as null values or invalid data (for example, the normal collection time is 00:00:00-23:59:59, if 24:12:23 appears, it is invalid data). Since the operating voltage of a normal battery cell is 2V to 4.35V, and data other than 1V to 6V usually appears after a data transmission error or frame loss, delete data with a voltage greater than 6V and less than 1V. Furthermore, after deleting the voltage data, extract the voltage data of the charging state to obtain the target voltage data including the acquisition time and voltage.
[0066] It is worth noting that in the related art, it is necessary to calculate the single cell voltage in the power-on self-test state, the discharge state and the charge state, which requires a lot of calculation. In the embodiment of the present disclosure, the voltage data in the charge state is selected as the target voltage data, which not only reduces the amount of calculation, but also the voltage data in the charge state is not easily affected by other factors. For example, when the vehicle is driving, the battery is in a discharge state, and it is easy to be affected by the driving mode and the voltage data fluctuates greatly. Therefore, the voltage data in the charge state is selected as the target voltage data to avoid interference from other factors and better reflect whether there is an abnormality in the voltage sampling line.
[0067] In a possible manner, determining the target voltage deviation values corresponding to each of the multiple battery cells based on the target voltage data of the multiple battery cells can be: for the target voltage data of the multiple battery cells at each moment, determining the median of the target voltage data of the multiple battery cells, determining the difference between the target voltage data of the multiple battery cells and the median, and using the difference corresponding to each of the multiple battery cells as the target voltage deviation value corresponding to each of the multiple battery cells.
[0068] For example, the target voltage data can be a matrix data with N columns and T rows, where N represents N cells and T represents the collection time (usually voltage data is collected once every 10 seconds). First, for each row, the median (also called the median) of the target voltage data of the N cells is determined, and then the target voltage data of the N cells is subtracted from the median to obtain the target voltage deviation value of N columns and T rows. Each data in the target voltage data is a voltage V ij , i represents the i-th column (battery cell), j represents the j-th row (collection time), and each data in the target voltage deviation value is (V ij -V j ), V j represents the median voltage of the jth row.
[0069] It should be noted that for each row, the average value of the target voltage data of N cells can also be determined, and then the target voltage data of N cells can be subtracted from the average value to obtain the target voltage deviation value of N columns and T rows. However, considering that the median voltage can reflect the probability distribution of voltage data, and the median data is not affected by extreme value data, it can better reflect the distribution of cell voltage. Therefore, in the present disclosure, the deviation data is extracted according to the median, and the relationship between the deviation data and the abnormality of the voltage sampling line is analyzed.
[0070] In a possible manner, the target voltage deviation values corresponding to each of the multiple cells can be determined according to the target voltage data of the multiple cells: first, for the target voltage data of the multiple cells at each moment, the median of the target voltage data of the multiple cells is determined, and the difference between the target voltage data of the multiple cells and the median is determined. Then, for each cell, the multiple moments of the cell are divided into a preset number of time periods, and the sum of the differences corresponding to each time period of the cell is determined as the target voltage deviation value corresponding to the cell.
[0071] For example, each of the difference data corresponding to the plurality of cells is (V ij -V j ), V ij represents the voltage of the i-th column (cell) at the j-th row (at the time of collection), V jRepresents the median voltage of the jth row. Then for each battery cell, it is divided into a preset number of time periods according to multiple moments of the battery cell, for example, 1000 rows of data are divided into 500 time periods, and each time period contains 20 rows of data. Alternatively, a preset number of moments can also be divided into a time period, for example, every 25 rows of data as a time period, and so on, which is not limited in the present disclosure. Finally, for each battery cell, the sum of the differences in each time period is used as the target voltage deviation value corresponding to the battery cell, that is, the voltage data of N columns and T rows is changed into the voltage deviation value of N columns and a preset number (or T / preset number) rows, thereby smoothing the voltage deviation value and removing noise data.
[0072] In a possible manner, based on the target voltage deviation values corresponding to each of the multiple battery cells, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold of the battery can be: for each battery cell, the target upper limit threshold and the target lower limit threshold of the battery cell are determined according to the target voltage deviation value corresponding to the battery cell, and then the voltage deviation upper limit threshold and the voltage deviation lower limit threshold of the battery are determined according to the target upper limit thresholds and the target lower limit thresholds of the multiple battery cells.
[0073] For example, for each battery cell, determine the 98th quantile and the 2nd quantile of its voltage deviation value. That is, for the voltage deviation value of each battery cell, arrange them in order from small to large, take the (L×98%)th voltage deviation value as the 98th quantile, and L represents the total number of voltage deviation values of the battery cell. If (L×98%) is not an integer, such as 98.11, then take the average of the 98th voltage deviation value and the 99th voltage deviation value as the 98th quantile. The calculation method of the 2nd quantile can refer to the calculation method of the 98th quantile, and finally obtain the target upper threshold (98th quantile) and target lower threshold (2nd quantile) for each battery cell.
[0074] Furthermore, after obtaining the target upper threshold value (98th percentile) and target lower threshold value (2nd percentile) of each battery cell, the target upper threshold values of all battery cells are arranged in ascending order, and the 98th percentile is calculated as the upper threshold value of the battery voltage deviation. And the target lower threshold values of all battery cells are arranged in ascending order, and the 2nd percentile is calculated as the lower threshold value of the battery voltage deviation.
[0075] It is worth noting that the above 98th quantile and 2nd quantile are used as exemplary illustrations for calculating the upper and lower limit thresholds. In practical applications, they can be adjusted according to needs. For example, the 95th quantile and 5th quantile, the 90th quantile and 10th quantile, etc. can be calculated. The present disclosure does not limit this.
[0076] In a possible manner, according to the target voltage deviation values corresponding to each of the multiple battery cells, the voltage deviation upper threshold value and the voltage deviation lower threshold value of the battery, it is detected whether the voltage sampling line of the battery is abnormal, including: firstly determining the first target battery cell that meets the first abnormal condition among the multiple battery cells, and then for each first target battery cell, determining whether there is a second target battery cell that meets the second abnormal condition in the adjacent battery cell of the first target battery cell, and if so, determining that the voltage sampling line between the first target battery cell and the second target battery cell is abnormal. Among them, the first abnormal condition is that the target voltage deviation value is less than the voltage deviation lower threshold value, and the second abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper threshold value, or the first abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper threshold value, and the second abnormal condition is that the target voltage deviation value is less than the voltage deviation lower threshold value.
[0077] For example, refer to Figure 2 The battery is composed of multiple single cells connected in series, and adjacent cells share a sampling line. The voltage acquisition is based on the negative pole as the reference point, and the potential difference (voltage) is obtained by subtracting them in sequence. If the voltage sampling line is loose, it will cause one of the voltages of the adjacent cells to be higher and the other to be lower. For example, if the voltage sampling line 2 is abnormal, it will cause one of V1 (the voltage of cell 1) and V2 (the voltage of cell 2) to be higher and the other to be lower. Therefore, it is possible to first determine the first target cell whose voltage deviation value is less than the voltage deviation lower limit threshold, and then determine whether there is a second target cell whose voltage deviation value is greater than the voltage deviation upper limit threshold among the adjacent cells of the first target cell. If so, it is determined that the voltage sampling line between the first target cell and the second target cell is abnormal. It is also possible to first determine the first target cell whose voltage deviation value is greater than the voltage deviation upper limit threshold, and then determine whether there is a second target cell whose voltage deviation value is less than the voltage deviation lower limit threshold among the adjacent cells of the first target cell. If so, it is determined that the voltage sampling line between the first target cell and the second target cell is abnormal.
[0078] It should be noted that in the above process of calculating the voltage deviation upper threshold, the voltage deviation lower threshold and judging the voltage sampling line abnormality, each voltage deviation value in the target voltage deviation value can be the difference between a target voltage data and a median value, or the sum of the differences between multiple target voltage data and the median values. Preferably, the sum of the differences between multiple target voltage data and the median values is used as the target voltage deviation value, which can not only smooth the voltage deviation value, but also reduce the amount of calculation and improve the detection efficiency.
[0079] In a possible manner, for each first target cell, determining whether there is a second target cell that satisfies the second abnormal condition in the adjacent cells of the first target cell, and if so, determining that the voltage sampling line between the first target cell and the second target cell is abnormal can be: for each first target cell, determining whether there is a second target cell that satisfies the second abnormal condition in the adjacent cells of the first target cell, and if so, determining the voltage sampling line between the first target cell and the second target cell as the target voltage sampling line, and counting the number of times the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition. If the number of times the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition reaches a preset number of times, and the duration of the first target cell satisfying the first abnormal condition and the second target cell satisfying the second abnormal condition for the preset number of times is less than or equal to the first preset duration, it is determined that the target voltage sampling line is abnormal, and the moment when the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition for the first time is taken as the moment when the target voltage sampling line is abnormal.
[0080] For example, refer to Figure 2 , if battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition, the voltage sampling line 2 is determined as the target voltage sampling line. Then, when the number of times that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition reaches the preset number of times, it is determined whether the duration that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition for the preset number of times is less than or equal to the first preset duration. If so, it is determined that the voltage sampling line 2 is abnormal. Further avoid misjudgment due to occasional voltage abnormality data, and improve the accuracy of detecting whether the voltage sampling line of the battery is abnormal. Among them, the preset number of times and the first preset duration can be determined according to needs, for example, the preset number of times is 3 times, the first preset duration is 15 hours, and so on, and the present disclosure does not limit this.
[0081] Furthermore, after determining that the voltage sampling line 2 is abnormal, the numbers of the battery cells 1 and 2 in the battery and the time when the voltage sampling line 2 first becomes abnormal can be output, thereby reminding the vehicle user or maintenance personnel that the voltage sampling line is abnormal, and then conducting inspections and repairs to avoid safety accidents caused by abnormal voltage sampling lines. Of course, if the voltage sampling line also has a unique identification number, and the number of the voltage sampling line can be determined based on the first target battery cell and the second target battery cell, the number of the voltage sampling line can also be directly output, and the present disclosure does not limit this.
[0082] In a possible manner, if the number of times that the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition reaches a preset number of times, and the duration of the preset number of times that the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition is greater than the first preset duration, then the moment when the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition is recorded. And if the number of times that the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition does not reach the preset number of times within the second preset duration, then the number of times that the first target cell satisfies the first abnormal condition and the second target cell satisfies the second abnormal condition is initialized.
[0083] For example, following the above example, if the preset number of times that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition is greater than the first preset time, usually in this case, it may be that the voltage collected by the battery cell has an occasional abnormality, so it cannot be determined that the voltage sampling line 2 has an abnormality, but it cannot be ruled out that the voltage sampling line 2 has an abnormality. Therefore, the moment when battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition can be recorded, and the number of times that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition can continue to be counted. In other words, if within the next preset time after this moment, the number of times that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition reaches the preset number, then this moment is regarded as the moment when the voltage sampling line 2 has an abnormality, and so on.
[0084] For example, if the number of times that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition does not reach the preset number within the second preset time, usually in this case, the voltage collected by the battery cell has an occasional abnormality, so the number of times that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition can be initialized, that is, the next time that battery cell 1 meets the first abnormal condition and battery cell 2 meets the second abnormal condition, voltage sampling line 2 is determined as the target voltage sampling line and then the number of times is continued to be counted. Among them, the second preset time is longer than the first preset time, and can be determined according to demand, such as three days, which is not limited in the present disclosure. This further avoids misjudgment due to occasional voltage abnormal data and improves the accuracy of detecting whether the voltage sampling line of the battery is abnormal.
[0085] By adopting the above method, by selecting the voltage data of the charging state as the target voltage data, not only the amount of calculation is reduced, but also the voltage data of the charging state is not easily interfered by other factors. The voltage deviation value is determined by the voltage data of multiple cells of the battery and the median voltage, and then the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are determined to detect whether the voltage sampling line of the battery is abnormal, so as to avoid misjudgment due to occasional voltage abnormal data and improve the accuracy of detection. In addition, by counting the number of times the first target cell meets the first abnormal condition and the second target cell meets the second abnormal condition, misjudgment due to occasional voltage abnormal data is further avoided, and the accuracy of detection is improved.
[0086] Based on the same inventive concept, the present disclosure provides a battery detection device, referring to Figure 3 , the device 300 comprises:
[0087] The acquisition module 301 is used to acquire target voltage data of a plurality of battery cells of a battery, wherein the target voltage data of the plurality of battery cells are target voltage values of the plurality of battery cells at a plurality of moments.
[0088] The deviation determination module 302 is configured to determine the target voltage deviation values corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells.
[0089] The threshold determination module 303 is used to determine the voltage deviation upper limit threshold and the voltage deviation lower limit threshold of the battery according to the target voltage deviation values corresponding to the multiple battery cells.
[0090] The detection module 304 is used to detect whether the voltage sampling line of the battery is abnormal according to the target voltage deviation values corresponding to the multiple battery cells, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold of the battery, and the voltage sampling line is used to collect the battery cell voltage.
[0091] By adopting the above device, the voltage deviation value is determined by acquiring the voltage data of multiple cells of the battery, and then the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are determined according to the voltage deviation value, and the voltage deviation value, the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are used to detect whether the voltage sampling line of the battery is abnormal. In the present disclosure, since the target voltage values of multiple cells of the battery at multiple times are acquired, and the voltage deviation value and the voltage deviation upper limit threshold and the voltage deviation lower limit threshold are determined to detect whether the voltage sampling line of the battery is abnormal, it is possible to avoid misjudgment caused by occasional voltage abnormal data, and improve the accuracy of detecting whether the voltage sampling line of the battery is abnormal.
[0092] Optionally, the deviation determination module 302 is used to:
[0093] Determine, for each moment of the target voltage data of the plurality of battery cells, a median value of the target voltage data of the plurality of battery cells;
[0094] Determine the difference between the target voltage data of the plurality of battery cells and the median value, and use the difference corresponding to each of the plurality of battery cells as the target voltage deviation value corresponding to each of the plurality of battery cells.
[0095] Optionally, the deviation determination module 302 is used to:
[0096] For the target voltage data of the multiple battery cells at each moment, determine a median value of the target voltage data of the multiple battery cells, and determine a difference between the target voltage data of the multiple battery cells and the median value;
[0097] For each battery cell, multiple moments of the battery cell are divided into a preset number of time periods, and the sum of the differences corresponding to each time period of the battery cell is determined as the target voltage deviation value corresponding to the battery cell.
[0098] Optionally, the threshold determination module 303 is used to:
[0099] For each battery cell, determining a target upper threshold value and a target lower threshold value of the battery cell according to a target voltage deviation value corresponding to the battery cell;
[0100] An upper voltage deviation threshold and a lower voltage deviation threshold of the battery are determined according to the target upper thresholds and the target lower thresholds of the plurality of battery cells.
[0101] Optionally, the detection module 304 is used to:
[0102] determining, among the plurality of battery cells, a first target battery cell that satisfies a first abnormal condition;
[0103] For each of the first target cells, determining whether there is a second target cell that meets a second abnormal condition in the adjacent cells of the first target cell, and if so, determining that an abnormality occurs in a voltage sampling line between the first target cell and the second target cell;
[0104] Among them, the first abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold, and the second abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, or, the first abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, and the second abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold.
[0105] Optionally, the detection module 304 is further configured to:
[0106] For each of the first target battery cells, determine whether there is a second target battery cell that meets the second abnormal condition in the adjacent battery cells of the first target battery cell; if so, determine the voltage sampling line between the first target battery cell and the second target battery cell as the target voltage sampling line, and count the number of times that the first target battery cell meets the first abnormal condition and the second target battery cell meets the second abnormal condition;
[0107] If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration during which the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is less than or equal to the first preset duration, it is determined that an abnormality has occurred in the target voltage sampling line, and the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the first time is taken as the moment when the abnormality has occurred in the target voltage sampling line.
[0108] Optionally, the device 300 further includes:
[0109] A recording module, configured to record the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition if the number of times the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration for which the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is greater than the first preset duration;
[0110] An initialization module is used to initialize the number of times the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition if the number of times the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition does not reach the preset number of times within a second preset time period.
[0111] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0112] Based on the same inventive concept, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the battery detection method are implemented.
[0113] Based on the same inventive concept, the present disclosure also provides an electronic device, including:
[0114] a memory having a computer program stored thereon;
[0115] The processor is used to execute the computer program in the memory to implement the steps of the above-mentioned battery detection method.
[0116] Figure 4 is a block diagram of an electronic device 400 according to an exemplary embodiment. Figure 4 The electronic device 400 includes a processor 422, which may be one or more, and a memory 432 for storing a computer program executable by the processor 422. The computer program stored in the memory 432 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 422 may be configured to execute the computer program to perform the above-mentioned battery detection method.
[0117] In addition, the electronic device 400 may further include a power supply component 426 and a communication component 450. The power supply component 426 may be configured to perform power management of the electronic device 400, and the communication component 450 may be configured to implement communication of the electronic device 400, for example, wired or wireless communication. In addition, the electronic device 400 may further include an input / output (I / O) interface 458. The electronic device 400 may operate based on an operating system stored in the memory 432, such as Windows Server 2008. TM , Mac OSX TM , Unix TM , Linux TM etc.
[0118] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by the processor, the steps of the above-mentioned battery detection method are implemented. For example, the non-temporary computer-readable storage medium can be the above-mentioned memory 432 including program instructions, and the above-mentioned program instructions can be executed by the processor 422 of the electronic device 400 to complete the above-mentioned battery detection method.
[0119] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above-mentioned battery detection method when executed by the programmable device.
[0120] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0121] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0122] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A battery detection method, characterized in that: The method comprises: Acquire target voltage data of multiple battery cells of a battery, wherein the target voltage data of the multiple battery cells are target voltage values of the multiple battery cells at multiple moments; Determining target voltage deviation values corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells; Determine a voltage deviation upper limit threshold and a voltage deviation lower limit threshold of the battery according to target voltage deviation values corresponding to the plurality of battery cells; According to the target voltage deviation values corresponding to the multiple battery cells, the voltage deviation upper limit threshold value and the voltage deviation lower limit threshold value of the battery, detecting whether a voltage sampling line of the battery is abnormal, wherein the voltage sampling line is used to collect the battery cell voltage; The detecting whether the voltage sampling line of the battery is abnormal according to the target voltage deviation values corresponding to the multiple battery cells, the voltage deviation upper limit threshold value and the voltage deviation lower limit threshold value of the battery comprises: determining, among the plurality of battery cells, a first target battery cell that satisfies a first abnormal condition; For each of the first target battery cells, determine whether there is a second target battery cell that meets the second abnormal condition in the adjacent battery cells of the first target battery cell; if so, determine the voltage sampling line between the first target battery cell and the second target battery cell as the target voltage sampling line, and count the number of times that the first target battery cell meets the first abnormal condition and the second target battery cell meets the second abnormal condition; If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is less than or equal to a first preset duration, it is determined that an abnormality occurs on the target voltage sampling line, and the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the first time is taken as the moment when the abnormality occurs on the target voltage sampling line; The first abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold, and the second abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, or the first abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, and the second abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold; The method further comprises: If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is greater than the first preset duration, then the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition is recorded; If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition does not reach the preset number of times within the second preset time period, then initializing the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition; The determining the target voltage deviation values corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells comprises: Determine, for each moment of the target voltage data of the plurality of battery cells, a median value of the target voltage data of the plurality of battery cells; Determine the difference between the target voltage data of the plurality of battery cells and the median value, and use the difference corresponding to each of the plurality of battery cells as the target voltage deviation value corresponding to each of the plurality of battery cells; The target voltage data is voltage data of the battery in a charging state.
2. The method according to claim 1, characterized in that The determining the target voltage deviation values corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells comprises: For the target voltage data of the multiple battery cells at each moment, determine a median value of the target voltage data of the multiple battery cells, and determine a difference between the target voltage data of the multiple battery cells and the median value; For each battery cell, multiple moments of the battery cell are divided into a preset number of time periods, and the sum of the differences corresponding to each time period of the battery cell is determined as the target voltage deviation value corresponding to the battery cell.
3. The method according to claim 1, characterized in that: The method according to the target voltage deviation values corresponding to the plurality of battery cells, the voltage deviation upper limit threshold value and the voltage deviation lower limit threshold value of the battery comprises: For each battery cell, determining a target upper threshold value and a target lower threshold value of the battery cell according to a target voltage deviation value corresponding to the battery cell; An upper voltage deviation threshold and a lower voltage deviation threshold of the battery are determined according to the target upper thresholds and the target lower thresholds of the plurality of battery cells.
4. A battery detection device, characterized in that: The device comprises: An acquisition module, used for acquiring target voltage data of a plurality of battery cells of a battery, wherein the target voltage data of the plurality of battery cells are target voltage values of the plurality of battery cells at a plurality of moments; a deviation determination module, configured to determine a target voltage deviation value corresponding to each of the plurality of battery cells according to the target voltage data of the plurality of battery cells; A threshold determination module, used to determine a voltage deviation upper limit threshold and a voltage deviation lower limit threshold of the battery according to target voltage deviation values corresponding to the plurality of battery cells; A detection module, used to detect whether a voltage sampling line of the battery is abnormal according to target voltage deviation values corresponding to each of the plurality of battery cells, an upper voltage deviation threshold value and a lower voltage deviation threshold value of the battery, wherein the voltage sampling line is used to collect the battery cell voltage; The detecting whether the voltage sampling line of the battery is abnormal according to the target voltage deviation values corresponding to the multiple battery cells, the voltage deviation upper limit threshold value and the voltage deviation lower limit threshold value of the battery comprises: determining, among the plurality of battery cells, a first target battery cell that satisfies a first abnormal condition; For each of the first target battery cells, determine whether there is a second target battery cell that meets the second abnormal condition in the adjacent battery cells of the first target battery cell; if so, determine the voltage sampling line between the first target battery cell and the second target battery cell as the target voltage sampling line, and count the number of times that the first target battery cell meets the first abnormal condition and the second target battery cell meets the second abnormal condition; If the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is less than or equal to a first preset duration, it is determined that an abnormality occurs on the target voltage sampling line, and the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the first time is taken as the moment when the abnormality occurs on the target voltage sampling line; The first abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold, and the second abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, or the first abnormal condition is that the target voltage deviation value is greater than the voltage deviation upper limit threshold, and the second abnormal condition is that the target voltage deviation value is less than the voltage deviation lower limit threshold; The device also includes: A recording module, configured to record the moment when the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition if the number of times the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition reaches a preset number of times, and the duration for which the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition for the preset number of times is greater than the first preset duration; an initialization module, configured to initialize the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition if the number of times that the first target battery cell satisfies the first abnormal condition and the second target battery cell satisfies the second abnormal condition does not reach the preset number of times within a second preset time period; The deviation determination module is used to: Determine, for each moment of the target voltage data of the plurality of battery cells, a median value of the target voltage data of the plurality of battery cells; Determine the difference between the target voltage data of the plurality of battery cells and the median value, and use the difference corresponding to each of the plurality of battery cells as the target voltage deviation value corresponding to each of the plurality of battery cells; The target voltage data is voltage data of the battery in a charging state.
5. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 3 are implemented.
6. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Battery SOC correction method and device, computer equipment and storage medium
CN113917348A
Method and device for determining abnormity of voltage of single battery
CN113928122A
New energy automobile battery sampling abnormity fault identification method
CN114415054A
Battery management system, voltage and temperature detection method thereof and electronic device
CN114895187A
Method for judging voltage deviation of battery cell
CN114966434A
