Battery self-discharge detection method and detection device
By acquiring and analyzing battery data and configuring the accumulated static parameters using historical charge interval parameters, the problems of low battery self-discharge detection efficiency and poor real-time performance in the prior art are solved, and real-time automatic detection and consistency guarantee of battery self-discharge are realized.
Patent Information
- Application Number
- CN202510297172.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-03-13
AI Technical Summary
In the prior art, the battery self-discharge detection efficiency is low and the real-time performance is poor, so it is impossible to effectively ensure the consistency of the battery self-discharge in the electric vehicle power module.
By obtaining battery data including battery data acquisition time, battery state of charge and battery voltage list, the accumulated static parameters are configured using historical battery charge interval parameters, the battery self-discharge alarm level is determined based on the accumulated static parameters, and alarms are issued when specific conditions are met, real-time automatic detection of battery self-discharge is realized.
Real-time automatic detection of battery self-discharge is realized, detection efficiency is improved, battery self-discharge consistency in electric vehicle power modules, and safety hazards are reduced.
Smart Images

Figure CN120142949A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of batteries, and in particular, to a method and a device for detecting self-discharge of a battery. Background Art
[0002] Self-discharge is a phenomenon in which the stored electric charge of a battery is spontaneously consumed when the battery is in an open-circuit state, also known as the charge retention ability of the battery.
[0003] In an electric vehicle, a power supply module is usually formed by connecting single cells in series and / or parallel. Each battery cell in the module needs to ensure good self-discharge consistency to ensure the safety and performance of the electric vehicle. Therefore, it is necessary to detect the self-discharge of the batteries in the power supply module. Summary of the Invention
[0004] In view of this, embodiments of the present application provide a method and a device for detecting self-discharge of a battery to solve the problems of low efficiency and poor real-time performance in detecting self-discharge of a battery in the prior art.
[0005] In a first aspect of the embodiments of the present application, a method for detecting self-discharge of a battery is provided, including:
[0006] In response to determining that the battery is powered on, obtaining battery data, where the battery data at least includes a battery data acquisition time, a state of charge of the battery, and a list of battery voltages;
[0007] 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, where the cumulative static parameter includes 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 a voltage difference, and 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, and the historical battery state-of-charge interval parameter includes the state-of-charge interval when the battery was last static;
[0008] 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 number threshold, determining a self-discharge alarm level of the battery based on the voltage difference corresponding to the battery data acquisition time of the battery data in the cumulative static parameter;
[0009] In response to determining that the self-discharge alarm level indicates an alarm, and based on the cumulative battery storage parameter and the cumulative static parameter, determining that a sudden change has occurred in the battery voltage, and based on each key-value pair in the cumulative static parameter, determining that the self-discharge alarm condition is satisfied, determining that the self-discharge detection result of the battery is that an alarm is required.
[0010] In a second aspect of the embodiments of the present application, a device for detecting self-discharge of a battery is provided, including:
[0011] An acquisition module, configured to acquire battery data in response to determining that the battery is powered on, where the battery data at least includes a battery data acquisition time, a state of charge of the battery, and a list of battery voltages;
[0012] A writing module, configured to write a first target state-of-charge interval parameter corresponding to the historical state-of-charge interval parameter into the cumulative static parameters in response to determining that the cumulative battery storage parameters are empty and the historical state-of-charge interval parameters are not empty. The cumulative static parameters include a preset static times 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 a voltage difference, where 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, and the historical state-of-charge interval parameter includes the state-of-charge interval during the last static state of the battery;
[0013] A determination module, configured to determine a battery self-discharge warning level based on the voltage difference corresponding to the battery data acquisition time of the battery data in the cumulative static parameters in response to determining that the number of key-value pairs in the cumulative static parameters is greater than or equal to the preset static times threshold;
[0014] A detection module, configured to determine that the battery self-discharge detection result is a warning required in response to determining that the battery self-discharge warning level indicates a warning, and based on the cumulative battery storage parameters and the cumulative static parameters, determining that the battery voltage has mutated, and based on each key-value pair in the cumulative static parameters, determining that the battery self-discharge warning condition is satisfied.
[0015] The beneficial effects of the embodiments of the present application compared with the prior art are as follows: By acquiring battery data including a battery data acquisition time, a state of charge of the battery, and a list of battery voltages, in the embodiments of the present application, when it is determined that the cumulative battery storage parameters are empty and the historical state-of-charge interval parameters are not empty, the cumulative static parameters are configured using the first target state-of-charge interval parameter corresponding to the historical state-of-charge interval parameter. When it is determined that the number of key-value pairs in the cumulative static parameters is greater than or equal to the preset static times threshold, the battery self-discharge warning level is determined based on the cumulative static parameters, and when it is determined that the battery self-discharge warning level indicates a warning, and based on the cumulative battery storage parameters and the cumulative static parameters, determining that the battery voltage has mutated, and based on each key-value pair in the cumulative static parameters, determining that the battery self-discharge warning condition is satisfied, the real-time automatic detection of battery self-discharge is realized, and the detection efficiency is improved. Description of the Drawings
[0016] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0017] Figure 1 It is a schematic flowchart of a method for detecting self-discharge of a battery provided by an embodiment of the present application.
[0018] Figure 2 It is a schematic flowchart of a method for determining the self-discharge warning level of a battery based on the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters provided by an embodiment of the present application.
[0019] Figure 3 It is a schematic flowchart of a method for determining that a sudden change has occurred in the battery voltage based on the cumulative battery storage parameters and the cumulative static parameters provided by an embodiment of the present application.
[0020] Figure 4 It is a schematic flowchart of a method for determining that the self-discharge warning condition of a battery is satisfied based on each key-value pair in the cumulative static parameters provided by an embodiment of the present application.
[0021] Figure 5 It is a schematic flowchart of another method for detecting self-discharge of a battery provided by an embodiment of the present application.
[0022] Figure 6 It is a schematic flowchart of yet another method for detecting self-discharge of a battery provided by an embodiment of the present application.
[0023] Figure 7 It is a schematic flowchart of a method for generating a monitoring message provided by an embodiment of the present application.
[0024] Figure 8 It is a schematic flowchart of still another method for detecting self-discharge of a battery provided by an embodiment of the present application.
[0025] Figure 9 It is a schematic flowchart of another method for detecting self-discharge of a battery provided by an embodiment of the present application.
[0026] Figure 10 It is a schematic flowchart of a sub-process provided by an embodiment of the present application.
[0027] Figure 11 It is a schematic diagram of a device for detecting self-discharge of a battery provided by an embodiment of the present application.
[0028] Figure 12 It is a schematic diagram of an electronic device provided by an embodiment of the present application. Detailed Implementation Manner
[0029] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.
[0030] A method and device for detecting self-discharge of a battery according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0031] As mentioned above, self-discharge is a phenomenon in which the stored electric charge of a battery is spontaneously consumed when the battery is in an open-circuit state, also known as the charge retention ability of the battery, that is, the ability of the battery to retain the stored electric charge under certain environmental conditions. Self-discharge can be divided into physical self-discharge and chemical self-discharge according to different reaction types. The self-discharge process inside the battery is very complex, and the two types of self-discharge may occur simultaneously.
[0032] In an electric vehicle, the power supply module is usually formed by connecting single cells in series and / or parallel. Each battery cell in the module needs to ensure good self-discharge consistency. Otherwise, phenomena such as overcharging and over-discharging of single cells, different battery attenuation rates, and temperature differences between batteries will occur, resulting in a decline in the performance of the battery pack, a shortening of the service life, and an increase in safety hazards. Severe self-discharge may lead to thermal runaway of the battery, thus triggering safety problems for parked electric vehicles. Therefore, it is necessary to detect the self-discharge of the batteries in the power supply module.
[0033] In related technologies, battery self-discharge detection methods generally include capacity detection, open-circuit voltage detection, and current detection. These detection methods all require first disassembling the battery pack on the vehicle and then measuring it with experimental instruments, and a certain detection time is required. That is, the battery self-discharge detection methods in related technologies require a large amount of detection space and human detection resources, and cannot perform real-time detection on the vehicle battery pack.
[0034] In view of this, an embodiment of the present application provides a method for detecting self-discharge of a battery. By obtaining battery data including the battery data acquisition time, the state of charge of the battery, and a list of battery voltages, when it is determined that the cumulative battery storage parameter is empty and the historical battery state-of-charge interval parameter is not empty, the cumulative static parameter is configured using the first target battery state-of-charge interval parameter corresponding to the historical battery state-of-charge interval parameter. When it is determined that the number of key-value pairs in the cumulative static parameter is greater than or equal to the preset static time threshold, the self-discharge warning level of the battery is determined based on the cumulative static parameter. And when it is determined that the self-discharge warning level of the battery indicates a warning, and it is determined based on the cumulative battery storage parameter and the cumulative static parameter that the battery voltage has mutated, and it is determined that the self-discharge warning condition is satisfied based on each key-value pair in the cumulative static parameter, the self-discharge detection result of the battery is determined to require a warning, realizing real-time automatic detection of battery self-discharge and improving the detection efficiency.
[0035] Figure 1 is a schematic flowchart of a method for detecting self-discharge of a battery provided by an embodiment of the present application. As Figure 1 shown, the method includes the following steps:
[0036] In step S101, in response to determining that the battery is powered on, battery data is obtained.
[0037] Among them, the battery data at least includes the battery data acquisition time, the state of charge of the battery, and a list of battery voltages.
[0038] In step S102, in response to determining that the cumulative battery storage parameter is empty and the historical battery state-of-charge interval parameter is not empty, the first target battery state-of-charge interval parameter corresponding to the historical battery state-of-charge interval parameter is written into the cumulative static parameter.
[0039] Among them, the cumulative static parameter includes a preset static time 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 state-of-charge interval parameter includes the state-of-charge interval when the battery was last static.
[0040] In step S103, 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, the self-discharge warning level of the battery is determined based on the voltage difference corresponding to the battery data acquisition time of the battery data in the cumulative static parameter.
[0041] In step S104, in response to determining that the self-discharge warning level of the battery indicates a warning, and it is determined based on the cumulative battery storage parameter and the cumulative static parameter that the battery voltage has mutated, and it is determined that the self-discharge warning condition is satisfied based on each key-value pair in the cumulative static parameter, the self-discharge detection result of the battery is determined to require a warning.
[0042] In some embodiments of the present application, the method may be executed by a server or a terminal device with certain computing capabilities. The server or terminal device executing the method may communicate with the system where the battery is located to obtain battery data. In one example, the battery may be a vehicle battery. In this case, the server or terminal device may communicate with the vehicle to obtain the battery data reported by the vehicle and send an alarm message to the vehicle when it is detected that the battery needs to give an alarm.
[0043] In certain embodiments of the present application, battery data may be obtained under the condition that it is determined that the battery is powered on. Among them, the state of the battery may include the powered-on state and the stationary state (i.e., the powered-off state). Embodiments of the present application detect the self-discharge situation of the battery in the stationary state.
[0044] Among them, the battery data may include the battery data acquisition time, the state of charge of the battery, and the battery voltage list.
[0045] In some embodiments of the present application, some detection parameters may be set to assist in the detection of battery self-discharge. In one example, the detection parameters may include the cumulative battery storage parameter, the historical battery state-of-charge interval parameter, the battery state-of-charge interval parameter, and the cumulative stationary parameter.
[0046] Among them, the cumulative battery storage parameter may include N parameters, where N is a positive integer. Each parameter stores the cumulative battery storage parameter corresponding to a battery state-of-charge interval. For example, 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 mutation occurs, the number of stationary times within a preset time interval, and the preset time interval identifier, etc. The preset time interval may be set according to actual needs, for example, it is one day.
[0047] In some embodiments, the battery state-of-charge intervals may be set according to actual needs. The intersection of each battery state-of-charge interval is 0, and the minimum value of each battery state-of-charge interval is 0, and the maximum value is 100. For example, if N battery state-of-charge intervals are set, parameters 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 mutation occurs, the number of stationary times within a preset time interval, and the preset time interval identifier, etc. corresponding to the batteries in each battery state-of-charge interval may be saved in a cumulative battery storage parameter.
[0048] The historical battery state-of-charge interval parameter may be the state-of-charge interval when the battery was last stationary. The cumulative stationary parameter may include a preset stationary times 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. Among them, 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.
[0049] In some embodiments, after obtaining battery data, it may be determined whether the cumulative battery storage parameter is empty. If so, it may 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 may be written into the cumulative rest parameter.
[0050] In some embodiments of the present application, it may be determined whether the number of key-value pairs in the cumulative rest parameter is greater than or equal to a preset rest times threshold. If so, the battery self-discharge warning level is determined based on the voltage difference corresponding to the battery data acquisition time of the battery data in the cumulative rest parameter. The determined battery self-discharge warning level may include an indication of a non-warning level and k indications of warning levels, where k is a positive integer.
[0051] If the determined battery self-discharge warning level is an indication of a warning level, it may be determined whether the battery voltage has mutated based on the cumulative battery storage parameter and the cumulative rest parameter. If so, it is further determined whether the battery self-discharge warning condition is satisfied based on each key-value pair in the cumulative rest parameter. If the battery self-discharge warning condition is satisfied, it may be determined that the battery self-discharge detection result is a warning required.
[0052] Among them, the method for determining the battery self-discharge warning level, the method for determining whether the battery voltage has mutated, and the method for determining whether the battery self-discharge warning condition is satisfied are described in detail later and will not be elaborated here.
[0053] According to the technical solution provided by the embodiments of the present application, by obtaining battery data including the battery data acquisition time, the state of charge of the battery, and the 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 rest 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 rest parameter is greater than or equal to the preset rest times threshold, the battery self-discharge warning level is determined based on the cumulative rest parameter. And when it is determined that the battery self-discharge warning level indicates a warning, and it is determined based on the cumulative battery storage parameter and the cumulative rest parameter that the battery voltage has mutated, and it is determined based on each key-value pair in the cumulative rest parameter that the battery self-discharge warning condition is satisfied, it is determined that the battery self-discharge detection result is a warning required, realizing real-time automatic detection of battery self-discharge and improving the detection efficiency.
[0054] Figure 2 It is a flowchart of the method for determining the battery self-discharge warning level based on the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative rest parameter provided by the embodiments of the present application. As Figure 2 shown, the method includes the following steps:
[0055] In step S201, an alarm level threshold is obtained.
[0056] In step S202, based on the numerical relationship between the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters and the alarm level threshold, the battery self-discharge alarm level is determined.
[0057] In some embodiments of the present application, when determining the battery self-discharge alarm level, an alarm level threshold can be obtained, and the alarm level threshold can include at least one value, and each value corresponds to a threshold of a different alarm level.
[0058] Based on the numerical relationship between the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters and the alarm level threshold, the battery self-discharge alarm level can be determined. That is, for the voltage difference that satisfies 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, which are W 1 to W k . If the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters is less than W 1 , the battery self-discharge alarm level can be determined to be level 0, corresponding to the non-alarm level at this time. If the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters is greater than or equal to W 1 and less than W 2 , the battery self-discharge alarm level can be determined to be level 1, corresponding to the first alarm level at this time. And so on, if the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters is greater than or equal to W k-1 and less than W k , the battery self-discharge alarm level can be determined to be level k-1, corresponding to the k-1 alarm level at this time.
[0060] In this way, it can be first determined whether the voltage difference in the battery data reaches the alarm level, and then combined with other detection factors to determine whether the battery as a whole needs to give an alarm, improving the detection accuracy.
[0061] Figure 3 is a schematic flowchart of a method for determining that a battery voltage has mutated based on cumulative battery storage parameters and cumulative static parameters provided by an embodiment of the present application. As Figure 3 shown, the method includes the following steps:
[0062] In step S301, in response to determining that the battery self-discharge alarm level indicates an alarm, a target cumulative battery storage parameter is determined based on the state of charge of the battery.
[0063] In step S302, in response to determining that the difference between the voltage difference corresponding to the battery data acquisition time of the battery data 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 the battery voltage has occurred.
[0064] Among them, the voltage difference of the target historical battery charge interval 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.
[0065] In some embodiments of the present application, under the condition that the battery self-discharge alarm level indicates an alarm, it is possible to continue to determine whether a sudden change in the battery voltage has occurred. At this time, the target cumulative battery storage parameters can be determined based on the state of charge of the battery. In one example, it is possible to determine whether the difference between the voltage difference corresponding to the battery data acquisition time of the battery data in the cumulative static parameters and the voltage difference of the target cumulative battery storage parameters is greater than a preset difference threshold.
[0066] For example, the voltage difference voltdiff corresponding to the battery data acquisition time of the battery data in the cumulative static parameters can be obtained, and the average voltage difference voltdiff avr or the minimum voltage difference voltdiff min of the target cumulative battery storage parameters. If it is determined that the absolute value of the difference between voltdiff and voltdiff avr is greater than the preset difference threshold, or the absolute value of the difference between voltdiff and voltdiff min is greater than the preset difference threshold, then it can be determined that a sudden change in the battery voltage has occurred.
[0067] Figure 3 The illustrated embodiment may further 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 determination result of whether a sudden change in the battery voltage has occurred.
[0069] That is to say, after determining that a sudden change in the battery voltage has occurred, the target cumulative battery storage parameters can also be updated based on the battery voltage list in the battery data and the determination result of whether a sudden change in the battery voltage has occurred. For example, the average voltage difference of the new battery within a preset time interval, the minimum voltage difference of the battery within a preset time interval, etc. can be calculated based on the battery voltage list, and the corresponding values in the target cumulative battery storage parameters are 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 the 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 the battery voltage has occurred.
[0070] In this way, by judging the difference between the voltage difference in the battery data and the average voltage difference or the minimum voltage difference within a preset time interval, it is possible to determine whether there is a sudden change in the battery voltage, which can better capture the sudden change in the battery voltage and provide data support for further judging whether the battery needs to give an alarm in combination with the fitting curve later.
[0071] Figure 4 It is a schematic flowchart of a method for determining that the battery self-discharge alarm condition is satisfied based on each key-value pair in the cumulative static parameters provided by an embodiment of the present application. As Figure 4 shown, the method includes the following steps:
[0072] In step S401, a fitting curve is constructed based on each key-value pair in the cumulative static parameters.
[0073] In step S402, in response to determining that the slope of the fitting curve is greater than a preset slope threshold, it is determined that the battery self-discharge alarm condition is satisfied.
[0074] In some embodiments of the present application, when determining whether the battery self-discharge alarm condition is satisfied, it can be judged with the help of a fitting curve. In one example, a fitting curve can be constructed based on each key-value pair in the cumulative static parameters, and then the slope of the fitting curve is obtained. When comparing the determined slope of the fitting curve with the preset slope threshold, if it is determined that the slope of the fitting curve is greater than the preset slope threshold, it is determined that the battery self-discharge alarm condition is satisfied.
[0075] Among them, constructing a fitting curve based on each key-value pair in the cumulative static parameters can be that, taking the voltage difference in each key-value pair as the abscissa value and the battery data acquisition time as the ordinate value, the fitting points are determined; and the fitting curve is determined based on the fitting points.
[0076] On the other hand, the slope of the fitting curve can be determined in the following way: adding up the products of the battery data acquisition time and the voltage difference of each key-value pair to obtain a first cumulative value; adding up the squared values of the voltage differences of each key-value pair to obtain a second cumulative value; and determining the quotient of the first cumulative value and the second cumulative value as the slope of the fitting curve.
[0077] In one example, if there are n key-value pairs in the cumulative static parameters, where the battery data acquisition time of the t-th key-value pair is y t , and the voltage difference of the t-th key-value pair is x t , then the determined fitting curve can be: y t = E + Fx t . Among them, E is the intercept of the fitting curve, F is the slope of the fitting 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 respectively:
[0079] In this way, by combining the self-discharge warning level of the battery, whether the battery voltage has mutated, and the fitting curve, it is comprehensively determined whether a warning is required for the battery detection result, improving the detection accuracy and detection stability.
[0080] In some embodiments of the present application, the set detection parameters may further include a preset warning times accumulation parameter. Among them, the preset warning times accumulation parameter may include multiple parameters, and each parameter corresponds to a warning level.
[0081] Figure 5 It is a flowchart of another battery self-discharge detection method provided by an embodiment of the present application. Among them, Figure 5 Steps S501 to S504 in the illustrated embodiment are substantially the same as Figure 1 Steps S101 to S104 in the illustrated embodiment, and will not be described in detail here. As Figure 5 shown, the method further includes the following steps:
[0082] In step S505, in response to determining that the battery self-discharge warning level indicates no warning, or in response to determining that the battery voltage has not mutated, or based on each key-value pair in the cumulative static parameter, it is determined that the battery self-discharge warning condition is not satisfied, and the preset warning times accumulation parameter is cleared.
[0083] In step S506, based on the state of charge of the battery, a target cumulative battery storage parameter is determined, and the target cumulative battery storage parameter is 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 does not require a warning.
[0085] In some embodiments of the present application, if it is determined that the battery self-discharge warning level indicates no warning, or it is determined that the battery voltage has not mutated, or based on each key-value pair in the cumulative static parameter, it is determined that the battery self-discharge warning condition is not satisfied. On the one hand, the preset warning times accumulation parameter can be cleared. On the other hand, a target cumulative battery storage parameter can be determined based on the state of charge of the battery, and the target cumulative battery storage parameter can be updated based on the battery voltage list in the battery data. At this time, it can be determined that the battery self-discharge detection result does not require a warning.
[0086] Among them, updating the target cumulative battery storage parameter based on the battery voltage list in the battery data can be to set an intermediate variable r, determine the target cumulative battery storage parameter based on the state of charge in the battery data, and write the target cumulative battery storage parameter into the variable r. Under the condition that it is determined that the battery self-discharge alarm level indicates no alarm, or it is determined that the battery voltage has not mutated, or it is determined that the battery self-discharge alarm condition is not met based on each key-value pair in the cumulative static parameter, calculate parameter values such as the updated average voltage difference and the minimum voltage difference based on the value in the variable r and the value in the battery voltage list of the battery data, and use the calculated values to update the updated target cumulative battery storage parameter.
[0087] Figure 6 It is a schematic flowchart of another battery self-discharge detection method provided by an embodiment of the present application. Among them, Figure 6 Step S601 in the illustrated embodiment Figure 1 is basically the same as Figure 6 Step S101 in the illustrated embodiment, Figure 1 Steps S605 to S606 in the illustrated embodiment are basically the same as Figure 6 Steps S103 to S104 in the illustrated embodiment, and will not be elaborated here. As
[0088] shown, the method further includes the following steps:
[0089] In step S602, in response to determining that the cumulative battery storage parameter is not empty, or determining that the historical state-of-charge interval parameter of the battery is empty, obtain the battery data acquisition time in the battery data.
[0090] In step S603, in response to determining that the battery data acquisition time of the battery data meets the preset time condition, determine the second target state-of-charge interval parameter of the battery based on the state of charge of the battery data.
[0091] In some embodiments of the present application, if it is determined that the cumulative battery storage parameter is not empty, or it is determined that the historical state-of-charge interval parameter of the battery is empty, the battery data acquisition time can be obtained from the battery data. Under the condition that it is determined that the battery data acquisition time meets the preset time condition, the second target state-of-charge interval parameter of the battery can be determined based on the state of charge of the battery data, and then the second target state-of-charge interval parameter is written into the cumulative static parameter, and the battery data acquisition time and the voltage difference of the battery data are written into the cumulative static parameter.
[0092] In one example, it is possible to determine whether the number of key-value pairs in the battery data acquisition time and the cumulative rest parameter of the voltage difference for writing the second target state of charge interval parameter and battery data is greater than or equal to a preset rest times 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 continued to determine whether a sudden change has occurred in the battery voltage. Otherwise, the preset alarm times cumulative parameter is cleared.
[0093] That is to say, the first target state of charge interval parameter or the second target state of charge parameter of the battery can be written into the cumulative rest parameter. In one example, the cumulative rest parameter can also be combined with information such as the historical battery state of charge interval parameter, the battery cell number information at the previous rest, and the battery pack type. When it is determined that the battery needs to give an alarm, the combined information is encapsulated and sent to the alarm message queue.
[0094] In some embodiments, the preset update condition may include at least one of the following: the cumulative battery storage parameter is not empty; the historical battery state of charge interval parameter is empty; the cumulative rest parameter is empty; under the condition that the cumulative battery storage parameter is empty, the historical battery state of charge interval parameter is not empty and the cumulative rest parameter is not empty, the number of key-value pairs in the cumulative rest parameter is less than the preset rest times threshold.
[0095] In other embodiments, the preset time condition 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 time difference between the battery data and the battery data acquisition time of the previous battery data is greater than the preset rest time threshold; and the current power-on running duration of the battery is greater than the preset running duration.
[0096] In some embodiments of the present application, after acquiring the battery data, if it is determined that the re-detection condition is met, the next battery data can be acquired, and self-discharge detection is performed based on the next battery data.
[0097] Among them, the re-detection condition includes 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 time difference between the battery data and the battery data acquisition time of the previous battery data is less than or equal to the preset rest time threshold; the current power-on running duration of the battery is less than or equal to the preset running duration; after writing the second target state of charge interval parameter into the cumulative rest parameter, it is determined that the number of key-value pairs in the cumulative rest parameter is less than the preset rest times threshold; it is determined that the battery self-discharge detection result requires an alarm.
[0098] In some embodiments of the present application, after writing the second target battery charge interval parameter into the cumulative static parameter and before performing self-discharge detection on the next battery data, it is also possible to first assign the cumulative static parameter to the second target battery charge interval parameter under the condition that the number of key-value pairs in the cumulative static parameter is less than the preset static time threshold, and then obtain the next battery data and perform self-discharge detection based on the next battery data.
[0099] By adopting this method, the accumulation of battery charge interval parameters can be realized, and then alarm judgment can be performed after accumulating a sufficient number of parameters to improve the detection accuracy.
[0100] In some embodiments of the present application, after determining that the battery self-discharge detection result requires an alarm and before performing self-discharge detection on the next battery data, it is also possible to perform an increment operation on the preset alarm count accumulation parameter. If the preset alarm count accumulation parameter after the increment operation is greater than the preset accumulation threshold, at least an alarm message is generated based on the cumulative static parameter and the historical battery charge interval parameter, and the cumulative static parameter is cleared.
[0101] Among them, generating an alarm message based on at least the cumulative static parameter and the historical battery charge interval parameter may be to combine the cumulative static parameter with the historical battery charge interval parameter, the battery cell number information at the time of the previous static, the battery pack type and other information, and when it is determined that the battery requires an alarm, encapsulate and send the combined information to the alarm message queue. Among them, the battery cell number information at the time of the previous static can be determined by traversing the battery voltage list after determining that the number of key-value pairs in the cumulative static parameter is greater than or equal to the preset static time threshold.
[0102] In some embodiments of the present application, after determining the second target battery charge interval parameter, a monitoring message can also be generated based on the battery data.
[0103] Figure 7 It is a schematic flowchart of the method for generating a monitoring message provided by an embodiment of the present application. As Figure 7 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 of the battery data is generated based on at least the corrected battery voltage list, the average voltage, and the battery charge state.
[0108] In some embodiments of the present application, after determining the second target state of charge interval parameter, 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 values such as the maximum voltage and the minimum voltage.
[0109] On the other hand, the abnormal voltage can also be corrected based on a preset correction method to obtain a corrected battery voltage list. Wherein, the preset correction method can be that in response to determining that the target voltage in the battery voltage list is greater than the preset maximum value or less than the preset minimum value, the value of the target voltage is determined to be the average voltage.
[0110] Finally, a monitoring message of the battery data can be generated based on the corrected battery voltage list, the average voltage, and the state of charge of the battery.
[0111] Figure 8 It is a schematic flowchart of another method for detecting self-discharge of a battery provided by an embodiment of the present application. Wherein, Figure 8 Step S801 in the illustrated embodiment Figure 1 is basically the same as step S101 in the illustrated embodiment, Figure 8 Steps S803 to S805 in the illustrated embodiment are basically the same as Figure 1 Steps S102 to S104 in the illustrated embodiment, and will not be elaborated here. As Figure 8 shown, the method further includes the following steps:
[0112] In step S802, the battery data is preprocessed.
[0113] Wherein, the preprocessing can include at least one of the following: data parsing, data standardization, data filling, and filtering out abnormal data.
[0114] In some embodiments of the present application, after obtaining the battery data, the battery data can be preprocessed. In one example, the battery data can be obtained through a current monitoring module set in the battery management system. This module uses a high-precision current sensor to obtain the current signal of the battery pack and package it into a CAN message and upload it to the cloud message queue. After receiving the battery data, the cloud message queue can either detect the battery data by the cloud server itself or forward it to the local service or the terminal device for detection.
[0115] The battery data uploaded to the cloud can be encrypted and compressed data. Therefore, the battery data can be parsed first, for example, decompression and decryption operations can be performed. For example, the battery data can be a block of compressed and encrypted hexadecimal ciphertext. 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, according to the DBC (Database for CAN, the database file for CAN network communication) of different vehicle models and series, each signal is parsed, and the parsed signals are encapsulated into an extensible json format object. The json object can consist of multiple key-value pairs, where each key is the signal name and the value is the specific value of the signal at the current moment. Finally, the encapsulated signals can be sent to the parsing message queue X1.
[0116] Data standardization processing can also be performed on the parsed json objects in the real-time consumption parsing message queue X1. The standardization program can be set according to actual needs. For example, it can include the following situations:
[0117] 1) There are differences in the signal names parsed for different vehicle models and series. For example, for the signal representing the vehicle's total current, the parsed signal name for vehicle model A is ipack, and the parsed signal name for vehicle model B is current. Therefore, standardization processing is required.
[0118] 2) The enumerated values of the signal values parsed for different vehicle models and series are different. For example, for the vehicle air conditioner status signal, the signal enumerated value for vehicle model A is 0 representing the air conditioner is on, and 1 representing the air conditioner is off. The signal enumerated value for vehicle model B is 0 representing the air conditioner is off, and 1 representing the air conditioner is on. Therefore, standardization processing is required.
[0119] 3) Different vehicle models and series require multiple different parsed signals for the same standardized signal. For example, for the vehicle charging status signal, vehicle model A requires 2 different signals to determine whether it is charging at the current moment, and vehicle model B requires 3 or more signals to determine whether it is charging at the current moment. Therefore, standardization processing is required.
[0120] After standardization processing, the data has a unified signal name and enumerated values with the same meaning for different vehicle models and series. Subsequently, the filling program and the current real-time warning program can obtain the corresponding values according to the specified standard signal name, and encapsulate the standardized signals into an extensible json format object and send it to the standard message queue X2.
[0121] The standardized JSON object in the real-time consumption standard message queue X2 can also be filled with data. The role of filling is to fill the low-frequency values of multiple signals with different frequencies (high and low frequencies) of different vehicle models and series according to the high-frequency time interval. When the filling program uses the window mode for filling, it will also sort the data within the window according to the signal acquisition time to correct most of the out-of-order data. Uniformly filling the data has the following advantages:
[0122] 1) The filling program can correct most of the out-of-order data. Out-of-order data will cause incorrect results in subsequent calculation programs and affect the correctness of the calculation.
[0123] 2) The filling program and the subsequent calculation program are separated into two programs, which can reduce the coupling between the filling program and the calculation program and facilitate subsequent maintenance. Modifying the design, implementation, or behavior of either party will not affect the other party. When the filling program scheme is modified or reports an error, directly modify the filling program and it will not affect the operation of the calculation program.
[0124] 3) The uniformly filled data by the filling program can be directly used by multiple warning algorithms, without the need for each warning algorithm to implement the filling function, resulting in redundant code.
[0125] In one example, data filling can be as follows: create a configuration file that contains the low-frequency and high-frequency signals of each vehicle model and series. Then, for each piece of data, a signal a1 and a signal b1 can be set first. Signal a1 represents that all signals of the current vehicle model only contain high-frequency or both high-frequency and low-frequency, and signal b1 represents the low-frequency data. Fill the low-frequency signals according to signal a1, b1, and the configuration file. For example, the data before filling is shown in Table 1:
[0126] Table 1 Data before filling
[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 includes data of two vehicles. Each piece of data includes vin (vehicle identification number), signal acquisition time, low-frequency signal b1, and signal a1. First, sort the out-of-order data to obtain the sorted data shown in Table 2.
[0129] Table 2 Sorted data
[0130]
[0131]
[0132] Then, fill the sorted data to obtain the filled data shown in Table 3.
[0133] The data after filling in Table 3
[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, encapsulate the filled data into an extensible JSON - formatted object and send it to the filling message queue X3.
[0136] In some embodiments, the filling message queue X3 can also be consumed in real - time to obtain real - time operation signal values under the actual working conditions of the vehicle, including vin, vehicle series a, signal acquisition time b, battery system status c, state of charge of the battery d, battery temperature list e, number of battery temperature probes f, battery voltage list g, number of battery cells h, etc.
[0137] For the filled data, operations for filtering out abnormal data can be performed. Among them, the determination method of abnormal data can be set according to actual needs. For example, it includes:
[0138] 1) Determine whether there are null values in the data filled into the message queue X3. If any one of the signals is a null value, the current data is unavailable.
[0139] 2) Judge whether the state of charge of the battery d is within the normal value range. For example, if the range of 0 - 100 is set as normal, and if it is not within the normal range, such as d = 120, it can be determined that the current data is unavailable.
[0140] 3) Judge whether the number 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 unavailable.
[0141] 4) Judge whether the number in the battery voltage list g is equal to the number of battery cells h. If they are not equal, the current data is unavailable.
[0142] 5) Judge whether the signal acquisition time b of the current data is later than the normal range value of the current system time. For example, if the normal range is set to 30 minutes, and if 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) Judge 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) Every time a data is consumed from the filling message queue X3, a current data time will be stored for the same vin. Judge whether the signal acquisition time of the current data in the same vin is earlier than the signal acquisition time of the previously stored data. If so, the current data is unavailable.
[0145] In this way, the acquired battery data can be preprocessed, and then the preprocessed battery data can be used for self-discharge detection to improve the detection accuracy.
[0146] Figure 9 It is a schematic flowchart of another battery self-discharge detection method provided by an embodiment of the present application. Before performing Figure 9 the described 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 can include:
[0147] y1: Store the signal acquisition time b of the previous data.
[0148] y2: Store the alarm times of multiple first-level d intervals. In one example, four d intervals can be set, which are [0-30%), [30-60%), [60-90%), and [90-100%]. And for the convenience of description, the following will take four d intervals as an example for illustration.
[0149] y3: Store the alarm times of four second-level d intervals.
[0150] y4: Store the alarm times of four third-level d intervals.
[0151] y5: Store the information related to the (0-30%] interval, including the pressure difference date, the average pressure difference of the day, the minimum pressure difference of the day, whether it exceeds the mutation threshold, and the number of static times on the current day.
[0152] y6: Store the information related to the (30-60%] interval, including the pressure difference date, the average pressure difference of the day, the minimum pressure difference of the day, whether it exceeds the mutation threshold, and the number of static times on the current day.
[0153] y7: Store the information related to the (60-90%] interval, including the pressure difference date, the average pressure difference of the day, the minimum pressure difference of the day, whether it exceeds the mutation threshold, and the number of static times on the current day.
[0154] y8: Store the information related to the (90-100%] interval, including the pressure difference date, the average pressure difference of the day, the minimum pressure difference of the day, whether it exceeds the mutation threshold, and the number of static times on the current day.
[0155] y9: Store how many seconds of data have been obtained after power-on.
[0156] y10: Store which interval of the four d intervals the data at the last static time belongs to.
[0157] y11: Store the minimum pressure difference and timestamp of the nearest static threshold times (such as 3 times) in the (0-30%] interval.
[0158] y12: Store the minimum pressure difference and timestamp of the most recent static threshold times (e.g., 3 times) in the range of (30 - 60%).
[0159] y13: Store the minimum pressure difference and timestamp of the most recent static threshold times (e.g., 3 times) in the range of (60 - 90%).
[0160] y14: Store the minimum pressure difference and timestamp of the most recent static threshold times (e.g., 3 times) in the range of (90 - 100%).
[0161] y15: Store the battery cell number information at the last static state.
[0162] Taking the execution of this detection method in the 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 new task. At this time, y5, y6, y7, and y8 can be set as empty arrays with a preset length (for example, 5).
[0163] Then, it is determined whether there is a value in the detection parameter y10. If there is, the value stored in y11 or y12 or y13 or y14 is taken according to the value stored in y10 and stored in the variable z. In one example, taking the value stored in y11 or y12 or y13 or y14 according to the value stored in y10 can be that if any integer in the range of 0 - 3 is stored in y10, when y10 is equal to 0, the value of y11 is taken, and if y10 is equal to 1, the value of y12 is taken, and so on.
[0164] Next, it is determined whether there is a value in z. If there is, it is determined whether the number of values in z is greater than or equal to the preset static times threshold. If so, the data stored in z, y10, y15, and the battery pack type are combined, and the combined data is input to the sub - process for calculation to obtain whether there is an alarm message. If there is an alarm message, the alarm message and some vehicle information are encapsulated into an extensible json - format object and sent to the alarm message queue X5. Finally, the data of the first static state stored in z is deleted and reassigned to the corresponding variable. For example, if the value of z is taken from y11, the value of z is reassigned to y11 again, and if the value of z is taken from y12, the value of z is reassigned to y12 again, and so on. Among them, the preset static times 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 there is no value in the detection parameter y10, or after obtaining the value of y11 or y12 or y13 or y14 from the value stored in y10 and storing the value in z, there is no value in z, or the number of values in z is less than the preset static time threshold, then obtain the preprocessed battery data, obtain the value of the signal acquisition time b from the battery data, and compare b with y1. If b is less than or equal to y1, directly consume the next piece of data. If b is greater than y1, subtract y1 from b to get timeDiff.
[0166] If timeDiff is less than the preset static time threshold, assign the value of b to y1 and directly consume the next piece of data. If timeDiff is greater than or equal to the static time threshold, judge the value of y9. If y9 is less than the preset power-on time threshold, that is, it is determined that the current power-on running time of the battery is greater than the preset running time, then directly consume the next piece of data. Among them, the preset static time threshold and the preset power-on time threshold can both be set according to actual needs. For example, set the preset static time threshold to 30 minutes to avoid detecting batteries that have been static for a short time and usually do not self-discharge, thereby reducing the detection cost. Or, set the preset power-on time threshold to 10 minutes to obtain the battery data during the stable operation period after the battery is powered on.
[0167] If y9 is greater than or equal to the power-on time threshold, obtain the state of charge d of the battery from the battery data, judge which interval the state of charge d of the battery belongs to among the four intervals and mark it as socSection. At the same time, the battery voltage list g can also be obtained from the battery data, and the maximum voltage maxVolt, the minimum voltage minVolt, and the average voltage avgVolt are calculated by traversing the battery voltage list g. During the traversal process, there may be a single cell with an abnormal voltage, such as a voltage value greater than the maximum voltage threshold or less than the minimum voltage threshold. Such abnormal values are usually caused by data acquisition errors. Therefore, it can be directly set to the average voltage avgVolt to obtain the re-assigned battery voltage list. Name the re-assigned battery voltage list as voltList, encapsulate the re-assigned battery voltage list voltList, the state of charge d of the battery, avgVolt, and some vehicle information into an extensible json format object and send it to the monitoring message queue X4, assign the signal acquisition time b to y1, and set y9 to 0 at the same time. The monitoring message queue X4 can be used to display monitoring information.
[0168] On the other hand, the value of the state of charge d of the battery can be obtained from the battery data, and the value stored in y11 or y12 or y13 or y14 is taken according to the corresponding interval of d and saved to the variable z. In one example, d can be any integer from 0 to 3. If d is equal to 0, take the value of y11. If d is equal to 1, take the value of y12, and so on.
[0169] If the number of values stored in z is less than the preset static time threshold, the diffVolt obtained by subtracting the calculated maxVolt and minVolt above and the signal acquisition time b of the battery data are combined and added to the end of the z array. That is, what is stored in z is at least one key-value pair data composed of diffVolt and b. In addition, the preset static time threshold can also be stored in z.
[0170] Next, it can be determined again whether the number of values stored in z, that is, the key-value pairs. If it is less than the preset static time threshold, the value of z is re-assigned to y11 or y12 or y13 or y14. That is, if z is taken from y11 above, then currently z is assigned to y11 again. If z is taken from y12, then currently z is assigned to y12 again, and so on. Then, the next piece of data is consumed. On the contrary, if the number of key-value pair data stored in z is greater than or equal to the preset static time threshold, the battery voltage list g is traversed, and the single cell numbers of different warning levels are judged according to different warning level thresholds and are respectively recorded as oneAlarmCell, twoAlarmCell, threeAlarmCell. oneAlarmCell, twoAlarmCell, and threeAlarmCell are encapsulated into an array and assigned to y15, and the value of d is assigned to y10.
[0171] At the same time, the data stored in z, y10, y15, and the battery pack type (such as ternary lithium, lithium iron phosphate, etc.) can also be input into the sub-process for calculation to obtain the information of whether there is an alarm. If there is an alarm message, the alarm message and some vehicle information are encapsulated into an expandable json format object and sent to the alarm message queue X5. Finally, the data of the first static time stored in z is deleted and assigned to the corresponding variable. For example, if z is taken from y11 when taking values, then the value of z is re-assigned to y11 again. If z is taken from y12 when taking values, then the value of z is re-assigned to y12 again, and so on.
[0172] Figure 10 It is the flow schematic diagram of the sub-process provided by the embodiment of the present application. As Figure 10As shown, using a sub - process to calculate whether to give an alarm can be as follows: obtain the latest static voltage difference voltDiff from the input parameter z, determine which level threshold warning voltDiff meets, and assign it to the variable level, which is used to represent the self - discharge alarm level of the battery. Among them, level can represent that the battery does not give an alarm, or gives an alarm and which alarm level it belongs to. For example, it can be set that when voltDiff does not meet any level threshold, level is equal to 0, indicating that the battery does not give an alarm. When voltDiff meets the first - level threshold warning, level is equal to 1, indicating that the battery has a first - level alarm. When voltDiff meets the second - level threshold warning, level is equal to 2, indicating that the battery has a second - level alarm, and so on.
[0173] According to which interval d belongs to, the value stored in y5 or y6 or y7 or y8 can be taken and saved to the variable r. Among them, d can be any integer from 0 to 3. If d is equal to 0, the value of y5 is taken. If d is equal to 1, the value of y6 is taken, and so on. Next, judge the value of level. If it is equal to 0, it means that the current data does not generate an alarm. Set the values in the corresponding d intervals of y2, y3, and y4 to 0. At the same time, calculate and modify the multiple parameter values corresponding to the value in r and then re - assign them to y5 or y6 or y7 or y8. Then return a null value and exit the sub - process.
[0174] If the value of level is greater than 0, then compare voltDiff with the average pressure difference of the day or the minimum pressure difference of the day stored in r to determine whether a pressure - difference mutation occurs. If no pressure - difference mutation occurs, set the values in the corresponding d intervals of y2, y3, and y4 to 0. At the same time, calculate and modify the multiple parameter values corresponding to the value in r and then re - assign them to y5 or y6 or y7 or y8. Then return a null value and exit the sub - process.
[0175] Among them, calculating and modifying the multiple parameter values corresponding to the value in r and then re - assigning them to y5 or y6 or y7 or y8 can be as follows: the average pressure difference of the day, the minimum pressure difference of the day, etc. after adding this battery data can be calculated using signal values such as b and g in the battery data, so as to update the value in r. Then re - assign the updated value in r to y5 or y6 or y7 or y8. Among them, if r is the value taken from y5, the updated r is re - assigned to y5. If r is the value taken from y6, the updated r is re - assigned to y6, and so on.
[0176] On the other hand, if it is determined that a pressure - difference mutation has occurred, then the multiple parameter values corresponding to the value in r can be calculated and modified and re - assigned to y5 or y6 or y7 or y8. Then obtain the voltage difference and the battery - data acquisition time stored in z, according to the formula y t = E + Fx tCalculate the fitting curve of the stored multiple data, and according to the formula Find the slope of the curve. Where, y t is the battery data acquisition time in z determined according to the t-th battery data, x t is the voltage difference in z determined according to the t-th battery data, E is the intercept of the fitting curve on the vertical axis, F is the slope of the fitting curve.
[0177] Compare the calculated F with the slope threshold. If it is greater than or equal to the slope threshold, set the values of the corresponding intervals of d in y2, y3, and y4 to 0 and return a null value, then exit the sub-process. If it is less than the slope threshold, set the values of the corresponding intervals of d in y2, y3, and y4 that are less than or equal to the level to 1 according to the value of level. For example, if level is equal to 1, indicating that the warning level is the first level, then modify the values corresponding to the first level. If level is equal to 2, indicating that the warning level is the second level, then modify the values corresponding to the second level and the first level. If level is equal to 3, indicating that the warning level is the third level, then modify the values corresponding to the third level, the second level, and the first level, and so on. Then, judge whether y4, y3, and y2 satisfy the interval threshold (such as 3) in turn. If any one does not satisfy the interval threshold, return a null value and exit the sub-process. If any one satisfies the interval threshold, generate a warning message, encapsulate the vehicle basic information, warning level, warning message, etc. into an object and return it, and then exit the sub-process.
[0178] Among them, the slope threshold and the interval threshold can be set according to actual needs. For example, set the slope threshold to 4 and the interval threshold to 3.
[0179] In some embodiments of the present application, the data in the alarm message queue X5 can be recorded in the database for subsequent analysis and improvement, thereby reducing the possibility of battery burning.
[0180] Adopting the technical solution provided by the embodiments of the present application, without the need for additional hardware devices, it is possible to effectively monitor the voltage of the new energy vehicle battery pack. By identifying the self-discharging abnormal battery cells caused by micro-short circuits in the battery pack through cloud monitoring data, it is possible to effectively realize the real-time monitoring of the voltage of the new energy vehicle battery pack, thereby improving the accuracy of early warning.
[0181] All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present application, which will not be elaborated here one by one.
[0182] The following is an embodiment of the device of the present application, which can be used to execute the method embodiment of the present application. For the details not disclosed in the device embodiment of the present application, please refer to the method embodiment of the present application.
[0183] Figure 11It is a schematic diagram of a battery self-discharge detection device provided by an embodiment of the present application. As Figure 11 shown, the device includes:
[0184] An acquisition module 1101, configured to acquire battery data in response to determining that the battery is powered on. The battery data at least includes the battery data acquisition time, the state of charge of the battery, and a list of battery voltages.
[0185] A writing module 1102, configured to write the first target battery state-of-charge interval parameter corresponding to the historical battery state-of-charge interval parameter into the cumulative static parameter in response to determining that the cumulative battery storage parameter is empty and the historical battery state-of-charge interval parameter is not empty. The cumulative static parameter includes 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 state-of-charge interval parameter includes the state-of-charge interval during the last static state of the battery.
[0186] A determination module 1103, configured to determine the battery self-discharge warning level based on the voltage difference corresponding to the battery data acquisition time of the battery data in the cumulative static parameter 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 number threshold.
[0187] A detection module 1104, configured to determine that the battery self-discharge detection result requires a warning in response to determining that the battery self-discharge warning level indicates a warning, and based on the cumulative battery storage parameter and the cumulative static parameter, determining that the battery voltage has mutated, and based on each key-value pair in the cumulative static parameter, determining that the battery self-discharge warning condition is satisfied.
[0188] According to the technical solution provided by the embodiment of the present application, by acquiring battery data including the battery data acquisition time, the state of charge of the battery, and a list of battery voltages, when it is determined that the cumulative battery storage parameter is empty and the historical battery state-of-charge interval parameter is not empty, the cumulative static parameter is configured using the first target battery state-of-charge interval parameter corresponding to the historical battery state-of-charge interval parameter. When it is determined that the number of key-value pairs in the cumulative static parameter is greater than or equal to the preset static number threshold, the battery self-discharge warning level is determined based on the cumulative static parameter, and when it is determined that the battery self-discharge warning level indicates a warning, and based on the cumulative battery storage parameter and the cumulative static parameter, determining that the battery voltage has mutated, and based on each key-value pair in the cumulative static parameter, determining that the battery self-discharge warning condition is satisfied, the real-time automatic detection of battery self-discharge is realized, and the detection efficiency is improved.
[0189] In some embodiments, determining the battery self-discharge warning level based on the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters includes: obtaining a warning level threshold; determining the battery self-discharge warning level based on the numerical relationship between the voltage difference corresponding to the battery data acquisition time of the first battery data in the cumulative static parameters and the warning level threshold.
[0190] In some embodiments, determining that a sudden change has occurred in the battery voltage based on the cumulative battery storage parameters and the cumulative static parameters includes: in response to determining that the battery self-discharge warning level indicates a warning, determining target cumulative battery storage parameters based on the state of charge of the battery; in response to determining that the difference between the voltage difference corresponding to the battery data acquisition time of the battery data in the cumulative static parameters and the voltage difference of the target cumulative battery storage parameters is greater than a preset difference threshold, determining that a sudden change has occurred in the battery voltage; wherein, the voltage difference of the target cumulative battery storage parameters 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 embodiments, after determining whether a sudden change has occurred in the battery voltage, it further includes: updating the target cumulative battery storage parameters based on the battery voltage list in the battery data and the determination result of whether a sudden change has occurred in the battery voltage.
[0192] In some embodiments, determining that the battery self-discharge warning condition is satisfied based on each key-value pair in the cumulative static parameters includes: constructing a fitting curve based on each key-value pair in the cumulative static parameters; in response to determining that the slope of the fitting curve is greater than a preset slope threshold, determining that the battery self-discharge warning condition is satisfied.
[0193] In some embodiments, constructing a fitting curve based on each key-value pair in the cumulative static parameters includes: using the voltage difference in each key-value pair as the abscissa value and the battery data acquisition time as the ordinate value to determine fitting points; determining a fitting curve based on the fitting points; the slope of the fitting curve is determined in the following manner: adding up the products of the battery data acquisition time and the voltage difference of each key-value pair to obtain a first cumulative value; adding up the squared values of the voltage differences of each key-value pair to obtain a second cumulative value; determining the quotient of the first cumulative value and the second cumulative value as the slope of the fitting curve.
[0194] In some embodiments, after determining the battery self-discharge warning level, it further includes: in response to determining that the battery self-discharge warning level indicates no warning, or in response to determining that no sudden change has occurred in the battery voltage, or determining that the battery self-discharge warning condition is not satisfied based on each key-value pair in the cumulative static parameters, clearing the preset warning times cumulative parameter; determining target cumulative battery storage parameters based on the state of charge of the battery, and updating the target cumulative battery storage parameters based on the battery voltage list in the battery data; determining that the battery self-discharge detection result is that no warning is required.
[0195] In some embodiments, after obtaining the first battery data, the method further includes: in response to determining that a preset update condition is satisfied, obtaining the battery data acquisition time in the battery data; in response to determining that the battery data acquisition time of the battery data satisfies a preset time condition, determining second target battery charge interval parameters based on the state of charge of the battery in the battery data; writing the second target battery charge interval parameters into the cumulative static parameters, and writing the battery data acquisition time and voltage difference of the battery data into the cumulative static parameters.
[0196] In some embodiments, the preset update condition includes at least one of the following: the cumulative battery storage parameters are not empty; the historical battery charge interval parameters are empty; the cumulative static parameters are empty; under the condition that the cumulative battery storage parameters are empty, the historical battery charge interval parameters are not empty, and the cumulative static parameters are not empty, the number of key-value pairs in the cumulative static parameters is less than a preset static time threshold.
[0197] In some embodiments, the preset time condition includes: the battery data acquisition time of the battery data is later than the battery data acquisition time of the previous battery data; and the time difference between the battery data and the battery data acquisition time of the previous battery data is greater than a preset static time threshold; and the current power-on operation duration of the battery is greater than a preset operation duration.
[0198] In some embodiments, after obtaining the battery data, the method further includes: in response to determining that a re-detection condition is satisfied, obtaining the next battery data and performing self-discharge detection based on the next battery data; wherein, the re-detection condition includes 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 time difference between the battery data and the battery data acquisition time of the previous battery data is less than or equal to a preset static time threshold; the current power-on operation duration of the battery is less than or equal to a preset operation duration; after writing the second target battery charge interval parameters into the cumulative static parameters, determining that the number of key-value pairs in the cumulative static parameters is less than a preset static time threshold; determining that the battery self-discharge detection result requires an alarm.
[0199] In some embodiments, after writing the second target battery charge interval parameters into the cumulative static parameters 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 static parameters is less than a preset static time threshold, assigning the cumulative static parameters to the second target battery charge interval parameters.
[0200] In some embodiments, after determining that the battery self-discharge detection result requires an alarm and before performing self-discharge detection on the next battery data, the method further includes: performing an increment operation on a preset alarm count cumulative parameter; in response to determining that the preset alarm count cumulative parameter is greater than a preset cumulative threshold, generating an alarm message based at least on the cumulative static parameters and the historical battery charge interval parameters; clearing the cumulative static parameters.
[0201] In some embodiments, after determining the second target state-of-charge interval parameter, the method further includes: obtaining a list of battery voltages; traversing the list of battery voltages to determine the average voltage of the battery data; correcting abnormal voltages based on a preset correction method to obtain a corrected list of battery voltages; and generating a monitoring message for the battery data based at least on the corrected list of battery voltages, the average voltage, and the state of charge of the battery.
[0202] In some embodiments, after obtaining the battery data, the method 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 numbers of the steps in the above embodiments do not imply the order of execution. The order of execution of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
[0204] Figure 12 is a schematic diagram of an electronic device provided by an embodiment of the present application. As Figure 12 shown, the electronic device 12 in 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, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 1201 executes the computer program 1203, the functions of each module / unit in the above-mentioned device embodiments are implemented.
[0205] The electronic device 12 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 12 may include, but is not limited to, the processor 1201 and the memory 1202. Those skilled in the art can understand that Figure 12 this is only an example of the electronic device 12, and does not constitute a limitation to the electronic device 12. It may include more or fewer components than shown in the figure, 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, for example, the hard disk or memory of the electronic device 12. The memory 1202 can also be an external storage device of the electronic device 12, for example, a plug-in hard disk equipped on the electronic device 12, a Smart Media Card (SMC), a Secure Digital (SD) card, a FlashCard, etc. The memory 1202 can also include both the internal storage unit of the electronic device 12 and the external storage device. 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 can clearly understand that, for the convenience and simplicity of description, only the above-mentioned division of each functional unit and module is used as an example. In practical applications, the above-mentioned functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0209] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of the present application, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned various method embodiments can be implemented. The computer program can include computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0210] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A battery self-discharge detection method, characterized in that: include: In response to determining that the battery is powered on, acquiring battery data, the battery data at least including a battery data acquisition time, a battery state of charge, and a battery voltage list; In response to determining that the accumulated battery storage parameter is empty and the historical battery charge interval parameter is not empty, writing the first target battery charge interval parameter corresponding to the historical battery charge interval parameter into the accumulated static parameter, wherein the accumulated static parameter includes a preset static number threshold and at least one key-value pair, wherein the key of the key-value pair is the battery data collection time, and the value is the voltage difference, wherein 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 collection time, and the historical battery charge interval parameter includes the charge interval when the battery was last static; In response to determining that the number of key-value pairs in the accumulated static parameter is greater than or equal to the preset static number threshold, determining a battery self-discharge alarm level based on a voltage difference in the accumulated static parameter corresponding to a battery data collection time of the battery data; In response to determining that the battery self-discharge alarm level indicates an alarm, and based on the accumulated battery storage parameters and the accumulated static parameters, determining that a sudden change has occurred in the battery voltage, and based on each key-value pair in the accumulated static parameters, determining that a battery self-discharge alarm condition is met, it is determined that the battery self-discharge detection result requires an alarm.
2. The method according to claim 1, characterized in that The determining the battery self-discharge alarm level based on the voltage difference corresponding to the battery data collection time of the first battery data in the accumulated static parameter includes: Get the alarm level threshold; The battery self-discharge alarm level is determined based on a numerical relationship between a voltage difference in the accumulated static parameter corresponding to the battery data collection time of the first battery data and the alarm level threshold.
3. The method according to claim 1, characterized in that The determining that a sudden change has occurred in the battery voltage based on the accumulated battery storage parameter and the accumulated static parameter includes: 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 a difference between a voltage difference in the accumulated rest parameter corresponding to the battery data collection time of the battery data and a voltage difference in the target accumulated battery storage parameter is greater than a preset difference threshold, determining that a sudden change has occurred in the battery voltage; The target accumulated battery storage parameter voltage difference is an average battery voltage difference within a preset time interval, or a minimum battery voltage difference within a preset time interval.
4. The method according to claim 3, characterized in that After determining whether a sudden change has occurred in the battery voltage, the method further includes: The target accumulated battery storage parameter is updated based on the battery voltage list in the battery data and the result of determining whether a sudden change occurs in the battery voltage.
5. The method according to claim 1, characterized in that The determining, based on each key-value pair in the accumulated static parameter, that a battery self-discharge alarm condition is satisfied includes: 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, it is determined that a battery self-discharge warning condition is met.
6. The method according to claim 5, characterized in that The step of constructing a fitting curve based on each key-value pair in the accumulated static parameters includes: Determine the fitting point by taking the voltage difference in each key-value pair as the horizontal axis value and the battery data collection time as the vertical axis value; determining the fitting curve based on the fitting points; The slope of the fitting curve is determined as follows: Accumulate the battery data collection time and voltage difference of each key-value pair to obtain a first accumulated value; Accumulate the square values of the voltage differences of each key-value pair to obtain a second accumulated value; The quotient of the first accumulated value and the second accumulated value is determined as the slope of the fitting curve.
7. The method according to claim 1, characterized in that 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 suddenly, or determining based on each key-value pair in the accumulated static parameter that the battery self-discharge alarm condition is not satisfied, 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 a battery voltage list in the battery data; Determine that the battery self-discharge detection result does not require an alarm.
8. The method according to claim 1, characterized in that After acquiring the first battery data, the method further includes: In response to determining that a preset update condition is satisfied, obtaining a 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; The second target battery charge interval parameter is written into the accumulated static parameter, and the battery data collection time and voltage difference of the battery data are written into the accumulated static parameter.
9. The method according to claim 8, characterized in that The preset update condition includes at least one of the following: The accumulated battery storage parameter is not empty; The historical battery charge interval parameter is empty; The accumulated static parameter is empty; Under the condition that the accumulated battery storage parameter is empty, the historical battery charge interval parameter is not empty, and the accumulated static parameter is not empty, the number of key-value pairs in the accumulated static parameter is less than the preset static number threshold.
10. The method according to claim 8, characterized in that The preset time conditions include: 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 the preset static time threshold; and The battery's current power-on operating time is greater than the preset operating time.
11. The method according to claim 8, characterized in that After acquiring the battery data, the method further includes: In response to determining that the re-detection condition is met, acquiring a next piece of battery data, and performing a self-discharge detection based on the next piece of battery data; The retest condition includes 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 the preset static time threshold; The battery's current power-on operating time is less than or equal to the preset operating time; After writing the second target battery charge interval parameter into the accumulated static parameter, determining that the number of key-value pairs in the accumulated static parameter is less than the preset static number threshold; Determine that the battery self-discharge detection result requires an alarm.
12. The method according to claim 11, characterized in that After writing the second target battery charge interval parameter into the accumulated static 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 accumulated rest parameter is less than the preset rest number threshold, the accumulated rest parameter is assigned to the second target battery charge interval parameter.
13. The method according to claim 11, characterized in that After determining that the battery self-discharge detection result requires an alarm, before performing a self-discharge detection on the next battery data, the method further includes: Add 1 to the preset alarm count accumulation parameter; In response to determining that a preset alarm number cumulative parameter is greater than a preset cumulative threshold, generating an alarm message based at least on the cumulative rest parameter and the historical battery charge interval parameter; Clear the accumulated static parameters.
14. The method according to claim 8, characterized in that After determining the second target battery charge interval parameter, the method further includes: Obtaining the battery voltage list; Traversing the battery voltage list to determine the average voltage of the battery data; Correct the abnormal voltage based on a preset correction method to obtain a corrected battery voltage list; A monitoring message of the battery data is generated based at least on the revised battery voltage list, the average voltage and the battery state of charge.
15. The method according to claim 1, characterized in that After acquiring the battery data, the method 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.
16. A battery self-discharge detection device, characterized in that: include: an acquisition module, configured to acquire battery data in response to determining that the battery is powered on, wherein the battery data at least includes a battery data acquisition time, a battery state of charge, and a 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 a first target battery charge interval parameter corresponding to the historical battery charge interval parameter into the accumulated static parameter, wherein the accumulated static parameter includes a preset static number threshold and at least one key-value pair, wherein the key of the key-value pair is the battery data collection time, and the value is the voltage difference, wherein 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 collection time, and the historical battery charge interval parameter includes the charge interval when the battery was last static; a determination module configured to determine a battery self-discharge alarm level based on a voltage difference corresponding to a battery data collection time of the battery data in the accumulated static parameter in response to determining that the number of key-value pairs in the accumulated static parameter is greater than or equal to the preset static number threshold; The detection module is configured to respond to determining that the battery self-discharge alarm level indicates an alarm, determine that a sudden change has occurred in the battery voltage based on the accumulated battery storage parameters and the accumulated static parameters, and determine that a battery self-discharge alarm condition is met based on each key-value pair in the accumulated static parameters, and determine that the battery self-discharge detection result requires an alarm.
Citation Information
Patent Citations
Method, device and equipment for detecting self-discharge difference of battery cells of battery pack
CN115825780A
Battery self-discharge detection method, device and equipment, storage medium and program product
CN116165562A
Battery self-discharge detection method and system
CN116626518A
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