A method, system, device and medium for automatic address allocation of two-dimensional battery network system

Through the connection identification device and automatic coordinate allocation technology, the problem of difficulty in tracking the position of the slave machine in the battery management system is solved, the precise position identification and management of the slave machine is realized, and the safety and stability of the battery system are improved.

CN118433159BActive Publication Date: 2024-08-30GUANGDONG SUPERPACK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410884711.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-08-30
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

It is difficult for the existing battery management system to accurately track and locate the physical location of the slave machine, which increases the difficulty of maintenance and optimizes the heat dissipation design, affecting the service life and safety of the battery.

Method used

Use a pre-set connection identification device to determine the connection status of the slave through the series and parallel identification equipment, send initialization instructions and broadcast messages, and automatically assign coordinate information to each slave so that its coordinates in the two-dimensional battery network are consistent with the actual The physical location is consistent.

Benefits of technology

It achieves precise location identification of each slave machine, avoids location confusion, simplifies system settings, improves management efficiency, reduces maintenance costs, and enhances system security and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118433159B
    Figure CN118433159B
Patent Text Reader

Abstract

The present invention belongs to the field of battery technology, and relates to a method, system, device and medium for automatic address allocation of a two-dimensional battery network system. A two-dimensional battery network is formed between a host and a slave. The method is as follows: using a pre-set connection identification device to determine the connection status of the slave; sending an initialization instruction to the slave so that the slave responds and performs an initialization operation, and setting the slave related information according to the connection status; by sending a query or broadcast message, the number, position and network boundary of the slave are determined in combination with the slave related information; according to the number, position and network boundary of the slave, coordinate information is automatically allocated to each slave, so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical position. The present invention can automatically, efficiently and accurately allocate network addresses to slaves in the case of unknown matrix scale and slave row and column information, realize automatic allocation of network addresses in two-dimensional space, and improve the reliability and management efficiency of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery technology, and in particular to a method, system, device and medium for automatically allocating addresses for a two-dimensional battery network system. Background Art

[0002] In the wide application of battery technology, especially in key areas such as large energy storage systems, electric vehicles and grid energy storage, the design and construction of battery systems are particularly important. In order to meet the actual needs of different voltages and capacities, single cells often need to be combined into slaves or nodes, and further connected in series and parallel to form a complex battery system. This combination constructs a complex two-dimensional topological network structure to achieve efficient energy storage and transmission.

[0003] However, as the number of slaves increases and the combination and arrangement methods become more diverse, the difficulty of managing the battery system also increases. When managing and monitoring the battery system, the user or the upper-level battery management system (BMS) not only needs to understand the unique identifier of each slave at the logical level (such as a one-dimensional serial number), but also needs to know its specific location in the physical space. This is because the physical location of the slave is directly related to key factors such as the heat dissipation performance, safety, and maintenance efficiency of the battery system. However, the one-dimensional serial number usually only represents the logical uniqueness of the slave, and cannot intuitively reflect its specific spatial location in the battery system.

[0004] Although existing battery management systems can identify and manage the logical addresses of slaves, they often lack accurate tracking and positioning of the actual spatial positions of slaves. As a result, in actual applications, when a battery failure occurs or maintenance is required, it is difficult for the system to quickly locate the specific slave position, increasing the difficulty and time cost of maintenance. At the same time, battery management without spatial location information also makes it difficult to design and optimize the heat dissipation of the battery system, which may affect the service life and safety of the battery. Summary of the invention

[0005] 1. Technical issues to be resolved

[0006] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a method, system, device and medium for automatic address allocation in a two-dimensional battery network system, which solves the problem that the existing battery management system lacks accurate tracking and positioning technology for the actual spatial position of the slave.

[0007] (II) Technical solution

[0008] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0009] In a first aspect, an embodiment of the present invention provides a method for automatically allocating addresses for a two-dimensional battery network system, wherein a two-dimensional battery network is formed between a host and slaves controlled by the host, and the method comprises:

[0010] Determine the connection status of the slave using a pre-set connection identification device;

[0011] Send an initialization command to the slave, so that the slave responds and performs the initialization operation, and sets the slave related information according to the connection status;

[0012] Determine the number, location and network boundaries of slaves by sending queries or broadcast messages and combining relevant information of slaves;

[0013] According to the number, location and network boundary of the slaves, coordinate information is automatically assigned to each slave so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical location.

[0014] Optionally, the connection identification device includes: a serial identification device and a parallel identification device;

[0015] The serial identification device comprises: at least one serial identification circuit;

[0016] The parallel identification device comprises: non-contact sensors connected to the controller, and every two non-contact sensors are respectively arranged on two opposite sides of the slave housing.

[0017] Optionally, the series identification circuit includes:

[0018] Controller;

[0019] A first connection detection component is connected to the controller and is configured to detect the connection status between the slave of the current level and the slave of the previous level through an optical coupling element and a controllable switch;

[0020] The second connection detection component is connected to the controller and is configured to detect the connection status between the slave at the current stage and the slave at the next stage through an optical coupling element and a controllable switch.

[0021] Optionally, the first connection detection component includes:

[0022] A first path, wherein a first end of the first path is connected to the positive electrode of the slave at the current level, a second end of the first path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at the current level, and the first path includes a first controllable switch and an input end of a first optical coupler connected thereto;

[0023] a second path, wherein a first end of the second path is connected to the positive electrode of the previous slave or the negative electrode of the current slave, a second end of the second path is connected to the positive electrode of the previous two slaves or the negative electrode of the previous slave, and the second path includes an output end of the first optocoupler connected to an input end of the second optocoupler;

[0024] a third path, wherein a first end of the third path is connected to the positive electrode of the slave at the current stage, a second end of the third path is connected to the positive electrode of the slave at the previous stage or the negative electrode of the slave at the current stage, and the third path includes an output end of the second optical coupler;

[0025] The second connection detection component includes:

[0026] a fourth path, wherein a first end of the fourth path is connected to the positive electrode of the slave at the current level, a second end of the fourth path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at the current level, and the fourth path includes a second controllable switch connected thereto and an input end of a third optical coupler;

[0027] A fifth path, wherein a first end of the fifth path is connected to the positive electrode of the slave device at the next stage, a second end of the fifth path is connected to the positive electrode of the slave device at the current stage, and the fifth path includes an output end of the third optical coupler and an input end of the fourth optical coupler;

[0028] The sixth path, the first end of the sixth path is connected to the positive electrode of the slave at this level, the second end of the sixth path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at this level, and the sixth path includes the output end of the fourth optocoupler.

[0029] Optionally, each contactless sensor includes: at least one transmitting end and one receiving end, the transmitting end in each contactless sensor is communicatively connected to the receiving end of another contactless sensor disposed on an adjacent slave machine, and the receiving end in each contactless sensor is communicatively connected to the transmitting end in another contactless sensor disposed on an adjacent slave machine.

