Battery self-discharge detection method and detection device

By acquiring battery data and configuring cumulative static parameters, real-time automatic detection of battery self-discharge is achieved, solving the problem of low detection efficiency in existing technologies, improving detection efficiency and reducing safety hazards.

CN120142949BActive Publication Date: 2026-03-17CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-13
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing technologies for battery self-discharge detection are inefficient and lack real-time performance, making it impossible to detect electric vehicle battery packs in real time, resulting in wasted detection resources and safety hazards.

Method used

By acquiring battery data acquisition time, battery state of charge, and battery voltage list, configuring cumulative static parameters, using historical battery charge range parameters to determine the battery self-discharge alarm level, and performing real-time automatic detection under specific conditions.

Benefits of technology

It enables real-time automatic detection of battery self-discharge, improving detection efficiency, reducing waste of detection resources, and lowering safety hazards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120142949B_ABST
    Figure CN120142949B_ABST
Patent Text Reader

Abstract

The application relates to the battery technical field and provides a battery self-discharge detection method and a detection device. The method obtains battery data, determines that the cumulative battery storage parameter is empty and the historical battery charge interval parameter is not empty, configures the cumulative static parameter by using the first target battery charge interval parameter corresponding to the historical battery charge interval parameter, determines that the number of key-value pairs in the cumulative static parameter is greater than or equal to a preset static time threshold, determines the battery self-discharge alarm level based on the cumulative static parameter, determines that the battery voltage has a sudden change based on the cumulative battery storage parameter and the cumulative static parameter, and determines that the battery self-discharge alarm condition is met based on each key-value pair in the cumulative static parameter, and the battery self-discharge detection result is determined as needing alarm, so that the real-time automatic detection of the battery self-discharge is realized, and the detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery technology, and in particular to a method and device for detecting battery self-discharge. Background Technology

[0002] Self-discharge is the phenomenon where the stored electrical energy of a battery is spontaneously consumed when the battery is in an open-circuit state; it is also known as the battery's charge retention capacity.

[0003] In electric vehicles, power modules are typically formed by connecting individual battery cells in series or parallel. Each cell within the module needs to maintain good self-discharge consistency to ensure the safety and performance of the electric vehicle. Therefore, self-discharge testing of the batteries in the power module is necessary. Summary of the Invention

[0004] In view of this, embodiments of this application provide a battery self-discharge detection method and detection device to solve the problems of low battery self-discharge detection efficiency and poor real-time performance in the prior art.

[0005] A first aspect of this application provides a battery self-discharge detection method, comprising:

[0006] In response to determining that the battery is powered on, battery data is acquired, including at least the battery data acquisition time, battery state of charge, and a list of battery voltages.

[0007] In response to determining that the accumulated battery storage parameters are empty and the historical battery charge interval parameters are not empty, the first target battery charge interval parameters corresponding to the historical battery charge interval parameters are written into the accumulated static parameters. The accumulated static parameters include a preset static number threshold and at least one key-value pair. The key of the key-value pair is the battery data acquisition time, and the value is the voltage difference. The voltage difference is the difference between the maximum voltage and the minimum voltage in the battery voltage list in the battery data corresponding to the battery data acquisition time. The historical battery charge interval parameters include the charge interval of the battery during the last static period.

[0008] In response to determining that the number of key-value pairs in the cumulative static parameters is greater than or equal to a preset static number threshold, the battery self-discharge alarm level is determined based on the voltage difference in the cumulative static parameters corresponding to the battery data acquisition time of the battery data.

[0009] In response to determining the battery self-discharge alarm level and indicating an alarm, and based on the accumulated battery storage parameters and accumulated rest parameters, determining that a sudden change in battery voltage has occurred, and based on each key-value pair in the accumulated rest parameters, determining that the battery self-discharge alarm conditions are met, the battery self-discharge detection result is determined to be an alarm that needs to be triggered.

[0010] A second aspect of this application provides a battery self-discharge detection device, comprising:

[0011] The acquisition module is configured to acquire battery data in response to determining that the battery is powered on. The battery data includes at least the battery data acquisition time, battery state of charge, and a list of battery voltages.

[0012] The write module is configured to, in response to determining that the accumulated battery storage parameters are empty and the historical battery charge interval parameters are not empty, write the first target battery charge interval parameters corresponding to the historical battery charge interval parameters into the accumulated static parameters. The accumulated static parameters include a preset static number threshold and at least one key-value pair. The key of the key-value pair is the battery data acquisition time, and the value is the voltage difference. The voltage difference is the difference between the maximum voltage and the minimum voltage in the battery voltage list in the battery data corresponding to the battery data acquisition time. The historical battery charge interval parameters include the charge interval of the battery during the last static period.

[0013] The determination module is configured to determine the battery self-discharge alarm level based on the voltage difference between the cumulative static parameters and the battery data acquisition time corresponding to the battery data in response to the determination that the number of key-value pairs in the cumulative static parameters is greater than or equal to a preset static number threshold.

[0014] The detection module is configured to respond to determining the battery self-discharge alarm level and indicating an alarm, and to determine that a sudden change in battery voltage has occurred based on accumulated battery storage parameters and accumulated resting parameters, and to determine that the battery self-discharge alarm conditions are met based on each key-value pair in the accumulated resting parameters, and to determine that the battery self-discharge detection result requires an alarm.

[0015] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment acquires battery data including battery data acquisition time, battery state of charge, and battery voltage list. When it is determined that the cumulative battery storage parameter is empty and the historical battery charge interval parameter is not empty, the cumulative resting parameter is configured using the first target battery charge interval parameter corresponding to the historical battery charge interval parameter. When it is determined that the number of key-value pairs in the cumulative resting parameter is greater than or equal to the preset resting number threshold, the battery self-discharge alarm level is determined based on the cumulative resting parameter, and an alarm is indicated when the battery self-discharge alarm level is determined. Furthermore, based on the cumulative battery storage parameter and the cumulative resting parameter, it is determined that the battery voltage has changed abruptly. Based on each key-value pair in the cumulative resting parameter, it is determined that the battery self-discharge alarm condition is met, and the battery self-discharge detection result is determined to be alarm-required. This realizes real-time automatic detection of battery self-discharge and improves detection efficiency. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic flowchart of a battery self-discharge detection method provided in an embodiment of this application.

[0018] Figure 2 This is a flowchart illustrating a method for determining the battery self-discharge alarm level based on the voltage difference between the battery data acquisition time and the accumulated static parameters and the first battery data, as provided in an embodiment of this application.

[0019] Figure 3 This is a flowchart illustrating a method for determining a sudden change in battery voltage based on accumulated battery storage parameters and accumulated static parameters, as provided in an embodiment of this application.

[0020] Figure 4 This is a flowchart illustrating the method for determining the battery self-discharge alarm conditions based on key-value pairs in the accumulated static parameters provided in this application.

[0021] Figure 5 This is a schematic flowchart of another battery self-discharge detection method provided in the embodiments of this application.

[0022] Figure 6 This is a schematic flowchart of another battery self-discharge detection method provided in the embodiments of this application.

[0023] Figure 7 This is a flowchart illustrating the method for generating monitoring messages provided in an embodiment of this application.

[0024] Figure 8 This is a schematic flowchart of another battery self-discharge detection method provided in the embodiments of this application.

[0025] Figure 9 This is a schematic flowchart of another battery self-discharge detection method provided in the embodiments of this application.

[0026] Figure 10 This is a flowchart illustrating a sub-process provided in an embodiment of this application.

[0027] Figure 11 This is a schematic diagram of a battery self-discharge detection device provided in an embodiment of this application.

[0028] Figure 12 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0029] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0030] A battery self-discharge detection method and apparatus according to embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0031] As mentioned above, self-discharge is the phenomenon where the stored electrical energy of a battery is spontaneously consumed when the battery is in an open-circuit state. It is also known as the battery's charge retention capacity, that is, the ability of a battery to retain its stored electrical energy under certain environmental conditions. Self-discharge can be divided into physical self-discharge and chemical self-discharge according to the different reaction types. The self-discharge process inside a battery is very complex, and both types of self-discharge may occur simultaneously.

[0032] In electric vehicles, power modules are typically formed by connecting individual battery cells in series and parallel. Each cell within the module needs to maintain good self-discharge consistency; otherwise, issues such as overcharging and discharging of individual cells, different battery degradation rates, and temperature differences between cells will occur, leading to decreased battery pack performance, shortened lifespan, and increased safety hazards. Severe self-discharge can even cause thermal runaway, resulting in safety issues for parked electric vehicles. Therefore, self-discharge testing of the batteries in the power module is necessary.

