A battery anomaly detection method, device, apparatus and storage medium
By determining dry contact alarms through bitwise operations, the problem of inflexible dry contact alarm configuration in existing technologies is solved, alarm judgment efficiency is improved and resource consumption is reduced.
Patent Information
- Application Number
- CN202511450218.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-11
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2045-10-11
AI Technical Summary
In existing technologies, dry contacts are directly bound to alarms, lacking configurability and unable to flexibly express combined alarm logic, resulting in low alarm judgment efficiency on resource-constrained platforms.
By performing bitwise operations on the current abnormal information in binary form and the alarm configuration information of the preset dry contact, the target dry contact that triggers the alarm is determined, thus enabling flexible configuration of alarm triggering conditions.
It improves the efficiency of alarm triggering and judgment, reduces the consumption of processing resources, and is suitable for embedded resource-constrained environments.
Smart Images

Figure CN120908702B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of batteries, in particular to a battery abnormality detection method, device, equipment and storage medium. BACKGROUND
[0002] Dry contacts are often used in battery management systems (BMS) to output various fault or abnormal information to external devices, such as audible and visual alarms, relays, monitoring systems, etc. However, the prior art has the following problems: the dry contacts in the prior art are directly bound to a specific alarm, lacking configurability; it does not support multiple alarm trigger condition combinations and cannot flexibly express combined alarm logic; the judgment of alarm triggering usually needs to traverse the entire system state list and nest multiple layers of judgment statements, which is complex to implement; on resource-constrained embedded platforms, frequent traversal and judgment can cause performance burden. SUMMARY
[0003] To solve the above technical problems, the present application discloses a battery abnormality detection method, device, equipment and storage medium, which determines the target dry contact that triggers the alarm by performing bit operation on the current abnormality information in binary form and the preset alarm configuration information corresponding to each preset dry contact in binary form, and only needs to perform bit operation when judging alarm triggering, thereby improving the efficiency of alarm triggering judgment and reducing the occupation of processing resources.
[0004] In one aspect, the present application provides a battery abnormality detection method, which is applied to a target battery management system including a plurality of battery packs and a plurality of preset dry contacts, and the method includes:
[0005] Obtaining current abnormality information of the target battery management system; the current abnormality information includes a target battery pack identifier corresponding to an abnormal battery pack represented in binary and target abnormality detail information;
[0006] Performing AND operation on the target battery pack identifier and the target abnormality detail information and preset alarm configuration information corresponding to each preset dry contact, respectively, to obtain a bit operation result corresponding to each preset dry contact; the preset alarm configuration information includes a preset battery pack identifier, preset alarm detail information and output polarity represented in binary;
[0007] Determining a target dry contact based on the bit operation result; the preset battery pack identifier corresponding to the target dry contact matches the target battery pack identifier, and the preset alarm detail information corresponding to the target dry contact matches the target abnormality detail information;
[0008] Outputting target alarm information based on the output polarity of the target dry contact.
[0009] In some embodiments, before the acquiring the current abnormal information of the target battery management system, the method further comprises:
[0010] acquiring alarm trigger information corresponding to each preset dry contact point; the alarm trigger information represents alarm trigger conditions corresponding to each preset dry contact point in binary form;
[0011] mapping the alarm trigger information to a preset alarm structure corresponding to each preset dry contact point respectively to obtain preset alarm configuration information corresponding to each preset dry contact point; the preset alarm structure includes a battery pack identification member, an alarm level member, an alarm type member, and an output polarity member.
[0012] In some embodiments, the preset alarm detail information includes a preset alarm level and a preset alarm type, and the mapping the alarm trigger information to a preset alarm structure corresponding to each preset dry contact point respectively to obtain preset alarm configuration information corresponding to each preset dry contact point includes:
[0013] based on the alarm trigger information, assigning values to the battery pack identification member, the alarm level member, the alarm type member, and the output polarity member corresponding to each preset dry contact point respectively to obtain a preset battery pack identification, a preset alarm level, a preset alarm type, and an output polarity corresponding to each preset dry contact point.
[0014] In some embodiments, the target abnormal detail information includes a target abnormal level and a target abnormal type, and the acquiring the current abnormal information of the target battery management system includes:
[0015] acquiring current working state information of each battery pack;
[0016] determining the abnormal battery pack and initial abnormal information corresponding to the abnormal battery pack based on the current working state information; the initial abnormal information includes an initial battery pack identification and initial abnormal detail information, and the initial abnormal detail information includes an initial abnormal level and an initial abnormal type;
[0017] converting the initial battery pack identification into the target battery pack identification represented in binary form, converting the initial abnormal level into the target abnormal level represented in binary form, and converting the initial abnormal type into the target abnormal type represented in binary form;
[0018] determining the current abnormal information based on the target battery pack identification, the target abnormal level, and the target abnormal type.
[0019] In some embodiments, the target abnormality detail information comprises a target abnormality level and a target abnormality type, the preset alarm detail information comprises a preset alarm level and a preset alarm type, the operation of the target battery pack identifier and the target abnormality detail information on the preset alarm configuration information corresponding to each preset dry contact respectively to obtain the bit operation result corresponding to each preset dry contact comprises:
[0020] the operation of the target battery pack identifier on the preset battery pack identifier corresponding to each preset dry contact respectively to obtain the first operation result corresponding to each preset dry contact;
[0021] the operation of the target abnormality level on the preset alarm level corresponding to each preset dry contact respectively to obtain the second operation result corresponding to each preset dry contact;
[0022] the operation of the target abnormality type on the preset alarm type corresponding to each preset dry contact respectively to obtain the third operation result corresponding to each preset dry contact;
[0023] determining the bit operation result corresponding to each preset dry contact based on the first operation result, the second operation result and the third operation result.
[0024] In some embodiments, the preset alarm type comprises at least one preset alarm sub-type, and the determination of the target dry contact based on the bit operation result comprises:
[0025] in the case that the bit operation result represents that the preset battery pack identifier is consistent with the target battery pack identifier, the preset alarm level is consistent with the target abnormality level, and one of the preset alarm sub-types in the preset alarm type is consistent with the target abnormality type, the preset dry contact corresponding to the bit operation result is determined as the target dry contact.
[0026] In some embodiments, the output of the target alarm information based on the output polarity of the target dry contact comprises:
[0027] determining the target state of the target dry contact based on the output polarity of the target dry contact; in the case that the output polarity of the target dry contact represents that the target dry contact is a normally open dry contact, the target state is that the target dry contact is closed; in the case that the output polarity of the target dry contact represents that the target dry contact is a normally closed dry contact, the target state is that the target dry contact is open;
[0028] generating a target control instruction based on the target state; the target control instruction is used to instruct the target dry contact to output the target alarm information.
[0029] In another aspect, the application also provides a battery abnormality detection device, which is applied to a target battery management system including a plurality of battery groups and a plurality of preset dry contacts, and includes:
[0030] a current abnormality information acquisition module configured to acquire current abnormality information of the target battery management system, wherein the current abnormality information includes a target battery group identifier represented in binary corresponding to an abnormal battery group and target abnormality detail information;
[0031] a bit operation module configured to perform AND operation on the target battery group identifier and the target abnormality detail information and preset alarm configuration information corresponding to each preset dry contact, to obtain a bit operation result corresponding to each preset dry contact, wherein the preset alarm configuration information includes a preset battery group identifier represented in binary, preset alarm detail information and output polarity;
[0032] a target dry contact determination module configured to determine a target dry contact based on the bit operation result, wherein a preset battery group identifier corresponding to the target dry contact matches the target battery group identifier, and preset alarm detail information corresponding to the target dry contact matches the target abnormality detail information;
[0033] an alarm information output module configured to output target alarm information based on the output polarity of the target dry contact.
[0034] In another aspect, the application also provides an electronic device including a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the battery abnormality detection method as described above.
[0035] In another aspect, the application also provides a computer-readable storage medium, wherein the storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the battery abnormality detection method as described above.
[0036] The implementation of the embodiments of the application has the following beneficial effects:
[0037] The battery anomaly detection method disclosed in the application represents current anomaly information of a target battery management system and preset alarm configuration information corresponding to each preset dry contact in binary form, determines a target dry contact triggering an alarm by performing bit operation on the binary form of the current anomaly information and the binary form of the preset alarm configuration information corresponding to each preset dry contact, and outputs target alarm information based on the output polarity of the target dry contact. The preset alarm configuration information corresponding to the preset dry contact includes a preset battery pack identifier, preset alarm detail information and an output polarity, that is, the alarm triggering condition of the preset dry contact can be configured as a combination of multiple conditions, realizing flexible configuration of the dry contact alarm triggering condition; only bit operation is required when performing alarm triggering judgment, improving the alarm triggering judgment efficiency, reducing the occupation of processing resources, and adapting to the embedded resource limited environment. BRIEF DESCRIPTION OF DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0039] Figure 1 A flowchart of a battery anomaly detection method provided by an embodiment of the present application;
[0040] Figure 2 A flowchart of a dry contact configuration method provided by an embodiment of the present application;
[0041] Figure 3 A flowchart of an information matching method provided by an embodiment of the present application;
[0042] Figure 4 A structural diagram of a battery anomaly detection device provided by an embodiment of the present application;
[0043] Figure 5 A hardware structure diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0045] In the description of the present application, it should be understood that the terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first", "second" can be explicitly or implicitly included one or more of the features. Moreover, the terms "first", "second" and the like are applicable to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the information thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0046] Referring to Figure 1 , Figure 1 A flowchart of a battery abnormality detection method provided by an embodiment of the present application is shown. The method is applied to a target battery management system, specifically to a controller of the target battery management system. The target battery management system includes a plurality of battery packs and a plurality of preset dry contacts. The method includes:
[0047] S101, obtaining current abnormality information of the target battery management system; the current abnormality information includes a target battery pack identifier corresponding to an abnormal battery pack represented in binary and target abnormality detail information;
[0048] In some embodiments, the operating state of the battery pack is collected by a collector in the target battery management system, and the state information collected by the collector is processed by the controller of the target battery management system to determine the abnormal battery pack and the current abnormality information corresponding to the abnormal battery pack. The current abnormality information is represented in binary form, including the target battery pack identifier corresponding to the abnormal battery pack and the target abnormality detail information. The target battery pack identifier is used to distinguish between each battery pack, and the target battery pack identifier can be a battery pack number. The target abnormality detail information refers to specific information related to the abnormality, including the target abnormality level and the target abnormality type. The target abnormality level refers to the severity of the abnormality.
[0049] In some embodiments, the target battery management system can be a BMS system such as an uninterruptible power system (UPS), a communication base station, and a power storage system.
[0050] S103, performing bit operation on the target battery pack identifier and the target abnormality detail information with preset alarm configuration information corresponding to each preset dry contact, respectively, to obtain a bit operation result corresponding to each preset dry contact; the preset alarm configuration information includes a preset battery pack identifier represented in binary, preset alarm detail information, and output polarity.
[0051] In some embodiments, the preset dry contact refers to a switch type signal contact without voltage, without polarity, and without actively providing power. Each preset dry contact corresponds to an alarm triggering strategy, i.e., preset alarm configuration information. The preset alarm configuration information is in binary form and includes preset battery pack identification, preset alarm detail information, and output polarity. The preset alarm configuration information is a combination of multiple alarm triggering conditions. The preset alarm detail information includes preset alarm level and preset alarm type. The output polarity refers to whether the preset dry contact is a normally open dry contact or a normally closed dry contact.
[0052] In some embodiments, the current abnormal information in binary form is subjected to bit operation with the preset alarm configuration information in binary form corresponding to each preset dry contact to obtain a bit operation result corresponding to each preset dry contact. The bit operation specifically refers to AND operation. The bit operation is used to determine which preset alarm configuration information corresponding to each preset dry contact matches the current abnormal information, i.e., which preset dry contact can trigger the alarm.
[0053] S105, determining a target dry contact based on the bit operation result; the preset battery pack identification corresponding to the target dry contact matches the target battery pack identification, and the preset alarm detail information corresponding to the target dry contact matches the target abnormal detail information;
[0054] In some embodiments, the preset dry contact whose preset battery pack identification matches the target battery pack identification and whose preset alarm detail information matches the target abnormal detail information is determined as the target dry contact, i.e., the dry contact triggering the alarm.
[0055] S107, outputting target alarm information based on the output polarity of the target dry contact.
[0056] In some embodiments, the state of the target dry contact is switched according to the output polarity of the target dry contact triggering the alarm, and the target alarm information is output through the state switching of the target dry contact.
[0057] In some embodiments, referring to Figure 2 , Figure 2 A flowchart of a dry contact configuration method provided by the embodiments of the present application is shown. Before the current abnormal information of the target battery management system is obtained, the method further includes:
[0058] S201, obtaining alarm triggering information corresponding to each preset dry contact; the alarm triggering information represents alarm triggering conditions corresponding to each preset dry contact in binary form;
[0059] In some embodiments, the alarm trigger information is represented in binary form, which is used to define the alarm trigger condition of the preset dry contact. Specifically, the alarm trigger information is a multi-bit unsigned integer DryContactTrigger, each bit representing a configuration information. For example, DryContactTrigger can be a 32-bit unsigned integer, wherein bit0 represents a device alarm, bit1 represents a communication alarm, bit2 represents a voltage alarm, bit3 represents an internal resistance alarm, bit4 represents a temperature alarm,..., bit11 represents a first level alarm, bit12 represents a second level alarm,..., bit16 represents a first battery pack, bit17 represents a second battery pack, and so on.
[0060] S203, mapping the alarm trigger information to a preset alarm structure corresponding to each preset dry contact, respectively, to obtain preset alarm configuration information corresponding to each preset dry contact; the preset alarm structure includes a battery pack identifier member, an alarm level member, an alarm type member, and an output polarity member.
[0061] In some embodiments, the preset alarm structure corresponding to each preset dry contact includes a battery pack identifier member, an alarm level member, an alarm type member, and an output polarity member. Specifically, the preset alarm structure is as follows:
[0062] typedef struct DryContactCtrl
[0063] {
[0064] uint8 DetectRankAndOppBitMap; / / bit0~bit3: alarm level; bit7: output polarity
[0065] uint16 DetectStringBitMap; / / battery pack identifier
[0066] uint16 DetectInfoBitMap[5]; / / alarm type
[0067] } Dry_Ctrl_t;
[0068] The 8-bit DetectRankAndOppBitMap represents the alarm rank member and the output polarity member, the 16-bit DetectStringBitMap represents the battery pack identification member, and the n*16-bit DetectInfoBitMap represents the alarm type member, where n can be determined according to the total number of alarm subtypes included in each alarm type. For example, the alarm types can include device alarms, communication alarms, voltage alarms, internal resistance alarms, and temperature alarms. The voltage alarms can include a voltage too low alarm and a voltage too high alarm, and the temperature alarms can include a temperature too low alarm and a temperature too high alarm. The value of n is determined according to the number of all alarm subtypes, and the above preset alarm structure body takes n=5 as an example, that is, the number of alarm subtypes is less than or equal to 16*5=80.
[0069] In some embodiments, the alarm trigger information corresponding to each preset dry contact point is parsed and mapped to the preset alarm structure body corresponding to each preset dry contact point respectively, so as to realize the configuration of each member in the preset alarm structure body.
[0070] The embodiments of the present application map the alarm trigger information corresponding to each preset dry contact point to the preset alarm structure body corresponding to each preset dry contact point respectively, realize the configuration of the alarm trigger condition of each preset dry contact point, obtain the preset alarm configuration information corresponding to each preset dry contact point, and the preset alarm configuration information corresponding to the preset dry contact point includes the preset battery pack identification, the preset alarm detail information, and the output polarity. That is, the alarm trigger condition of the preset dry contact point can be configured as a combination of multiple conditions, so as to realize the flexible configuration of the dry contact alarm trigger condition.
[0071] In some embodiments, the preset alarm detail information includes a preset alarm rank and a preset alarm type, and the alarm trigger information is mapped to the preset alarm structure body corresponding to each preset dry contact point respectively to obtain the preset alarm configuration information corresponding to each preset dry contact point, including:
[0072] Based on the alarm trigger information, the battery pack identification member, the alarm rank member, the alarm type member, and the output polarity member corresponding to each preset dry contact point are valued respectively to obtain the preset battery pack identification, the preset alarm rank, the preset alarm type, and the output polarity corresponding to each preset dry contact point.
[0073] In some embodiments, for each bit of the DryContactTrigger, 1 indicates that the corresponding configuration is turned on, and 0 indicates that the corresponding configuration is turned off. Each member in the preset alarm structure corresponding to each preset dry contact point is assigned based on the alarm trigger information corresponding to each preset dry contact point, so as to configure the alarm trigger condition corresponding to each preset dry contact point. For example, for the DryContactTrigger of 32 bits in the foregoing example, bit2, bit11 and bit16 are 1, which means that the preset dry contact point is configured to trigger an alarm when a first battery pack generates a first voltage alarm, that is, the trigger condition of the preset dry contact point is that the first battery pack generates a first voltage alarm.
[0074] It should be noted that each preset dry contact point corresponds to an alarm strategy, and the alarm strategy includes a plurality of alarm trigger conditions. When the plurality of alarm trigger conditions are all met, the corresponding preset dry contact point is triggered. That is, each preset dry contact point corresponds to a group of battery packs, an alarm level and an alarm type. However, since the alarm type member in the preset alarm structure is a specific alarm sub-type, the configuration of the preset alarm type is a one-to-many configuration. That is, when an alarm type bit in the alarm trigger information is 1, all alarm sub-types included in the alarm type need to be set to 1 when the alarm type bit is mapped to the alarm type member in the preset alarm structure corresponding to the preset dry contact point. For example, for the DryContactTrigger of bit2, bit11 and bit16 being 1 in the foregoing example, it means that one of the alarm trigger conditions of the corresponding preset dry contact point is a voltage alarm. Therefore, when it is mapped to the preset alarm structure corresponding to the preset dry contact point, the bits corresponding to the two alarm sub-types of the voltage alarm and the voltage alarm included in the voltage alarm in the alarm type member, that is, DetectInfoBitMap, need to be set to 1. That is, the preset dry contact point can trigger an alarm when the first battery pack generates a first voltage alarm or the first battery pack generates a first voltage alarm.
[0075] In the embodiments of the present application, the alarm trigger information corresponding to each preset dry contact point is mapped to the preset alarm structure corresponding to each preset dry contact point, so as to configure the alarm trigger condition of each preset dry contact point, and obtain the preset alarm configuration information corresponding to each preset dry contact point. The preset alarm configuration information corresponding to the preset dry contact point includes a preset battery pack identifier, preset alarm detail information and output polarity. That is, the alarm trigger condition of the preset dry contact point can be configured as a combination of a plurality of conditions, so as to realize flexible configuration of the dry contact alarm trigger condition.
[0076] In some embodiments, the target exception detail information includes a target exception level and a target exception type, and the obtaining of the current exception information of the target battery management system includes:
[0077] obtaining current working state information of each battery pack;
[0078] determining the abnormal battery pack and initial abnormal information corresponding to the abnormal battery pack based on the current working state information; the initial abnormal information includes initial battery pack identification and initial abnormal detail information, and the initial abnormal detail information includes initial abnormal level and initial abnormal type;
[0079] converting the initial battery pack identification into the target battery pack identification represented in binary, converting the initial abnormal level into the target abnormal level represented in binary, and converting the initial abnormal type into the target abnormal type represented in binary;
[0080] determining the current abnormal information based on the target battery pack identification, the target abnormal level, and the target abnormal type.
[0081] In some embodiments, the current working state of each battery pack is collected by a collector in the target battery management system to obtain the current working state information of each battery pack, which can include current temperature information, current voltage information, current internal resistance information, etc.
[0082] In some embodiments, by comparing the current working state information of each battery pack with the corresponding preset state threshold, the abnormal battery pack and the initial abnormal information corresponding to the abnormal battery pack can be determined, and the initial abnormal information includes initial battery pack identification, initial abnormal level, and initial abnormal type, wherein the initial abnormal type corresponds to the alarm sub-type, i.e., the initial abnormal type is specific to the sub-type, for example, the initial abnormal information can represent that the first battery pack has a first-level voltage over-high abnormality.
[0083] In some embodiments, the initial battery pack identification, the initial abnormal level, and the initial abnormal type included in the initial abnormal information are converted into binary representation respectively to obtain the target battery pack identification, the target abnormal level, and the target abnormal type in binary form, the bits of the target battery pack identification correspond to the bits of the battery pack identification member / preset battery pack identification, the bits of the target abnormal level correspond to the bits of the alarm level member / preset alarm level, and the bits of the target abnormal type correspond to the bits of the alarm type member / preset alarm type. Wherein, the target abnormal type corresponds to the alarm sub-type, i.e., the target abnormal type is specific to the sub-type, for example, the target abnormal type can represent a voltage over-high abnormality or a voltage over-low abnormality.
[0084] In some embodiments, an array MappingDetectInfoToRteId can be defined, which has the same size as the DetectInfoBitMap in the preset alarm structure, and is used to index the initial abnormal information stored in the register. The RTE value, i.e. the address of the register storing the initial abnormal information, is stored in the MappingDetectInfoToRteId array. Through the register address stored in the MappingDetectInfoToRteId array, the initial abnormal information corresponding to the abnormal battery pack can be obtained, and the initial abnormal information is converted into the current abnormal information corresponding to the bit of the preset alarm configuration information.
[0085] In the embodiments of the present application, the current abnormal information of the target battery management system is represented in binary form. The target dry contact triggering alarm is determined by performing bit operation between the binary form of the current abnormal information and the binary form of the preset alarm configuration information corresponding to each preset dry contact. Only bit operation is required when determining whether to trigger the alarm, which improves the efficiency of the alarm triggering determination, reduces the occupation of the processing resources, and is suitable for the embedded resource limited environment.
[0086] In some embodiments, referring to Figure 3 , Figure 3 The flowchart of the information matching method provided by the embodiments of the present application is shown in FIG. 1. The target abnormal detail information includes a target abnormal level and a target abnormal type. The preset alarm detail information includes a preset alarm level and a preset alarm type. The target battery pack identifier and the target abnormal detail information are subjected to AND operation with the preset alarm configuration information corresponding to each preset dry contact, to obtain the bit operation result corresponding to each preset dry contact, which includes:
[0087] S301, the target battery pack identifier is subjected to AND operation with the preset battery pack identifier corresponding to each preset dry contact, to obtain the first operation result corresponding to each preset dry contact;
[0088] In some embodiments, since the bits of the target battery pack identifier correspond to the bits of the preset battery pack identifier, the target battery pack identifier can be subjected to AND operation with the preset battery pack identifier corresponding to each preset dry contact, to obtain the first operation result corresponding to each preset dry contact, i.e. (ContactValue1&Dry_Ctrl[i].DetectStringBitMap), wherein ContactValue1 is the target battery pack identifier, and i is the serial number of the preset dry contact. The first operation result is in binary form. If the first operation result is consistent with the target battery pack identifier, it indicates that the target battery pack identifier matches the preset battery pack identifier corresponding to the corresponding preset dry contact.
[0089] S303, performing an AND operation between the target abnormality rank and a preset alarm rank corresponding to each preset dry contact point to obtain a second operation result corresponding to each preset dry contact point;
[0090] In some embodiments, since the bits of the target abnormality rank correspond to the bits of the preset alarm rank, the target abnormality rank can be ANDed with the preset alarm rank corresponding to each preset dry contact point bit by bit to obtain a second operation result corresponding to each preset dry contact point, i.e., (ContactValue2&Dry_Ctrl[i].DetectRankAndOppBitMap), where ContactValue2 is the target abnormality rank, and i is the serial number of the preset dry contact point. The second operation result is in binary form, and if the second operation result is consistent with the target abnormality rank, it indicates that the target abnormality rank matches the preset alarm rank corresponding to the corresponding preset dry contact point.
[0091] S305, performing an AND operation between the target abnormality type and a preset alarm type corresponding to each preset dry contact point to obtain a third operation result corresponding to each preset dry contact point;
[0092] In some embodiments, since the bits of the target abnormality type correspond to the bits of the preset alarm type, the target abnormality type can be ANDed with the preset alarm type corresponding to each preset dry contact point bit by bit to obtain a third operation result corresponding to each preset dry contact point, i.e., (ContactValue3[j]&Dry_Ctrl[i].DetectInfoBitMap[j]), where ContactValue3[j] is the target abnormality type, i is the serial number of the preset dry contact point, and j is the serial number of the target abnormality type. The third operation result is in binary form, and if the third operation result is consistent with the target abnormality type, it indicates that the target abnormality type matches the preset alarm type corresponding to the corresponding preset dry contact point.
[0093] S307, determining a bit operation result corresponding to each preset dry contact point based on the first operation result, the second operation result, and the third operation result.
[0094] In some embodiments, each preset dry contact point is polled, and a bit operation result corresponding to each preset dry contact point is determined through an AND operation between the current abnormality information and the preset alarm configuration information corresponding to each preset dry contact point. The bit operation result corresponding to each preset dry contact point includes the first operation result, the second operation result, and the third operation result.
[0095] The embodiment of the application represents the current abnormal information of the target battery management system and the preset alarm configuration information corresponding to each preset dry contact in binary form, determines the target dry contact triggering alarm by performing bit operation on the binary form of the current abnormal information and the binary form of the preset alarm configuration information corresponding to each preset dry contact, only needs bit operation when performing alarm triggering judgment, improves the alarm triggering judgment efficiency, reduces the occupation of processing resources, and adapts to the embedded resource limited environment.
[0096] In some embodiments, the preset alarm type includes at least one preset alarm sub-type, and the determination of the target dry contact based on the bit operation result includes:
[0097] In the case that the bit operation result represents that the preset battery pack identifier is consistent with the target battery pack identifier, the preset alarm level is consistent with the target abnormal level, and one of the preset alarm sub-types in the preset alarm type is consistent with the target abnormal type, the preset dry contact corresponding to the bit operation result is determined as the target dry contact.
[0098] In some embodiments, the preset dry contact with the preset battery pack identifier consistent with the target battery pack identifier, the preset alarm level consistent with the target abnormal level, and one of the preset alarm sub-types in the preset alarm type consistent with the target abnormal type is determined as the target dry contact triggering alarm. For example, if the current abnormal information represents that the first battery pack has a first level voltage over-high abnormality, a certain preset dry contact is configured to trigger alarm in the case that the first battery pack has a first level voltage alarm, the preset battery pack identifier (the first battery pack) corresponding to the preset dry contact is consistent with the target battery pack identifier (the first battery pack), the preset alarm level (the first level alarm) corresponding to the preset dry contact is consistent with the target abnormal level (the first level abnormality), and one of the preset alarm sub-types (including voltage over-low alarm and voltage over-high alarm) in the preset alarm type corresponding to the preset dry contact is consistent with the target abnormal type (voltage over-high abnormality), that is, the current abnormal information matches the preset alarm configuration information corresponding to the preset dry contact, and the preset dry contact is the target dry contact.
[0099] The embodiment of the application represents the current abnormal information of the target battery management system and the preset alarm configuration information corresponding to each preset dry contact in binary form, determines the target dry contact triggering alarm by performing bit operation on the binary form of the current abnormal information and the binary form of the preset alarm configuration information corresponding to each preset dry contact, only needs bit operation when performing alarm triggering judgment, improves the alarm triggering judgment efficiency, reduces the occupation of processing resources, and adapts to the embedded resource limited environment.
[0100] In some embodiments, the target alarm information is output based on the output polarity of the target dry contact point, including:
[0101] determining a target state of the target dry contact point based on the output polarity of the target dry contact point; in a case where the output polarity of the target dry contact point indicates that the target dry contact point is a normally open dry contact point, the target state is that the target dry contact point is closed; in a case where the output polarity of the target dry contact point indicates that the target dry contact point is a normally closed dry contact point, the target state is that the target dry contact point is open;
[0102] generating a target control instruction based on the target state; the target control instruction is used to instruct the target dry contact point to output the target alarm information.
[0103] In some embodiments, the target state of the target dry contact point is determined according to the output polarity (normally open / normally closed) of the target dry contact point triggering the alarm, if the target dry contact point is a normally open dry contact point, the target state is closed, if the target dry contact point is a normally closed dry contact point, the target state is open.
[0104] In some embodiments, a target control instruction is generated based on the target state, and the target control instruction is sent to the target dry contact point to switch the target dry contact point to the target state, and the target alarm information is output through the state switching of the target dry contact point, and the target alarm information can be used to trigger external devices such as sound-light alarms, relays, monitoring systems, etc. connected to the target dry contact point, for example, the target alarm information output by the target dry contact point can trigger the sound-light alarm connected to the target dry contact point to alarm.
[0105] Embodiments of the present application represent the current abnormal information of the target battery management system and the preset alarm configuration information corresponding to each preset dry contact point in binary form, determine the target dry contact point triggering the alarm by performing bit operation on the binary form of the current abnormal information and the binary form of the preset alarm configuration information corresponding to each preset dry contact point, output the target alarm information based on the output polarity of the target dry contact point, only need to perform bit operation when judging the alarm triggering, improve the judgment efficiency and accuracy of the alarm triggering, improve the timeliness of the target dry contact point outputting the target alarm information, reduce the occupation of processing resources, and adapt to the embedded resource limited environment.
[0106] The embodiment of the present application provides a battery abnormality detection method, which is applied to a target battery management system, the target battery management system comprises a plurality of battery groups and a plurality of preset dry contacts, and the method comprises the following steps: acquiring current abnormality information of the target battery management system; the current abnormality information comprises a target battery group identifier represented in binary corresponding to an abnormal battery group and target abnormality detail information; performing AND operation on the target battery group identifier and the target abnormality detail information and preset alarm configuration information corresponding to each preset dry contact respectively, to obtain a bit operation result corresponding to each preset dry contact; the preset alarm configuration information comprises preset battery group identifiers represented in binary, preset alarm detail information and output polarity; determining a target dry contact based on the bit operation result; the preset battery group identifier corresponding to the target dry contact matches the target battery group identifier, and the preset alarm detail information corresponding to the target dry contact matches the target abnormality detail information; and outputting target alarm information based on the output polarity of the target dry contact. The embodiment of the present application represents the current abnormality information of the target battery management system and the preset alarm configuration information corresponding to each preset dry contact in the form of binary, determines the target dry contact triggering alarm by performing bit operation on the current abnormality information in the form of binary and the preset alarm configuration information in the form of binary corresponding to each preset dry contact respectively, and outputs the target alarm information based on the output polarity of the target dry contact. The preset alarm configuration information corresponding to the preset dry contact comprises preset battery group identifiers, preset alarm detail information and output polarity, that is, the alarm triggering condition of the preset dry contact can be configured as a combination of multiple conditions, so that flexible configuration of the dry contact alarm triggering condition is realized; only bit operation is required when alarm triggering judgment is performed, the alarm triggering judgment efficiency is improved, the occupation of processing resources is reduced, and the embedded resource limited environment is adapted.
[0107] The embodiment of the present application also provides a battery abnormality detection device, which is used for a target battery management system, the target battery management system comprises a plurality of battery groups and a plurality of preset dry contacts, and the device comprises: Figure 4 , Figure 4 The embodiment of the present application provides a battery abnormality detection device, which is used for a target battery management system, the target battery management system comprises a plurality of battery groups and a plurality of preset dry contacts, and the device comprises:
[0108] The current abnormality information acquisition module 410 is used for acquiring current abnormality information of the target battery management system; the current abnormality information comprises a target battery group identifier represented in binary corresponding to an abnormal battery group and target abnormality detail information;
[0109] The bit operation module 420 is configured to perform AND operation on the target battery pack identifier and the target abnormality detail information respectively and the preset alarm configuration information corresponding to each preset dry contact to obtain a bit operation result corresponding to each preset dry contact. The preset alarm configuration information includes a preset battery pack identifier, preset alarm detail information and output polarity represented in binary.
[0110] The trigger dry contact determination module 430 is configured to determine a target dry contact based on the bit operation result. The preset battery pack identifier corresponding to the target dry contact matches the target battery pack identifier, and the preset alarm detail information corresponding to the target dry contact matches the target abnormality detail information.
[0111] The alarm information output module 440 is configured to output target alarm information based on the output polarity of the target dry contact.
[0112] In some embodiments, the device further includes:
[0113] The alarm trigger information acquisition module is configured to acquire alarm trigger information corresponding to each preset dry contact. The alarm trigger information represents an alarm trigger condition corresponding to each preset dry contact in binary.
[0114] The alarm trigger information mapping module is configured to map the alarm trigger information to a preset alarm structure corresponding to each preset dry contact respectively to obtain preset alarm configuration information corresponding to each preset dry contact. The preset alarm structure includes a battery pack identifier member, an alarm level member, an alarm type member and an output polarity member.
[0115] In some embodiments, the preset alarm detail information includes a preset alarm level and a preset alarm type, and the alarm trigger information mapping module includes:
[0116] The structure member assignment unit is configured to assign the battery pack identifier member, the alarm level member, the alarm type member and the output polarity member corresponding to each preset dry contact respectively based on the alarm trigger information to obtain a preset battery pack identifier, a preset alarm level, a preset alarm type and an output polarity corresponding to each preset dry contact.
[0117] In some embodiments, the target abnormality detail information includes a target abnormality level and a target abnormality type, and the current abnormality information acquisition module 410 includes:
[0118] The current working state information acquisition unit is configured to acquire current working state information of each battery pack.
[0119] An initial abnormal information determination unit is configured to determine the abnormal battery pack and initial abnormal information corresponding to the abnormal battery pack based on the current working state information. The initial abnormal information includes an initial battery pack identifier and initial abnormal detail information. The initial abnormal detail information includes an initial abnormal level and an initial abnormal type.
[0120] A binary conversion unit is configured to convert the initial battery pack identifier into the target battery pack identifier represented in binary, convert the initial abnormal level into the target abnormal level represented in binary, and convert the initial abnormal type into the target abnormal type represented in binary.
[0121] A current abnormal information determination unit is configured to determine the current abnormal information based on the target battery pack identifier, the target abnormal level, and the target abnormal type.
[0122] In some embodiments, the target abnormal detail information includes a target abnormal level and a target abnormal type, the preset alarm detail information includes a preset alarm level and a preset alarm type, and the bit operation module 420 includes:
[0123] A first AND operation unit is configured to perform AND operation on the target battery pack identifier and a preset battery pack identifier corresponding to each preset trigger contact point, to obtain a first operation result corresponding to each preset trigger contact point.
[0124] A second AND operation unit is configured to perform AND operation on the target abnormal level and a preset alarm level corresponding to each preset trigger contact point, to obtain a second operation result corresponding to each preset trigger contact point.
[0125] A third AND operation unit is configured to perform AND operation on the target abnormal type and a preset alarm type corresponding to each preset trigger contact point, to obtain a third operation result corresponding to each preset trigger contact point.
[0126] A bit operation result determination unit is configured to determine a bit operation result corresponding to each preset trigger contact point based on the first operation result, the second operation result, and the third operation result.
[0127] In some embodiments, the preset alarm type includes at least one preset alarm sub-type, and the trigger contact determination module 430 includes:
[0128] The target dry contact determination unit is configured to determine the preset dry contact corresponding to the bit operation result as the target dry contact when the bit operation result indicates that the preset battery pack identifier is consistent with the target battery pack identifier, the preset alarm level is consistent with the target abnormal level, and one of the preset alarm subtypes in the preset alarm type is consistent with the target abnormal type.
[0129] In some embodiments, the alarm information output module 440 includes:
[0130] The target state determination unit is configured to determine a target state of the target dry contact based on an output polarity of the target dry contact. When the output polarity of the target dry contact indicates that the target dry contact is a normally open dry contact, the target state is that the target dry contact is closed. When the output polarity of the target dry contact indicates that the target dry contact is a normally closed dry contact, the target state is that the target dry contact is open.
[0131] The target control instruction generation unit is configured to generate a target control instruction based on the target state. The target control instruction is used to instruct the target dry contact to output the target alarm information.
[0132] The apparatuses provided in the above embodiments can execute the methods provided in any of the embodiments of the present application, and have the corresponding function modules and advantages of executing the methods. Technical details not described in the above embodiments can be referred to the battery abnormality detection method provided in any of the embodiments of the present application.
[0133] The present embodiment also provides a computer-readable storage medium, the storage medium stores computer executable instructions, the computer executable instructions are loaded and executed by a processor to perform the battery abnormality detection method provided in the above embodiment.
[0134] The present embodiment also provides an electronic device, which includes a processor and a memory, wherein the memory stores a computer program, and the computer program is adapted to be loaded and executed by the processor to perform the battery abnormality detection method provided in the above embodiment.
[0135] The electronic device can be a computer terminal, a mobile terminal or a server, and the electronic device can also participate in constructing the apparatus or system provided in the embodiments of the present application. Figure 5As shown, the electronic device 5 can include one or more processors 502 (the processor 502 can include, but is not limited to, a processing device such as a microprocessor (MCU) or a field programmable logic device (FPLD)), a memory 504 for storing information, and a transmission device 506 for communication functions. In addition, an input / output interface (I / O interface), a network interface, etc. can be included. Those skilled in the art can understand that Figure 5 The structure shown is only schematic, and does not limit the structure of the electronic device described above. For example, the electronic device 5 can include more or fewer components than those shown in FIG. 5, or have a different configuration from that shown in FIG. 5. Figure 5 For example, the electronic device 5 can include more or fewer components than those shown in FIG. 5, or have a different configuration from that shown in FIG. 5. Figure 5 For example, the electronic device 5 can include more or fewer components than those shown in FIG. 5, or have a different configuration from that shown in FIG. 5.
[0136] It should be noted that the one or more processors 502 and / or other information processing circuits described above can be referred to herein generally as "information processing circuits". The information processing circuits can be embodied in whole or in part as software, hardware, firmware, or any combination thereof. In addition, the information processing circuits can be a single independent processing module, or be incorporated in any one of the other elements of the electronic device 5 in whole or in part.
[0137] The memory 504 can be used to store software programs and modules of application software, and program instructions / information storage means corresponding to the method described in the embodiments of the present application. The processor 502 executes various functional applications and information processing by running the software programs and modules stored in the memory 504, i.e. implements the above-described battery abnormality detection method. The memory 504 can include a high-speed random access memory, and can also include a non-volatile memory such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 504 can further include a memory remotely arranged with respect to the processor 502, which can be connected to the electronic device 5 through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0138] The transmission device 506 is used to receive or send information via a network. Specific examples of the above-mentioned network can include a wireless network provided by a communication provider of the electronic device 5. In one example, the transmission device 506 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 506 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0139] The specification provides method operation steps as described in the embodiments or flow charts, but can include more or less steps in addition to those shown in the embodiments. The steps shown in the embodiments are merely one way of performing the steps in the order shown, and are not the only way of executing the steps. In actual system or interrupt product execution, the method order shown in the embodiments or the drawings can be executed in sequence or in parallel (for example, in the environment of parallel processor or multi-threaded processing).
[0140] The structure shown in the embodiments is only part of the structure related to the scheme of the present application, and does not constitute a limitation on the equipment to which the scheme of the present application is applied. The specific equipment can include more or less components than shown, or combine certain components, or have a different arrangement of components. It should be understood that the methods, devices, etc. disclosed in the embodiments can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. In actual implementation, another division mode can be used, for example, a plurality of units or components can be combined or integrated into another system, or some features can be omitted or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interfaces, devices or unit modules.
[0141] Based on such understanding, the technical scheme of the present application essentially or the part that contributes to the prior art or the whole or part of the technical scheme can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0142] Those skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in the specification can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the above description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical scheme. The skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0143] The above-described embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for part 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.
Claims
1. A battery abnormality detection method characterized by comprising: The method is applied to a target battery management system including a plurality of battery groups and a plurality of preset dry contacts, and the method includes: obtaining current abnormal information of the target battery management system; the current abnormal information includes a target battery group identifier represented in binary corresponding to an abnormal battery group and target abnormal detail information; performing AND operation on the target battery group identifier and the target abnormal detail information respectively and preset alarm configuration information corresponding to each preset dry contact to obtain a bit operation result corresponding to each preset dry contact; the preset alarm configuration information includes a preset battery group identifier represented in binary, preset alarm detail information, and output polarity; determining a target dry contact based on the bit operation result; the preset battery group identifier corresponding to the target dry contact matches the target battery group identifier, and the preset alarm detail information corresponding to the target dry contact matches the target abnormal detail information; outputting target alarm information based on the output polarity of the target dry contact.
2. The battery abnormality detection method according to claim 1, characterized by, Before the obtaining the current abnormal information of the target battery management system, the method further includes: obtaining alarm trigger information corresponding to each preset dry contact; the alarm trigger information represents an alarm trigger condition corresponding to each preset dry contact in binary; mapping the alarm trigger information to a preset alarm structure corresponding to each preset dry contact respectively to obtain preset alarm configuration information corresponding to each preset dry contact; the preset alarm structure includes a battery group identifier member, an alarm level member, an alarm type member, and an output polarity member.
3. The battery abnormality detection method according to claim 2, characterized by, The preset alarm detail information includes a preset alarm level and a preset alarm type, and the mapping the alarm trigger information to the preset alarm structure corresponding to each preset dry contact respectively to obtain the preset alarm configuration information corresponding to each preset dry contact includes: based on the alarm trigger information, assigning values to the battery group identifier member, the alarm level member, the alarm type member, and the output polarity member corresponding to each preset dry contact respectively to obtain a preset battery group identifier, a preset alarm level, a preset alarm type, and an output polarity corresponding to each preset dry contact.
4. The battery abnormality detection method according to claim 1, characterized by, The target abnormal detail information includes a target abnormal level and a target abnormal type, and the obtaining the current abnormal information of the target battery management system includes: obtaining current working state information of each battery group; determining the abnormal battery group and initial abnormal information corresponding to the abnormal battery group based on the current working state information; the initial abnormal information includes an initial battery group identifier and initial abnormal detail information, and the initial abnormal detail information includes an initial abnormal level and an initial abnormal type; converting the initial battery group identifier into the target battery group identifier represented in binary, converting the initial abnormal level into the target abnormal level represented in binary, and converting the initial abnormal type into the target abnormal type represented in binary; determining the current abnormal information based on the target battery group identifier, the target abnormal level, and the target abnormal type.
5. The battery abnormality detection method according to claim 1, characterized by, The target abnormality detail information includes a target abnormality level and a target abnormality type, the preset alarm detail information includes a preset alarm level and a preset alarm type, the target battery pack identifier and the target abnormality detail information are respectively ANDed with preset alarm configuration information corresponding to each preset dry contact to obtain a bit operation result corresponding to each preset dry contact, and the bit operation result corresponding to each preset dry contact includes: The target battery pack identifier is respectively ANDed with preset battery pack identifiers corresponding to each preset dry contact to obtain a first operation result corresponding to each preset dry contact; The target abnormality level is respectively ANDed with preset alarm levels corresponding to each preset dry contact to obtain a second operation result corresponding to each preset dry contact; The target abnormality type is respectively ANDed with preset alarm types corresponding to each preset dry contact to obtain a third operation result corresponding to each preset dry contact; The first operation result, the second operation result and the third operation result are used to determine the bit operation result corresponding to each preset dry contact.
6. The battery abnormality detection method according to claim 5, characterized by, The preset alarm type includes at least one preset alarm sub-type, and the target dry contact is determined based on the bit operation result, and the method includes: In a case where the bit operation result represents that the preset battery pack identifier is consistent with the target battery pack identifier, the preset alarm level is consistent with the target abnormality level, and one of the preset alarm sub-types in the preset alarm type is consistent with the target abnormality type, a preset dry contact corresponding to the bit operation result is determined as the target dry contact.
7. The battery abnormality detection method according to claim 1, characterized by, The target alarm information is output based on the output polarity of the target dry contact, and the method includes: A target state of the target dry contact is determined based on the output polarity of the target dry contact; in a case where the output polarity of the target dry contact represents that the target dry contact is a normally open dry contact, the target state is that the target dry contact is closed; in a case where the output polarity of the target dry contact represents that the target dry contact is a normally closed dry contact, the target state is that the target dry contact is disconnected; A target control instruction is generated based on the target state; the target control instruction is used to instruct the target dry contact to output the target alarm information.
8. A battery abnormality detection device characterized by comprising: The device is applied to a target battery management system, the target battery management system includes a plurality of battery packs and a plurality of preset dry contacts, and the device includes: A current abnormality information acquisition module is configured to acquire current abnormality information of the target battery management system; the current abnormality information includes a target battery pack identifier corresponding to an abnormal battery pack and represented in binary and target abnormality detail information; A bit operation module is configured to perform AND operation on the target battery pack identifier and the target abnormality detail information and preset alarm configuration information corresponding to each preset dry contact to obtain a bit operation result corresponding to each preset dry contact; the preset alarm configuration information includes preset battery pack identifiers, preset alarm detail information and output polarity represented in binary. The trigger dry contact determination module is configured to determine a target dry contact based on the bit operation result; the target dry contact corresponds to a preset battery pack identifier that matches the target battery pack identifier, and the target dry contact corresponds to preset alarm detail information that matches the target abnormal detail information; The alarm information output module is configured to output target alarm information based on the output polarity of the target dry contact.
9. An electronic device, comprising: The electronic device includes a processor and a memory, and the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the battery abnormality detection method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the battery abnormality detection method of any one of claims 1-7.
Citation Information
Patent Citations
Warning aggregation method and system
CN107124298A
Abnormal battery screening method and device, electronic equipment and readable storage medium
CN111458643A