BMS (Battery Management System) address positioning for reducing multi-battery series networking conflict

By adopting the address allocation method of tree structure and Mason rotation algorithm in multi-battery series networking, the problem of low efficiency of manual address allocation is solved, automatic address encoding and allocation is realized, and the reliability and efficiency of the system are improved.

CN119892798AInactive Publication Date: 2025-04-25SHENZHEN UBET TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510352742.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-04-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In multi-battery series networking, the way of manually allocating BMS addresses leads to low efficiency in system deployment and configuration, which cannot meet the system expansion requirements, which increases the complexity of manual operations and the possibility of errors, and thus increases the system maintenance cost and time.

Method used

The CAN communication network is constructed using a tree structure, and the address preset instructions are sent through the main BMS, and the sub-first-level BMS time random numbers and time intervals are determined based on the Mason rotation algorithm to realize automatic address encoding and allocation.

Benefits of technology

Simplifies the encoding process, quickly initializes the system, improves the reliability and efficiency of automatic address allocation and positioning of BMS, and reduces the need for manual intervention and the risk of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892798A_ABST
    Figure CN119892798A_ABST
Patent Text Reader

Abstract

The invention discloses a BMS (Battery Management System) address positioning method for reducing multi-battery series networking conflict, which relates to the field of BMS address positioning, and comprises the following steps: adopting a tree structure, adding an address presetting instruction, and constructing to form a CAN (Controller Area Network) communication network; based on a Meisson rotation algorithm, determining a sub-first-level BMS time random number and a time interval; the main BMS counts the feedback number of the sub-primary BMS to which the main BMS belongs; judging whether the statistics of the number of the primary sub-BMS to which the main BMS belongs is correct Carrying out address confirmation on the equipment according to a judgment result of whether the number of the sub-primary BMSs to which the main BMS belongs is correct or not; and screening out the address with the consistent equipment address in the CAN communication network, marking the address as an abnormal address positioning point, and giving an alarm. The method has the advantages that the reliability and efficiency of automatic address allocation and positioning of the BMS are improved by simplifying coding, quickly initializing the system and coding each equipment address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of BMS address positioning, and in particular to a BMS address positioning method for reducing conflicts in a multi-battery series networking. Background Art

[0002] At present, with the development of science and technology, more and more equipment are beginning to use batteries, and the performance requirements of the batteries used are becoming more and more special. In industrial and commercial energy storage, especially when high-voltage batteries are used, battery packs are generally composed of 320 strings or other numbers of strings to form high-voltage battery packs. By increasing the number of strings of the battery pack, the operating efficiency of the battery pack is improved. At present, the industry generally uses 16 strings to form a battery pack. When multiple batteries are connected in series, the conflict is not very obvious. However, when the number of strings that make up the battery pack becomes very large, assuming that it reaches 320 strings, there will be 20 BMSs to form a battery cluster, thus forming the entire battery energy storage power station. However, such a large number of battery clusters can easily lead to larger conflicts in the networking of multiple batteries in series, making it more difficult to manage the battery energy storage power station, and increasing the difficulty of locating the BMS address of the multi-battery series networking conflict. Therefore, it is of great significance to improve the BMS address positioning of the multi-battery series networking conflict.

[0003] In the industry, the current technology used is to manually assign addresses through switches with address hardware encoding. This type of technology tends to consume a lot of time in large-scale battery management systems, reducing the efficiency of system deployment and configuration. In addition, as the number of battery packs increases, the manual address assignment method may not be able to meet the needs of system expansion. Newly added battery packs may need to be reassigned addresses, further increasing the complexity of manual operations and the possibility of errors. What's more, due to subjective experience, system communication failures or equipment cannot be correctly identified, thereby increasing the system's maintenance costs and time. Summary of the invention

[0004] In order to solve the above technical problems, a BMS address positioning method is provided to reduce the conflicts in multi-battery series networking. This technical solution solves the problem proposed in the above background technology that it is easy to consume a lot of time in large-scale battery management systems, reduces the efficiency of system deployment and configuration, and as the number of battery packs increases, the manual address allocation method may not be able to meet the needs of system expansion. Newly added battery packs may need to be re-assigned addresses, further increasing the complexity of manual operations and the possibility of errors. What's more, due to subjective experience, system communication failures or equipment cannot be correctly identified, thereby increasing the maintenance cost and time of the system.