[0033] In related technologies, battery self-discharge detection methods typically include capacity testing, open-circuit voltage testing, and current testing. These methods all require disassembling the battery pack from the vehicle, then measuring it using experimental instruments, and require a certain amount of testing time. In other words, battery self-discharge detection methods in these technologies require significant testing space and manpower resources, and cannot perform real-time testing of the vehicle battery pack.

[0034] In view of this, this application provides a battery self-discharge detection method. By acquiring battery data including battery data acquisition time, battery state of charge, and battery voltage list, when it is determined that the cumulative battery storage parameter is empty and the historical battery charge interval parameter is not empty, the cumulative resting parameter is configured using the first target battery charge interval parameter corresponding to the historical battery charge interval parameter. When it is determined that the number of key-value pairs in the cumulative resting parameter is greater than or equal to a preset resting number threshold, the battery self-discharge alarm level is determined based on the cumulative resting parameter, and an alarm is indicated when the battery self-discharge alarm level is determined. Furthermore, based on the cumulative battery storage parameter and the cumulative resting parameter, it is determined that the battery voltage has changed abruptly, and based on each key-value pair in the cumulative resting parameter, it is determined that the battery self-discharge alarm condition is met. The battery self-discharge detection result is determined to be alarm-required, realizing real-time automatic detection of battery self-discharge and improving detection efficiency.

[0035] Figure 1 This is a schematic flowchart of a battery self-discharge detection method provided in an embodiment of this application. Figure 1 As shown, the method includes the following steps:

[0036] In step S101, in response to determining that the battery is powered on, battery data is acquired.

[0037] The battery data includes at least the battery data acquisition time, battery state of charge, and a list of battery voltages.

[0038] In step S102, in response to determining that the accumulated battery storage parameters are empty and the historical battery charge interval parameters are not empty, the first target battery charge interval parameters corresponding to the historical battery charge interval parameters are written into the accumulated static parameters.

[0039] The cumulative static parameters include a preset static number threshold and at least one key-value pair. The key of the key-value pair is the battery data acquisition time, and the value is the voltage difference. The voltage difference is the difference between the maximum and minimum voltages in the battery voltage list in the battery data corresponding to the battery data acquisition time. The historical battery charge range parameters include the charge range of the battery during its last static period.

[0040] In step S103, in response to determining that the number of key-value pairs in the cumulative static parameters is greater than or equal to a preset static number threshold, the battery self-discharge alarm level is determined based on the voltage difference in the cumulative static parameters corresponding to the battery data acquisition time of the battery data.

[0041] In step S104, in response to determining the battery self-discharge alarm level to indicate an alarm, and determining that a sudden change in battery voltage has occurred based on accumulated battery storage parameters and accumulated static parameters, and determining that the battery self-discharge alarm conditions are met based on each key-value pair in the accumulated static parameters, the battery self-discharge detection result is determined to be an alarm required.

[0042] In some embodiments of this application, the method can be executed by a server or by a terminal device with certain computing capabilities. The server or terminal device executing the method can communicate with the system containing the battery to obtain battery data. In one example, the battery can be a vehicle battery; in this case, the server or terminal device can communicate with the vehicle to obtain the battery data reported by the vehicle and send alarm information to the vehicle when an alarm is detected that the battery requires an alarm.

[0043] In some embodiments of this application, battery data can be acquired when the battery is determined to be powered on. The battery state can include a powered-on state and a quiescent state (i.e., a powered-off state). Embodiments of this application detect the self-discharge of the battery in the quiescent state.

[0044] The battery data may include the battery data acquisition time, battery state of charge, and battery voltage list.

[0045] In some embodiments of this application, detection parameters can be set to assist in battery self-discharge detection. In one example, the detection parameters may include accumulated battery storage parameters, historical battery charge range parameters, battery charge range parameters, and accumulated resting parameters.

[0046] The cumulative battery storage parameters can include N parameters, where N is a positive integer. Each parameter stores the cumulative battery storage parameters corresponding to a battery charge interval, such as the average voltage difference of the battery within a preset time interval, the minimum voltage difference of the battery within a preset time interval, whether a sudden change occurs, the number of times the battery is left idle within the preset time interval, and the preset time interval identifier. The preset time interval can be set according to actual needs, such as one day.

[0047] In some implementations, the battery charge intervals can be set according to actual needs, with the intersection of all battery charge intervals being 0, and the minimum value in each battery charge interval being 0 and the maximum value being 100. For example, if N battery charge intervals are set, parameters such as the average voltage difference of the battery in each battery charge interval within a preset time interval, the minimum voltage difference of the battery in the preset time interval, whether a sudden change occurs, the number of rest periods within the preset time interval, and the preset time interval identifier can be stored in a cumulative battery storage parameter.

[0048] The historical battery charge range parameter can be the charge range of the battery during its last resting period. The cumulative resting parameter can include a preset resting number threshold and at least one key-value pair. The key of the key-value pair is the battery data acquisition time, and the value is the voltage difference. Specifically, the voltage difference is the difference between the maximum and minimum voltages in the battery voltage list corresponding to the battery data acquisition time.

[0049] In some embodiments, after acquiring battery data, it can be determined whether the accumulated battery storage parameter is empty. If so, it can be further determined whether the historical battery charge interval parameter is empty. If the historical battery charge interval parameter is not empty, the first target battery charge interval parameter corresponding to the historical battery charge interval parameter can be written into the accumulated static parameter.

[0050] In some embodiments of this application, it can be determined whether the number of key-value pairs in the accumulated static parameters is greater than or equal to a preset static number threshold. If so, the battery self-discharge alarm level is determined based on the voltage difference in the accumulated static parameters corresponding to the battery data acquisition time. The determined battery self-discharge alarm level may include one no-alarm level and k alarm levels, where k is a positive integer.

[0051] If the determined battery self-discharge alarm level is an indication alarm level, it can be determined whether the battery voltage has changed abruptly based on the accumulated battery storage parameters and accumulated static parameters. If so, it can be further determined whether the battery self-discharge alarm conditions are met based on each key-value pair in the accumulated static parameters. If the battery self-discharge alarm conditions are met, the battery self-discharge detection result can be determined to be an alarm required.

[0052] The methods for determining the battery self-discharge alarm level, the method for determining whether the battery voltage has changed abruptly, and the method for determining whether the battery self-discharge alarm conditions are met will be described in detail later and will not be repeated here.

[0053] According to the technical solution provided in the embodiments of this application, by acquiring battery data including battery data acquisition time, battery state of charge, and battery voltage list, when it is determined that the cumulative battery storage parameter is empty and the historical battery charge interval parameter is not empty, the cumulative resting parameter is configured using the first target battery charge interval parameter corresponding to the historical battery charge interval parameter. When it is determined that the number of key-value pairs in the cumulative resting parameter is greater than or equal to a preset resting number threshold, the battery self-discharge alarm level is determined based on the cumulative resting parameter, and an alarm is indicated when the battery self-discharge alarm level is determined. Furthermore, based on the cumulative battery storage parameter and the cumulative resting parameter, it is determined that the battery voltage has changed abruptly. Based on each key-value pair in the cumulative resting parameter, it is determined that the battery self-discharge alarm condition is met, and the battery self-discharge detection result is determined to be an alarm required. This achieves real-time automatic detection of battery self-discharge and improves detection efficiency.

[0054] Figure 2 This is a flowchart illustrating a method for determining the battery self-discharge alarm level based on the voltage difference between the accumulated static parameters and the battery data acquisition time of the first battery, as provided in an embodiment of this application. Figure 2 As shown, the method includes the following steps:

[0055] In step S201, the alarm level threshold is obtained.

[0056] In step S202, the battery self-discharge alarm level is determined based on the numerical relationship between the voltage difference corresponding to the battery data acquisition time of the first battery data in the accumulated static parameters and the alarm level threshold.

[0057] In some embodiments of this application, when determining the battery self-discharge alarm level, an alarm level threshold can be obtained. The alarm level threshold may include at least one value, and each value corresponds to a threshold for a different alarm level.

[0058] The self-discharge alarm level of the battery can be determined based on the numerical relationship between the voltage difference corresponding to the battery data acquisition time of the first battery in the accumulated static parameters and the alarm level threshold. That is, for a voltage difference that meets the threshold condition of the target alarm level, its battery self-discharge alarm level and the target alarm level can be determined.

[0059] For example, k alarm level thresholds can be set, from W1 to W... k If the voltage difference between the accumulated static parameters and the battery data acquisition time of the first battery is less than W1, the battery self-discharge alarm level can be determined to be level 0, corresponding to no alarm level. If the voltage difference between the accumulated static parameters and the battery data acquisition time of the first battery is greater than or equal to W1 and less than W2, the battery self-discharge alarm level can be determined to be level 1, corresponding to the first alarm level. And so on, if the voltage difference between the accumulated static parameters and the battery data acquisition time of the first battery is greater than or equal to W1, the battery self-discharge alarm level can be determined to be level 1, corresponding to the first alarm level. k-1 And less than W k If so, the battery self-discharge alarm level can be determined to be level 1, which corresponds to the (k-1)th alarm level.