[0030] Optionally, using a preset connection identification device, determining the connection state of the slave includes:

[0031] Acquire serial connection information of the slaves through the serial identification device, and acquire parallel connection information of the slaves through the parallel identification device;

[0032] Based on the serial connection information and the parallel connection information of the slaves, the connection status between each slave and the master is determined.

[0033] Optionally, sending an initialization instruction to the slave so that the slave responds and performs an initialization operation, and setting slave related information according to the connection state includes:

[0034] Send an initialization command to the slave, triggering the slave MCU to generate a random number as the unique ID of the slave;

[0035] If a duplicate slave ID is detected, the corresponding slave is instructed to recalculate and generate a new random number until a unique ID is obtained;

[0036] The expected number of slaves Q is obtained by counting the number of slave IDs;

[0037] According to the connection status between the host and the slave, mark the slave connection status to complete the setting of the slave related information.

[0038] Optionally, according to the connection status between the host and the slave, marking the connection status of the slave includes:

[0039] Initialize the slave's natural sequence number n and set it to 0;

[0040] According to the determined connection status between the master and the slave, judging whether any slave is connected to an adjacent slave in a corresponding position;

[0041] If the slave is connected to the adjacent slave in the corresponding position, the connection status of the position is set to 1;

[0042] If the slave is not connected to the adjacent slave in the corresponding position, the connection status of the position is set to 0;

[0043] Reassign the slave's natural sequence number n to the slave's ID to mark the slave's connection status;

[0044] Among them, the slave connection status is marked as:

[0045] ;

[0046] In the formula, the connection status is determined by the connection status in four directions, N U 、N D 、N L 、N R Respectively represent the connection status with adjacent slaves in the four directions of up, down, left and right.

[0047] Optionally, determining the number, location and network boundary of the slaves by sending a query or broadcasting a message and combining the slave related information includes:

[0048] Send a command with timestamp t0 to all slaves, triggering the slave to report back the ID and the corresponding initial timestamp t ID1 ;

[0049] Determine the initial verification quantity Q of the slave by counting the number of IDs reported by the slave ID1 ;

[0050] Check whether the expected number of slaves Q is equal to the initial verification number Q ID1 ;

[0051] If the expected number of slaves Q is not equal to the initial verification number Q ID1 , then repeat the work including sending the command with timestamp t0 to all slaves and determining the initial verification quantity of the slaves. If they are not equal after the set number of repetitions, an error is reported and the machine is stopped for inspection;

[0052] If the initial slave quantity Q is equal to the initial verification quantity Q ID1 , then all received initial timestamps t ID1 Sorting to form a first timestamp sequence;

[0053] According to the first timestamp sequence, solving the adjacent distances between the slaves;

[0054] Mapping the master and the slaves to a plane coordinate system or a complex plane coordinate system according to the reference point determined by the master's own position and the adjacent distances between the slaves, and in the mapping process, assigning a position to each slave in combination with the mark of the connection state of each slave and the first timestamp sequence;

[0055] After turning off the connection status identification switches of all slaves connected to the adjacent slaves in the four directions of up, down, left and right, send a command with a timestamp t0 to all slaves again, triggering the slaves to report the ID and the corresponding secondary timestamp t again. ID2 ;

[0056] Determine the number of slave rechecks Q by counting the number of IDs reported by the slave ID2 ;

[0057] Recheck the number of slaves Q that are not connected to the adjacent slaves in the four directions of up, down, left and right. ID2 and the secondary timestamp t ID2 Eliminate;

[0058] All the removed secondary timestamps t ID2 Sorting to form a second timestamp sequence;

[0059] Based on the initial verification quantity Q ID1 The mark of each slave connection status in the first time stamp sequence, the number of rechecks Q that have been eliminated ID2 The connection status mark of each slave in the network and the second timestamp sequence determine the boundary of the network.

[0060] Optionally, before determining the connection status of the slave using the preset connection identification device, the method further includes:

[0061] Select a communication protocol to establish a communication network with the slave;

[0062] Initialize the established communication network and configure communication parameters to ensure that the host and slaves can communicate according to unified rules.

[0063] In a second aspect, an embodiment of the present invention provides an automatic address allocation system for a two-dimensional battery network system, wherein a two-dimensional battery network is formed between a host and slaves controlled by the host, and the system comprises:

[0064] A connection status detection module, used to determine the connection status of the slave using a pre-set connection identification device;

[0065] An initialization module is used to send an initialization instruction to the slave, so that the slave responds and performs the initialization operation, and sets the slave related information according to the connection status;

[0066] A quantity and boundary determination module, used to determine the quantity, location and network boundary of slaves by sending queries or broadcasting messages combined with relevant information of slaves;

[0067] The position output module is used to automatically assign coordinate information to each slave according to the number, position and network boundary of the slaves, so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical position.

[0068] In a third aspect, an embodiment of the present invention provides an automatic address allocation device for a two-dimensional battery network system, comprising: at least one database; and a memory communicatively connected to the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the automatic address allocation method for a two-dimensional battery network system as described above.

[0069] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having computer-executable instructions stored thereon, and when the executable instructions are executed by a processor, the above-mentioned method for automatic address allocation applicable to a two-dimensional battery network system is implemented.

[0070] (III) Beneficial effects

[0071] The beneficial effects of the present invention are:

[0072] The solution of the present invention is applicable to a complex battery system composed of multiple slaves connected in series and parallel. By assigning a unique logical address and actual spatial position / physical address to each slave, the system can accurately identify the position of each slave in the two-dimensional battery network, which helps to avoid position confusion or misidentification in complex battery systems. This greatly simplifies the system setting process, reduces the need for manual intervention, and improves the automation level of the system. At the same time, the present invention can ensure that no slave is omitted, thereby achieving comprehensive and no-dead-angle management of the entire battery system, which helps to reduce the potential risks caused by the omission of slaves and improves the safety and stability of the system.

[0073] Therefore, by accurately identifying the position of slaves, automatically allocating coordinate information, and avoiding missing slaves, the present invention significantly improves the management efficiency of the battery system. This helps to reduce system maintenance costs, improve the overall performance of the system, and provide a strong guarantee for the stable operation of the battery system. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 A schematic diagram of a flow chart of an automatic address allocation method for a two-dimensional battery network system proposed in an embodiment of the present invention;

[0075] Figure 2 A schematic diagram of the arrangement of multiple slaves applicable to a two-dimensional battery network system automatic address allocation method proposed in an embodiment of the present invention;

[0076] Figure 3 A schematic diagram of the connection of multiple slaves applicable to a two-dimensional battery network system address automatic allocation method proposed in an embodiment of the present invention;

[0077] Figure 4 A schematic diagram of a specific flow chart before step S1 of a method for automatically allocating addresses for a two-dimensional battery network system proposed in an embodiment of the present invention;