[0005] In order to achieve the above purpose, the technical solution adopted by the present invention is: A BMS address positioning method for reducing conflicts in a multi-battery series network, comprising: According to the needs of battery clusters in battery energy storage power stations, a tree structure is adopted, address pre-setting instructions are added, and CAN communication networking is constructed; According to the address preset instruction sent by the main BMS, the sub-level BMS time random number and time interval are determined based on the Mersenne Twister algorithm; According to the feedback from the sub-level BMS to the main BMS, the main BMS counts the number of feedbacks from its sub-level BMS; According to the statistics of the number of feedbacks from the main BMS to its subordinate first-level BMS, it is judged whether the statistics of the number of subordinate first-level BMSs belonging to the main BMS are correct; According to the result of whether the number of sub-level BMSs belonging to the main BMS is correct, the address of the device is confirmed; According to the confirmation of the device address, the addresses with consistent device addresses in the CAN communication network are screened out, marked as abnormal address positioning points, and an alarm is issued.

[0006] Preferably, according to the requirements of the battery cluster of the battery energy storage power station, a tree structure is adopted, address presetting instructions are added, and the CAN communication network is constructed, which specifically includes: According to the needs of battery clusters in battery energy storage power stations, a tree structure is adopted, address pre-setting instructions are added, and CAN communication networking is constructed; The CAN communication network mainly includes: a system BMS, a CAN system bus, a master BMS (i), a CAN (i) bus, and a sub-level BMS (j) under the master BMS (i); Among them, the master BMS (i) refers to the i-th master BMS, the CAN (i) bus refers to the CAN bus of the i-th master BMS connecting the sub-level BMS (j) under the master BMS (i), and the sub-level BMS (j) refers to the j-th sub-level BMS under the master BMS (i); The CAN communication network tree structure specifically includes: A single system BMS mounts multiple master BMSs through the CAN system bus, and each master BMS is set as the master node; A single master BMS mounts multiple sub-level BMSs via the CAN(i) bus, and each sub-level BMS is set as a sub-level node; According to the above allocation method, a multi-layer CAN communication network tree structure is set; According to the multi-layer CAN communication network tree structure, all BMS are numbered and address preset instructions are added, and the address preset allocation value is queried by number.

[0007] Preferably, the step of sending an address preset instruction from the main BMS and determining the sub-level BMS time random number and time interval based on the Mersenne Twister algorithm specifically includes: Based on big data, the processing time range from when each level of BMS sends a command to when it receives a command is obtained, and a value is selected from the processing time range as the seed value of the Mersenne Twister algorithm, i.e., the initial state; According to the seed value of the Mersenne Twister algorithm, the seed value of the Mersenne Twister algorithm is represented by a binary number, and a BMS binary time random number matrix is ​​established; According to the BMS binary time random number matrix and Mersenne twister algorithm, a recursive formula for generating BMS binary time random numbers is established. Convert the BMS binary time random number obtained after recursion into a decimal number, and determine the sub-level BMS time interval according to the generated decimal number; According to the actual time consumption of sending and receiving at each level of BMS, based on historical data, set the maximum time consumption limit threshold; Determine whether the generated sub-level BMS time interval is greater than the maximum time limit threshold. If so, it means that the sub-level BMS response has timed out, and the time interval is set to 0. If not, it means normal; According to the sub-level BMS time interval, a preset command response packet containing the random number is sent, which can only be sent once; The BMS binary time random number generation recursive formula is: , In the formula, For the The generated BMS binary time random number, For the The generated BMS binary time random number, is the recursion length, is the recursion period parameter, is the bitwise XOR mathematical symbol, For the The generated BMS binary time random number High-order binary data, For the The generated BMS binary time random number Low-order binary data, is the high bit offset of the binary number. is the low-order offset of the binary number. is the horizontal concatenation symbol of the binary matrix, is the parameter of the rotation matrix, is a constant matrix.