[0060] This method allows us to first determine whether the voltage difference in the battery data reaches the alarm level, and then combine it with other detection factors to determine whether the battery as a whole needs to be alarmed, thus improving detection accuracy.

[0061] Figure 3 This is a flowchart illustrating a method for determining a sudden change in battery voltage based on accumulated battery storage parameters and accumulated resting parameters, as provided in an embodiment of this application. Figure 3 As shown, the method includes the following steps:

[0062] In step S301, in response to determining the battery self-discharge alarm level indication alarm, the target cumulative battery storage parameters are determined based on the battery state of charge.

[0063] In step S302, in response to the determination that the difference between the voltage difference corresponding to the battery data acquisition time in the cumulative static parameters and the voltage difference of the target cumulative battery storage parameters is greater than a preset difference threshold, it is determined that a sudden change in battery voltage has occurred.

[0064] The voltage difference of the target historical battery charge interval parameter is either the average voltage difference of the battery within a preset time interval or the minimum voltage difference of the battery within a preset time interval.

[0065] In some embodiments of this application, after determining that a battery self-discharge alarm level has been triggered, it can be further determined whether a sudden change in battery voltage has occurred. At this point, target cumulative battery storage parameters can be determined based on the battery's state of charge. In one example, it can be determined whether the difference between the voltage difference corresponding to the battery data acquisition time in the cumulative resting parameters and the voltage difference in the target cumulative battery storage parameters is greater than a preset difference threshold.

[0066] For example, one can obtain the voltage difference voltdiff corresponding to the battery data acquisition time in the accumulated static parameters, and target the average voltage difference voltdiff of the accumulated battery storage parameters. avr Or the minimum voltage difference voltdiff min If voltdiff and voltdiff are determined avr The absolute value of the difference is greater than the preset difference threshold, or the voltdiff and voltdiff min If the absolute value of the difference is greater than the preset difference threshold, it can be determined that a sudden change has occurred in the battery voltage.

[0067] Figure 3 The illustrated embodiment may also include the following steps:

[0068] In step S303, the target cumulative battery storage parameters are updated based on the battery voltage list in the battery data and the result of whether the battery voltage has changed abruptly.

[0069] In other words, after determining that a sudden change in battery voltage has occurred, the target cumulative battery storage parameters can be updated based on the battery voltage list in the battery data and the result of the judgment on whether a sudden change in battery voltage has occurred. For example, the average voltage difference and the minimum voltage difference of the battery within a preset time interval can be calculated based on the battery voltage list, and the corresponding values ​​in the target cumulative battery storage parameters can be updated using the obtained new values. In addition, the value of whether a sudden change has occurred in the target cumulative battery storage parameters can be set to true after determining that a sudden change in battery voltage has occurred, and the value of whether a sudden change has occurred in the target cumulative battery storage parameters can be set to false after determining that no sudden change in battery voltage has occurred.

[0070] This method determines whether a sudden change in battery voltage has occurred by comparing the voltage difference in battery data with the average or minimum voltage difference within a preset time interval. It can effectively capture sudden changes in battery voltage and provides data support for further determining whether the battery needs an alarm by combining the fitted curve.

[0071] Figure 4 This is a flowchart illustrating a method for determining battery self-discharge alarm conditions based on key-value pairs in accumulated static parameters, as provided in an embodiment of this application. Figure 4 As shown, the method includes the following steps:

[0072] In step S401, a fitting curve is constructed based on each key value pair in the accumulated static parameters.

[0073] In step S402, in response to determining that the slope of the fitted curve is greater than a preset slope threshold, it is determined that the battery self-discharge alarm condition is met.

[0074] In some embodiments of this application, a fitted curve can be used to determine whether the battery self-discharge alarm condition is met. In one example, a fitted curve can be constructed based on each key-value pair in the accumulated static parameters, and then the slope of the fitted curve can be obtained. The slope of the determined fitted curve is compared with a preset slope threshold; if the slope of the fitted curve is greater than the preset slope threshold, then the battery self-discharge alarm condition is determined to be met.

[0075] The fitting curve can be constructed based on each key value pair in the accumulated static parameters by using the voltage difference in each key value pair as the abscissa and the battery data acquisition time as the ordinate to determine the fitting point; and then determining the fitting curve based on the fitting point.

[0076] On the other hand, the slope of the fitted curve can be determined as follows: the battery data acquisition time and voltage difference of each key pair are accumulated to obtain the first accumulated value; the squares of the voltage differences of each key pair are accumulated to obtain the second accumulated value; the quotient of the first accumulated value and the second accumulated value is determined as the slope of the fitted curve.

[0077] In one example, if the cumulative resting parameters include n key-value pairs, where the battery data acquisition time for the t-th key-value pair is y. t The voltage difference of the t-th key-value pair is x. t Then the determined fitted curve can be: y t =E+Fx t Where E is the intercept of the fitted curve, F is the slope of the fitted curve, n is a positive integer, and t is a positive integer less than or equal to n.

[0078] E and F can be determined in the following ways:

[0079] This approach combines the battery self-discharge alarm level, whether the battery voltage has changed abruptly, and the fitted curve to comprehensively determine whether the battery test results require an alarm, thus improving the detection accuracy and stability.

[0080] In some embodiments of this application, the detection parameters may further include a preset alarm count accumulation parameter. This preset alarm count accumulation parameter may include multiple parameters, each corresponding to an alarm level.

[0081] Figure 5 This is a schematic flowchart of another battery self-discharge detection method provided in an embodiment of this application. Wherein, Figure 5 Steps S501 to S504 in the illustrated embodiment are Figure 1 Steps S101 to S104 in the illustrated embodiment are basically the same and will not be repeated here. Figure 5 As shown, the method also includes the following steps:

[0082] In step S505, in response to determining that the battery self-discharge alarm level indicator does not alarm, or in response to determining that the battery voltage has not changed abruptly, or in response to determining that the battery self-discharge alarm condition is not met based on each key value pair in the accumulated static parameters, the preset alarm count accumulation parameter is cleared to zero.

[0083] In step S506, the target cumulative battery storage parameters are determined based on the battery state of charge, and the target cumulative battery storage parameters are updated based on the battery voltage list in the battery data.

[0084] In step S507, it is determined that the battery self-discharge detection result is not required to trigger an alarm.

[0085] In some embodiments of this application, if it is determined that the battery self-discharge alarm level indicator does not trigger an alarm, or that the battery voltage has not changed abruptly, or that the battery self-discharge alarm conditions are not met based on the key-value pairs in the accumulated static parameters, the preset alarm count accumulation parameter can be cleared to zero. Alternatively, the target accumulated battery storage parameter can be determined based on the battery state of charge, and updated based on the battery voltage list in the battery data. In this case, it can be determined that the battery self-discharge detection result is that no alarm is required.

[0086] The process of updating the target cumulative battery storage parameters based on the battery voltage list in the battery data can be achieved by setting an intermediate variable *r*, determining the target cumulative battery storage parameters based on the battery state of charge in the battery data, and writing these parameters into the variable *r*. Under the conditions that the battery self-discharge alarm level indicator does not trigger an alarm, or that the battery voltage does not change abruptly, or that the battery self-discharge alarm conditions are not met based on the key-value pairs in the cumulative static parameters, the updated average voltage difference, minimum voltage difference, and other parameter values ​​are calculated based on the values ​​in the variable *r* and the values ​​in the battery voltage list of the battery data. These calculated values ​​are then used to update the target cumulative battery storage parameters.

[0087] Figure 6 This is a schematic flowchart of another battery self-discharge detection method provided in the embodiments of this application. Wherein, Figure 6 Step S601 in the illustrated embodiment Figure 1 Step S101 in the illustrated embodiment is basically the same. Figure 6 Steps S605 to S606 in the illustrated embodiment are Figure 1 Steps S103 to S104 in the illustrated embodiment are basically the same and will not be repeated here. Figure 6 As shown, the method also includes the following steps:

[0088] In step S602, in response to determining that the accumulated battery storage parameter is not empty, or determining that the historical battery charge range parameter is empty, the battery data acquisition time in the battery data is obtained.

[0089] In step S603, in response to the determination that the battery data acquisition time of the battery data meets the preset time condition, the second target battery charge interval parameter is determined based on the battery state of charge of the battery data.

[0090] In step S604, the second target battery charge range parameter is written into the cumulative static parameter, and the battery data acquisition time and voltage difference of the battery data are written into the cumulative static parameter.