[0078] Figure 5 A circuit schematic diagram of a series identification circuit applicable to a two-dimensional battery network system address automatic allocation method proposed in an embodiment of the present invention;

[0079] Figure 6 A wiring diagram of a series identification circuit applicable to a two-dimensional battery network system address automatic allocation method proposed in an embodiment of the present invention;

[0080] Figure 7 A schematic diagram of a parallel identification device applicable to a two-dimensional battery network system address automatic allocation method proposed in an embodiment of the present invention;

[0081] Figure 8 A specific flow chart of step S1 of a method for automatically allocating addresses for a two-dimensional battery network system proposed in an embodiment of the present invention;

[0082] Fig. 9 A specific flow chart of step S2 of a method for automatically allocating addresses for a two-dimensional battery network system proposed in an embodiment of the present invention;

[0083] Fig.10 A specific flow chart of step S25 of a method for automatically allocating addresses for a two-dimensional battery network system proposed in an embodiment of the present invention;

[0084] Fig.11A schematic diagram of a specific flow chart of a part of step S3 of a method for automatically allocating addresses of a two-dimensional battery network system proposed in an embodiment of the present invention;

[0085] Fig.12 A schematic diagram of a 3×3 matrix mapping for a two-dimensional battery network system automatic address allocation method proposed in an embodiment of the present invention;

[0086] Fig.13 Another specific flow chart of step S3 of a method for automatically allocating addresses for a two-dimensional battery network system proposed in an embodiment of the present invention;

[0087] Fig.14 A schematic diagram of a projection structure in a 4×4 two-dimensional coordinate system applicable to a method for automatically allocating addresses of a two-dimensional battery network system proposed in an embodiment of the present invention. DETAILED DESCRIPTION

[0088] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0089] like Figure 1 As shown, an embodiment of the present invention proposes an automatic address allocation method for a two-dimensional battery network system, wherein a two-dimensional battery network is formed between a host and slaves controlled by the host, and the method comprises: using a pre-set connection identification device to determine the connection status of the slave; sending an initialization instruction to the slave so that the slave responds and performs an initialization operation, and setting slave-related information according to the connection status; determining the number, location and network boundary of the slaves by sending a query or broadcast message in combination with the slave-related information; and automatically allocating coordinate information to each slave according to the number, location and network boundary of the slaves, so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical position.

[0090] The solution of the present invention is applicable to a complex battery system composed of multiple slaves connected in series and parallel. By assigning a unique logical address and actual spatial position / physical address to each slave, the system can accurately identify the position of each slave in the two-dimensional battery network, which helps to avoid position confusion or misidentification in complex battery systems. This greatly simplifies the system setting process, reduces the need for manual intervention, and improves the automation level of the system. At the same time, the present invention can ensure that no slave is omitted, thereby achieving comprehensive and no-dead-angle management of the entire battery system, which helps to reduce the potential risks caused by the omission of slaves and improves the safety and stability of the system.

[0091] Therefore, by accurately identifying the position of slaves, automatically allocating coordinate information, and avoiding missing slaves, the present invention significantly improves the management efficiency of the battery system. This helps to reduce system maintenance costs, improve the overall performance of the system, and provide a strong guarantee for the stable operation of the battery system.

[0092] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0093] It is known that in a network, the host (the host is the upper-level battery management system (BMS)) needs to manage multiple slaves (the slave represents a battery module or other equipment or device that needs to be calibrated). These slaves form the following Figure 2 and Figure 3 The network shown is connected in a matrix. Without knowing the matrix size and the row and column information of the slaves, the host needs to automatically assign coordinate information including row and column numbers to each slave to ensure that the coordinates of each slave in the matrix are consistent with its actual physical position. At the same time, the host needs to ensure that no slave is missed, that is:

[0094] In an M×L matrix network, there are N slaves, and the slave coordinates can be expressed as N(x i ,y i ), where 1≤x i ≤M,1≤y i ≤L. Algorithms and circuits need to be designed to ensure that the host automatically assigns unique coordinates to each slave, and that they accurately correspond to their real physical locations. The constraints are: (1) The network size M×L is unknown; (2) At the initial condition t=0, any N(x i ,y i )Unknown; (3) The slave can only communicate with the master, and slaves cannot communicate with each other.

[0095] For the above network, specifically, an embodiment of the present invention provides a method for automatically allocating addresses applicable to a two-dimensional battery network system, including:

[0096] S1. Determine the connection status of the slave using a pre-set connection identification device.

[0097] Furthermore, if Figure 4 As shown, before step S1, it includes:

[0098] S11, selecting a communication protocol to establish a communication network with the slave.

[0099] S12. Initialize the established communication network and configure communication parameters to ensure that the host and slaves can communicate according to unified rules.

[0100] In a distributed system, it is crucial to ensure reliable communication between a host and multiple slaves. To achieve this goal, a stable and efficient communication network must be established. In the embodiment of the present invention, a controller area network (CAN) is selected as the communication protocol.

[0101] The CAN network is a widely used communication protocol, known for its high reliability, long-distance transmission and low cost. It uses differential signal transmission, so it can effectively resist external interference and maintain signal stability when the transmission distance is long. In addition, the CAN network has a multi-branch structure, allowing multiple devices to be connected on one network without the need for a centralized controller or server, which increases the flexibility and scalability of the system.

[0102] In the process of establishing a communication network, the first thing to do is to lay cables or lines to connect the host and each slave. These lines need to be wired according to the specifications of the CAN network to ensure the quality and stability of signal transmission. Next, CAN communication interfaces and controllers are installed on the host and slaves. These hardware devices are responsible for handling the sending and receiving of data.

[0103] In terms of software, it is necessary to configure CAN communication parameters, such as baud rate (communication rate), frame type (standard or extended), acceptance filtering, etc., to ensure that the host and slave can communicate according to unified rules. In addition, it is necessary to write communication protocols and data processing logic to realize functions such as control of the slave, status monitoring, and data transmission.

[0104] Through the above steps, a reliable communication network can be established between the host and the slave. On this network, the host can send instructions to the slave, and the slave can also feed back status information or data to the host. This two-way communication mechanism is the basis for effective management and control of distributed systems.

[0105] In general, using CAN network as the communication protocol can ensure the establishment of a stable, efficient and scalable communication network between the host and the slave, thus meeting the communication needs of complex distributed systems.

[0106] Further, refer to Figure 5The connection identification device includes: a serial identification device and a parallel identification device; the serial identification device includes: at least one serial identification circuit; the parallel identification device includes: a non-contact sensor connected to the controller, and every two non-contact sensors are respectively arranged on the opposite two sides of the slave housing in an embedded or detachable manner.

