Device address allocation method, battery energy storage system and related equipment
By adopting an automated device address allocation method in the battery energy storage system, using data interfaces and trigger data to automatically determine the device address, the problems of manual input errors and security risks are solved, the accuracy and efficiency of address allocation are improved, and maintenance is reduced Cost and security risks.
Patent Information
- Application Number
- CN202311306219.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-10
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2043-10-10
AI Technical Summary
In the existing battery energy storage system, manually inputting binary numbers for address allocation is complicated and error-prone, which affects the normal operation of the system and requires live operation, which poses a safety risk.
By designing an automated device address allocation method in the battery energy storage system, the first device and multiple second devices are connected in series through the data interface, and the address information of each device is automatically determined using trigger data and preset rules, eliminating manual labor Risk of error caused by operation.
It achieves the accuracy and efficiency of address allocation, reduces maintenance costs and manual intervention needs, reduces the risk of electric shock to the operator, and improves the safety of the system.
Smart Images

Figure CN117439973B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of device control, and in particular, relates to a device address allocation method, a battery energy storage system and related devices. Background Art
[0002] Battery energy storage system is an electrical energy storage technology that converts electrical energy into chemical energy and stores it in batteries so that it can be released as electrical energy when needed. This system is widely used in various application fields, including households, industry, commerce and the power industry.
[0003] The key to battery energy storage systems lies in battery energy storage management controller technology. Especially in industrial and power applications, battery energy storage systems usually adopt multi-level local area networking and communication structures. For example, large-scale battery energy storage systems are usually locally networked according to a three-layer structure. The top-level battery energy storage management controller is called the master controller, which communicates with the master controller of the second layer. A master controller is usually responsible for managing more than 10 master controllers. The master controller communicates with the slave controllers of multiple battery packs on the third layer. Each master controller usually manages more than 10 slave controllers. Therefore, the number of battery energy storage management controllers in a large-scale battery energy storage system may exceed 100, requiring an effective local area networking and address allocation method.
[0004] At present, the existing technology usually requires the operator to perform live operation while the battery energy storage system is running, and input different binary numbers for the multi-digit dip switches on the operation panel of each battery pack to assign the networking address. However, manually entering a large number of binary numbers is prone to input errors, which may cause address confusion or errors in the battery energy storage system, thus affecting the normal operation of the system. And manually entering binary numbers for each battery pack is a tedious and time-consuming task. For large battery energy storage systems, this may require a lot of time and human resources, thereby reducing the installation and maintenance efficiency of the system. Finally, entering binary numbers requires live operation, which means that the operator must enter them while the battery system is still running. This may lead to electric shock or other safety risks. Summary of the invention
[0005] The purpose of the present invention is to provide a device address allocation method, which aims to solve the problem that the existing manual address allocation is not accurate enough. The device address allocation method provided by the present application includes:
[0006] A first aspect of an embodiment of the present application provides a device address allocation method, the method being applied to a battery energy storage system, the battery energy storage system comprising a first device and N second devices, where N is a positive integer greater than or equal to 2,
[0007] The first device and the N second devices respectively have a data interface;
[0008] The first device and the N second devices are sequentially connected in series through the data interface, and the data interface of the Nth second device is connected to the data interface of the first device;
[0009] S1. N second devices respectively load a target address group to be allocated, wherein the target address group to be allocated includes K addresses to be allocated, where K is a positive integer greater than or equal to N;
[0010] S2. Set the first device as the trigger data source and set the trigger data;
[0011] S3. The trigger data source sends trigger data to the next device in series through the data interface;
[0012] S4. The first device determines whether the trigger data is received. If the first device determines that the trigger data is received, step S7 is executed. If the first device determines that the trigger data is not received, step S5 is executed.
[0013] S5. The next device determines the target address from the address group to be allocated according to the trigger data and the corresponding rules as the address information corresponding to the next device, and the target address corresponds to the next device one-to-one;
[0014] S6. The next device changes the trigger data based on a preset rule, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to step S3;
[0015] S7. End the process.
[0016] Based on the address allocation method provided in the first aspect of the embodiment of the present application, optionally, the next device determines, from the address group to be allocated according to the trigger data and the corresponding rule, that the target address is address information corresponding to the next device, including:
[0017] The next device obtains the Mth address in the address group to be allocated as the target address, where M is equal to the trigger data value.
[0018] Based on the address allocation method provided in the first aspect of the embodiment of the present application, optionally, the next device changes trigger data based on a preset rule, including:
[0019] The value of the trigger data is calculated with the preset value to obtain the changed trigger data.
[0020] Based on the address allocation method provided in the first aspect of the embodiment of the present application, optionally, the target address group to be allocated is pre-burned into the second device.
[0021] Based on the address allocation method provided in the first aspect of the embodiment of the present application, optionally, the method further includes:
[0022] The first device also includes: a power converter and a power supply interface;
[0023] The second device also includes a power interface;
[0024] The power supply interface is connected to each of the power supply interfaces by a power supply line;
[0025] The method further comprises:
[0026] The first device is restarted, and the first device supplies power to the N second devices through the power line.
[0027] Based on the address allocation method provided in the first aspect of the embodiment of the present application, optionally, the first device and the N second devices respectively have a bus interface, and the first device and the N second devices are respectively connected to the communication bus through the bus interface;
[0028] Before the N second devices respectively load the target address group to be allocated, the method further includes:
[0029] The first device sends a maintenance instruction through the bus interface, and the N second devices clear the current target addresses stored in themselves based on the maintenance instruction;
[0030] A second aspect of an embodiment of the present application provides a battery energy storage system, the battery energy storage system comprising a first device and N second devices, where N is a positive integer greater than or equal to 2.
[0031] The first device and the N second devices respectively have a data interface;
[0032] The first device and the N second devices are sequentially connected in series through the data interface, and the data interface of the Nth second device is connected to the data interface of the first device;
[0033] The first device comprises:
[0034] A setting unit, used to set the first device as a trigger data source and set trigger data;
[0035] A sending unit, used for the trigger data source to send trigger data to the next device connected in series through the data interface;
[0036] A judging unit, configured to cause the first device to judge whether the trigger data is received, and trigger the ending unit if the first device judges that the trigger data is received, and trigger the address determining unit if the first device judges that the trigger data is not received;
[0037] End unit, used to end the process;
[0038] The second device comprises:
[0039] A loading unit, used for N second devices to load a target address group to be allocated respectively, wherein the target address group to be allocated includes K addresses to be allocated, where K is a positive integer greater than or equal to N;
[0040] A sending unit, used for the trigger data source to send trigger data to the next device connected in series through the data interface;
[0041] An address determination unit, used for the next device to determine the target address from the address group to be allocated as the address information corresponding to the next device according to the trigger data and the corresponding rule, and the target address corresponds to the next device one by one;
[0042] The changing unit is used for the next device to change the trigger data based on the preset rules, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to trigger the sending unit.
[0043] A third aspect of an embodiment of the present application provides a first device, wherein the first device and N second devices respectively have a data interface; the first device and the N second devices are sequentially connected in series through the data interfaces, and the data interface of the Nth second device is connected to the data interface of the first device;
[0044] The first device is capable of executing the steps performed by the first device in the method described in any one of the first aspects of the embodiments of the present application.
[0045] A fourth aspect of an embodiment of the present application provides a second device, wherein a first device and N second devices respectively have a data interface; the first device and the N second devices are sequentially connected in series through the data interfaces, and the data interface of the Nth second device is connected to the data interface of the first device;
[0046] The second device is capable of executing the steps performed by the second device in the method described in any one of the first aspects of the embodiments of the present application.
[0047] A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a battery energy storage system, causes the battery energy storage system to execute a method as described in any one of the first aspects of the embodiment of the present application.
[0048] It can be seen from the above technical scheme that the embodiments of the present application have the following advantages: the present application provides a device address allocation method, which is applied to a battery energy storage system, wherein the battery energy storage system includes a first device and N second devices, N is a positive integer greater than or equal to 2, and the first device and the N second devices are respectively connected in series through the data interface, and the data interface of the Nth second device is connected to the data interface of the first device; the method includes: the N second devices are respectively loaded with a target address group to be allocated, and the target address group to be allocated includes K addresses to be allocated, and K is a positive integer greater than or equal to N; the first device is set as a trigger data source, and trigger data is set; the trigger data source sends trigger data to the next device connected in series through the data interface; the first The device determines whether the trigger data is received. If the first device determines that the trigger data is received, the process ends. If the first device determines that the trigger data is not received, the next device determines the target address from the address group to be allocated according to the trigger data and the corresponding rules as the address information corresponding to the next device, and the target address corresponds to the next device one by one; the next device changes the trigger data based on the preset rules, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to execute the step of sending the trigger data source to the next device in series through the data interface; Based on the above method, it can be seen that the present application provides an automated address allocation system. First, it eliminates the risk of address allocation errors caused by human operation and ensures the accuracy of system configuration and communication. Secondly, the automation system greatly improves efficiency and can process a large number of address allocation requests in a shorter time, especially for large battery energy storage systems. In addition, the automation system also reduces maintenance costs, reduces the need for manual intervention, reduces the frequency of system maintenance, and does not require personnel to operate with power, thereby reducing the risk of electric shock and other dangers to operators and improving the safety of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work. It is understood that the drawings provided in this section are only used to better understand the present solution and do not constitute a limitation of the present application.
[0050] Figure 1 A schematic diagram of the structure of a battery energy storage system embodiment provided in this application.
[0051] Figure 2 A flowchart of an embodiment of a method for allocating device addresses provided in this application.
[0052] Figure 3 This is another structural schematic diagram of a battery energy storage system embodiment provided in this application.
[0053] Figure 4 Another flowchart of an embodiment of the device address allocation method provided in the present application.
[0054] Figure 5 This is another structural schematic diagram of a battery energy storage system embodiment provided in this application.
[0055] Figure 6 A structural schematic diagram of the first device embodiment provided in this application.
[0056] Figure 7 A structural schematic diagram of the second device embodiment provided in this application. DETAILED DESCRIPTION
[0057] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application are clearly and completely described below. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should belong to the scope of protection of the present application. At the same time, for the sake of clarity and simplicity, the description of well-known functions and structures is omitted in the following description.
[0058] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0059] Battery energy storage system is an energy storage technology that converts electrical energy into chemical energy and stores it in batteries so that it can be released as electrical energy when needed. This system is widely used in various application fields, including home, industrial, commercial and power industries. The key to battery energy storage system lies in battery energy storage management controller technology. Especially in industrial and power applications, battery energy storage systems usually adopt multi-level local area networking and communication structures. For example, large battery energy storage systems are usually networked in a three-layer structure. The top-level battery energy storage management controller is called the master controller, which communicates with the master controller of the second layer. A master controller is usually responsible for managing more than 10 master controllers. The master controller communicates with the slave controllers of multiple battery packs in the third layer. Each master controller usually manages more than 10 slave controllers. At present, the existing technology usually requires the operator to perform live operation when the battery energy storage system is running, and input different binary numbers for the multi-bit dial switch on the operation panel of each battery pack to assign the network address. However, manually entering a large number of binary numbers is prone to input errors, which may cause address confusion or errors in the battery energy storage system, thereby affecting the normal operation of the system. And manually entering binary numbers for each battery pack is a tedious and time-consuming task. For large battery energy storage systems, this can require a lot of time and human resources, reducing the efficiency of system installation and maintenance. Finally, entering binary numbers requires live operation, which means that the operator must enter them while the battery system is still operating. This may lead to electric shock or other safety risks.
[0060] Before introducing this solution, it is necessary to introduce the implementation environment of this solution. Specifically, the implementation environment applicable to this application method can refer to Figure 1 , Figure 1 That is, an environmental schematic diagram of the battery energy storage system provided in the present application, including a first device 101 and second devices 102 to 104, wherein the first device may be a general controller for controlling the overall system, and the second device may be a main controller for controlling a battery cluster, or the first device may be a main controller for controlling a battery cluster, and the second device may be a slave controller for controlling a battery pack. The specific number may be determined according to actual conditions and is not limited here. The number of second devices is N, where N is a positive integer greater than or equal to 2. This figure takes three second devices as an example for illustration. It can be understood that in the actual implementation process, the number of second devices may be adjusted according to actual conditions and is not limited here.
[0061] The first device and the second device are connected in series in sequence through a data interface, that is, they are connected in series in sequence using data transmission lines 105 to 108, wherein the first device is set at one end of the series relationship, so that the first device sends a control signal to the second device, and the second device transmits it to the next second device connected in series in sequence, thereby completing the overall control process. Specifically, the data interface of the first device and the second device may include a data input port and a data output port, and the data input ports and data output ports of different devices are connected by a data transmission line, wherein the first device is the starting point of data transmission, that is, data is transmitted from the first device to each subsequent second device connected in series.
[0062] It is worth noting that in this embodiment, the data interface of the Nth second device is connected to the data interface of the first device via a data transmission line 108, that is, the data output port of the last second device is connected to the data input port of the first device, so that the corresponding information can be transmitted to the first device after the last second device completes the address allocation process.
[0063] Based on the above Figure 1 For the battery energy storage system environment provided, please refer to Figure 2 , an embodiment of the device address allocation method provided in the present application includes: steps 201 to 207.
[0064] 201. N second devices respectively load a target group of addresses to be allocated, where the target group of addresses to be allocated includes K addresses to be allocated.
[0065] Specifically, the N second devices controlled by the same first device respectively load the target address group to be allocated, and the target address group to be allocated includes K addresses to be allocated, and K is a positive integer greater than or equal to N. The addresses to be allocated in the target address group to be allocated are different, and the target address group to be allocated can be pre-burned in the second device so that each second device loads the same address group. It can be understood that in the actual implementation process, this solution can be applied to the update process of the second device, that is, the first device is restarted, and after the second device is replaced and adjusted, this solution is executed to perform the address allocation process for each second device.
[0066] 202. Set the first device as a trigger data source, and set trigger data.
[0067] Specifically, the first device is set as the trigger data source, and the trigger data is set. That is, the first device first takes on the role of the trigger data source and sets the trigger data to be sent. The set trigger data is the initial trigger data. The specific value and setting rules of the initial trigger data can be determined according to the actual situation and are not limited here.
[0068] 203. The trigger data source sends trigger data to the next device connected in series through the data interface.
[0069] Specifically, the trigger data source sends the trigger data to the next device connected in series through the data interface. Figure 1 The corresponding device background is that the first device 101 sends trigger data to the first second device 102, so that the second device determines its corresponding address according to the trigger data.
[0070] 204. The first device determines whether trigger data is received.
[0071] Specifically, the first device determines whether the trigger data is received. If the first device determines that the trigger data is received, step 207 is executed. If the first device determines that the trigger data is not received, step 205 is executed. In the address allocation process, the trigger data is continuously sent to the next device in the system. If the first device receives the trigger data, it means that the trigger data has been completely circulated in the system, and each second device has been assigned the corresponding address information. At this time, step 207 should be executed to end the process. If the first device does not receive the trigger data, it means that the device that receives the trigger data at this time is the second device. Step 205 is executed to allocate data information to the second device.
[0072] 205. The next device determines, according to the trigger data and the corresponding rule, that the target address is the address information corresponding to the next device from the address group to be allocated.
[0073] Specifically, the next device is the second device that receives the trigger data. The device determines the target address from the address group to be allocated as the address information corresponding to the next device according to the trigger data and the corresponding rule. In the actual implementation process, the corresponding rule between the trigger data and the address to be allocated can be the order of the value of the trigger data corresponding to the address to be allocated. For example, if the value of the trigger data is 3, the third address information in the address group to be allocated is set as the target address information. It can be understood that after the address allocation is completed, there is a corresponding relationship between the target address and the second device, that is, the target address corresponds to the next device one by one. The already allocated target address cannot be allocated to other second devices through trigger data.
[0074] 206 . The next device changes trigger data based on a preset rule, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to step 203 .
[0075] Specifically, the device changes the trigger data based on the preset rule, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to execute step 203. That is, the device changes the trigger data. In the actual implementation process, the change rule of the trigger data can be cumulative, and any other form of change rule only needs to ensure that the changed trigger data is different from any trigger data that appeared before, thereby ensuring that there will be no address duplication. After the trigger data is changed, the original trigger signal source sets itself not as a trigger signal source, and the second device with an assigned address sets itself as a trigger signal source, and returns to execute step 203, that is, the trigger signal source sends a trigger signal to the next connected device. For the above Figure 1 For the corresponding embodiment, the original trigger signal source 101 is set not to be a trigger signal source, and the next second device 102 is set to be a trigger signal source. After the cycle is executed three times, the trigger signal source becomes the second device 104. When the second device 104 sends a trigger signal again, it will be sent to the first device 101. At this time, step 207 is executed to end the process.
[0076] 207. End the process.
[0077] Specifically, if the first device receives the trigger signal, it means that each second device in the system has a corresponding address, the address allocation process has been completed, and the process ends.
[0078] It can be seen from the above technical scheme that the embodiments of the present application have the following advantages: the present application provides a device address allocation method, which is applied to a battery energy storage system, wherein the battery energy storage system includes a first device and N second devices, N is a positive integer greater than or equal to 2, and the first device and the N second devices respectively have a data interface; the first device and the N second devices are sequentially connected in series through the data interface, and the data interface of the Nth second device is connected to the data interface of the first device; the method includes: the N second devices respectively load a target address group to be allocated, and the target address group to be allocated includes K addresses to be allocated, and K is a positive integer greater than or equal to N; the first device is set as a trigger data source, and trigger data is set; the trigger data source sends a signal to the next device in series through the data interface. Send trigger data; the first device determines whether the trigger data is received. If the first device determines that the trigger data is received, the process ends. If the first device determines that the trigger data is not received, the next device determines that the target address is the address information corresponding to the next device from the address group to be allocated according to the trigger data and the corresponding rules, and the target address corresponds to the next device one by one; the next device changes the trigger data based on the preset rules, sets the next device as the trigger signal source, and returns to execute the step of sending the data source to send the trigger data to the next device connected in series through the data interface; Based on the above method, it can be seen that the present application provides an automated address allocation system. First, it eliminates the risk of address allocation errors caused by human operation and ensures the accuracy of system configuration and communication. Secondly, the automation system greatly improves efficiency and can process a large number of address allocation requests in a shorter time, especially for large battery energy storage systems. In addition, the automation system also reduces maintenance costs, reduces the need for manual intervention, reduces the frequency of system maintenance, and does not require personnel to operate with power, thereby reducing the risk of electric shock and other dangers to operators and improving the safety of the system.
[0079] To facilitate the use of this method in actual implementation, this application also provides a more detailed embodiment that can be optionally implemented, please refer to Figure 3 , an implementation background of the embodiment provided in this application includes:
[0080] Figure 3 It is a structural diagram of the battery energy storage system, including a first device 10, four second devices 21 to 24, a communication bus 30, multiple trigger data lines 41 to 45, a DC power supply line 50, an AC power supply line 60, and an AC power supply 70. It can be understood that in different implementation environments, the number of second devices can be determined according to actual conditions. In a large energy storage system, the number of second devices is usually greater than 10.
[0081] The first device 10 includes a bus interface CN, and the second devices 21 to 24 include a bus interface CN. The bus interface CN of the first device and the bus interfaces CN of each second device are connected by the communication bus 30 .
[0082] The data interface between the first device and the second device includes a data output DO and a data input DI. The first device 10 includes a data output DO, and the data output DO is connected to the data input DI of the first second device 21 that is closest to the first device by the first trigger data line 41; the data output DO of the first second device 21 is connected to the data input DI of the second device 22 that is closest to the first device by the second trigger data line 42.
[0083] By analogy: the data outlet DO of the N-1th (i.e., the third) second device 23 is connected to the data inlet DI of the next closest Nth (i.e., the fourth) second device 24 by the Nth (i.e., the fourth) trigger data line 44. The data outlet DO of the Nth (i.e., the fourth) second device 24 is connected to the data inlet DI of the first device 10 by the N+1th trigger data line 45.
[0084] The first device 10 further includes a switch SW, a power converter KG, and a power supply interface PO. The second devices 21 to 24 include a power supply interface PI. The power supply interface PO is connected to the power interface PI by the DC power supply line 50, and the AC power supply 70 is connected to the power converter KG by the AC power supply line 60.
[0085] This embodiment includes: step 401 to step 409.
[0086] 401. The first device sends a maintenance instruction through the bus interface, and the N second devices clear their own stored current target addresses based on the maintenance instruction.
[0087] Specifically, the application scenario of this solution is that after the battery energy storage system has been running for a period of time, the second device in some systems is damaged. At this time, the second device in the system needs to be updated. Specifically, the first device sends a networking maintenance instruction through the bus interface, and the N second devices receive the maintenance command through the bus interface CN and clear the current target address stored in themselves based on the maintenance instruction, that is, they enter a state without a corresponding address.
[0088] 402. Restart the first device, and the first device supplies power to the N second devices through the power line.
[0089] Specifically, the first device is restarted, and the first device supplies power to the N second devices through the power supply line. Before this step is implemented, the second device can be replaced when the first device is in a turned-off state, that is, the first device 10 is manually turned off through the switch SW, and the power supply interface PO is controlled to cut off the power to all the second devices 21 to 24. The original second device 23 that needs maintenance is replaced with a new second device, and the number of the second devices 21 to 24 remains unchanged.
[0090] Finally, the first 10 is manually started through the switch SW, and its data input DI, data output DO and bus interface CN are opened; the first device 10 controls the power converter KG to convert the AC power of the AC power supply 70 into DC power, and supplies power to all the second devices 21 to 24 through the power supply interface PO.
[0091] 403. N second devices respectively load a target group of addresses to be allocated, where the target group of addresses to be allocated includes K addresses to be allocated.
[0092] Specifically, the second devices 21 to 24 are powered and started, their respective data inputs DI are opened, their respective data outputs DO and bus interfaces CN are closed, and the same group of addresses to be allocated are loaded into their respective memories, wherein the target group of addresses to be allocated includes K addresses to be allocated, where K is a positive integer greater than or equal to N, so as to support the allocation of corresponding addresses to each second device in the system.
[0093] 404. Set the first device as a trigger data source, and set trigger data.
[0094] Specifically, the first device 10 is configured as a trigger data source, and sets initial trigger data (for example, the trigger data is set to 1).
[0095] 405. The trigger data source sends trigger data to the next device connected in series through the data interface.
[0096] The data outlet DO of the trigger data source (ie the first device 10 at this time) sends trigger data to the data inlet DI of the next device (ie the second device 21 at this time) connected to the trigger data line (ie the trigger data line 41 at this time).
[0097] 406. The first device determines whether trigger data is received.
[0098] The first device determines whether the trigger data is received. If received, step 409 is executed; if not received, step 407 is executed.
[0099] 407. The next device obtains the Mth address in the address group to be allocated as the target address, where M is equal to the trigger data value.
[0100] The next device (the second device 21 at this time) receives the trigger data, reads and records an address from the set of addresses to be allocated loaded in the memory according to the trigger data (the initial value 1 at this time) and the predetermined rule (the predetermined rule, for example, at this time uses the value 1 of the trigger data as the index to read the first address from the set of addresses to be allocated), opens its bus interface CN and starts the bus function so that the second device 21 supports subsequent control processes.
[0101] 408 . The next device performs an operation on the value of the trigger data and the preset value to obtain the changed trigger data, sets the next device as the trigger signal source, and returns to step 405 .
[0102] The next device (the second device 21 at this time) closes the data entry DI and changes the trigger data according to the predetermined rule (the predetermined rule, for example, at this time, the value 1 of the trigger data is updated to 2 by adding 1). It can be understood that the operation performed in the actual implementation process is not limited to addition and can also be any other conventional operation method, which can be determined according to the actual situation and is not limited here. The original trigger data source 10 sets itself not as the trigger data source, and the next device sets itself as the new trigger data source (the second device 21 at this time) and opens its data exit DO, and returns to step 405. The first device determines whether the trigger data is received. At this time, it is determined that it is not received, and the subsequent process is continued. The next device (the second device 22 at this time) receives the trigger data, reads and records an address from the set of addresses to be allocated that have been loaded in the memory according to the trigger data (the value 2 at this time) and the predetermined rule (the predetermined rule, for example, at this time, the value 2 of the trigger data is used as the index to read the second address from the set of addresses to be allocated), opens its bus interface CN and starts the bus function, so that the second device 22 supports the subsequent control process.
[0103] The next device (the second device 22 at this time) closes the data input DI, changes the trigger data according to the predetermined rules (the predetermined rules, for example, at this time, add one to the value 2 of the trigger data and update it to the value 3), the second device 21 sets itself not to be the trigger data source, the next device sets itself as the new trigger data source (the second device 22 at this time) and opens its data output DO, and returns to step 405.
[0104] That is, steps 405 to 408 are executed in a loop until it is determined that the first device receives the trigger data.
[0105] 409. End the process.
[0106] Specifically, if the first device receives the trigger signal, it means that each second device in the system has a corresponding address, the address allocation process has been completed, and the process ends.
[0107] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages: the present application provides a device address allocation method, which is applied to a battery energy storage system, and the method includes: N second devices respectively load a target address group to be allocated, and the target address group to be allocated includes K addresses to be allocated; the first device is set as a trigger data source, and trigger data is set; the trigger data source sends trigger data to the next device connected in series through the data interface; the first device determines whether the trigger data is received, and if the first device determines that the trigger data is received, the process ends, and if the first device determines that the trigger data is not received, the next device determines that the target address is the address information corresponding to the next device from the address group to be allocated according to the trigger data and the corresponding rules, and the target address corresponds to the next device one by one; the next device changes the trigger data based on the preset rules, sets the next device as the trigger signal source, and returns to execute the step of sending the trigger data source to the next device connected in series through the data interface; based on the above method, it can be seen that the present application provides an automated address allocation system, first of all, it eliminates the risk of address allocation errors caused by human operation, and ensures the accuracy of system configuration and communication. Secondly, the automation system greatly improves efficiency and can handle a large number of address allocation requests in a shorter time, especially for large-scale battery energy storage systems. In addition, the automation system also reduces maintenance costs, reduces the need for manual intervention, reduces the frequency of system maintenance, and eliminates the need for live operation, thereby reducing the risk of electric shock and other hazards to operators and improving the safety of the system.
[0108] The above content describes the device address allocation method provided by this application. To support the implementation of the above embodiment, this application also provides a battery energy storage system. Figure 5 , an embodiment of the battery energy storage system provided in the present application includes:
[0109] The battery energy storage system includes a first device 501 and two second devices 502 and 503. It can be understood that in the actual implementation process, the number of the second devices can be adjusted according to the actual situation, and is not specifically limited here.
[0110] The first device 501 and the second devices 502 and 503 respectively have data interfaces; the first device 501 and the second devices 502 and 503 are connected in series in sequence through the data interfaces, and the data interface of the second device 503 is connected to the data interface 501 of the first device at the end;
[0111] The first device 501 includes:
[0112] A setting unit, used to set the first device as a trigger data source and set trigger data;
[0113] A sending unit, used for the trigger data source to send trigger data to the next device connected in series through the data interface;
[0114] A judging unit, configured to cause the first device to judge whether the trigger data is received, and trigger the ending unit if the first device judges that the trigger data is received, and trigger the address determining unit if the first device judges that the trigger data is not received;
[0115] End unit, used to end the process;
[0116] The second devices 502 and 503 respectively include:
[0117] A loading unit, used for N second devices to load a target address group to be allocated respectively, wherein the target address group to be allocated includes K addresses to be allocated, where K is a positive integer greater than or equal to N;
[0118] A sending unit, used for the trigger data source to send trigger data to the next device connected in series through the data interface;
[0119] An address determination unit, used for the next device to determine the target address from the address group to be allocated as the address information corresponding to the next device according to the trigger data and the corresponding rule, and the target address corresponds to the next device one by one;
[0120] The changing unit is used for the next device to change the trigger data based on the preset rules, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to trigger the sending unit.
[0121] In this embodiment, the process performed by each unit in the battery energy storage system is the same as the above Figure 2 or Figure 4 The method flow described in the corresponding embodiment is similar and will not be repeated here.
[0122] See also Figure 6 The present application also provides a first device, wherein the first device and N second devices respectively have a data interface; the first device and the N second devices are sequentially connected in series through the data interfaces, and the data interface of the Nth second device is connected to the data interface of the first device;
[0123] The first device is capable of executing the above Figure 2 Figure 4The steps performed by the first device in the method described in any one of the corresponding embodiments.
[0124] See also Figure 7 The present application also provides a second device, characterized in that the first device and the N second devices respectively have a data interface; the first device and the N second devices are sequentially connected in series through the data interface, and the data interface of the Nth second device is connected to the data interface of the first device;
[0125] The second device is capable of executing the above Figure 2 Figure 4 The steps performed by the second device in the method described in any one of the corresponding embodiments.
[0126] An embodiment of the present application also provides a computer storage medium, which is used to store computer software instructions used for the above-mentioned device address allocation method, including a program designed for executing the device address allocation method.
[0127] The device address allocation method can be as described above Figure 1 The device address assignment method described in .
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the equivalent transformation of the circuit, the division of the unit, is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0131] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for allocating device addresses, It is characterized in that The method is applied to a battery energy storage system, wherein the battery energy storage system comprises a first device and N second devices, where N is a positive integer greater than or equal to 2; The first device and the N second devices respectively have a data interface; The first device and the N second devices are connected in series in sequence through the data interface, and the data interface of the Nth second device is connected to the data interface of the first device; The data interface of the first device and the second device comprises a data outlet and a data inlet; the data outlet of the first device is connected to the data inlet of the first and the second device which is closest to the first device by a trigger data line; the data outlet of the first and the second device is connected to the data inlet of the second and the second device which is closest to the first device by a second trigger data line; In this order, the data outlet of the N-1th second device is connected to the data inlet of the next closest Nth second device by the Nth trigger data line. The data outlet of the Nth second device is connected to the data inlet of the first device by the N+1th trigger data line; S1. N second devices respectively load a target address group to be allocated, wherein the target address group to be allocated includes K addresses to be allocated, where K is a positive integer greater than or equal to N; S2. Set the first device as the trigger data source and set the trigger data; S3. The trigger data source sends trigger data to the next device in series through the data interface; S4. The first device determines whether the trigger data is received. If the first device determines that the trigger data is received, step S7 is executed. If the first device determines that the trigger data is not received, step S5 is executed. S5. The next device determines the target address from the address group to be allocated according to the trigger data and the corresponding rules as the address information corresponding to the next device, and the target address corresponds to the next device one-to-one; S6. The next device changes the trigger data based on a preset rule, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to step S3; S7. End the process.
2. The device address allocation method according to claim 1, It is characterized in that The next device determines, according to the trigger data and the corresponding rule, that the target address is the address information corresponding to the next device from the address group to be allocated, including: The next device obtains the Mth address in the address group to be allocated as the target address, where M is equal to the trigger data value.
3. The device address allocation method according to claim 1, It is characterized in that The next device changes trigger data based on a preset rule, including: The value of the trigger data is calculated with the preset value to obtain the changed trigger data.
4. The device address allocation method according to claim 1, It is characterized in that The target address group to be allocated is pre-burned into the second device.
5. The device address allocation method according to claim 1, It is characterized in that The method further comprises: The first device also includes: a power converter and a power supply interface; The second device also includes a power interface; The power supply interface is connected to each of the power supply interfaces by a power supply line; The method further comprises: The first device is restarted, and the first device supplies power to the N second devices through the power line.
6. The device address allocation method according to claim 1, It is characterized in that The first device and the N second devices respectively have a bus interface, and the first device and the N second devices are respectively connected to the communication bus through the bus interface; Before the N second devices respectively load the target address group to be allocated, the method further includes: The first device sends a maintenance instruction through the bus interface, and the N second devices clear current target addresses stored in themselves based on the maintenance instruction.
7. A battery energy storage system, It is characterized in that The battery energy storage system includes a first device and N second devices, where N is a positive integer greater than or equal to 2; The first device and the N second devices respectively have a data interface; The first device and the N second devices are connected in series in sequence through the data interface, and the data interface of the Nth second device is connected to the data interface of the first device; The data interface of the first device and the second device comprises a data outlet and a data inlet; the data outlet of the first device is connected to the data inlet of the first and the second device which is closest to the first device by a trigger data line; the data outlet of the first and the second device is connected to the data inlet of the second and the second device which is closest to the first device by a second trigger data line; In this order, the data outlet of the N-1th second device is connected to the data inlet of the next closest Nth second device by the Nth trigger data line. The data outlet of the Nth second device is connected to the data inlet of the first device by the N+1th trigger data line; The first device comprises: A setting unit, used to set the first device as a trigger data source and set trigger data; A sending unit, used for the trigger data source to send trigger data to the next device connected in series through the data interface; A judging unit, configured to cause the first device to judge whether the trigger data is received, and trigger the ending unit if the first device judges that the trigger data is received, and trigger the address determining unit if the first device judges that the trigger data is not received; End unit, used to end the process; The second device comprises: A loading unit, used for N second devices to load a target address group to be allocated respectively, wherein the target address group to be allocated includes K addresses to be allocated, where K is a positive integer greater than or equal to N; A sending unit, used for the trigger data source to send trigger data to the next device connected in series through the data interface; An address determination unit, used for the next device to determine the target address from the address group to be allocated as the address information corresponding to the next device according to the trigger data and the corresponding rule, and the target address corresponds to the next device one by one; The changing unit is used for the next device to change the trigger data based on the preset rules, the trigger signal source sets itself as a non-trigger signal source, sets the next device as the trigger signal source, and returns to trigger the sending unit.
8. A first device, It is characterized in that The first device and the N second devices respectively have a data interface; the first device and the N second devices are sequentially connected in series through the data interfaces, and the data interface of the Nth second device is connected to the data interface of the first device; The data interface of the first device and the second device comprises a data outlet and a data inlet; the data outlet of the first device is connected to the data inlet of the first and the second device which is closest to the first device by a trigger data line; the data outlet of the first and the second device is connected to the data inlet of the second and the second device which is closest to the first device by a second trigger data line; In this order, the data outlet of the N-1th second device is connected to the data inlet of the next closest Nth second device by the Nth trigger data line. The data outlet of the Nth second device is connected to the data inlet of the first device by the N+1th trigger data line; The first device is capable of executing the steps executed by the first device in the method according to any one of claims 1 to 6.
9. A second device, It is characterized in that The first device and the N second devices respectively have a data interface; the first device and the N second devices are sequentially connected in series through the data interfaces, and the data interface of the Nth second device is connected to the data interface of the first device; The data interface of the first device and the second device comprises a data outlet and a data inlet; the data outlet of the first device is connected to the data inlet of the first and the second device which is closest to the first device by a trigger data line; the data outlet of the first and the second device is connected to the data inlet of the second and the second device which is closest to the first device by a second trigger data line; In this order, the data outlet of the N-1th second device is connected to the data inlet of the next closest Nth second device by the Nth trigger data line. The data outlet of the Nth second device is connected to the data inlet of the first device by the N+1th trigger data line; The second device is capable of executing the steps executed by the second device in the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, It is characterized in that The method comprises instructions which, when executed on a battery energy storage system, cause the battery energy storage system to execute the method according to any one of claims 1 to 6.