[0091] In some embodiments of this application, if it is determined that the accumulated battery storage parameter is not empty, or that the historical battery charge interval parameter is empty, the battery data acquisition time can be obtained from the battery data. Under the condition that the battery data acquisition time meets a preset time condition, a second target battery charge interval parameter can be determined based on the battery charge state of the battery data. Then, the second target battery charge interval parameter is written into the accumulated static parameter, and the battery data acquisition time and voltage difference of the battery data are written into the accumulated static parameter.

[0092] In one example, it can be determined whether the number of key-value pairs in the parameters of the second target battery charge range, the battery data acquisition time, and the cumulative settling parameter of voltage difference is greater than or equal to a preset settling count threshold. If so, the battery self-discharge alarm level is determined. If the determined battery self-discharge alarm level indicates an alarm, it is then determined whether a sudden change in battery voltage has occurred. Otherwise, the preset alarm count accumulation parameter is cleared to zero.

[0093] In other words, the first target battery charge range parameter or the second target battery charge range parameter can be written into the accumulated static parameters. In one example, the accumulated static parameters can also be combined with historical battery charge range parameters, battery cell number information at the time of the last static period, battery pack type, etc. When it is determined that the battery needs to be alarmed, the combined information is encapsulated and sent to the alarm message queue.

[0094] In some implementations, the preset update conditions may include at least one of the following: the cumulative battery storage parameter is not empty; the historical battery charge range parameter is empty; the cumulative static parameter is empty; and under the conditions that the cumulative battery storage parameter is empty, the historical battery charge range parameter is not empty, and the cumulative static parameter is not empty, the number of key-value pairs in the cumulative static parameter is less than a preset static number threshold.

[0095] In other implementations, the preset time conditions may include: the battery data acquisition time of the battery data is later than the battery data acquisition time of the previous battery data; and the difference between the battery data acquisition time of the battery data and the battery data acquisition time of the previous battery data is greater than a preset resting time threshold; and the battery's current power-on running time is greater than a preset running time.

[0096] In some embodiments of this application, after acquiring battery data, if it is determined that the conditions for re-detection are met, the next piece of battery data can be acquired, and self-discharge detection can be performed based on the next piece of battery data.

[0097] The re-detection conditions include at least one of the following: the battery data acquisition time of the battery data is earlier than the battery data acquisition time of the previous battery data; the difference between the battery data acquisition time of the current battery data and the previous battery data is less than or equal to a preset resting time threshold; the battery's current power-on running time is less than or equal to a preset running time; after writing the second target battery charge range parameters into the cumulative resting parameters, it is determined that the number of key-value pairs in the cumulative resting parameters is less than a preset resting number threshold; and the battery self-discharge detection result is determined to require an alarm.

[0098] In some embodiments of this application, after writing the second target battery charge range parameter into the cumulative resting parameter and before performing self-discharge detection on the next battery data, the cumulative resting parameter can be assigned to the second target battery charge range parameter first, provided that the number of key-value pairs in the cumulative resting parameter is less than a preset resting number threshold. Then, the next battery data can be obtained and self-discharge detection can be performed based on the next battery data.

[0099] This method allows for the accumulation of parameters within the battery's charge range, and after accumulating a sufficient number of parameters, an alarm can be triggered to improve detection accuracy.

[0100] In some embodiments of this application, after determining that the battery self-discharge detection result requires an alarm, and before performing self-discharge detection on the next battery data, a preset alarm count accumulation parameter can be incremented by 1. If the preset alarm count accumulation parameter after incrementing by 1 is greater than a preset accumulation threshold, an alarm message is generated based at least on the accumulated static parameter and the historical battery charge range parameter, and the accumulated static parameter is cleared.

[0101] Specifically, generating an alarm message based on accumulated static parameters and historical battery charge range parameters can involve combining the accumulated static parameters with historical battery charge range parameters, battery cell number information from the last static period, battery pack type, and other information. When it is determined that a battery requires an alarm, this combined information is encapsulated and sent to the alarm message queue. The battery cell number information from the last static period can be determined by iterating through the battery voltage list after confirming that the number of key-value pairs in the accumulated static parameters is greater than or equal to a preset static period threshold.

[0102] In some embodiments of this application, after determining the parameters of the second target battery charge range, monitoring messages can also be generated based on battery data.

[0103] Figure 7 This is a flowchart illustrating the method for generating monitoring messages provided in an embodiment of this application. For example... Figure 7 As shown, the method includes the following steps:

[0104] In step S701, a battery voltage list is obtained.

[0105] In step S702, the battery voltage list is traversed to determine the average voltage of the battery data.

[0106] In step S703, the abnormal voltage is corrected based on a preset correction method to obtain a corrected battery voltage list.

[0107] In step S704, a monitoring message for battery data is generated based at least on the revised battery voltage list, average voltage, and battery state of charge.

[0108] In some embodiments of this application, after determining the parameters of the second target battery charge range, a battery voltage list of battery data can be obtained, and the battery voltage list can be traversed to determine the average voltage of the battery data, as well as the maximum voltage, minimum voltage, and other values.

[0109] On the other hand, abnormal voltages can also be corrected based on a preset correction method to obtain a corrected battery voltage list. The preset correction method can be, in response to determining that a target voltage in the battery voltage list is greater than a preset maximum value or less than a preset minimum value, determining the target voltage as an average voltage.

[0110] Finally, monitoring messages for battery data can be generated based on the revised battery voltage list, average voltage, and battery state of charge.

[0111] Figure 8 This is a schematic flowchart of another battery self-discharge detection method provided in an embodiment of this application. Wherein, Figure 8 Step S801 in the illustrated embodiment Figure 1 Step S101 in the illustrated embodiment is basically the same. Figure 8 Steps S803 to S805 in the illustrated embodiment are Figure 1 Steps S102 to S104 in the illustrated embodiment are basically the same and will not be repeated here. Figure 8 As shown, the method also includes the following steps:

[0112] In step S802, the battery data is preprocessed.

[0113] Preprocessing may include at least one of the following: data parsing, data standardization, data imputation, and filtering out outlier data.

[0114] In some embodiments of this application, after acquiring battery data, the battery data can be preprocessed. In one example, battery data can be acquired through a current monitoring module set in the battery management system. This module uses a high-precision current sensor to acquire the current signal of the battery pack and package it into a CAN message for uploading to the cloud message queue. After receiving the battery data, the cloud message queue can either have the cloud server automatically detect the battery data or forward it to a local service or terminal device for detection.

[0115] Battery data uploaded to the cloud can be encrypted and compressed. Therefore, this data can be parsed first, for example, by performing decompression and decryption operations. For instance, battery data can be a compressed and encrypted hexadecimal string. The parsing program in the current monitoring module can first decompress the acquired data and then decrypt it to read the original hexadecimal characters. Then, based on the DBC (Database for CAN) of different vehicle models, each signal is parsed, and the parsed signals are encapsulated into extensible JSON objects. These JSON objects can consist of multiple key-value pairs, where each key is the signal name and the value is the specific signal value at the current moment. Finally, the encapsulated signals can be sent to the parsing message queue X1.

[0116] It also allows for data standardization of the parsed JSON objects in the real-time consumption and parsing message queue X1. The standardization process can be configured according to actual needs, and may include the following scenarios:

[0117] 1) The names of the signals after parsing differ between different vehicle models and series. For example, the signal name for the same signal representing the vehicle's current is ipack for model A and current for model B. Therefore, standardization is required.

[0118] 2) Different vehicle models and series have different enumeration values ​​for the signal after parsing. For example, for the air conditioning status signal of the whole vehicle, the signal enumeration value of model A is 0 to represent that the air conditioning is on and 1 to represent that the air conditioning is off, while the signal enumeration value of model B is 0 to represent that the air conditioning is off and 1 to represent that the air conditioning is on. Therefore, standardization is required.

[0119] 3) Different vehicle models require multiple different parsing signals for the same standardized signal. For example, for the vehicle charging status signal, model A requires two different signals to determine whether it is currently charging, while model B requires three or more signals. Therefore, standardization is necessary.

[0120] The standardized data has a unified signal name and an enumerated value with the same meaning for different vehicle models and series. The subsequent filling program and the real-time current warning program can obtain the corresponding value according to the specified standard signal name, and encapsulate the standardized signal into an extensible JSON object and send it to the standard message queue X2.

[0121] In the X2 real-time consumption standard message queue, the standardized JSON object can also be populated with data. The population process involves filling low-frequency values ​​into multiple signals of different frequencies (high and low frequencies) from different vehicle models and series according to the high-frequency time interval. Furthermore, the population program uses window mode and simultaneously sorts the data within the window according to the signal acquisition time, correcting most of the out-of-order data. Uniformly populating the data has the following advantages:

[0122] 1) The filling procedure can correct most of the disordered data. Disordered data will cause subsequent calculations to produce incorrect results, affecting the correctness of the calculation.