[0107] In one embodiment, the series identification circuit includes: a controller; a first connection detection component connected to the controller and configured to detect the connection status between the current level slave and the previous level slave through an optocoupler element and a controllable switch; a second connection detection component connected to the controller and configured to detect the connection status between the current level slave and the next level slave through an optocoupler element and a controllable switch.

[0108] Therefore, the embodiment of the present invention discloses a series identification circuit suitable for a battery network, which utilizes a unique combination of an optocoupler element and a controllable switch, and through the coordinated work of a cleverly designed first connection detection component and a second connection detection component, realizes real-time monitoring of the connection status between the current-level slave and the previous-level slave and the next-level slave, thereby improving the safety and reliability of the battery network.

[0109] Specifically, the use of optocouplers as a detection method effectively isolates electrical signals and reduces the impact of environmental noise and interference on the detection results, thereby greatly improving the detection accuracy. In addition, through flexible controllable switches, fast switching and real-time monitoring of the slave connection status can be achieved. This not only improves the response speed of detection, but also helps to promptly discover and resolve potential connection problems, thereby ensuring the stability and reliability of the battery network.

[0110] Compared with the traditional complex detection scheme, the structural design of the series identification circuit of the present invention is relatively simple, easy to integrate and maintain. While maintaining high performance, it reduces the complexity and cost of the scheme, making it more practical and economical.

[0111] In the series identification circuit, the first connection detection component plays a key role in detecting the connection status between the slave at this level and the slave at the previous level. In order to achieve this function, the first connection detection component includes the following three paths: the first path, the second path and the third path. Figure 5 , below, take B4 as the upper level slave, B3 as the current level slave, B2 as the upper level slave, and B1 as the upper two levels slave as an example to introduce these three paths in detail:

[0112] The first path, the first end of the first path is connected to the positive electrode of the slave at this level, the second end of the first path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at this level, and the first path includes the connected first controllable switch SCD3 and the input end of the first optical coupler DT3.

[0113] In one embodiment, in the first path, the controlled end of the first controllable switch SCD3 is connected to the first control end DT of the controller MCU. The first end of the first controllable switch SCD3 is connected to the positive electrode B3+ of the slave at this level, and the second end of the first controllable switch SCD3 is connected to the positive electrode of the input end of the first optical coupler DT3. In this way, when the first controllable switch SCD3 is turned on, a path is formed between the positive electrode of the slave at this level and the positive electrode of the input end of the first optical coupler DT3. The negative electrode of the input end of the first optical coupler DT3 is connected to the positive electrode B2+ of the slave at the previous level or the negative electrode B3- of the slave at this level.

[0114] The second path, the first end of the second path is connected to the positive electrode of the previous level slave or the negative electrode of the current level slave, the second end of the second path is connected to the positive electrode of the previous two levels of slaves or the negative electrode of the previous level slave, and the second path includes the output end of the connected first optocoupler and the input end of the second optocoupler.

[0115] In one embodiment, in the second path, the collector of the output end of the first optical coupler DT3 is connected to the positive electrode B2+ of the previous slave or the negative electrode B3- of the current slave through a resistor, and the resistor here serves to limit the current passing through the optical coupler and protect the optical coupler from damage. The emitter of the output end of the first optical coupler DT3 is connected to the positive electrode of the input end of the second optical coupler OD3, and the negative electrode of the input end of the second optical coupler OD3 is connected to the positive electrode B1+ of the previous two slaves or the negative electrode B2- of the previous slave.

[0116] The third path has a first end connected to the positive electrode of the slave at this level, a second end connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at this level, and the third path includes the output end of the second optocoupler.

[0117] In one embodiment, in the third path, the collector of the output end of the second optocoupler OD3 is connected to the positive electrode of the current slave through a resistor, and the emitter of the output end of the second optocoupler OD3 is connected to the positive electrode of the previous slave or the negative electrode of the current slave.

[0118] Therefore, when the second optocoupler OD3 is triggered to turn on, it indicates that the slave B3 at this level is connected to the slave B2 at the previous level, and the electrical signal generated by the output end of the second optocoupler OD3 is transmitted to the first signal receiving end D of the controller MCU, and the controller MCU records this state.

[0119] In the series identification circuit, the second connection detection component plays a key role in detecting the connection status between the slave at this level and the slave at the next level. In order to achieve this function, the second connection detection component includes the following three channels: the fourth channel, the fifth channel and the sixth channel. Figure 5 , below, take B4 as the upper level slave, B3 as the current level slave, B2 as the upper level slave, and B1 as the upper two levels slave as an example to introduce these three paths in detail:

[0120] A fourth path, a first end of the fourth path is connected to the positive electrode of the slave at this level, a second end of the fourth path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at this level, and the fourth path includes the input end of the connected second controllable switch SCU and the third optical coupler UT.

[0121] In one embodiment, in the fourth path, the controlled end of the second controllable switch SCU3 is connected to the second control end UT of the controller MCU, the first end of the second controllable switch SCU3 is connected to the positive electrode of the slave B3+ of the current stage, the second end of the second controllable switch SCU3 is connected to the positive electrode of the input end of the third optocoupler UT3, and the negative electrode of the input end of the third optocoupler UT3 is connected to the positive electrode B2+ of the slave of the previous stage or the negative electrode B3- of the slave of the current stage.

[0122] The fifth path, the first end of the fifth path is connected to the positive electrode of the next-stage slave, the second end of the fifth path is connected to the positive electrode of the current-stage slave, and the fifth path includes the output end of the third optocoupler and the input end of the fourth optocoupler.

[0123] In one embodiment, in the fifth path, the collector of the output end of the third optocoupler UT3 is connected to the positive electrode B4+ of the next-stage slave through a resistor, the emitter of the output end of the third optocoupler UT3 is connected to the positive electrode of the input end of the fourth optocoupler OU3, and the negative electrode of the input end of the fourth optocoupler OU3 is connected to the positive electrode B3+ of the current-stage slave.

[0124] The sixth path, the first end of the sixth path is connected to the positive electrode of the slave at this level, the second end of the sixth path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at this level, and the sixth path includes the output end of the fourth optocoupler.

[0125] In one embodiment, in the sixth path, the collector of the output end of the fourth optocoupler OU3 is connected to the positive electrode B3+ of the current slave through a resistor, and the emitter of the output end of the fourth optocoupler OU3 is connected to the positive electrode B2+ of the previous slave or the negative electrode B3- of the current slave.

[0126] Therefore, when the fourth optocoupler OU3 is triggered to turn on, it indicates that the slave B3 at this level is connected to the slave B4 at the next level, and the electrical signal generated by the output end of the fourth optocoupler OU3 is transmitted to the second signal receiving end U of the controller MCU, and the controller MCU records this state.

[0127] Obviously, based on the above description of the third slave B3, Figure 2 The connection relationship and functional role of each path and element in the second slave B2 and the first slave B1 can be clearly obtained.