[0008] Preferably, the main BMS counting the number of feedbacks from its sub-level BMSs according to the feedbacks from the sub-level BMSs to the main BMS specifically includes: According to the preset command response packet sent by the sub-level BMS, the main BMS receives and reads the random number in the preset command response packet of the sub-level BMS; Generate a feedback sequence from the master BMS to its subordinate first-level BMS according to the reception and reading of the master BMS's response package of the preset command of the subordinate first-level BMS; According to the feedback sequence of the main BMS to its subordinate first-level BMS, the main BMS counts the number of feedbacks to its subordinate first-level BMS; According to the reception and reading of the preset command response package sent by the sub-level BMS by the main BMS, the random numbers in the preset command response package of the sub-level BMS are recorded in sequence; The statistical expression of the number of feedbacks from the master BMS to its subordinate primary BMS is: , In the formula, The index of the start of the feedback sequence from the master BMS to its subordinate BMS. For The starting sequence offset, is an existential quantifier, indicating that there is a number , which matches the set The number in The length of the feedback sequence from the master BMS to its subordinate BMS. The number of consecutive reads of the master BMS’s feedback sequence to its subordinate first-level BMS. This is true for all objects, indicating that All satisfied Belongs to the collection The number in It is an associative symbol, indicating that the conditions before and after the colon are met at the same time. The first sequence read by the master BMS to the subordinate BMS values, Defines the threshold for the sequence, which is a constant.

[0009] Preferably, judging whether the statistics of the number of sub-level BMSs of the main BMS are correct according to the statistics of the number of sub-level BMSs fed back by the main BMS specifically includes: According to the statistics of the number of feedbacks from the main BMS to its subordinate first-level BMS, a device quantity confirmation instruction is sent to the subordinate first-level BMS; After receiving the equipment quantity confirmation command, the subordinate BMS generates a time random number again and sends a equipment quantity confirmation command response package containing this random number and the previous random number. This can only be sent once. The master BMS receives and compares the number of feedbacks from its subordinate first-level BMSs this time and last time to see if they are the same. If so, it means that the master BMS has correctly counted the number of subordinate first-level BMSs. If not, it means that the master BMS has counted the number of subordinate first-level BMSs abnormally and needs to be re-counted. When the number of re-counts exceeds the limit, an abnormal alarm is issued.

[0010] Preferably, the address confirmation of the device according to the result of determining whether the number of sub-level BMSs belonging to the main BMS is correct specifically includes: According to the result of determining whether the number of sub-level BMSs belonging to the master BMS is correct, the random number in the sub-level BMS preset instruction response package with correct number statistics is selected; Set the specified address allocation value according to the random number in the last correct sub-level BMS preset command response package; According to the specified address allocation value, the sub-level BMS obtains its own unique specified address allocation value; According to the designated address allocation value unique to the sub-level BMS, the address confirmation instruction is fed back to the main BMS, and this address is recorded in the internal storage as the address of the sub-level BMS.

[0011] Preferably, the method of screening out addresses with consistent device addresses in the CAN communication network according to the confirmation of the device addresses, marking them as abnormal address positioning points, and issuing an alarm specifically includes: According to the confirmation of the device address, by comparing the unique designated address allocation values ​​of all sub-level BMSs, the addresses with completely consistent device addresses in the CAN communication network are screened out; Filter out the addresses that are completely consistent with the device addresses in the CAN communication network, mark the abnormal address location point, and issue an alarm; According to the abnormal address location point, reverse search and locate the number of the sub-level BMS, and display it through printed reports or visualization platforms.