[0123] 2) Separating the filling program from the subsequent calculation program into two separate programs can reduce the coupling between the filling program and the calculation program, making subsequent maintenance easier. Modifying the design, implementation, or behavior of either one will not affect the other. When the filling program scheme is modified or an error occurs, the filling program can be modified directly without affecting the operation of the calculation program.

[0124] 3) The data filled by the unified filling program can be directly used by multiple early warning algorithms, without each early warning algorithm having to implement the filling function, thus avoiding code redundancy.

[0125] In one example, data population can be performed by creating a configuration file containing low-frequency and high-frequency signals for each vehicle model. Then, for each data entry, a signal a1 and a signal b1 can be assigned. Signal a1 represents the current vehicle model's data, indicating that all signals contain only high frequencies or both high and low frequencies. Signal b1 represents low-frequency data. The low-frequency signals are then populated based on signals a1, b1, and the configuration file. For example, the data before population is shown in Table 1.

[0126] Table 1 shows the data before filling in the data.

[0127] vin Signal acquisition time low frequency signal b1 Signal a1 1111111 1 null {"1"} 1111111 4 null {"1"} 2222222 4 null {"1"} 1111111 3 null {"1"} 1111111 6 12 {"1","2"} 1111111 5 null {"1"} 2222222 3 null {"1"} 1111111 2 null {"1"} 2222222 6 10 {"1","2"} 2222222 1 null {"1"} 2222222 2 null {"1"} 2222222 5 null {"1"}

[0128] Table 1 contains data for two vehicles. Each data entry includes vin (vehicle identification number), signal acquisition time, low-frequency signal b1, and signal a1. The disordered data is first sorted to obtain the sorted data shown in Table 2.

[0129] Table 2: Sorted Data

[0130]

[0131]

[0132] Then, the sorted data is filled in to obtain the filled data shown in Table 3.

[0133] Table 3 Data after filling

[0134] vin Signal acquisition time low frequency signal b Signal a 1111111 1 12 {"1"} 1111111 2 12 {"1"} 1111111 3 12 {"1"} 1111111 4 12 {"1"} 1111111 5 12 {"1"} 1111111 6 12 {"1","2"} 2222222 1 10 {"1"} 2222222 2 10 {"1"} 2222222 3 10 {"1"} 2222222 4 10 {"1"} 2222222 5 10 {"1"} 2222222 6 10 {"1","2"}

[0135] Finally, the populated data is encapsulated into an extensible JSON object and sent to the population message queue X3.

[0136] In some implementations, the message queue X3 can also be consumed in real time to obtain real-time operating signal values ​​under actual vehicle conditions, including vin, vehicle series a, signal acquisition time b, battery system status c, battery state of charge d, battery temperature list e, number of battery temperature probes f, battery voltage list g, number of battery cells h, etc.

[0137] After the data is filled in, an outlier can be filtered out. The method for identifying outliers can be configured according to actual needs, and may include, for example:

[0138] 1) Determine if there are any null values ​​in the data after filling message queue X3. If any signal is null, the current data is unavailable.

[0139] 2) Determine if the battery state of charge d is within the normal range. For example, if the range of 0-100 is set as normal, and it is not within the normal range, such as d=120, it can be determined that the current data is unusable.

[0140] 3) Determine if the number of items in the battery temperature list e is equal to the number of battery temperature probes f. If they are not equal, the current data is unusable.

[0141] 4) Determine if the number of cells in the battery voltage list g is equal to the number of individual battery cells h. If they are not equal, the current data is unusable.

[0142] 5) Determine if the current data signal acquisition time b is later than the normal range of the current system time. For example, if the normal range is set to 30 minutes, and the current system time is 14:40:01 while the signal acquisition time b is 15:10:34, then the current data is unavailable.

[0143] 6) Determine whether the voltage of each battery cell in the battery voltage list g is less than the voltage threshold. For example, it can be set to 0.1 volts. If it is less than or equal to the voltage threshold, the current data is unavailable.

[0144] 7) For each data item consumed from the message queue X3, the current data time will be stored for the same vin. It is determined whether the current data signal acquisition time in the same vin is earlier than the previous data signal acquisition time. If so, the current data is unavailable.

[0145] This method allows for the preprocessing of acquired battery data, which is then used for self-discharge detection, thereby improving detection accuracy.

[0146] Figure 9 This is a schematic flowchart of another battery self-discharge detection method provided in the embodiments of this application. During execution... Figure 9 Before implementing the self-discharge detection method, some detection parameters can be set to facilitate the storage of intermediate data during the detection calculation process. The set detection parameters may include:

[0147] y1: The signal acquisition time b for storing the previous data.

[0148] y2: Stores the alarm counts for multiple d-intervals at level 1. In one example, four d-intervals can be set: [0-30%), [30-60%), [60-90%), and [90-100%). For ease of description, the following explanation will use four d-intervals as an example.

[0149] y3: Stores the number of alarms in the four d intervals of the second level.

[0150] y4: Stores the number of alarms in the four d intervals of the three levels.

[0151] y5: Stores information related to the (0-30%) range, including the date of pressure difference, the average pressure difference of the day, the minimum pressure difference of the day, whether the mutation threshold is exceeded, and the number of times the pressure has been left to stand on that day.

[0152] y6: Store information related to the (30-60%) range, including the date of pressure difference, the average pressure difference of the day, the minimum pressure difference of the day, whether the mutation threshold is exceeded, and the number of times the pressure has been left to stand on that day.

[0153] y7: Stores information related to the (60-90%) range, including the date of pressure difference, the average pressure difference of the day, the minimum pressure difference of the day, whether the mutation threshold is exceeded, and the number of times the pressure has been left to stand on that day.

[0154] y8: Stores information related to the (90-100%) range, including the date of the pressure difference, the average pressure difference of the day, the minimum pressure difference of the day, whether the mutation threshold has been exceeded, and the number of times the pressure has been left to stand on that day.

[0155] y9: Stores how many seconds of data have been retrieved since power-on.

[0156] y10: Stores which of the four d intervals the data from the last time it was left idle belonged to.

[0157] y11: Stores the minimum pressure difference and timestamp of the most recent resting threshold number (e.g., 3 times) in the (0-30%) interval.

[0158] y12: Stores the minimum pressure difference and timestamp of the most recent resting threshold number (e.g., 3 times) in the (30-60%) interval.

[0159] y13: Stores the minimum pressure difference and timestamp of the most recent resting threshold number (e.g., 3 times) in the (60-90%) interval.

[0160] y14: Stores the minimum pressure difference and timestamp of the most recent resting threshold number (e.g., 3 times) in the (90-100%) interval.

[0161] y15: Stores the battery cell number information from the last time the battery was left undisturbed.

[0162] Taking the execution of this detection method in a cloud platform as an example, after the cloud platform obtains a piece of battery data from the consumption queue, it first performs preprocessing operations such as data parsing, data standardization, data filling, and abnormal data filtering. For the preprocessed data, it can be determined whether there is a value in the current detection parameter y5. If not, it indicates that the current task is a brand new task. At this time, y5, y6, y7, and y8 can be set to an empty array with a preset length (e.g., 5).

[0163] Then, it checks if there is a value in the detection parameter y10. If there is, it retrieves the value stored in y11, y12, y13, or y14 based on the value stored in y10 and stores it in the variable z. In one example, retrieving the value stored in y11, y12, y13, or y14 based on the value stored in y10 could be as follows: if y10 stores any integer between 0 and 3, and y10 equals 0, then the value of y11 is retrieved; if y10 equals 1, then the value of y12 is retrieved, and so on.

[0164] Next, it checks if there is a value in z. If so, it checks if the number of values ​​in z is greater than or equal to a preset resting time threshold. If so, it combines the data stored in z, y10, y15, and the battery pack type, and inputs the combined data into a sub-process for calculation to determine if an alarm message is needed. If an alarm message is present, it is encapsulated along with some vehicle information into an extensible JSON object and sent to the alarm message queue X5. Finally, the data from the first resting time stored in z is deleted and reassigned to the corresponding variable. For example, if z takes a value from y11, the value of z is reassigned to y11; if z takes a value from y12, the value of z is reassigned to y12, and so on. The preset resting time threshold can be set according to actual needs, for example, 3.

[0165] On the other hand, if there is a value in the detection parameter y5, or no value in the detection parameter y10, or after storing the value z based on the value stored in y10, the value z is not in z, or the number of values ​​in z is less than the preset resting number threshold, then the preprocessed battery data is obtained, the value of the signal acquisition time b is obtained from the battery data, and b is compared with y1. If b is less than or equal to y1, the next data is consumed directly. If b is greater than y1, b is subtracted from y1 to obtain timeDiff.