[0128] refer to Figure 6As shown in the connection wiring diagram, the design of the controller takes into account the connection and management needs of multi-level slaves, so it is equipped with multiple dedicated ports to ensure stability and reliability. The following are the main ports of the controller and their functional descriptions: The positive port VCC of this level is used to connect the positive pole of the slave of this level. The negative port GND of this level is used to connect the negative pole of the slave of this level. The negative port D_GND of the next level is used to connect to the negative pole of the slave of the next level. The positive port U_Pwr of the previous level is used to connect to the positive pole of the slave of the previous level.

[0129] Through the design of these dedicated ports, the controller not only meets the connection requirements with multi-level slaves, but also greatly improves the stability and reliability of the entire battery system. Such design considerations have undoubtedly brought revolutionary progress to battery management systems in modern power equipment and electric vehicles.

[0130] refer to Figure 7 In one embodiment, each contactless sensor includes: at least one transmitting end and one receiving end. Specifically, a transmitting end TXL and a receiving end RXL are provided on the left side of the housing of any slave, and a transmitting end TXR and a receiving end RXR are provided on the right side. The transmitting end in each contactless sensor is communicatively connected to the receiving end of another contactless sensor disposed on an adjacent slave, and the receiving end in each contactless sensor is communicatively connected to the transmitting end in another contactless sensor disposed on an adjacent slave.

[0131] Therefore, an embodiment of the present invention discloses a parallel identification device that realizes parallel relationship identification between slaves through a non-contact sensor without physical contact or wired connection, thereby improving the accuracy and reliability of identification, while simplifying the connection and management process of the battery system and improving stability and reliability.

[0132] Furthermore, if Figure 8 As shown, step S1 includes:

[0133] S11, obtaining serial connection information of the slaves through a serial connection identification device, and obtaining parallel connection information of the slaves through a parallel connection identification device.

[0134] S12. Determine the connection status between each slave and the host based on the serial connection information and the parallel connection information of the slave.

[0135] In one embodiment, the series connection information is obtained through the following steps: the controller MCU sends a series detection signal to enable the first connection detection component and the second connection detection component to trigger the controllable switch and the optocoupler element to generate a conduction-related signal of the previous-level slave and conduction-related information of the next-level slave; if the controller MCU receives the conduction-related signal of the previous-level slave or the conduction-related information of the next-level slave, it is determined that the slave at this level is connected in series with the next-level slave or the previous-level slave; if the controller does not receive the conduction-related signal of the previous-level slave or the conduction-related information of the next-level slave, it is determined that the slave at this level is not connected in series with the next-level slave or the previous-level slave.

[0136] In one embodiment, the parallel connection information is obtained through the following steps: the controller MCU sends parallel detection information so that the transmitting end of the non-contact sensor sends information to the receiving end of another non-contact sensor arranged on an adjacent slave, and the receiving end of the non-contact sensor receives the information sent from the transmitting end of the other non-contact sensor; the controller determines the parallel connection status between the adjacent slaves based on the information received by the receiving end.

[0137] The host can quickly and accurately determine the connection status between each slave and the host based on the series connection information and parallel connection information transmitted by the controller MCU. This helps to achieve real-time monitoring and efficient management of the battery system and ensure the stable operation of the system. At the same time, by monitoring the connection status of each slave in real time, the host can respond in time when a slave fails or is disconnected, such as starting a backup slave or sending an alarm. This fault detection and recovery mechanism greatly enhances the robustness of the system.

[0138] S2. Send an initialization command to the slave, so that the slave responds and performs an initialization operation, and sets slave-related information according to the connection status.

[0139] Furthermore, if Fig. 9 As shown, step S2 includes:

[0140] S21, sending an initialization instruction to the slave, triggering the slave MCU to generate a random number as the unique ID of the slave. Since it is a random number, the uniqueness of the ID can be ensured.

[0141] S22. If a duplication of the slave ID is detected, the corresponding slave is instructed to recalculate and generate a new random number until a unique ID is obtained.

[0142] S23, obtaining the expected number of slaves Q by counting the number of slave IDs. The expected number of slaves Q can be obtained by counting the number of slave IDs and storing the number of slaves in the host register.

[0143] S24. According to the connection status between the host and the slave, the connection status of the slave is marked and written into the register of the slave MCU to complete the setting of the relevant information of the slave.

[0144] Furthermore, if Fig.10 As shown, step S25 includes:

[0145] S251. Initialize the natural sequence number n of the slave and set it to 0.

[0146] S252: According to the determined connection status between the master and the slave, determine whether any slave is connected to an adjacent slave in a corresponding position.

[0147] S253. If the slave is connected to an adjacent slave at a corresponding position, the connection state of the position is set to 1; if the slave is not connected to an adjacent slave at a corresponding position, the connection state of the position is set to 0.

[0148] S254, reassigning the natural sequence number n of the slave to the ID of the slave to mark the connection status of the slave.

[0149] Using N U 、N R 、N L 、N D : Indicates the connection status between the slave and the neighbor; N U 、N R 、N L 、N D =1: The corresponding upper, right, left, and lower adjacent slaves are correctly connected; N U 、N R 、N L 、N D =0: There is no connection with the corresponding upper, right, left, or lower adjacent slaves.

[0150] According to the actual physical connection status, the slave with the physical position (0,0) is represented as:

[0151] ;

[0152] And so on, assign n = ID, that is, replace the natural sequence number of the slave with the ID of the MCU, and get the mark of the slave connection status as:

[0153] ;

[0154] In the formula, the connection status is determined by the connection status in four directions, N U 、N D 、N L 、N RRespectively represent the connection status with adjacent slaves in the four directions of up, down, left and right.

[0155] S3. Determine the number, location and network boundary of the slaves by sending a query or broadcast message and combining the slave related information.

[0156] Furthermore, if Fig.11 As shown, step S3 includes:

[0157] S31, send a command with a timestamp t0 to all slaves, triggering the slave to report back the ID and the corresponding initial timestamp t ID1 , determine the initial verification quantity Q of the slave by counting the number of IDs reported by the slave ID1 , check whether the expected number of slaves Q is equal to the initial verification number Q ID1 .

[0158] S32a, if the expected number of slaves Q is not equal to the initial verification number Q ID1 , then the process including sending a command with a timestamp t0 to all slaves and determining the initial verification quantity of the slaves is repeated. If the numbers are not equal after the set number of repetitions (set to 5 times), an error is reported and the machine is stopped for inspection.

[0159] S32b, if the initial slave quantity Q is equal to the initial verification quantity Q ID1 , then all received initial timestamps t ID1 Sort in ascending order to form the first timestamp sequence t1, t2, t3…t N .

[0160] S33. Calculate the adjacent distance Δt between the slaves according to the first timestamp sequence.