[0012] Compared with the prior art, the present invention has the following beneficial effects: According to the needs of the battery cluster of the battery energy storage power station, a tree structure is constructed, which is similar to a main BMS with multiple sub-level BMSs mounted on the lower layer, and address preset instructions are added to all BMSs. Through this architecture, automatic address encoding is realized, thereby forming a CAN communication network. Secondly, by sending address preset instructions according to the main BMS, based on the Mersenne rotation algorithm, the sub-level BMS time random number and time interval are determined, and according to the sub-level BMS time interval, the preset instruction response package containing the random number is fed back to the main BMS, thereby completing the first round of sub-level BMS time random number and time interval determination. Furthermore, according to the feedback of the sub-level BMS to the main BMS, the main BMS counts the number of feedbacks from its sub-level BMSs, and records the sub-level BMS preset instruction response package in turn. The random number is used to complete a preliminary cycle of BMS address location for multi-battery series networking conflicts. Then, after receiving the device quantity confirmation command, the subordinate sub-level BMS generates a time random number again and sends a device quantity confirmation command response package containing this random number and the last random number. The main BMS determines whether the number statistics of the subordinate sub-level BMS are correct by receiving and comparing the number of feedbacks to the subordinate sub-level BMS this time and the last time. Thus, the random number in the preset command response package of the sub-level BMS with correct number statistics is screened out to determine the unique designated address allocation value of the sub-level BMS. Finally, according to the confirmation of the device address, the address with consistent device address confirmation in the CAN communication network is screened out, marked as an abnormal address location point, and an alarm is issued. Thus, by simplifying the coding, quickly initializing the system, and encoding each device address, the reliability and efficiency of BMS automatic address allocation and positioning are improved, and the need for manual intervention and the risk of error are greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A flow chart of a BMS address positioning method for reducing conflicts in multi-battery series networking according to the present invention; Figure 2 According to the requirements of the battery cluster of the battery energy storage power station of the present invention, a tree structure is adopted, address presetting instructions are added, and a CAN communication networking flow chart is constructed; Figure 3 The flowchart of the present invention is to determine the sub-level BMS time random number and time interval based on the Mersenne Twister algorithm according to the address preset instruction sent by the main BMS; Figure 4 This is a flowchart of the present invention in which the main BMS performs statistics on the number of feedbacks from its sub-level BMSs according to the feedback from the sub-level BMSs to the main BMS; Figure 5 This is a structural diagram of the electronic device proposed by the present invention; Figure 6This is a schematic diagram of the structure of the computer-readable storage medium proposed in the present invention. DETAILED DESCRIPTION

[0014] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.

[0015] Reference Figure 1 As shown, a BMS address positioning method for reducing conflicts in multi-battery series networking includes: According to the needs of battery clusters in battery energy storage power stations, a tree structure is adopted, address pre-setting instructions are added, and CAN communication networking is constructed; According to the address preset instruction sent by the main BMS, the sub-level BMS time random number and time interval are determined based on the Mersenne Twister algorithm; According to the feedback from the sub-level BMS to the main BMS, the main BMS counts the number of feedbacks from its sub-level BMS; According to the statistics of the number of feedbacks from the main BMS to its subordinate first-level BMS, it is judged whether the statistics of the number of subordinate first-level BMSs belonging to the main BMS are correct; According to the result of whether the number of sub-level BMSs belonging to the main BMS is correct, the address of the device is confirmed; According to the confirmation of the device address, the addresses with consistent device addresses in the CAN communication network are screened out, marked as abnormal address positioning points, and an alarm is issued.

[0016] It can be explained that this scheme builds a tree-like structure according to the needs of the battery cluster of the battery energy storage power station, which is similar to a main BMS with multiple sub-level BMSs mounted on the lower layer, and adds address preset instructions to all BMSs. Through this architecture, automatic address encoding is realized, thereby forming a CAN communication network. Secondly, by sending address preset instructions according to the main BMS, based on the Mersenne rotation algorithm, the sub-level BMS time random number and time interval are determined, and according to the sub-level BMS time interval, the preset instruction response package containing the random number is fed back to the main BMS, thereby completing the first round of sub-level BMS time random number and time interval determination. Furthermore, according to the feedback of the sub-level BMS to the main BMS, the main BMS counts the number of feedbacks from its sub-level BMSs, and records the sub-level BMS preset instructions in turn. The random number in the response packet is used to complete a preliminary cycle of BMS address positioning for multi-battery series networking conflicts. Then, after receiving the device quantity confirmation command, the subordinate sub-level BMS generates a time random number again and sends a device quantity confirmation command response packet containing this random number and the last random number. The main BMS receives and compares whether the number of feedbacks to the subordinate sub-level BMS this time and last time is the same, and determines whether the number statistics of the subordinate sub-level BMS of the main BMS are correct. Thus, by screening out the random number in the preset command response packet of the sub-level BMS with correct number statistics, the sub-level BMS uniquely assigned its own designated address allocation value is determined. Finally, according to the confirmation of the device address, the address with consistent device address confirmation in the CAN communication network is screened out, marked as an abnormal address positioning point, and an alarm is issued. Thus, by simplifying the coding, quickly initializing the system, and encoding each device address, the reliability and efficiency of BMS automatic address allocation and positioning are improved, and the need for manual intervention and the risk of error are greatly reduced.