[0166] If timeDiff is less than the preset resting time threshold, the value of b is assigned to y1 and the next data entry is consumed directly. If timeDiff is greater than or equal to the resting time threshold, the value of y9 is checked. If y9 is less than the preset power-on time threshold, it is determined that the battery's current power-on runtime is longer than the preset runtime, and the next data entry is consumed directly. Both the preset resting time threshold and the preset power-on time threshold can be set according to actual needs. For example, setting the preset resting time threshold to 30 minutes can avoid testing batteries that have been rested for a short time and typically do not self-discharge, thus reducing testing costs. Alternatively, the preset power-on time threshold can be set to 10 minutes to obtain battery data during the stable operation period after power-on.

[0167] If y9 is greater than or equal to the power-on time threshold, the battery state of charge (SOC) d is retrieved from the battery data. The SOC d is then determined to belong to one of the four intervals and marked as socSection. Simultaneously, a battery voltage list g is retrieved from the battery data. This list is iterated through to calculate the maximum voltage (maxVolt), minimum voltage (minVolt), and average voltage (avgVolt). During this iteration, individual cells may exhibit abnormal voltages, such as values ​​exceeding the maximum voltage threshold or falling below the minimum voltage threshold. These abnormal values ​​are typically caused by data acquisition errors and can be directly set as the average voltage (avgVolt), resulting in a reassigned battery voltage list. This reassigned battery voltage list is named voltList. The reassigned battery voltage list voltList, the battery SOC d, avgVolt, and some vehicle information are encapsulated into an extensible JSON object and sent to the monitoring message queue X4. The signal acquisition time b is assigned to y1, and y9 is set to 0. The monitoring message queue X4 can be used to display monitoring information.

[0168] On the other hand, the battery state of charge (d) value can be obtained from the battery data, and the value stored in the interval y11, y12, y13, or y14 corresponding to d can be saved to the variable z. In one example, d can be any integer from 0 to 3. If d equals 0, the value of y11 is taken; if d equals 1, the value of y12 is taken, and so on.

[0169] If the number of values ​​stored in array z is less than a preset resting time threshold, then the diffVolt obtained by subtracting the maxVolt and minVolt calculated above, combined with the signal acquisition time b of the battery data, is added to the end of the z array. That is, z stores at least one key-value pair consisting of diffVolt and b. In addition, z can also store a preset resting time threshold.

[0170] Next, we can check the number of key-value pairs stored in z again. If it is less than the preset resting time threshold, the value of z is reassigned to y11, y12, y13, or y14. That is, if z is taken from y11, z is assigned to y11; if z is taken from y12, z is assigned to y12, and so on, and then the next data is consumed. Conversely, if the value of key-value pairs stored in z is greater than or equal to the preset resting time threshold, we iterate through the battery voltage list g, determine the cell number of different warning levels according to different warning level thresholds, and record them as oneAlarmCell, twoAlarmCell, and threeAlarmCell respectively. We then encapsulate oneAlarmCell, twoAlarmCell, and threeAlarmCell into an array and assign it to y15, and assign the value of d to y10.

[0171] Simultaneously, the data stored in z, y10, y15, and the battery pack type (such as ternary lithium, lithium iron phosphate, etc.) can be input into the sub-process for calculation to obtain whether an alarm is triggered. If an alarm is triggered, the alarm information and some vehicle information are encapsulated together into an extensible JSON object and sent to the alarm message queue X5. Finally, the data stored in z that was initially left idle is deleted and then reassigned to the corresponding variable. For example, if z is retrieved from y11, the value of z is reassigned to y11; if z is retrieved from y12, the value of z is reassigned to y12, and so on.

[0172] Figure 10 This is a flowchart illustrating a sub-process provided in an embodiment of this application. For example... Figure 10As shown, calculating whether an alarm is triggered using a sub-process can involve obtaining the latest static voltage difference voltDiff from the input parameter z, determining which threshold warning level voltDiff meets, and assigning it as the variable level to characterize the battery self-discharge alarm level. Here, level can represent whether the battery does not trigger an alarm, or whether an alarm occurs and at which alarm level. For example, level can be set to 0 when voltDiff does not meet any threshold level, indicating no battery alarm. Level can be set to 1 when voltDiff meets the first-level threshold warning, indicating a first-level battery alarm. Level can be set to 2 when voltDiff meets the second-level threshold warning, indicating a second-level battery alarm, and so on.

[0173] Based on the interval to which d belongs, the value stored in y5, y6, y7, or y8 is saved to the variable r. Here, d can be any integer from 0 to 3. If d equals 0, the value of y5 is taken; if d equals 1, the value of y6 is taken, and so on. Next, the value of level is checked. If it equals 0, it means that no alarm is generated for the current data. The values ​​of the intervals corresponding to d in y2, y3, and y4 are set to 0. At the same time, the multiple parameter values ​​corresponding to the value in r are calculated, modified, and then reassigned to y5, y6, y7, or y8. Then, an empty value is returned and the subprocess exits.

[0174] If the value of level is greater than 0, voltDiff is compared with the average pressure difference or minimum pressure difference of the day stored in r to determine whether a pressure difference change has occurred. If no pressure difference change has occurred, the values ​​of the corresponding d intervals in y2, y3 and y4 are set to 0. At the same time, the values ​​of multiple parameters corresponding to the values ​​in r are calculated, modified and then reassigned to y5 or y6 or y7 or y8. Then, an empty value is returned and the subprocess is exited.

[0175] The process of calculating and modifying multiple parameter values ​​corresponding to the value in 'r' and then reassigning them to 'y5', 'y6', 'y7', or 'y8' can be achieved by using signal values ​​such as 'b' and 'g' from the battery data to calculate the average pressure difference and minimum pressure difference of the day after adding this battery data entry, thereby updating the value in 'r'. Then, the updated value in 'r' is reassigned to 'y5', 'y6', 'y7', or 'y8'. Specifically, if 'r' is a value taken from 'y5', the updated 'r' is reassigned to 'y5'; if 'r' is a value taken from 'y6', the updated 'r' is reassigned to 'y6', and so on.

[0176] On the other hand, if a sudden change in pressure difference is confirmed, the multiple parameter values ​​corresponding to the values ​​in r can be calculated, modified, and then reassigned to y5, y6, y7, or y8. Then, the voltage difference and battery data acquisition time stored in z can be obtained, and the result can be calculated according to the formula y. t =E+Fx tCalculate the fitted curve of the stored multiple data sets, and according to the formula Find the slope of the curve. Where y t Let x be the battery data acquisition time in z determined based on the t-th battery data. t Let E be the voltage difference in z determined based on the battery data from the t-th test, and let E be the intercept of the fitted curve on the vertical axis. F is the slope of the fitted curve.

[0177] The calculated F is compared with the slope threshold. If it is greater than or equal to the slope threshold, the values ​​of the intervals corresponding to d in y2, y3, and y4 are set to 0 and an empty value is returned, then the subprocess exits. If it is less than the slope threshold, the values ​​of the intervals corresponding to d in y2, y3, and y4 that are less than or equal to the level are set to 1 according to the level value. For example, if level equals 1, it indicates that the warning level is level 1, so the value corresponding to level 1 is modified; if level equals 2, it indicates that the warning level is level 2, so the values ​​corresponding to level 2 and level 1 are modified; if level equals 3, it indicates that the warning level is level 3, so the values ​​corresponding to level 3, level 2, and level 1 are modified, and so on. Then, y4, y3, and y2 are checked in turn to see if they meet the interval threshold (e.g., 3). If none of them meet the interval threshold, an empty value is returned and the subprocess exits. If any of them meet the interval threshold, a warning message is generated, and the vehicle basic information, warning level, and warning message are encapsulated into an object and returned before the subprocess exits.

[0178] The slope threshold and interval threshold can be set according to actual needs, for example, the slope threshold can be set to 4 and the interval threshold can be set to 3.

[0179] In some embodiments of this application, the data in the alarm message queue X5 can be recorded into a database for subsequent analysis and improvement, thereby reducing the possibility of battery burnout.

[0180] The technical solution provided in this application enables effective monitoring of the voltage of new energy vehicle battery packs without the need for additional hardware. By identifying abnormal self-discharge cells within the battery pack caused by micro-short circuits through cloud monitoring data, real-time monitoring of the new energy vehicle battery pack voltage can be effectively achieved, thereby improving the accuracy of early warnings.

[0181] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0182] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0183] Figure 11This is a schematic diagram of a battery self-discharge detection device provided in an embodiment of this application. Figure 11 As shown, the device includes:

[0184] The acquisition module 1101 is configured to acquire battery data in response to determining that the battery is powered on. The battery data includes at least the battery data acquisition time, battery state of charge, and a list of battery voltages.