[0161] S34. Map the host and the slaves to a plane coordinate system or a complex plane coordinate system according to the reference point determined by the host's own position and the adjacent distances between each slave. During the mapping process, a position is assigned to each slave in combination with the mark of the connection status of each slave and the first timestamp sequence.

[0162] In one embodiment, the host coordinates are set to N (x0, y0) for ease of description. In actual use, they can be set arbitrarily according to user habits and on-site conditions, and can also be set to complex plane coordinates for application in larger-scale networks.

[0163] In order to be applicable to larger networks and facilitate description, the coordinates of the host can be expressed in complex plane coordinates, which means that in the network, the host is no longer limited to a fixed position, and the host can be flexibly located at any point in the network, with a specific position set as the origin of the coordinate system. This method effectively expands the spatial description and forms a plane space containing four quadrants, so that the host position in the network can be more intuitively represented and managed. Complex plane coordinates provide a two-dimensional space, in which the horizontal axis represents the real part and the vertical axis represents the imaginary part. This representation method can accommodate more slaves and facilitate mathematical operations and network layout planning. The setting method is as follows:

[0164] a. Determine the origin of the complex plane: First, select a suitable point as the origin of the complex plane. This point can be set according to user habits or on-site conditions. Usually, the origin can be set at the center of the network or a specific reference point, such as the four corners of the plane.

[0165] b. Define the real part and the imaginary part: In the complex plane, the horizontal axis represents the real part (Re) and the vertical axis represents the imaginary part (Im). The real part and the imaginary part can correspond to two different dimensions in the network, for example, the real part can represent the horizontal position of the slave, and the imaginary part can represent the vertical position of the slave.

[0166] c. Set the host coordinates: Set the host coordinates to a point N(x0+iy0) on the complex plane, where x0 is the real part, indicating the horizontal position of the host; y0 is the imaginary part, indicating the vertical position of the host. These two values ​​can be set according to actual conditions.

[0167] d. Expansion to larger networks: By using complex plane coordinates, it is easy to expand to larger networks. Each slave can be represented by a point on the complex plane, and by calculating the complex distance between slaves, the relationship between slaves and the network topology can be easily described.

[0168] e. Convert coordinate system: If you need to convert complex plane coordinates to other coordinate systems (such as Cartesian coordinate system), you can use the corresponding mathematical formula to convert. For example, a point N(x0+iy0) on the complex plane can be converted to Cartesian coordinates (x0, y0).

[0169] Please note that using complex plane coordinates to represent the positions of the host and network slaves can provide greater flexibility and scalability, but it also requires a corresponding mathematical foundation to understand and perform related calculations. In practical applications, you can choose a suitable coordinate system to represent the position relationship between the host and network slaves according to specific needs and scenarios.

[0170] In a specific embodiment, the slave coordinates corresponding to t1 are first determined as follows: Let the coordinates of the master N be the origin of the coordinate system, i.e. (0,0). There are two possible connection states of the slave t1:

[0171] , that is, M ID (0,1)

[0172] or, , that is, M ID (1,0)

[0173] Since coordinate systems can be transposed or mirrored, any coordinate system can be selected.

[0174] For the convenience of description, a Fig.12 The 3x3 matrix shown is mapped to the first quadrant of a rectangular coordinate system, with a dot representing a connected device / node.

[0175] After defining the master as (0, 0), combined with the t of each slave N and connection status Its physical coordinates can be determined. They are listed as follows:

[0176]

[0177] Furthermore, if Fig.13 As shown, step S3 also includes:

[0178] S35, after turning off the connection status identification switches of all slaves connected to the adjacent slaves in the four directions of up, down, left and right, that is, turning off the identification switches of all slaves with the connection status of MID[1,1,1,1], a command with a timestamp t0 is sent to all slaves again, triggering the slaves to report the ID and the corresponding secondary timestamp t again. ID2 The purpose of sending the command with timestamp t0 to all slaves again is to check the number and time difference to prevent errors caused by external interference or reception. By checking the number of slaves multiple times, it can be ensured that all slaves that are expected to respond have responded correctly, which helps prevent incorrect responses caused by external interference or network failures.

[0179] S36, determine the number of slave rechecks Q by counting the number of IDs reported by the slaves ID2 .

[0180] S37, all slaves that are not connected to the adjacent slaves in the four directions of up, down, left and right are rechecked, and the number of slaves Q ID2 and the secondary timestamp t ID2 Remove the slaves whose connection status is MID[0,0,0,0].

[0181] S38, all the removed secondary timestamps t ID2 Sort them in ascending order to form the second timestamp sequence t1, t2, t3…t N .

[0182] S39, based on the initial verification quantity Q ID1 The mark of each slave connection status in the first time stamp sequence, the number of rechecks Q that have been eliminated ID2 The connection status of each slave and the second timestamp sequence in the mapping process are marked to determine the boundary of the network. For the slaves that have been assigned positions, the connection status of each slave and the first timestamp sequence marked in the mapping process are compared with the connection status of each slave and the second timestamp sequence marked in the re-verification process, so as to confirm the boundary and scale of the network.

[0183] S4. Automatically assign coordinate information to each slave according to the number, location and network boundary of the slaves, so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical location.

[0184] In another embodiment, reference Fig.14 , which constructs a 4×4 two-dimensional coordinate system that presents a projection structure for identifying and managing components in the network. In this coordinate system, each point (or slave) represents a battery module or other device or device that needs to be calibrated. By assigning specific coordinate positions to these slaves, their layout and location in the network can be accurately identified.

[0185] The introduction of this coordinate system not only makes the management of large-scale networks more convenient and intuitive, but also provides strong support for subsequent maintenance, monitoring and troubleshooting. Each battery module or device can quickly communicate and exchange data with other nodes through its position information in the coordinate system, thereby ensuring the stable operation of the entire network.

[0186] In addition, the 4×4 coordinate system structure also has good scalability. As the network scale expands, more slave nodes can be easily added to the existing coordinate system to meet the growing demand. At the same time, by adjusting the coordinate origin in the coordinate system or expanding the boundaries of the coordinate system, changes and expansions in the network layout can also be flexibly responded to.

[0187] In addition, an embodiment of the present invention provides an automatic address allocation system applicable to a two-dimensional battery network system, wherein a two-dimensional battery network is formed between a host and slaves controlled by the host, and the system includes:

[0188] The connection status detection module is used to determine the connection status of the slave machine by using a preset connection identification device.

[0189] The initialization module is used to send an initialization instruction to the slave, so that the slave responds and performs the initialization operation, and sets the slave related information according to the connection status.

[0190] The quantity and boundary determination module is used to determine the quantity, location and network boundary of the slaves by sending query or broadcast messages combined with the relevant information of the slaves.

[0191] The position output module is used to automatically assign coordinate information to each slave according to the number, position and network boundary of the slaves, so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical position.