[0017] Reference Figure 2 As shown, according to the requirements of the battery cluster of the battery energy storage power station, a tree structure is adopted, address presetting instructions are added, and the CAN communication network is constructed, which specifically includes: According to the needs of battery clusters in battery energy storage power stations, a tree structure is adopted, address pre-setting instructions are added, and CAN communication networking is constructed; The CAN communication network mainly includes: a system BMS, a CAN system bus, a master BMS (i), a CAN (i) bus, and a lower-level sub-level BMS (j) of the master BMS (i); Among them, the master BMS (i) refers to the i-th master BMS, the CAN (i) bus refers to the CAN bus of the i-th master BMS connecting the sub-level BMS (j) under the master BMS (i), and the sub-level BMS (j) refers to the j-th sub-level BMS under the master BMS (i); The CAN communication network tree structure specifically includes: A single system BMS mounts multiple master BMSs through the CAN system bus, and each master BMS is set as the master node; A single master BMS mounts multiple sub-level BMSs via the CAN(i) bus, and each sub-level BMS is set as a sub-level node; According to the above allocation method, a multi-layer CAN communication network tree structure is set; According to the multi-layer CAN communication network tree structure, all BMS are numbered and address preset instructions are added, and the address preset allocation value is queried by number.

[0018] It can be explained that in order to reduce the conflict of multi-battery series networking and improve the ability to locate the BMS address, it is necessary to effectively manage the multi-battery series networking. This solution adopts a tree structure to construct a CAN communication network. The upper-level BMS manages the lower-level BMS, thereby generating a decentralized management mode, thereby improving the management efficiency of multi-battery series networking.

[0019] Reference Figure 3 As shown, the method of determining the sub-level BMS time random number and time interval based on the Mersenne Twister algorithm according to the address preset instruction sent by the main BMS specifically includes: Based on big data, the processing time range from when each level of BMS sends a command to when it receives a command is obtained, and a value is selected from the processing time range as the seed value of the Mersenne Twister algorithm, i.e., the initial state; According to the seed value of the Mersenne Twister algorithm, the seed value of the Mersenne Twister algorithm is represented by a binary number, and a BMS binary time random number matrix is ​​established; According to the BMS binary time random number matrix and Mersenne twister algorithm, a recursive formula for generating BMS binary time random numbers is established. Convert the BMS binary time random number obtained after recursion into a decimal number, and determine the sub-level BMS time interval according to the generated decimal number; According to the actual time consumption of sending and receiving at each level of BMS, based on historical data, set the maximum time consumption limit threshold; Determine whether the generated sub-level BMS time interval is greater than the maximum time limit threshold. If so, it means that the sub-level BMS response has timed out, and the time interval is set to 0. If not, it means normal; According to the sub-level BMS time interval, a preset command response packet containing the random number is sent, which can only be sent once; The BMS binary time random number generation recursive formula is: , In the formula, For the The generated BMS binary time random number, For the The generated BMS binary time random number, is the recursion length, is the recursion period parameter, is the bitwise XOR mathematical symbol, For the The generated BMS binary time random number High-order binary data, For the The generated BMS binary time random number Low-order binary data, is the high bit offset of the binary number. is the low-order offset of the binary number. is the horizontal concatenation symbol of the binary matrix, is the parameter of the rotation matrix, is a constant matrix.