[0185] The write module 1102 is configured to, in response to determining that the accumulated battery storage parameters are empty and the historical battery charge interval parameters are not empty, write the first target battery charge interval parameters corresponding to the historical battery charge interval parameters into the accumulated resting parameters. The accumulated resting parameters include a preset resting number threshold and at least one key-value pair. The key of the key-value pair is the battery data acquisition time, and the value is the voltage difference. The voltage difference is the difference between the maximum voltage and the minimum voltage in the battery voltage list in the battery data corresponding to the battery data acquisition time. The historical battery charge interval parameters include the charge interval of the battery during the last resting.

[0186] The determination module 1103 is configured to determine the battery self-discharge alarm level based on the voltage difference between the cumulative static parameters and the battery data acquisition time corresponding to the battery data in response to determining that the number of key-value pairs in the cumulative static parameters is greater than or equal to a preset static number threshold.

[0187] The detection module 1104 is configured to respond to determining the battery self-discharge alarm level and indicating an alarm, and to determine that a sudden change in battery voltage has occurred based on accumulated battery storage parameters and accumulated static parameters, and to determine that the battery self-discharge alarm conditions are met based on each key-value pair in the accumulated static parameters, and to determine that the battery self-discharge detection result requires an alarm.

[0188] According to the technical solution provided in the embodiments of this application, by acquiring battery data including battery data acquisition time, battery state of charge, and battery voltage list, when it is determined that the cumulative battery storage parameter is empty and the historical battery charge interval parameter is not empty, the cumulative resting parameter is configured using the first target battery charge interval parameter corresponding to the historical battery charge interval parameter. When it is determined that the number of key-value pairs in the cumulative resting parameter is greater than or equal to a preset resting number threshold, the battery self-discharge alarm level is determined based on the cumulative resting parameter, and an alarm is indicated when the battery self-discharge alarm level is determined. Furthermore, based on the cumulative battery storage parameter and the cumulative resting parameter, it is determined that the battery voltage has changed abruptly. Based on each key-value pair in the cumulative resting parameter, it is determined that the battery self-discharge alarm condition is met, and the battery self-discharge detection result is determined to be an alarm required. This achieves real-time automatic detection of battery self-discharge and improves detection efficiency.

[0189] In some implementations, the battery self-discharge alarm level is determined based on the voltage difference between the accumulated static parameters and the battery data acquisition time of the first battery data, including: obtaining an alarm level threshold; and determining the battery self-discharge alarm level based on the numerical relationship between the voltage difference between the accumulated static parameters and the battery data acquisition time of the first battery data and the alarm level threshold.

[0190] In some implementations, determining a sudden change in battery voltage based on accumulated battery storage parameters and accumulated resting parameters includes: in response to determining a battery self-discharge alarm level indication alarm, determining a target accumulated battery storage parameter based on the battery state of charge; in response to determining that the difference between the voltage difference in the accumulated resting parameters corresponding to the battery data acquisition time and the voltage difference in the target accumulated battery storage parameter is greater than a preset difference threshold, determining that a sudden change in battery voltage has occurred; wherein, the voltage difference in the target accumulated battery storage parameter is the average voltage difference of the battery within a preset time interval, or the minimum voltage difference of the battery within a preset time interval.

[0191] In some implementations, after determining whether a sudden change has occurred in the battery voltage, the method further includes updating the target cumulative battery storage parameters based on the battery voltage list in the battery data and the result of determining whether a sudden change has occurred in the battery voltage.

[0192] In some implementations, determining whether the battery self-discharge alarm condition is met based on each key-value pair in the accumulated static parameters includes: constructing a fitting curve based on each key-value pair in the accumulated static parameters; and determining whether the battery self-discharge alarm condition is met in response to determining that the slope of the fitting curve is greater than a preset slope threshold.

[0193] In some implementations, a fitting curve is constructed based on each key-value pair in the accumulated static parameters, including: determining fitting points with the voltage difference in each key-value pair as the abscissa and the battery data acquisition time as the ordinate; determining a fitting curve based on the fitting points; the slope of the fitting curve is determined as follows: the battery data acquisition time and voltage difference of each key-value pair are accumulated to obtain a first accumulated value; the squares of the voltage differences of each key-value pair are accumulated to obtain a second accumulated value; and the quotient of the first accumulated value and the second accumulated value is determined as the slope of the fitting curve.

[0194] In some implementations, after determining the battery self-discharge alarm level, the method further includes: in response to determining that the battery self-discharge alarm level indicates no alarm, or in response to determining that the battery voltage has not changed abruptly, or in response to determining that the battery self-discharge alarm condition is not met based on each key-value pair in the accumulated static parameters, clearing the preset alarm count accumulation parameter to zero; determining the target accumulated battery storage parameter based on the battery state of charge, updating the target accumulated battery storage parameter based on the battery voltage list in the battery data; and determining that the battery self-discharge detection result is that no alarm is required.

[0195] In some implementations, after acquiring the first battery data, the method further includes: in response to determining that a preset update condition is met, acquiring the battery data acquisition time in the battery data; in response to determining that the battery data acquisition time of the battery data meets a preset time condition, determining a second target battery charge interval parameter based on the battery state of charge of the battery data; writing the second target battery charge interval parameter into an accumulated static parameter, and writing the battery data acquisition time and voltage difference of the battery data into the accumulated static parameter.

[0196] In some implementations, the preset update conditions include at least one of the following: the cumulative battery storage parameter is not empty; the historical battery charge range parameter is empty; the cumulative static parameter is empty; and under the conditions that the cumulative battery storage parameter is empty, the historical battery charge range parameter is not empty, and the cumulative static parameter is not empty, the number of key-value pairs in the cumulative static parameter is less than a preset static number threshold.

[0197] In some implementations, the preset time conditions include: the battery data acquisition time of the battery data is later than the battery data acquisition time of the previous battery data; and the difference between the battery data acquisition time of the battery data and the battery data acquisition time of the previous battery data is greater than a preset resting time threshold; and the battery's current power-on running time is greater than a preset running time.

[0198] In some implementations, after acquiring battery data, the method further includes: in response to determining that the re-detection conditions are met, acquiring the next piece of battery data and performing self-discharge detection based on the next piece of battery data; wherein the re-detection conditions include at least one of the following: the battery data acquisition time of the battery data is earlier than the battery data acquisition time of the previous battery data; the difference between the battery data acquisition time of the battery data and the battery data acquisition time of the previous battery data is less than or equal to a preset resting time threshold; the battery's current power-on running time is less than or equal to a preset running time; after writing the second target battery charge range parameter into the cumulative resting parameter, determining that the number of key-value pairs in the cumulative resting parameter is less than a preset resting number threshold; and determining that the battery self-discharge detection result requires an alarm.

[0199] In some implementations, after writing the second target battery charge range parameter into the cumulative resting parameter and before performing self-discharge detection on the next battery data, the method further includes: in response to determining that the number of key-value pairs in the cumulative resting parameter is less than a preset resting number threshold, assigning the cumulative resting parameter to the second target battery charge range parameter.

[0200] In some implementations, after determining that the battery self-discharge detection result requires an alarm, before performing self-discharge detection on the next battery data, the method further includes: incrementing a preset alarm count accumulation parameter by 1; generating an alarm message based at least on the accumulated static parameter and historical battery charge range parameters in response to determining that the preset alarm count accumulation parameter is greater than a preset accumulated threshold; and clearing the accumulated static parameter.

[0201] In some implementations, after determining the parameters of the second target battery charge range, the method further includes: obtaining a battery voltage list; traversing the battery voltage list to determine the average voltage of the battery data; correcting abnormal voltages based on a preset correction method to obtain a corrected battery voltage list; and generating a monitoring message for the battery data based at least on the corrected battery voltage list, the average voltage, and the battery state of charge.

[0202] In some implementations, after acquiring battery data, the process further includes: preprocessing the battery data; the preprocessing includes at least one of the following: data parsing, data standardization, data filling, and filtering out abnormal data.

[0203] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0204] Figure 12 This is a schematic diagram of the electronic device provided in an embodiment of this application. For example... Figure 12 As shown, the electronic device 12 of this embodiment includes: a processor 1201, a memory 1202, and a computer program 1203 stored in the memory 1202 and executable on the processor 1201. When the processor 1201 executes the computer program 1203, it implements the steps in the various method embodiments described above. Alternatively, when the processor 1201 executes the computer program 1203, it implements the functions of each module / unit in the various device embodiments described above.

[0205] Electronic device 12 can be a desktop computer, laptop, handheld computer, cloud server, or other electronic device. Electronic device 12 may include, but is not limited to, processor 1201 and memory 1202. Those skilled in the art will understand that... Figure 12 This is merely an example of electronic device 12 and does not constitute a limitation on electronic device 12. It may include more or fewer components than shown, or different components.