[0192] Furthermore, an embodiment of the present invention provides a device for automatically allocating network addresses for a two-dimensional battery system, comprising: at least one database; and a memory communicatively connected to the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the method for automatically allocating network addresses for a two-dimensional battery system as described above.

[0193] Furthermore, an embodiment of the present invention provides a computer-readable medium having computer-executable instructions stored thereon, and when the executable instructions are executed by a processor, the above-mentioned method for automatically allocating network addresses applicable to a two-dimensional / battery system is implemented.

[0194] In summary, the embodiments of the present invention provide a method, system, device and medium for automatic allocation of network addresses for a two-dimensional battery system. First, the solution of the present invention realizes automatic identification and positioning of the positions of each slave in the two-dimensional battery system network, greatly improving management efficiency and accuracy. By automatically allocating row numbers and column numbers, it is possible to ensure that the logical address of each slave in the network is completely consistent with its actual physical position, thereby eliminating the complexity of manual configuration and debugging, and reducing the possibility of operational errors and configuration conflicts. Secondly, the present invention improves the reliability and safety of the battery system. Since the location information of each slave can be accurately grasped, the problem can be quickly and accurately located and solved when a fault or abnormal situation occurs, effectively shortening the troubleshooting and recovery time, and improving the overall stability and availability of the system; then, the present invention also has flexibility and scalability. Regardless of how the scale and structure of the battery system change, the system can automatically adapt and reallocate the network address, ensuring the continuity and consistency of system management. At the same time, the system can also be seamlessly integrated with other management systems, realizing information sharing and collaborative work, and further improving management efficiency; finally, the present invention reduces operating costs and maintenance burdens. Through automated and networked management, the investment in human resources is reduced, and the failure rate caused by human factors is reduced. The intelligent and automated features of the system make the maintenance of the battery system simpler and more convenient, saving valuable resources and time for the company.

[0195] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.

[0196] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0197] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0198] It should be noted that in the scheme of the present invention, any figure mark between brackets should not be understood as limiting the scheme of the present invention. The word "comprising" does not exclude the existence of components or steps not listed in the scheme of the present invention. The word "one" or "an" preceding a component does not exclude the existence of multiple such components. The present invention can be implemented with the aid of hardware including several different components and with the aid of appropriately programmed computers. In the scheme of the present invention that lists several devices, several of these devices can be embodied by the same hardware. The use of the words first, second, third, etc. is only for convenience of expression and does not indicate any order. These words can be understood as part of the name of the component.

[0199] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0200] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the present invention should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0201] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the present invention and its equivalent technology, the present invention should also include these modifications and variations.

Claims

1. A method for automatically allocating addresses for a two-dimensional battery network system, characterized in that: A two-dimensional battery network is formed between a host and slaves controlled by the host, and the method includes: Determine the connection status of the slave using a pre-set connection identification device; Send an initialization command to the slave, so that the slave responds and performs the initialization operation, and sets the slave related information according to the connection status; Determine the number, location and network boundaries of slaves by sending queries or broadcast messages and combining relevant information of slaves; Automatically assign coordinate information to each slave based on the number, location and network boundaries of the slaves, so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical location; Among them, by sending a query or broadcast message, the number, location and network boundary of the slaves are determined in combination with the relevant information of the slaves, including: Send a timestamp to all slaves t 0 command, triggers the slave to report the ID and the corresponding initial timestamp t ID1 ; Determine the initial verification quantity of slaves by counting the number of IDs reported by the slaves Q ID1 ; Check the expected number of slaves Q Is it equal to the initial verification quantity? Q ID1 ; If the expected number of slaves Q Not equal to the initial inspection quantity Q ID1 , then repeat the execution including sending a timestamp to all slaves t 0 command and the work of determining the initial verification quantity of the slave. If they are not equal after repeated setting times, an error will be reported and the machine will be stopped for inspection; If the initial number of slaves Q Equal to the initial inspection quantity Q ID1 , then all received initial timestamps t ID1 Sorting to form a first timestamp sequence; According to the first timestamp sequence, solving the adjacent distances between the slaves; Mapping the master and the slaves to a plane coordinate system or a complex plane coordinate system according to the reference point determined by the master's own position and the adjacent distances between the slaves, and in the mapping process, assigning a position to each slave in combination with the mark of the connection state of each slave and the first timestamp sequence; After turning off the connection status identification switches of all slaves connected to the adjacent slaves in the four directions of up, down, left and right, send a message with a timestamp to all slaves again. t 0 command, triggering the slave to report the ID and the corresponding secondary timestamp again t ID2 ; Determine the number of slave rechecks by counting the number of IDs reported by the slaves Q ID2 ; Recheck the number of slaves that are not connected to the adjacent slaves in the four directions of up, down, left and right. Q ID2 and secondary timestamp t ID2 Eliminate; All the secondary timestamps that have been removed t ID2 Sorting to form a second timestamp sequence; Based on the initial verification quantity Q ID1 The connection status mark of each slave in the first time stamp sequence, the number of rechecks that have been eliminated Q ID2 The connection status mark of each slave in the network and the second timestamp sequence determine the boundary of the network.

2. The method for automatically allocating addresses for a two-dimensional battery network system as claimed in claim 1, characterized in that: The connection identification device includes: a serial identification device and a parallel identification device; The serial identification device comprises: at least one serial identification circuit; The parallel identification device comprises: non-contact sensors connected to the controller, and every two non-contact sensors are respectively arranged on two opposite sides of the slave housing.

3. The method for automatically allocating addresses for a two-dimensional battery network system as claimed in claim 2, characterized in that: The series identification circuit includes: Controller; A first connection detection component is connected to the controller and is configured to detect the connection status between the slave of the current level and the slave of the previous level through an optical coupling element and a controllable switch; The second connection detection component is connected to the controller and is configured to detect the connection status between the slave at the current stage and the slave at the next stage through an optical coupling element and a controllable switch.

4. The method for automatically allocating addresses for a two-dimensional battery network system as claimed in claim 3, characterized in that: The first connection detection component includes: A first path, wherein a first end of the first path is connected to the positive electrode of the slave at the current level, a second end of the first path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at the current level, and the first path includes a first controllable switch and an input end of a first optical coupler connected thereto; a second path, wherein a first end of the second path is connected to the positive electrode of the previous level slave or the negative electrode of the current level slave, a second end of the second path is connected to the positive electrode of the previous two levels slave or the negative electrode of the previous level slave, and the second path includes an output end of the first optical coupler connected to an input end of the second optical coupler; a third path, wherein a first end of the third path is connected to the positive electrode of the slave at the current stage, a second end of the third path is connected to the positive electrode of the slave at the previous stage or the negative electrode of the slave at the current stage, and the third path includes an output end of the second optocoupler; The second connection detection component includes: a fourth path, wherein a first end of the fourth path is connected to the positive electrode of the slave at the current level, a second end of the fourth path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at the current level, and the fourth path includes a second controllable switch connected thereto and an input end of the third optical coupler; A fifth path, wherein a first end of the fifth path is connected to a positive electrode of a slave device at a next stage, a second end of the fifth path is connected to a positive electrode of a slave device at this stage, and the fifth path includes an output end of the third optical coupler and an input end of the fourth optical coupler; The sixth path, the first end of the sixth path is connected to the positive electrode of the slave at this level, the second end of the sixth path is connected to the positive electrode of the slave at the previous level or the negative electrode of the slave at this level, and the sixth path includes the output end of the fourth optocoupler.