[0020] It can be explained that if you want to assign unique designated address allocation values ​​to all BMSs, you need to assign values ​​to the addresses of all BMSs. This solution uses the Mersenne Twister algorithm to assign sub-level BMS time random numbers by utilizing the non-repetitive characteristics of the random number sequence generated within one cycle, as well as good statistical characteristics and uniformity. This ensures that each BMS has its own unique designated address allocation value while ensuring the stability and reliability of the sub-level BMS time random number generation.

[0021] Reference Figure 4 As shown, according to the feedback of the sub-level BMS to the main BMS, the main BMS counts the number of feedbacks of its sub-level BMSs, which specifically includes: According to the preset command response packet sent by the sub-level BMS, the main BMS receives and reads the random number in the preset command response packet of the sub-level BMS; Generate a feedback sequence from the master BMS to its subordinate first-level BMS according to the reception and reading of the master BMS's response package of the preset command of the subordinate first-level BMS; According to the feedback sequence of the main BMS to its subordinate first-level BMS, the main BMS counts the number of feedbacks to its subordinate first-level BMS; According to the reception and reading of the preset command response package sent by the sub-level BMS by the main BMS, the random numbers in the preset command response package of the sub-level BMS are recorded in sequence; The statistical expression of the number of feedbacks from the master BMS to its subordinate primary BMS is: , In the formula, The index of the start of the feedback sequence from the master BMS to its subordinate BMS. For The starting sequence offset, is an existential quantifier, indicating that there is a number , which matches the set The number in The length of the feedback sequence from the master BMS to its subordinate BMS. The number of consecutive reads of the master BMS’s feedback sequence to its subordinate first-level BMS. This is true for all objects, indicating that All satisfied Belongs to the collection The number in It is an associative symbol, indicating that the conditions before and after the colon are met at the same time. The first sequence read by the master BMS to the subordinate BMS values, Defines the threshold for the sequence, which is a constant.

[0022] It can be explained that in order to ensure that each sub-level BMS can be allocated its own designated address allocation value, it is necessary to obtain and read the random number in the sub-level BMS preset command response package and the number of feedback from the main BMS to its sub-level BMS through the feedback of the sub-level BMS to the main BMS. By comparing whether the number of feedbacks received by the main BMS to its sub-level BMS twice is the same, it is possible to determine whether all sub-level BMSs have generated random numbers. This scheme adopts a continuous offset reading method. By counting the number of continuous feedbacks from the sub-level BMS, it can effectively discover abnormal feedback points, thereby improving the statistical ability of the number of feedbacks from the sub-level BMS and the ability to mine abnormal events, and ensuring the reliability and accuracy of independent address allocation of BMS.

[0023] Furthermore, the method according to the embodiment of the present application can also be performed by Figure 5 The electronic device architecture shown in FIG. Figure 5 As shown, the electronic device 500 may include a bus 501, one or more CPUs 502, a read-only memory (ROM) 503, a random access memory (RAM) 504, a communication port 505 connected to a network, an input / output component 506, a hard disk 507, etc. The storage device in the electronic device 500, such as ROM 503 or hard disk 507, may store a BMS address positioning method for reducing conflicts in multi-battery series networking provided by the present application. The electronic device 500 may also include a user interface 508. Of course, Figure 5 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 5One or more components of an electronic device are shown.

[0024] Figure 6 Schematic diagram of a computer-readable storage medium structure provided by an embodiment of the present application. Figure 6 As shown, a computer-readable storage medium 600 according to an embodiment of the present application is shown. Computer-readable instructions are stored on the computer-readable storage medium 600. When the computer-readable instructions are executed by the processor, a BMS address positioning method for reducing multi-battery series networking conflicts according to an embodiment of the present application described with reference to the above figures can be executed. The storage medium 600 includes, but is not limited to, for example, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.

[0025] In summary, the advantages of the present invention are: by simplifying the coding, quickly initializing the system, and encoding each device address, the reliability and efficiency of the BMS automatic address allocation and positioning are improved, and the need for manual intervention and the risk of error are greatly reduced.

[0026] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.

Claims