[0206] The processor 1201 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0207] The memory 1202 can be an internal storage unit of the electronic device 12, such as a hard disk or RAM of the electronic device 12. The memory 1202 can also be an external storage device of the electronic device 12, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, FlashCard, etc., equipped on the electronic device 12. The memory 1202 can also include both internal and external storage units of the electronic device 12. The memory 1202 is used to store computer programs and other programs and data required by the electronic device.

[0208] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0209] If integrated modules / units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program may include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. Computer-readable media may include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0210] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A battery self-discharge detection method, characterized by, The method comprises: in response to determining that the battery is powered on, obtaining battery data, the battery data comprising at least battery data collection time, battery state of charge, and battery voltage list; in response to determining that the cumulative battery storage parameter is empty and the historical battery state of charge interval parameter is not empty, writing the first target battery state of charge interval parameter corresponding to the historical battery state of charge interval parameter into the cumulative static parameter, the cumulative static parameter comprising a preset static time threshold and at least one key-value pair, the key of the key-value pair being the battery data collection time, and the value being the voltage difference, the voltage difference being the difference between the maximum voltage and the minimum voltage in the battery voltage list in the battery data corresponding to the battery data collection time, and the historical battery state of charge interval parameter comprising the state of charge interval when the battery was last static; in response to determining that the number of key-value pairs in the cumulative static parameter is greater than or equal to the preset static time threshold, determining the battery self-discharge alarm level based on the voltage difference corresponding to the battery data collection time of the battery data in the cumulative static parameter; in response to determining that the battery self-discharge alarm level indicates an alarm and that the battery voltage has changed based on the cumulative battery storage parameter and the cumulative static parameter, and that the battery self-discharge alarm condition is met based on each key-value pair in the cumulative static parameter, determining that the battery self-discharge detection result is an alarm.

2. The method of claim 1, wherein, The method comprises: obtaining an alarm level threshold; determining the battery self-discharge alarm level based on the numerical relationship between the voltage difference corresponding to the battery data collection time of the battery data in the cumulative static parameter and the alarm level threshold.

3. The method of claim 1, wherein, The method comprises: in response to determining that the battery self-discharge alarm level indicates an alarm, determining a target cumulative battery storage parameter based on the battery state of charge; in response to determining that the difference between the voltage difference corresponding to the battery data collection time of the battery data in the cumulative static parameter and the voltage difference of the target cumulative battery storage parameter is greater than a preset difference threshold, determining that the battery voltage has changed; wherein the voltage difference of the target cumulative battery storage parameter is the average voltage difference of the battery within a preset time interval, or the minimum voltage difference of the battery within a preset time interval.

4. The method of claim 3, wherein, After determining whether the battery voltage has changed, the method further comprises: updating the target cumulative battery storage parameter based on the battery voltage list in the battery data and the determination result of whether the battery voltage has changed.

5. The method of claim 1, wherein, The method comprises: constructing a fitting curve based on each key-value pair in the cumulative static parameter; in response to determining that the slope of the fitting curve is greater than a preset slope threshold, determining that the battery self-discharge alarm condition is met.

6. The method of claim 5, wherein, The method comprises: determining a fitting point with the voltage difference in each key-value pair as the horizontal coordinate value and the battery data collection time as the vertical coordinate value; determining the fitting curve based on the fitting points; a slope of the fitting curve is determined in the following way: adding products of battery data collection time and voltage difference of each key-value pair to obtain a first accumulated value; adding squares of voltage difference of each key-value pair to obtain a second accumulated value; determining a quotient of the first accumulated value and the second accumulated value as the slope of the fitting curve.

7. The method of claim 1, wherein, after determining the battery self-discharge alarm level, the method further comprises: in response to determining that the battery self-discharge alarm level indicates no alarm, or in response to determining that the battery voltage does not have a sudden change, or based on each key-value pair in the cumulative resting parameter determining that the battery self-discharge alarm condition is not met, clearing a preset alarm number accumulation parameter; determining a target cumulative battery storage parameter based on the battery state of charge, and updating the target cumulative battery storage parameter based on the battery voltage list in the battery data; determining that the battery self-discharge detection result is not required to alarm.

8. The method of claim 1, wherein, after obtaining the battery data, the method further comprises: in response to determining that a preset update condition is met, obtaining the battery data collection time in the battery data; in response to determining that the battery data collection time of the battery data meets a preset time condition, determining a second target battery charge interval parameter based on the battery state of charge of the battery data; writing the second target battery charge interval parameter into the cumulative resting parameter, and writing the battery data collection time and the voltage difference of the battery data into the cumulative resting parameter.

9. The method of claim 8, wherein, The preset update condition comprises at least one of the following: the cumulative battery storage parameter is not empty; the historical battery charge interval parameter is empty; the cumulative resting parameter is empty; under the condition that the cumulative battery storage parameter is empty, the historical battery charge interval parameter is not empty, and the cumulative resting parameter is not empty, the number of key-value pairs in the cumulative resting parameter is less than the preset resting number threshold.

10. The method of claim 8, wherein, The preset time condition comprises: the battery data collection time of the battery data is later than the battery data collection time of the previous battery data; and the battery data collection time difference between the battery data and the previous battery data is greater than a preset resting time threshold; and the current power-on running time of the battery is greater than a preset running time.

11. The method of claim 8, wherein, after obtaining the battery data, the method further comprises: in response to determining that a re-detection condition is met, obtaining the next battery data and performing self-discharge detection based on the next battery data; The re-detection condition comprises at least one of the following: the battery data collection time of the battery data is earlier than the battery data collection time of the previous battery data; the battery data collection time difference between the battery data and the previous battery data is less than or equal to a preset resting time threshold; the current power-on running time of the battery is less than or equal to a preset running time; after writing the second target battery charge interval parameter into the cumulative resting parameter, it is determined that the number of key-value pairs in the cumulative resting parameter is less than the preset resting number threshold; determining that the battery self-discharge detection result is required to alarm.

12. The method of claim 11, wherein, After the second target battery charge interval parameter is written into the accumulated standing parameter, before self-discharge detection is performed on the next piece of battery data, the method further comprises: In response to determining that the number of key-value pairs in the accumulated standing parameter is less than the preset standing time threshold, assigning the accumulated standing parameter to the second target battery charge interval parameter.

13. The method of claim 11, wherein, After determining that the battery self-discharge detection result is an alarm, before self-discharge detection is performed on the next piece of battery data, the method further comprises: Performing a plus 1 operation on the preset alarm number accumulation parameter; In response to determining that the preset alarm number accumulation parameter is greater than the preset accumulation threshold, generating an alarm message based at least on the accumulated standing parameter and the historical battery charge interval parameter; Clearing the accumulated standing parameter.

14. The method of claim 8, wherein, After determining the second target battery charge interval parameter, the method further comprises: Obtaining the battery voltage list; Iterating through the battery voltage list to determine the average voltage of the battery data; Based on a preset correction method, the abnormal voltage is corrected to obtain a corrected battery voltage list; Based on at least the corrected battery voltage list, the average voltage and the battery state of charge, a monitoring message of the battery data is generated.

15. The method of claim 1, wherein, After obtaining the battery data, the method further comprises: Pretreating the battery data; The pretreatment comprises at least one of the following: data analysis, data standardization, data filling and filtering of abnormal data.

16. A battery self-discharge detection apparatus, characterized by comprising: Comprise: An acquisition module configured to, in response to determining that the battery is powered on, acquire battery data, the battery data comprising at least battery data acquisition time, battery state of charge and battery voltage list; A writing module configured to, in response to determining that the accumulated battery storage parameter is empty and the historical battery charge interval parameter is not empty, write the first target battery charge interval parameter corresponding to the historical battery charge interval parameter into the accumulated standing parameter, the accumulated standing parameter comprising a preset standing time threshold and at least one key-value pair, the key of the key-value pair being the battery data acquisition time, and the value being the voltage difference, the voltage difference being the difference between the maximum voltage and the minimum voltage in the battery voltage list in the battery data corresponding to the battery data acquisition time, the historical battery charge interval parameter comprising the charge interval when the battery was last standing; A determination module configured to, in response to determining that the number of key-value pairs in the accumulated standing parameter is greater than or equal to the preset standing time threshold, determine the battery self-discharge alarm level based on the voltage difference in the accumulated standing parameter corresponding to the battery data acquisition time of the battery data; A detection module configured to, in response to determining that the battery self-discharge alarm level indicates an alarm, and based on the accumulated battery storage parameter and the accumulated standing parameter, determining that the battery voltage has changed abruptly, and based on each key-value pair in the accumulated standing parameter, determining that the battery self-discharge alarm condition is met, determining that the battery self-discharge detection result is an alarm.

Citation Information

Patent Citations

  • Battery self-discharge detection method, device and equipment and storage medium

    CN116774064A

  • Battery self-discharge detection method, computer readable storage medium and electronic equipment

    CN117388724A