Networking system and networking method for energy management equipment
By selecting the initial device in the energy management equipment networking system and automatically switching from the device to the host mode, the problem of the system not being able to operate normally caused by the failure of the master device or communication abnormality is solved, and the efficiency and reliability of the system are improved.
Patent Information
- Application Number
- CN202510227477.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-05-16
AI Technical Summary
In the energy management equipment networking system, when the main equipment fails or the communication line is abnormal, the system cannot operate normally, affecting efficiency and reliability.
By selecting the initial device from the slave device, transmitting its communication data to other slave devices, and determining the first master device according to the preset host selection policy, so that it automatically switches to host mode, ensuring the normal operation of the system.
Even if an abnormality occurs in the original host, a slave device in the energy management equipment networking system can serve as a host function, control other slave devices, ensure the normal operation of the system, and improve usage efficiency and reliability.
Smart Images

Figure CN120017674A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automatic networking technology, and in particular to an energy management equipment networking system and a networking method. Background Art
[0002] The energy management device networking system usually includes multiple energy management devices. The energy management device is the core component of the energy storage system and is used to store and release energy. One of the multiple energy management devices is set as the master device, and all other energy management devices except the master device are connected to the master device through communication, that is, the energy management device networking system adopts a centralized control method. By connecting other energy management devices together through the master device, the requirements for energy storage capacity and power in different application scenarios can be met, the continuity and reliability of the system can be ensured, and the equipment can be added or removed according to actual needs to achieve flexible system configuration.
[0003] However, when a master device with centralized control function fails or there is an abnormality in the communication line between the master device and other slave devices, the master device may not be able to control the slave devices, resulting in the system not being able to operate normally, affecting the efficiency and reliability of the system. Summary of the invention
[0004] In view of this, the present application provides an energy management device networking system and a networking method, which can solve the problem that the system cannot operate normally due to the master device being unable to control the slave devices.
[0005] An embodiment of the present application provides an energy management device networking system, which includes multiple energy management devices, each of which has communication data, and the communication data is used to characterize a unique communication identifier for communication between the multiple energy management devices. The device mode of the energy management device includes a host mode and a slave mode; the multiple slave devices are used to select any one of the multiple slave devices as an initial device from the multiple slave devices when it is necessary to select a master device, so that the initial device transmits the communication data of the initial device to other slave devices, and determines a first master device from the multiple slave devices according to a preset host selection strategy, wherein the slave device is the energy management device currently in the slave mode, and the first master device is the slave device to be switched to the host mode; the multiple slave devices are also used to receive the communication data of the first master device; the first master device is used to switch the device mode of the first master device from the slave mode to the host mode.
[0006] Compared with the related art, the embodiments of the present application have at least the following advantages: When multiple slave devices detect that a master device needs to be selected, such as when the current master device cannot transmit control instructions to each slave device, any slave device is selected from the multiple slave devices as the initial device, so that the initial device transmits the communication data of the initial device to other slave devices, and the multiple slave devices will also determine the slave device to be switched to the host mode (i.e., the first master device) according to the host selection strategy. The slave device will automatically adjust the slave mode to the host mode, so that even if the original host has an abnormality, a slave device in the energy management device networking system can also act as a host to control other energy management devices in slave mode, ensure the normal operation of the energy management device, and thus improve the utilization efficiency and reliability of the energy management device networking system.
[0007] In some possible implementations, the initial device transmits the communication data of the initial device to other slave devices, and determines the first master device among multiple slave devices according to a preset host selection strategy, including: the initial device is used to transmit the communication data of the initial device to the next slave device; the next slave device is used to determine the initial data according to a preset data selection rule, use itself as a new initial device, and send the initial data to the next slave device of the new initial device until the communication data of the next slave device of the new initial device is the same as the received communication data, the next slave device of the new initial device sends a host confirmation message, and the next slave device of the new initial device serves as the first master device; the initial device is also used to receive the host confirmation message and the communication data of the first master device, wherein the initial data is one of the communication data of the new initial device and the communication data received by the new initial device.
[0008] In some possible implementations, the device mode of the energy management device also includes a stand-alone mode, the initial device stores a heartbeat value, and the heartbeat value is used to characterize the communication connection status between the initial device and the first master device; the initial device is also used to detect two heartbeat values at two different time points, and if the two heartbeat values are detected to be the same, respectively detect the first communication status between the initial device and other slave devices; the initial device is also used to switch the device mode of the initial device from the slave mode to the stand-alone mode if it is detected that multiple first communication states are not connected.
[0009] In some possible implementations, the initial device is further used to obtain a second communication state between the slave device communicatively connected to the initial device and the first master device if it is detected that any one of the first communication states is a communication connection; the initial device is further used to receive the communication data of the first master device if the second communication state is a communication connection.
[0010] In some possible implementations, the initial device is also used to respectively detect the first communication status between the initial device and other slave devices again after switching to the stand-alone mode and exceeding a preset time; the initial device is also used to obtain the second communication status between the slave device communicatively connected to the initial device and the first master device if it is detected that any one of the first communication states is a communication connection; and if the acquired second communication status is a communication connection, receive the communication data of the first master device.
[0011] In some possible implementations, the multiple slave devices are also used to respectively detect the third communication state with the first master device; each of the multiple slave devices is also used to respectively detect the fourth communication state with other slave devices; the multiple slave devices are also used to determine the second master device according to the host selection strategy if it is detected that the multiple third communication states are all not connected and the multiple fourth communication states are all connected; the second master device is used to send a host switching message to the multiple slave devices and switch the device mode of the second master device from the slave mode to the host mode; the multiple slave devices are also used to receive the communication data of the second master device.
[0012] In some possible implementations, the multiple slave devices are also used to determine the second master device according to the host selection strategy when the host needs to be replaced, wherein the second master device is the slave device to be switched to the host mode; the first master device is also used to receive the communication data of the second master device, transmit the communication data of the second master device to the multiple slave devices, and switch the device mode of the first master device from the host mode to the slave mode; the second master device is used to switch the device mode of the second master device from the slave mode to the host mode.
[0013] In some possible implementations, the energy management device networking system also includes a cloud server, which is communicatively connected to the multiple energy management devices; the cloud server is used to send power allocation instructions to the first master device, wherein the power allocation instructions are a strategy for the first master device to control the charging and discharging power of the multiple slave devices.
[0014] In some possible implementations, the initial device is used to send the device mode of the initial device to the next energy management device; the next energy management device is used to detect whether the received device mode and its own device mode are the slave mode, and if it is detected that both are the slave mode, it uses itself as the new initial device and sends the device mode of the new initial device to the next energy management device of the new initial device, until the device mode received by the first initial device is the slave mode, and a master device selection message is generated; the initial device is also used to send the master device selection message to other energy management devices.
[0015] The second aspect of the present application discloses a method for networking energy management devices, which is applied to an energy management device networking system. The energy management device networking system includes multiple energy management devices, each of which has communication data, and the communication data is used to characterize a unique communication identifier for communication between the multiple energy management devices. The device mode of the energy management device includes a host mode and a slave mode; the energy management device networking method includes: when it is necessary to select a master device, select any one of the multiple slave devices as an initial device, so that the initial device transmits the communication data of the initial device to other slave devices, and the multiple slave devices determine a first master device from the multiple slave devices according to a preset host selection strategy; wherein the slave device is the energy management device currently in the slave mode, and the first master device is the slave device to be switched to the host mode; multiple slave devices receive the communication data of the first master device; the first master device switches the device mode of the first master device from the slave mode to the host mode.
[0016] It can be understood that the energy management device networking method of the second aspect provided above corresponds to the system of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding system provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a structural diagram of an energy management device networking system according to an embodiment of the present application.
[0018] Figure 2 This is another structural diagram of an energy management device networking system according to an embodiment of the present application.
[0019] Figure 3 It is a flowchart of the steps of a method for networking energy management devices according to an embodiment of the present application.
[0020] The following specific embodiments will further illustrate the present application in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0021] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.
[0022] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0024] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0025] In this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0026] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0027] The energy management device networking system usually includes multiple energy management devices. The energy management device is the core component of the energy storage system and is used to store and release energy. Figure 1 , set one of the multiple energy management devices as the master device (the device is connected to the cloud server), and all other energy management devices except the master device are connected to the master device. By connecting other energy management devices together through the master device, the requirements for energy storage capacity and power in different application scenarios can be met, ensuring the continuity and reliability of the system, and the ability to add or remove devices according to actual needs to achieve flexible system configuration.
[0028] However, when the main device fails and loses its communication function, other energy management devices may be unable to communicate with the main device to receive the charging and discharging power allocation instructions issued by the main device, resulting in the system being unable to operate normally, affecting the efficiency and reliability of the system.
[0029] To resolve this issue, refer to Figure 2 The present application provides an energy management device networking system. The energy management device networking system includes a plurality of energy management devices, each of which is connected to a communication terminal. The communication terminal includes a cloud server, a switch and a total electricity meter.
[0030] The energy management device in this embodiment is an energy storage cabinet. In other embodiments, the energy management device may also be other electronic devices besides the energy storage cabinet, as long as it can manage some components of the energy storage cabinet.
[0031] Energy management equipment is equipped with an energy storage system, which refers to a device that can store electrical energy in the form of chemical energy, potential energy, kinetic energy, etc., and convert it into electrical energy to supply users when needed. The energy storage system consists of a battery management system, an energy management system, a battery pack, an energy storage inverter, and other electrical equipment. Among them, other electrical equipment may include temperature and humidity sensors, air conditioning / temperature control systems, fire protection equipment, and access control equipment.
[0032] The battery management system is mainly responsible for battery monitoring, evaluation, protection and balancing. For example, it can calculate the basic parameters of the battery, including voltage, current, temperature, etc., to prevent overcharging and over-discharging of the battery and extend the battery life. It also calculates and analyzes the remaining battery capacity and battery health status of the battery, and reports abnormal information in a timely manner. As the brain of the energy storage system, the energy management system is responsible for data collection and forwarding, network monitoring and energy scheduling. For example, it is responsible for the control strategy of the energy storage system and monitors faults and anomalies in the operation of the system. The energy storage converter is mainly used to control the charging and discharging process of the battery pack and convert AC and DC power.
[0033] Specifically, in the energy storage system, the battery pack feeds back its own status information to the battery management system, and the battery management system shares the battery pack status information with the energy management system and the energy storage converter. The energy management system sends control information to the battery management system and the energy storage converter based on the optimization and scheduling decisions to control the battery pack to complete the charging or discharging process. Among them, the battery pack status information includes battery temperature, SOC (state of charge estimation), SOH (state of health estimation), SOS (safety state estimation), SOF (functional state estimation) and SOE (available energy state estimation).
[0034] In some embodiments, each energy management device has communication data, and the communication data is used to represent a unique communication identifier for communication between multiple energy management devices. In this embodiment, the communication data may be a communication IP or a device code. In other embodiments, the communication data may be other data in addition to the communication IP or the device code, as long as the data can represent a unique communication identifier for communication between an energy management device and other energy management devices.
[0035] For example, in this embodiment, a device number may be set for each energy management device. For example, when the energy management device networking system includes 5 energy management devices, the 5 energy management devices are numbered as device 1, device 2, device 3, device 4, and device 5. Device 1, device 2, device 3, device 4, and device 5 are all connected to the cloud server. In other embodiments, the device codes of the 5 energy management devices may also be discontinuous, as long as the device code of each energy management device is unique.
[0036] Correspondingly, in one embodiment, a corresponding IP address is set for each energy management device according to the order of the numerical values of the multiple device numbers. For example, the IP address of device 1 is 192.168.0.101, the IP address of device 2 is 192.168.0.102, the IP address of device 3 is 192.168.0.103, the IP address of device 4 is 192.168.0.104, and the IP address of device 5 is 192.168.0.105. In other words, if the numerical values of the multiple device numbers are ordered from small to large, the IP addresses of the multiple energy management devices corresponding to the multiple device numbers are also ordered from small to large.
[0037] In another embodiment, the multiple IP addresses of devices 1 to 5 may not be arranged in ascending or descending order, as long as the IP address corresponding to each energy management device in devices 1 to 5 is unique.
[0038] In this embodiment, device 1, device 2, device 3, device 4 and device 5 are all connected to the switch and the cloud server, and the total electric meter is connected to the switch. The device modes of the energy management device include host mode, slave mode and stand-alone mode. Among them, the host mode is used to characterize that the energy management device is in a mode of sending allocation instructions to other energy management devices, the slave mode is used to characterize that an energy management device is in a mode of receiving allocation instructions from another energy management device, and the stand-alone mode is used to characterize that the energy management device can accept allocation instructions from nearby or remote locations independently. Among them, nearby means that the user can directly control the working power of the energy management device on the control panel of the energy management device, and remote means that the user can control the working power of the energy management device by remotely connecting to the energy management device.
[0039] In some embodiments, when it is necessary to select a master device, multiple slave devices are used to select any one of the multiple slave devices as an initial device, so that the initial device transmits the communication data of the initial device to other slave devices, and the multiple slave devices are also used to determine the first master device among the multiple slave devices according to a preset host selection strategy. The slave device is an energy management device currently in slave mode, and the first master device is a slave device to be switched to the host mode. The multiple slave devices are used to receive the communication data of the first master device. The first master device is used to switch the device mode of the first master device from slave mode to host mode.
[0040] Among them, the step of multiple slave devices determining that a master device needs to be selected includes: selecting an energy management device from multiple energy management devices as an initial device, and the initial device sends its own device mode to the next energy management device of the initial device. The next energy management device detects whether the received device mode and its own device mode are slave mode. If both are slave mode, the next energy management device is used as a new initial device, and its own device mode is sent to the next energy management device of the new initial device, until the first initial device detects that the received device mode is a slave mode, and generates a message for selecting a master device.
[0041] For example, if the device modes of devices 1 to 5 are all in slave mode, then device 1 sends its own device mode to device 2. Device 2 receives the device mode (slave mode) of device 1 and detects whether the device modes of device 1 and device 2 are both in slave mode. If both are detected to be in slave mode, device 2 is used as the new initial device and sends its own device mode to device 3. Until device 1 receives the device mode sent by device 5, if it detects that the device mode sent by device 5 is also in slave mode, a message for selecting the master device is generated.
[0042] At this time, device 1 sends a master device selection message to device 2 to device 5 respectively, and device 1 and device 5 determine the first master device in device 1 and device 5 according to the preset host selection strategy.
[0043] In this embodiment, when multiple slave devices detect that a master device needs to be selected, if the current master device cannot transmit control instructions to each slave device, any slave device will be selected as the initial device first. The initial device will send its own communication data to other slave devices, and the multiple slave devices will also determine the slave device to be switched to the host mode (i.e., the first master device) according to the host selection strategy. The slave device will automatically adjust the slave mode to the host mode, so that even if the original host has an abnormality, a slave device in the energy management device networking system can also act as a host to control other energy management devices in slave mode, ensure the normal operation of the energy management device, and thus improve the utilization efficiency and reliability of the energy management device networking system.
[0044] In some embodiments, after multiple slave devices determine the first master device among multiple slave devices according to a preset host selection strategy, the first master device can receive a power allocation instruction sent by the cloud server, so that the first master device can control the charging and discharging power of multiple slave devices based on the power allocation instruction.
[0045] Specifically, the step of multiple slave devices determining a first master device from the multiple slave devices according to a preset master selection strategy includes: The initial device is used to transmit the communication data of the initial device to the next slave device of the initial device, and the next slave device is used to determine the initial data according to the preset data selection rule, use itself as the new initial device, and send the initial data to the next slave device of the new initial device until the communication data of the next slave device of the new initial device is the same as the received communication data, the next slave device of the new initial device sends a host confirmation message, and the next slave device of the new initial device is used as the first master device. The initial data is one of the communication data of the new initial device and the communication data received by the new initial device. The initial device is also used to receive the host confirmation message and the communication data of the first master device.
[0046] In this embodiment, the communication data is an IP address. If device 1, device 2, device 3, device 4, and device 5 detect that a master device needs to be selected, any one of device 1, device 2, device 3, device 4, and device 5 is selected as the initial device. For example, device 1 is selected as the initial device.
[0047] The communication data (i.e. IP address) 192.168.0.101 of device 1 is sent to device 2. Device 2 receives the IP address of device 1 and detects whether the IP address of device 2 is the same as the received IP address 192.168.0.101 of device 1. If it is detected that 192.168.0.102 and 192.168.0.101 are not the same and 192.168.0.101 is less than 192.168.0.102, 192.168.0.101 is used as the initial address and device 2 is used as the new initial device.
[0048] Device 2 sends 192.168.0.101 to Device 3. Device 3 receives the IP address (192.168.0.101) sent by Device 2 and checks whether its own IP address is the same as 192.168.0.101. It detects that 192.168.0.101 and 192.168.0.103 are different, and 192.168.0.101 is smaller than 192.168.0.103. 192.168.0.101 is used as the initial address.
[0049] Further, device 3 is used as the new initial device, and device 3 sends 192.168.0.101 to device 4. Device 4 receives the IP address (192.168.0.101) sent by device 3, and detects whether its own IP address is the same as 192.168.0.101. It is detected that 192.168.0.101 and 192.168.0.104 are different, and 192.168.0.101 is less than 192.168.0.104. 192.168.0.104 is used as the initial address.
[0050] Similarly, the steps of device 4 receiving and sending the communication data are the same as the steps of device 2 receiving and sending the communication data, which will not be repeated here.
[0051] Furthermore, device 5 sends 192.168.0.101 to device 1. Device 1 receives the IP address (192.168.0.101) sent by device 5 and detects whether its own IP address is the same as 192.168.0.101. It detects that the IP address (192.168.0.101) sent by device 5 is the same as its own IP address (192.168.0.101), and uses device 1 as the first master device. Devices 2 to 5 all receive the host confirmation message and the IP address of device 1.
[0052] In this embodiment, the device mode of device 1 is set to the host mode. The device modes of devices 2 to 5 are all set to the slave mode. And devices 2 to 5 are all slave devices. Device 1 sends its own status and IP address to device 2 and device 5, and device 2 sends the received status and IP address of device 1 to device 3. At the same time, device 5 sends the received status and IP address of device 1 to device 4. Among them, the status of the device refers to the device mode of the device. In this way, all slave devices receive the status and IP address of device 1 and store the status and IP address of device 1.
[0053] It should be noted that if device 1 is not connected to device 2, device 1 cannot send its own IP address to device 2. At this time, if device 1 is connected to device 3, device 1 sends its own IP address to device 3. The situation of other devices sending IP addresses also refers to device 1.
[0054] In other embodiments, the IP address with a larger value between the IP address of the next slave device and the IP address of the initial device may be used as the initial address. For example, 192.168.0.102 may be used as the initial address.
[0055] In this embodiment, device 1 receives a power allocation instruction and a working strategy from a cloud server, and device 1 determines the charge and discharge frequency of devices 2 to 5 based on the power allocation instruction. And device 1 determines the charge and discharge start time and charge and discharge duration of devices 2 to 5 based on the data of the total electric meter and the working strategy received from the cloud server, so as to serve as the basis for demand protection and backflow prevention.
[0056] In this embodiment, devices 1 to 5 belong to the same device network. In other embodiments, if the energy management device networking system also includes devices 6 to 10, and devices 6 to 10 determine that device 6 is the first master device according to a preset host selection strategy, devices 6 to 10 belong to another device network.
[0057] Based on the above content, it has been determined that device 1 is the first master device, and devices 2 to 5 are slave devices. During the operation of devices 1 to 5, there may be a situation where how to detect whether a certain slave device has a communication interruption and the situation where the slave device has a communication interruption is detected, how to detect whether device 1 has a communication interruption and the situation where the device 1 has a communication interruption, or the situation where device 1 needs to be repaired and a new master device needs to be re-selected. The following will specifically describe the processing process of three different situations.
[0058] (1) How to detect whether a slave device has a communication interruption and the processing steps when a slave device has a communication interruption include: In some embodiments, each slave device stores a heartbeat value, and the heartbeat value is used to characterize the communication connection state between the slave device and the first master device. When it is necessary to detect whether a communication interruption occurs in a slave device, the slave device detects two heartbeat values at two different time points, and if it is detected that the two heartbeat values are the same, the first communication state between the slave device and other slave devices is detected respectively.
[0059] Furthermore, if the slave device detects that the first communication state is not connected, it indicates that the communication of the slave device is interrupted, and the device mode of the slave device is switched from the slave mode to the stand-alone mode.
[0060] In this embodiment, for example, device 1 sends an initial heartbeat value to device 2. After receiving the initial heartbeat value, device 2 updates the initial heartbeat value using the sum of the initial heartbeat value and the preset step length, and then returns the updated initial heartbeat value to device 1. Device 1 then updates the initial heartbeat value using the sum of the received initial heartbeat value and the preset step length, and then sends the updated initial heartbeat value to device 2. This cycle is repeated to confirm the communication connection status between device 1 and device 2 based on the initial heartbeat value. Among them, the initial heartbeat value can be set to 1, and the preset step length can be set to 1 or 2, etc. This application does not limit the specific values of the initial heartbeat value and the preset step length. The steps of sending heartbeat values between device 1 and other slave devices are the same as the steps of sending heartbeat values between device 1 and device 2, and will not be repeated here.
[0061] For example, the heartbeat value of device 2 at a first time point and the heartbeat value at a second time point are obtained. The time difference between the first time point and the second time point is greater than a preset time threshold. For example, the preset time threshold is 3 seconds or 5 seconds, and the specific value of the preset time threshold can be set based on the actual communication detection requirements.
[0062] If the two heartbeat values at two different time points are the same, it proves that the communication between device 2 and device 1 is interrupted. Detect whether device 2 is connected to device 3 to device 5 to determine whether the communication interruption occurs in device 1 or device 2.
[0063] Further, it is detected whether device 2 and device 3 are connected in communication. If it is detected that device 2 and device 3 are not connected in communication, it is then detected whether device 2 and device 4 are connected in communication. If it is detected that device 2 and device 4 are not connected in communication, it is then detected whether device 2 and device 5 are connected in communication. If it is detected that device 2 and device 5 are not connected in communication, it is then detected whether device 2 and device 1 are connected in communication. If it is detected that device 2 and device 1 are not connected in communication, it is determined that device 2 is not connected in communication with other slave devices and the first master device, and the device mode of device 2 is set to stand-alone mode.
[0064] It should be noted that, in order to detect whether the communication connection between the device 2 and other slave devices is established, it is necessary to ensure that the device 2 and other slave devices belong to the same network.
[0065] Furthermore, in order to avoid device 2 being in stand-alone mode all the time, which affects the utilization rate of the energy management device. After a preset time, device 2 detects the first communication state between device 2 and other slave devices again. Device 2 is also used to obtain the second communication state between the slave device connected to device 2 and device 1 if it detects that any one of the first communication states is a communication connection. Device 2 is also used to receive the communication data of device 1 if the acquired second communication state is a communication connection. Specifically, device 2 receives the status and IP address of device 1. Among them, the preset time length can be 5 minutes or 10 minutes, which is set according to the actual situation.
[0066] In other embodiments, a slave device may lose communication with the device 1 due to a failure of the slave device itself. At this time, other slave devices are still connected to the device 1 for communication.
[0067] For example, if the communication between device 2 and device 1 is interrupted, it is detected whether device 2 is connected to devices 3 to 5. If it is detected that device 2 is connected to any slave device from device 3 to device 5, and the slave device connected to device 2 is connected to device 1, device 2 receives the communication data of device 1 to rejoin the device network where device 1 and devices 3 to 5 are located.
[0068] By detecting the heartbeat value stored in each slave device, the communication status between each slave device and the first master device is determined. If it is detected that the two heartbeat values corresponding to a certain slave device at two different time points are the same, it proves that the communication between the slave device and the first master device is interrupted. In order to ensure the equipment utilization rate of the energy management device networking system, further, the communication status between the slave device and other slave devices is detected. If it is detected that the slave device and all other slave devices are not in communication connection, it indicates that the slave device may have a communication failure. In order to improve the utilization rate of the energy management device, the working state of the slave device is set to stand-alone mode. At the same time, after a preset time, the communication status of the slave device and other slave devices is detected again, and then it is detected that the slave device and any one of the other slave devices are successfully connected in communication, and it is determined that the slave device connected to the slave device is connected to the first master device, the slave device receives the communication data of the first master device. Thereby, the problem that the slave device cannot be deployed by the first master device when it is always in stand-alone mode is avoided.
[0069] (2) How to detect that a communication interruption occurs in the first master device, and when the communication interruption occurs in the first master device, the processing steps include: In some embodiments, the plurality of slave devices are further used to respectively detect a third communication state with the first master device, and each of the plurality of slave devices is further used to respectively detect a fourth communication state with other slave devices. The plurality of slave devices are further used to determine a second master device according to a host selection strategy if it is detected that the plurality of third communication states are all unconnected and the plurality of fourth communication states are all connected. The second master device is used to send a host switching message to the plurality of slave devices and switch the device mode of the second master device from a slave mode to a host mode. The plurality of slave devices are further used to receive communication data of the second master device.
[0070] For example, devices 2 to 5 respectively detect the third communication state with device 1 and the fourth communication state between devices 2, 3, 4 and 5. If there is no communication connection between device 2 and device 1, no communication connection between device 3 and device 1, no communication connection between device 4 and device 1, and no communication connection between device 5 and device 1, and device 2 and device 3, device 4 and device 5 are all connected in communication, it proves that communication interruption occurs in device 1. Devices 2 to 5 determine the second master device according to the host selection strategy.
[0071] For example, if the second master device is device 2, device 2 sends a master switch message to device 3, device 4, and device 5, and device 2 switches its own device mode from slave mode to master mode. Devices 3 to 5 receive the status and IP address of device 2.
[0072] (3) When the first master device needs to be repaired, the processing steps for reselecting a new master device include: In some embodiments, the energy management device needs to be repaired after running for a period of time, or when a communication interruption occurs during the historical operation of an energy management device, the energy management device needs to be repaired.
[0073] In this embodiment, when device 1 needs to be repaired, a new master device needs to be reselected. Multiple slave devices are also used to determine the second master device according to the host selection strategy when the host needs to be replaced, wherein the second master device is a slave device to be switched to the host mode. The first master device is also used to receive the communication data of the second master device, transmit the communication data of the second master device to multiple slave devices, and switch the device mode of the first master device from the host mode to the slave mode. The second master device is used to switch the device mode of the second master device from the slave mode to the host mode.
[0074] For example, when device 1 needs to be repaired, and devices 2 to 5 detect that the host needs to be replaced, devices 2 to 5 determine the second master device according to the host selection strategy. Assuming that device 2 is determined as the second master device, device 1 receives the IP address of device 2 and transmits the IP address of device 2 to devices 3 to 5. The device mode of device 1 is switched from the host mode to the slave mode, and the device mode of device 2 is switched from the slave mode to the host mode. Thus, the process of replacing the new master device is completed.
[0075] In some embodiments, each energy management device may also store data including remaining battery capacity, voltage, current, power, cumulative charge, cumulative discharge, maximum charge current limit, maximum discharge current limit, fault level, timestamp, and fault code. In other embodiments, the data that the energy management device may store may be modified and increased or decreased according to actual needs, and this application does not limit this.
[0076] It should be noted that the first master device only collects a small amount of data such as power, voltage, current, fault level, charge and discharge current limit, etc. from multiple slave devices, and implements the function of redistributing the charge and discharge power of each slave device according to the situation of each slave device without upgrading the hardware and basically consuming more hardware performance. At the same time, since the device modes of multiple slave devices are all slave modes, the first master device does not need to save the device list of multiple slave devices to implement the charge and discharge power allocation instructions for multiple slave devices. In other words, the first master device only needs to read the status of a certain energy management device. If the status of a certain energy management device read is slave mode, the first master device can send a charge and discharge power allocation instruction to the energy management device. The data storage capacity of the first master device is reduced.
[0077] Compared with the related art, the embodiments of the present application have at least the following advantages: On the one hand, when multiple slave devices detect that the communication with the first master device is interrupted, any slave device will be randomly selected as the initial device. The initial device will transmit its own communication data to other devices, and the second master device will be determined among the multiple slave devices according to the host selection strategy. Thus, the problem that when the first master device has a communication failure, multiple slave devices cannot communicate with the first master device, resulting in the multiple slave devices being unable to accept the charging and discharging power allocation instructions of the first master device is solved.
[0078] On the other hand, when multiple slave devices detect that the first master device needs to be replaced, the multiple slave devices will also determine the second master device according to the host selection strategy, and the first master device will send the communication data of the second master device to other slave devices. The device mode of the first master device is switched from host mode to slave mode, and the device mode of the second master device is switched from slave mode to host mode. In this way, the replacement of the master device is completed, avoiding the interruption of the master device communication caused by the need for maintenance, and the multiple slave devices cannot communicate with the first master device, resulting in the multiple slave devices being unable to accept the charge and discharge power allocation instructions of the first master device.
[0079] On the other hand, after determining the master device from multiple slave devices, it is further detected whether a slave device has a communication interruption. When a slave device has a communication interruption, the device mode of the slave device is switched from slave mode to stand-alone mode. Then, after a preset time, the communication status between the slave device and other slave devices and the master device is detected again. When the slave device detects that it is connected to any other slave device in communication, and the slave device connected to the slave device in communication is also connected to the master device in communication, the slave device receives the communication data of the master device. In this way, the slave device can receive the charge and discharge allocation instructions of the master device.
[0080] In this way, the energy management device networking system of the present application can ensure the normal operation of the system and improve the utilization efficiency and reliability of the system.
[0081] See also Figure 3 , an embodiment of the present application also provides an energy management device networking method. The method is applied to an energy management device networking system, the energy management device networking system includes multiple energy management devices, each of which has communication data, the communication data is used to characterize a unique communication identifier for communication between multiple energy management devices, and the device mode of the energy management device includes a host mode and a slave mode. The method includes: when it is detected that a master device needs to be selected, any one of the multiple slave devices is selected as the initial device, so that the initial device transmits the communication data of the initial device to other slave devices, and the multiple slave devices determine the first master device from the multiple slave devices according to a preset host selection strategy. Among them, the slave device is an energy management device currently in slave mode, and the first master device is a slave device to be switched to host mode. Multiple slave devices receive the communication data of the first master device, and the first master device switches the device mode of the first master device from slave mode to host mode.
[0082] In some embodiments, the initial device transmits communication data of the initial device to other slave devices, and the step of determining a first master device from multiple slave devices according to a preset master selection strategy includes: The initial device transmits the communication data of the initial device to the next slave device; the next slave device determines the initial data according to the preset data selection rule, takes itself as the new initial device, and sends the initial data to the next slave device of the new initial device until the communication data of the next slave device of the new initial device is the same as the received communication data, the next slave device of the new initial device sends a host confirmation message, and the next slave device of the new initial device serves as the first master device. The initial data is one of the communication data of the new initial device and the communication data received by the new initial device. The initial device is also used to receive the host confirmation message and the communication data of the first master device.
[0083] The first master device may be determined from the plurality of slave devices, so that the first master device may subsequently control the charging and discharging power of the plurality of slave devices based on the power allocation instruction.
[0084] In some embodiments, the device mode of the energy management device further includes a stand-alone mode, the initial device stores a heartbeat value, and the heartbeat value is used to characterize the communication connection state between the initial device and the first master device; The initial device can also detect two heartbeat values at two different time points. If the initial device detects that the two heartbeat values are the same, it detects the first communication state between itself and other slave devices respectively. If it is detected that multiple first communication states are not connected, the device mode of itself is switched from slave mode to stand-alone mode.
[0085] It can be determined whether a certain slave device is in a communication interruption state, and when it is determined that a certain slave device is in a communication interruption state, the device mode of the device is directly switched to the stand-alone mode.
[0086] Furthermore, if the initial device detects that any first communication state is a communication connection, the initial device obtains the second communication state between the slave device connected to itself and the first master device; if the second communication state is a communication connection, the initial device receives the communication data of the first master device.
[0087] In some embodiments, after the device mode of the initial device is switched to the stand-alone mode and exceeds a preset time, the initial device detects the first communication state between the initial device and other slave devices again. If the initial device detects that any one of the first communication states is a communication connection, the second communication state between the slave device connected to the initial device and the first master device is obtained. And if the obtained second communication state is a communication connection, the communication data of the first master device is received.
[0088] In order to prevent a slave device from being in stand-alone mode all the time, when it is detected that the second communication state is a communication connection, the slave device is connected to the first master device for communication and receives communication data from the first master device, so as to facilitate the subsequent reception of the deployment instructions of the first master device.
[0089] In some embodiments, the plurality of slave devices may further detect a third communication state with the first master device, respectively. Each of the plurality of slave devices may further detect a fourth communication state with other slave devices, respectively. If the plurality of slave devices detect that the plurality of third communication states are all unconnected and the plurality of fourth communication states are all connected, the second master device is determined according to the host selection strategy. The second master device sends a host switching message to the plurality of slave devices and switches the device mode of the second master device from the slave mode to the host mode. The plurality of slave devices receive communication data of the second master device.
[0090] When each slave device is not in communication connection with the first master device and each slave device is in communication connection with other slave devices, it indicates that a communication failure occurs in the first master device. At this time, a new master device (i.e., a second master device) needs to be determined among the multiple slave devices according to the host selection strategy. The second master device controls the charge and discharge power of the multiple slave devices based on the power allocation instruction.
[0091] In some embodiments, when multiple slave devices need to replace the host, the multiple slave devices determine the second master device according to the host selection strategy, wherein the second master device is the slave device to be switched to the host mode. The first master device receives the communication data of the second master device, transmits the communication data of the second master device to the multiple slave devices, and switches its own device mode from the host mode to the slave mode. The second master device switches its own device mode from the slave mode to the host mode.
[0092] If the first master device does not have a communication failure and needs to be replaced, multiple slave devices also need to determine a new master device (i.e., the second master device) according to the host selection strategy. The second master device controls the charge and discharge power of multiple slave devices based on the power allocation instruction.
[0093] In some embodiments, the cloud server sends a power allocation instruction to the first master device, wherein the power allocation instruction is a strategy for the first master device to control the charging and discharging power of multiple slave devices.
[0094] After multiple slave devices determine the master device according to the host selection strategy, the master device receives the power allocation instruction sent by the cloud server, so that the master device can control the charging and discharging power of multiple slave devices based on the power allocation instruction.
[0095] In some embodiments, the initial device sends its own device mode to the next energy management device. The next energy management device detects whether the received device mode and its own device mode are in slave mode, and if it detects that both are in slave mode, it uses itself as the new initial device and sends the device mode of the new initial device to the next energy management device of the new initial device, until the device mode received by the first initial device is in slave mode, and generates a master device selection message. The initial device sends the master device selection message to other energy management devices.
[0096] When it is detected that the device modes of multiple energy management devices are all slave modes, it indicates that there is no master device among the multiple energy management devices, and a master device needs to be selected from the multiple energy management devices. That is, the initial device will send a master device selection message to other energy management devices, so that the multiple energy management devices can determine the master device according to the host selection strategy as described above.
[0097] The energy management device networking method and the energy management device networking system have the same technical effects, and will not be described again here to avoid repetition.
[0098] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. An energy management equipment networking system, characterized in that: The energy management device networking system includes a plurality of energy management devices, each of which has communication data, the communication data is used to characterize a unique communication identifier for communication between the plurality of energy management devices, and the device modes of the energy management devices include a host mode and a slave mode; The plurality of slave devices are used to select any one of the plurality of slave devices as an initial device when a master device needs to be selected, so that the initial device transmits the communication data of the initial device to other slave devices, and determines a first master device among the plurality of slave devices according to a preset master selection strategy, wherein the slave device is the energy management device currently in the slave mode, and the first master device is the slave device to be switched to the master mode; The plurality of slave devices are also used to receive the communication data of the first master device; The first master device is used to switch the device mode of the first master device from the slave mode to the master mode.
2. The energy management equipment networking system according to claim 1, characterized in that: The step of the initial device transmitting the communication data of the initial device to other slave devices and determining a first master device from the plurality of slave devices according to a preset master selection strategy includes: The initial device is used to transmit the communication data of the initial device to the next slave device; The next slave device is used to determine the initial data according to the preset data selection rule, use itself as the new initial device, and send the initial data to the next slave device of the new initial device, until the communication data of the next slave device of the new initial device is the same as the received communication data, the next slave device of the new initial device sends a host confirmation message, and the next slave device of the new initial device serves as the first master device, wherein the initial data is one of the communication data of the new initial device and the communication data received by the new initial device; The initial device is further configured to receive the host confirmation message and the communication data of the first master device.
3. The energy management equipment networking system according to claim 2, characterized in that: The device mode of the energy management device also includes a stand-alone mode, the initial device stores a heartbeat value, and the heartbeat value is used to represent the communication connection state between the initial device and the first main device; The initial device is also used to detect the two heartbeat values at two different time points, and if the two heartbeat values are detected to be the same, respectively detect the first communication state between the initial device and the other slave devices; The initial device is further configured to switch the device mode of the initial device from the slave mode to the stand-alone mode if it is detected that the plurality of first communication states are not in communication connection.
4. The energy management equipment networking system according to claim 3, characterized in that: The initial device is further configured to obtain a second communication state between the slave device in communication connection with the initial device and the first master device if it is detected that any one of the first communication states is a communication connection; The initial device is further configured to receive the communication data of the first master device if the second communication state is a communication connection.
5. The energy management equipment networking system according to claim 3, characterized in that: The initial device is further configured to respectively detect the first communication status between the initial device and the other slave devices again after switching to the stand-alone mode and exceeding a preset time period; The initial device is also used to obtain the second communication status between the slave device communicatively connected to the initial device and the first master device if it is detected that any one of the first communication states is a communication connection; and if the acquired second communication status is a communication connection, receive the communication data of the first master device.
6. The energy management device networking system according to any one of claims 1 to 5, characterized in that: The plurality of slave devices are further used to respectively detect a third communication state with the first master device; Each of the plurality of slave devices is further configured to respectively detect a fourth communication state between the plurality of slave devices and the other slave devices; The plurality of slave devices are further configured to determine a second master device according to the host selection strategy if it is detected that the plurality of third communication states are all unconnected and the plurality of fourth communication states are all connected; The second master device is used to send a master switch message to the plurality of slave devices and switch the device mode of the second master device from the slave mode to the master mode; The plurality of slave devices are also used to receive the communication data of the second master device.
7. The energy management device networking system according to any one of claims 1 to 5, characterized in that: The plurality of slave devices are further used to determine a second master device according to the host selection strategy when the host needs to be replaced, wherein the second master device is the slave device to be switched to the host mode; The first master device is further used to receive the communication data of the second master device, transmit the communication data of the second master device to the plurality of slave devices, and switch the device mode of the first master device from the host mode to the slave mode; The second master device is used to switch the device mode of the second master device from the slave mode to the master mode.
8. The energy management device networking system according to any one of claims 1 to 5, characterized in that: The energy management device networking system further includes a cloud server, and the cloud server is communicatively connected with the plurality of energy management devices; The cloud server is used to send a power allocation instruction to the first master device, wherein the power allocation instruction is a strategy for the first master device to control the charging and discharging power of the plurality of slave devices.
9. The energy management device networking system according to any one of claims 1 to 5, characterized in that: The initial device is used to send the device mode of the initial device to the next energy management device; The next energy management device is used to detect whether the received device mode and its own device mode are the slave mode, and if it is detected that both are the slave mode, it uses itself as the new initial device and sends the device mode of the new initial device to the next energy management device of the new initial device, until the device mode received by the first initial device is the slave mode, and generates a master device selection message; The initial device is also used to send the master device selection message to other energy management devices.
10. A method for networking energy management equipment, characterized in that: Applied to an energy management device networking system, the energy management device networking system includes multiple energy management devices, each of the energy management devices has communication data, the communication data is used to characterize a unique communication identifier for communication between the multiple energy management devices, and the device mode of the energy management device includes a host mode and a slave mode; The energy management device networking method comprises: In the case where it is necessary to select a master device, any one of the multiple slave devices is selected as the initial device, so that the initial device transmits the communication data of the initial device to other slave devices, and the multiple slave devices determine the first master device among the multiple slave devices according to a preset master selection strategy; wherein the slave device is the energy management device currently in the slave mode, and the first master device is the slave device to be switched to the master mode; The plurality of slave devices receive the communication data of the first master device; The first master device switches the device mode of the first master device from the slave mode to the master mode.
Citation Information
Cited By
Master-slave switching method and system of energy storage system and medium
CN121356989A