1. A BMS address positioning method for reducing conflicts in multi-battery series networking, characterized in that: include: According to the needs of battery clusters in battery energy storage power stations, a tree structure is adopted, address pre-setting instructions are added, and CAN communication networking is constructed; According to the address preset instruction sent by the main BMS, the sub-level BMS time random number and time interval are determined based on the Mersenne Twister algorithm; According to the feedback from the sub-level BMS to the main BMS, the main BMS counts the number of feedbacks from its sub-level BMS; According to the statistics of the number of feedbacks from the main BMS to its subordinate first-level BMS, it is judged whether the statistics of the number of subordinate first-level BMSs belonging to the main BMS are correct; According to the result of whether the number of sub-level BMSs belonging to the main BMS is correct, the address of the device is confirmed; According to the confirmation of the device address, the addresses with consistent device addresses in the CAN communication network are screened out, marked as abnormal address positioning points, and an alarm is issued.

2. A BMS address positioning method for reducing conflicts in multi-battery series networking according to claim 1, characterized in that: According to the requirements of the battery cluster of the battery energy storage power station, a tree structure is adopted, address presetting instructions are added, and the CAN communication network is constructed, which specifically includes: According to the needs of battery clusters in battery energy storage power stations, a tree structure is adopted, address pre-setting instructions are added, and CAN communication networking is constructed; The CAN communication network mainly includes: a system BMS, a CAN system bus, a master BMS (i), a CAN (i) bus, and a sub-level BMS (j) under the master BMS (i); Among them, the master BMS (i) refers to the i-th master BMS, the CAN (i) bus refers to the CAN bus of the i-th master BMS connecting the sub-level BMS (j) under the master BMS (i), and the sub-level BMS (j) refers to the j-th sub-level BMS under the master BMS (i); The CAN communication network tree structure specifically includes: A single system BMS mounts multiple master BMSs through the CAN system bus, and each master BMS is set as the master node; A single master BMS mounts multiple sub-level BMSs via the CAN(i) bus, and each sub-level BMS is set as a sub-level node; According to the above allocation method, a multi-layer CAN communication network tree structure is set; According to the multi-layer CAN communication network tree structure, all BMS are numbered and address preset instructions are added, and the address preset allocation value is queried by number.

3. A BMS address positioning method for reducing conflicts in multi-battery series networking according to claim 2, characterized in that: The method of determining the sub-level BMS time random number and time interval based on the Mersenne Twister algorithm according to the address preset instruction sent by the main BMS specifically includes: Based on big data, the processing time range from when each level of BMS sends a command to when it receives a command is obtained, and a value is selected from the processing time range as the seed value of the Mersenne Twister algorithm, i.e., the initial state; According to the seed value of the Mersenne Twister algorithm, the seed value of the Mersenne Twister algorithm is represented by a binary number, and a BMS binary time random number matrix is ​​established; According to the BMS binary time random number matrix and the Mersenne Twister algorithm, a recursive formula for generating BMS binary time random numbers is established. Convert the BMS binary time random number obtained after recursion into a decimal number, and determine the sub-level BMS time interval according to the generated decimal number; According to the actual time consumption of sending and receiving at each level of BMS, based on historical data, set the maximum time consumption limit threshold; Determine whether the generated sub-level BMS time interval is greater than the maximum time limit threshold. If so, it means that the sub-level BMS response has timed out, and the time interval is set to 0. If not, it means normal; According to the sub-level BMS time interval, a preset command response packet containing the random number is sent, which can only be sent once; The BMS binary time random number generation recursive formula is: , In the formula, For the The generated BMS binary time random number, For the The generated BMS binary time random number, is the recursion length, is the recursion period parameter, is the bitwise XOR mathematical symbol, For the The generated BMS binary time random number High-order binary data, For the The generated BMS binary time random number Low-order binary data, is the high bit offset of the binary number. is the low-order offset of the binary number. is the horizontal concatenation symbol of the binary matrix, is the parameter of the rotation matrix, is a constant matrix.