5. The method for automatically allocating addresses for a two-dimensional battery network system as claimed in claim 2, characterized in that: Each non-contact sensor includes: at least one transmitting end and one receiving end, the transmitting end in each non-contact sensor is communicatively connected to the receiving end of another non-contact sensor arranged on an adjacent slave, and the receiving end in each non-contact sensor is communicatively connected to the transmitting end in another non-contact sensor arranged on an adjacent slave.

6. The method for automatically allocating addresses for a two-dimensional battery network system according to any one of claims 2 to 5, characterized in that: Using a pre-set connection identification device, determining the connection status of the slave includes: Acquire serial connection information of the slaves through the serial identification device, and acquire parallel connection information of the slaves through the parallel identification device; Based on the serial connection information and the parallel connection information of the slaves, the connection status between each slave and the master is determined.

7. The method for automatically allocating addresses for a two-dimensional battery network system according to any one of claims 1 to 5, characterized in that: Send an initialization command to the slave, so that the slave responds and performs the initialization operation. Set the slave related information according to the connection status, including: Send an initialization command to the slave, triggering the slave MCU to generate a random number as the unique ID of the slave; If a duplicate slave ID is detected, the corresponding slave is instructed to recalculate and generate a new random number until a unique ID is obtained; Get the expected number of slaves by counting the number of slave IDs Q ; According to the connection status between the host and the slave, mark the slave connection status to complete the setting of the slave related information.

8. The method for automatically allocating addresses for a two-dimensional battery network system as claimed in claim 7, characterized in that: According to the connection status between the master and the slave, marking the slave connection status includes: Initialize the slave's natural sequence number n , and set it to 0; According to the determined connection status between the master and the slave, judging whether any slave is connected to an adjacent slave in a corresponding position; If the slave is connected to the adjacent slave in the corresponding position, the connection status of the position is set to 1; If the slave is not connected to the adjacent slave in the corresponding position, the connection status of the position is set to 0; The natural sequence number of the slave n Reassign the ID of the slave to mark the connection status of the slave; Among them, the slave connection status is marked as: ; In the formula, the connection status is determined by the connection status in four directions. N U , N D , N L , N R Respectively represent the connection status with adjacent slaves in the four directions of up, down, left and right.

9. The method for automatically allocating addresses for a two-dimensional battery network system according to any one of claims 1 to 5, characterized in that: Before determining the connection status of the slave using the preset connection identification device, the method further includes: Select a communication protocol to establish a communication network with the slave; Initialize the established communication network and configure communication parameters to ensure that the host and slaves can communicate according to unified rules.

10. An automatic address allocation system for a two-dimensional battery network system, characterized in that: A two-dimensional battery network is formed between the host and the slaves controlled by the host, and the system includes: A connection status detection module, used to determine the connection status of the slave using a pre-set connection identification device; An initialization module is used to send an initialization instruction to the slave, so that the slave responds and performs the initialization operation, and sets the slave related information according to the connection status; A quantity and boundary determination module, used to determine the quantity, location and network boundary of slaves by sending queries or broadcasting messages combined with relevant information of slaves; The position output module is used to automatically assign coordinate information to each slave according to the number, location and network boundary of the slaves, so that the coordinates of each slave in the two-dimensional battery network are consistent with the actual physical location; Among them, by sending a query or broadcast message, the number, location and network boundary of the slaves are determined in combination with the relevant information of the slaves, including: Send a timestamp to all slaves t 0 command, triggers the slave to report the ID and the corresponding initial timestamp t ID1 ; Determine the initial verification quantity of slaves by counting the number of IDs reported by the slaves Q ID1 ; Check the expected number of slaves Q Is it equal to the initial verification quantity? Q ID1 ; If the expected number of slaves Q Not equal to the initial inspection quantity Q ID1 , then repeat the execution including sending a timestamp to all slaves t 0 command and the work of determining the initial verification quantity of the slave. If they are not equal after repeated setting times, an error will be reported and the machine will be stopped for inspection; If the initial number of slaves Q Equal to the initial inspection quantity Q ID1 , then all received initial timestamps t ID1 Sorting to form a first timestamp sequence; According to the first timestamp sequence, solving the adjacent distances between the slaves; Mapping the master and the slaves to a plane coordinate system or a complex plane coordinate system according to the reference point determined by the master's own position and the adjacent distances between the slaves, and in the mapping process, assigning a position to each slave in combination with the mark of the connection state of each slave and the first timestamp sequence; After turning off the connection status identification switches of all slaves connected to the adjacent slaves in the four directions of up, down, left and right, send a message with a timestamp to all slaves again. t 0 command, triggering the slave to report the ID and the corresponding secondary timestamp again t ID2 ; Determine the number of slave rechecks by counting the number of IDs reported by the slaves Q ID2 ; Recheck the number of slaves that are not connected to the adjacent slaves in the four directions of up, down, left and right. Q ID2 and secondary timestamp t ID2 Eliminate; All the secondary timestamps that have been removed t ID2 Sorting to form a second timestamp sequence; Based on the initial verification quantity Q ID1 The connection status mark of each slave in the first time stamp sequence, the number of rechecks that have been eliminated Q ID2 The connection status mark of each slave in the network and the second timestamp sequence determine the boundary of the network.

11. An automatic address allocation device for a two-dimensional battery network system, characterized in that: include: at least one database; And a memory communicatively connected to the at least one database; wherein the memory stores instructions executable by the at least one database, and the instructions are executed by the at least one database so that the at least one database can execute the automatic address allocation method applicable to a two-dimensional battery network system as described in any one of claims 1-9.

12. A computer-readable medium having computer-executable instructions stored thereon, characterized in that: When the executable instructions are executed by the processor, the automatic address allocation method applicable to a two-dimensional battery network system as described in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Battery management system and automatic battery management unit address allocation method

    CN112531224A

  • Battery cluster system parallel operation method, device, equipment and medium

    CN116865404A

  • Method for configuring battery cells of a battery system, battery system and motor vehicle with a battery system

    DE102020114188B3

  • Fault-tolerant battery system employing intra-battery network architecture

    US6104967A