4. A BMS address positioning method for reducing conflicts in multi-battery series networking according to claim 3, characterized in that: According to the feedback of the sub-level BMS to the main BMS, the main BMS counts the number of feedbacks from the sub-level BMSs, specifically including: According to the preset command response packet sent by the sub-level BMS, the main BMS receives and reads the random number in the preset command response packet of the sub-level BMS; Generate a feedback sequence from the master BMS to its subordinate first-level BMS according to the reception and reading of the master BMS's response package of the preset command of the subordinate first-level BMS; According to the feedback sequence of the main BMS to its subordinate first-level BMS, the main BMS counts the number of feedbacks to its subordinate first-level BMS; According to the reception and reading of the preset command response package sent by the sub-level BMS by the main BMS, the random numbers in the preset command response package of the sub-level BMS are recorded in sequence; The statistical expression of the number of feedbacks from the master BMS to its subordinate primary BMS is: , In the formula, The index of the start of the feedback sequence from the master BMS to its subordinate BMS. For The starting sequence offset, is an existential quantifier, indicating that there is a number , which matches the set The number in The length of the feedback sequence from the master BMS to its subordinate BMS. The number of consecutive reads of the master BMS’s feedback sequence to its subordinate first-level BMS. This is true for all objects, indicating that All satisfied Belongs to the collection The number in It is an associative symbol, indicating that the conditions before and after the colon are met at the same time. The first sequence read by the master BMS to the subordinate BMS values, Defines the threshold for the sequence, which is a constant.

5. A BMS address positioning method for reducing conflicts in multi-battery series networking according to claim 4, characterized in that: The step of judging whether the statistics of the number of sub-level BMSs of the main BMS are correct according to the statistics of the number of sub-level BMSs fed back by the main BMS specifically includes: According to the statistics of the number of feedbacks from the main BMS to its subordinate first-level BMS, a device quantity confirmation instruction is sent to the subordinate first-level BMS; After receiving the equipment quantity confirmation command, the subordinate BMS generates a time random number again and sends a equipment quantity confirmation command response package containing this random number and the previous random number. This can only be sent once. The master BMS receives and compares the number of feedbacks from its subordinate first-level BMSs this time and last time to see if they are the same. If so, it means that the master BMS has correctly counted the number of subordinate first-level BMSs. If not, it means that the master BMS has counted the number of subordinate first-level BMSs abnormally and needs to be re-counted. When the number of re-counts exceeds the limit, an abnormal alarm is issued.

6. A BMS address positioning method for reducing conflicts in multi-battery series networking according to claim 5, characterized in that: The address confirmation of the device according to the result of determining whether the number of sub-level BMSs belonging to the main BMS is correct specifically includes: According to the result of determining whether the number of sub-level BMSs belonging to the master BMS is correct, the random number in the sub-level BMS preset instruction response package with correct number statistics is selected; Set the specified address allocation value according to the random number in the last correct sub-level BMS preset command response package; According to the specified address allocation value, the sub-level BMS obtains its own unique specified address allocation value; According to the designated address allocation value unique to the sub-level BMS, the address confirmation instruction is fed back to the main BMS, and this address is recorded in the internal storage as the address of the sub-level BMS.

7. A BMS address positioning method for reducing conflicts in multi-battery series networking according to claim 6, characterized in that: The method of filtering out addresses with consistent device addresses in the CAN communication network according to the confirmation of the device addresses, marking them as abnormal address positioning points, and issuing an alarm specifically includes: According to the confirmation of the device address, by comparing the unique designated address allocation values ​​of all sub-level BMSs, the addresses with completely consistent device addresses in the CAN communication network are screened out; Filter out the addresses that are completely consistent with the device addresses in the CAN communication network, mark the abnormal address location point, and issue an alarm; According to the abnormal address location point, reverse search and locate the number of the sub-level BMS, and display it through printed reports or visualization platforms.

8. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a BMS address positioning method for reducing conflicts in multi-battery series networking as described in any one of claims 1-7.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, a BMS address positioning method for reducing conflicts in a multi-battery series network is implemented as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Wireless passive radio frequency sensing system anti-collision data-transmission method

    CN101452517A

  • Method and system for locally realizing automatic address allocation of RS485 slave equipment

    CN111147619A

  • Synchronous control method and control system for multiple BMS (Battery Management System) slaves

    CN116405146A

  • Automatic address allocation method, system and equipment suitable for two-dimensional battery network system and medium

    CN118433159A