Method and system for realizing dynamic ad hoc network of equipment based on distributed communication bus

Through distributed communication bus technology, dynamic ad hoc networking and efficient data transmission of equipment in new power systems are realized, which solves the problems of complex and difficult equipment networking in power systems, ensures the security and flexibility of communication, and improves the interconnection and interaction efficiency of equipment.

CN120567693APending Publication Date: 2025-08-29JIANGSU HOPERUN SOFTWARE CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510682828.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-08-29

AI Technical Summary

Technical Problem

At present, the power industry has a huge number of IoT devices and numerous communication device interfaces and protocols, which leads to complex on-site networking and difficult maintenance. It is impossible to realize dynamic ad hoc networking across physical networks and physical ports, and cannot meet the data access and real-time communication needs of massive heterogeneous devices in the new power system.

Method used

Using a distributed communication bus method, through network detection, topology recognition, networking of multiple communication methods, cross-channel forwarding, secure encryption and link flow control, dynamic ad hoc networking between devices is realized, supporting ring network, bus and hand-in-hand networking, dynamically generating channel session keys, sliding window mechanism ensures reliable transmission, and active and passive closure mechanism ensures link security.

Benefits of technology

It realizes flexible networking and efficient data transmission of equipment in the new power system, supports adaptive networking of multiple communication methods, ensures the security and reliability of communication, quickly responds to network topology changes, avoids equipment island states, and improves the dynamic interconnection and interaction efficiency of equipment in the station area.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120567693A_ABST
    Figure CN120567693A_ABST
Patent Text Reader

Abstract

The invention discloses a method for realizing dynamic ad hoc network of equipment based on a distributed communication bus, which comprises the following steps of: periodically sending a network detection packet to the outside after side equipment is started; all known communication connection states on opposite-end equipment directly connected with the equipment are detected through network detection; the side equipment automatically identifies a network topology connection relation according to an actual network detection result; under the condition that the networking condition of the field station area equipment is changed; based on routing forwarding of different transmission protocols among different transmission channels, multiple networking modes such as a ring network mode, a bus mode and a hand-in-hand mode and cross-channel forwarding are supported; the edge side equipment is supported to serve as a forwarding node to transparently forward data to other edge side equipment in a cross-channel manner; a plurality of encryption algorithms are negotiated and selected between end-to-end communication; for point-to-point communication, channel-level reliable transmission and link flow control of equipment are realized based on a sliding window; a detection processing mechanism is established for active closing and passive closing of a link, and the flexibility, the stability and the high efficiency of power networking can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric power and new energy communications, and in particular relates to a method and system for realizing dynamic self-organizing networking of devices based on a distributed communication bus. Background Art

[0002] The current new power system is developing rapidly. A large number of edge-side devices such as household photovoltaics, charging piles, industrial and commercial energy storage, smart air-conditioning and lighting, smart terminals, and artificial intelligence terminals in the distribution station area need to interact with the new power system for source and load. Faced with the data access requirements of massive heterogeneous devices to the microgrid, the flexible networking capabilities and real-time communication requirements of the substation area are increased, which poses a great challenge to the two-way interaction and safe operation of power grid equipment.

[0003] The current power industry faces a massive number of IoT devices, with numerous communication interfaces and protocols. Often, a single device supports multiple communication methods, requiring actual networking based on site conditions. This results in complex and labor-intensive on-site configuration, as well as difficult maintenance when communication anomalies occur. Dynamic self-organizing networking across physical networks and ports is impossible. A distributed communication bus management device and method supporting multiple communication methods is urgently needed to enable dynamic self-organizing networking of heterogeneous devices at the edge and support the massive interconnection and intelligent interaction of new power systems. Summary of the Invention

[0004] To achieve the above object, the technical solution of the present invention is as follows: a method for realizing dynamic self-organizing networking of devices based on a distributed communication bus, comprising the following steps: Step 1: After the side device is powered on, it periodically sends network detection packets whenever the communication device or a device channel port is opened or activated; Step 2: Detect all known communication connection states on the peer device directly connected to the device through network detection; Step 3: The edge device automatically identifies the network topology connection relationship based on the actual network detection results; Step 4: Under the circumstance that the networking conditions of the equipment in the field area change, flexible networking with multiple heterogeneous communication modes is realized; Step 5: Routing and forwarding based on different transmission protocols between different transmission channels, supporting ring network, bus network, hand-in-hand and multiple networking modes and cross-channel forwarding; Step 6: Support edge devices as forwarding nodes to transparently forward data to other edge devices across channels; In step 7, the communication end-to-end negotiates and selects multiple encryption algorithms, combining one-time passwords, shared keys, and random seeds to dynamically generate channel point-to-point session keys; Step 8: For point-to-point communication, implement reliable transmission and link flow control at the device channel level based on the sliding window. Step nine: Establish a detection and processing mechanism for active and passive link closures, and initiate dynamic network reconstruction based on link changes.

[0005] Preferably, in step three, based on the actual network detection results, the communication channel with the best communication efficiency with the other end is selected, and the network connection relationship table generated by the network detection in the entire system is used to evaluate the relationship between the communication channel capacity and status, as well as the communication connection requirements, to build a directed acyclic communication network for all reachable end-side devices.

[0006] Preferably, the step 4 includes the following steps: 1) Supports a regular release and update mechanism for the effective connected device list between adjacent nodes, introduces an adaptive topology recognition algorithm, enables gateway nodes to dynamically exchange their own device connection and change information, and timely update and maintain the regional network communication connection table; 2) For edge devices that support multiple communication channels to connect to end-side devices, the communication channel on the end-side device that is in a faulty state will be smoothly switched to a channel that can communicate normally based on the actual communication connectivity status of the current end-side channel. If the end-side supports multiple channels to connect to edge devices, when communication is interrupted on the current channel, the edge needs to actively try to communicate with other channels on the end-side.

[0007] Preferably, the step five includes periodically updating all external port communication connection table information on adjacent edge devices, and the edge device forwards data based on the intermediate edge device node that is not directly connected locally.

[0008] Preferably, step six includes the forwarding node being responsible for receiving and parsing network messages, selecting a physical communication port with a reachable destination address, and routing and forwarding based on different transmission protocols between different channels. The forwarding node only transparently transmits the transmitted data and does not parse the data content.

[0009] Preferably, step seven includes using the shared key issued by the session key after the communication handshake negotiation is completed to provide basic trust conditions for security negotiations between devices, immediately disconnecting the transmission channel that has been unresponsive to the other end for a long time, and updating the session key, thereby establishing a trusted path between devices.

[0010] Preferably, the step eight includes establishing a sliding window mechanism for the device channel, including the following steps: 1) The sliding window includes a sending window and a receiving window. The initial size of both is N. When a frame of data is sent, the sending window size is reduced to N-1. The sent data is temporarily retained. After the other end replies to the confirmation, the sending window clears the sent data and restores the sending window size + 1. When the sending window is reduced to 0, sending stops; 2) The receiving window size of a frame of data is reduced to N-1. After the local end completes processing, it releases the received data and the receiving window size is restored to N by +1. When the receiving window is reduced to 0, it stops receiving and actively notifies the other end of the congestion. 3) The sending window and receiving window are synchronized. The receiving window size is promptly notified to the sending end through subsequent data packets. The sending end adjusts the sending window size to the receiving window size of the other end to ensure that the processing capacity of the receiving end is consistent with the sending capacity of the sending end. 4) The receiving end processes too much data, and the receiving window is reduced to 0. The receiving end synchronizes with the sending end, and the sending window is 0, and data transmission is stopped to ensure that the sending data is controlled according to the data processing capacity of the other end; 5) After all data processing is completed on the receiving end, the receiving window size is restored to N and synchronized to the sending end. The sending end's window size is also synchronized back to N, and the sending end has the ability to send complete data again.

[0011] Preferably, the step nine includes ensuring timely discovery and processing of normal and abnormal closures of the communication link through a pre-closure RST mechanism and anti-islanding protection means, including: 1) Active shutdown: Before closing the communication port, the device sends an RST notification to the other end to immediately close the port. When the other end receives the RST notification, it needs to promptly initiate network reconstruction based on the actual connection status. 2) Passive shutdown: adopt an anti-islanding protection mechanism. When the normally connected port channel is idle, there will always be regular detection packets. If no normal data transmission or regular detection packets are received for a long time, the port is considered to be interrupted and self-recovery is performed based on the on-site environmental conditions.

[0012] When the on-site network link changes, it can quickly identify network topology changes and complete adaptive channel selection and channel security switching functions.

[0013] Preferably, based on the system for implementing dynamic self-organizing networking of devices based on a distributed communication bus used by the method, the system network structure is divided into edge side and end side, wherein the edge side application uses the cloud side to control the edge side's smart terminal A as the main control device, and connects several end side devices through different communication channels. In this communication domain, the smart terminal B is used as the auxiliary edge side terminal device, and connects several end side devices through different communication channels to realize interaction with the main device.

[0014] Preferably, the edge device network connection table includes the channel connection relationships of all known network-reachable resources on the edge side, and uniformly manages various device systems on the edge side according to the physical network connection channel resource connection relationships to form a unified network channel connection table, which is uniformly managed by the device communication module, and dynamically manages devices of different types and communication protocols on the edge side according to the physical channel connection method.

[0015] Networking methods for new energy equipment in distribution substations include, but are not limited to, Bluetooth, Wi-Fi, RS485, HPLC, CAN, RS232, I2C, LoRa, ZigBee, and infrared device network interfaces. Edge-side devices often have one or more device network interfaces, and are networked via physical wired or wireless methods. These devices include wind power, photovoltaic, energy storage, charging piles, DC air conditioners, lighting, and other end-side devices. One or more smart terminals serve as core edge-side control devices, and network interconnection is achieved through Bluetooth, Wi-Fi, RS485, HPLC, CAN, RS232, I2C, LoRa, ZigBee, and infrared device network interfaces. The distributed communication bus in this system enables data forwarding across communication channels. Through adaptive communication networking negotiation, cross-channel and cross-protocol forwarding, channel security encryption, channel-level reliable transmission and link flow control, dynamic network reconstruction, and security detection mechanisms, it enables dynamic self-organizing networking and communication among various devices in the distribution substation.

[0016] The present invention is achieved by adopting the following technical solutions: Adaptive communication and networking negotiation. Aiming for multi-channel access to heterogeneous networks for massive regional devices and rapid networking of heterogeneous resources on-site, this technology enhances the self-discovery, self-networking, and self-coordination capabilities of facility monitoring terminal devices. Heterogeneous terminal communication discovery and access methods are applied to achieve efficient and stable topological networking and underlying link interoperability between devices. After device startup, whenever a communication device or a device channel port is opened or activated, it periodically sends network detection packets, disclosing the baud rate, version number, networking mode, duplex mode, and port list, to negotiate the networking status of each communication port. Edge devices often have one or more device network interfaces, connecting to the network through physical or wireless connections. Power equipment data transmission technologies include Bluetooth, Wi-Fi, RS485, HPLC, CAN, RS232, I2C, LoRa, ZigBee, and infrared interfaces, operating in both full-duplex and half-duplex modes. Devices operating in full-duplex mode respond directly to network detection requests, providing a local port list and a list of directly connected devices. In half-duplex mode, the edge device acts as the master and actively initiates network negotiation, while the end device acts as a slave and passively responds to network requests. This is similar to two edge devices competing for mastership on a half-duplex channel. During network negotiation, the rules determine which device is the master and can actively initiate data communication. Slave devices only respond passively. Only after the original master device experiences an abnormal downtime can an edge device, in its current slave state, initiate network negotiation again. Only after becoming the master can it actively initiate data communication.

[0017] Through network detection, it is possible to detect all known communication connection status on the opposite device directly connected to this device, including point-to-point connection, point-to-multipoint connection, ring network connection, full-duplex or half-duplex, port speed and other information, and clearly identify the forwarding node devices capable of cross-device communication within the system, the communication channels on the forwarding nodes and their connection status.

[0018] Cross-channel, cross-protocol forwarding. Based on routing and forwarding between different channels and different transmission protocols, it supports multiple networking modes, such as ring networks, buses, and hand-in-hand networks, as well as cross-channel, cross-protocol forwarding, to achieve transparent data transmission. It regularly updates the communication connection information of all external ports on adjacent edge devices. End-side devices can forward data based on intermediate edge-side device nodes that are not directly connected locally. It supports the function of transparently forwarding data from one edge-side device as a forwarding node to another edge-side device.

[0019] Channel security encryption. Data encryption methods are negotiated during the handshake before channel connection communication. Multiple encryption algorithms can be selected for end-to-end communication, including SM1, AES, DES, RSA, and DSA. A one-time password, a shared key, and a random seed are used to dynamically generate channel session keys, establishing a secure and reliable communication connection. After the session key is negotiated, the shared key issued using the session key provides the foundation for trusted negotiation between devices. Transmission channels that remain unresponsive for extended periods are promptly disconnected and the session key updated, establishing a trusted path between devices and ensuring the security and reliability of data transmission.

[0020] Channel-level reliable transmission and link flow control. For point-to-point communication, device channel-level reliable transmission and link flow control are achieved based on a sliding window. The main approach is to establish a sliding window mechanism for the device channel: 1) The sliding window consists of a send window and a receive window, both of which have an initial size of N. When a frame of data is sent, the send window size shrinks to N-1, and the sent data is temporarily retained. After the peer receives an acknowledgment, the send window clears the sent data and restores the send window size to +1. When the send window shrinks to 0, transmission stops.

[0021] 2) The receiving window size of a frame of data is reduced to N-1. After the local end completes processing, it releases the received data and the receiving window size +1 is restored to N. When the receiving window is reduced to 0, it stops receiving and actively notifies the other end of the congestion.

[0022] 3) Synchronization of the send window and receive window. The sender is informed of the receive window size in a timely manner through subsequent data packets. The sender adjusts the send window size to match the peer receive window size, ensuring that the receiver's processing capacity is consistent with the sender's sending capacity.

[0023] 4) The receiving end processes too much data, and the receiving window is reduced to 0, which is synchronized with the sending end. When the sending window reaches 0, data transmission is stopped to ensure that the data sent is controlled according to the data processing capacity of the other end.

[0024] 5) After all data is processed by the receiving end, the receiving window size is restored to N and synchronized with the sending end. The sending end's window size is restored to N again, and it is able to send full data again.

[0025] Channel link security detection mechanism.

[0026] 1) Active shutdown: Before closing the communication port, the device sends an RST notification to the other end to close immediately. After receiving the RST notification, the other end needs to initiate network reconstruction according to the actual connection status in a timely manner.

[0027] 2) Passive shutdown: adopt an anti-islanding protection mechanism. When the normally connected port channel is idle, it always sends regular detection packets. If no normal data transmission or regular detection packets are received for a long time, the port is considered to be disconnected. You can try to recover by taking the following measures according to the on-site environmental conditions: Device port reset: close the communication port, clear the device cache, and reopen the device port; Device reset: shut down the device driver, clear the device cache, reset the chip, reinitialize the device, and open the port; Switch to the backup communication channel: If a backup channel exists, disable the current communication channel and use the backup communication channel to try to restore communication; Reset the entire system: shut down all devices in the system, re-power on to initialize, and reopen the device ports.

[0028] Dynamic network reconstruction.

[0029] When on-site networking conditions change, in order to achieve flexible networking of heterogeneous communication modes for new energy equipment in the substation area, quickly identify network topology changes, and complete adaptive channel selection and channel security switching functions: 1) The edge device automatically identifies the network topology connection relationship based on the actual network change detection results, and selects the communication channel with the best communication efficiency with the other end based on the real-time connectivity status, communication bandwidth, etc.

[0030] 2) For edge devices that support multiple communication channels to connect to end-side devices, the communication channel on the end-side device that is in a faulty state can be smoothly switched to a channel that can communicate normally based on the actual communication connectivity status of the current end-side channel.

[0031] If the client supports multiple channels for connecting to edge devices, both the edge and client can proactively attempt to communicate through other channels on the client side if communication on the current channel is interrupted. This ensures that if a channel on the client fails, it can safely switch to another functioning channel, ensuring continued data communication. If the master device in master-slave communication fails or goes offline for a long time, other slave devices connected on the bus can renegotiate the master device and restore communication on that channel.

[0032] Compared with the prior art, the present invention has the following beneficial effects: 1) The distributed communication bus provided by the present invention is applied to various edge-side devices of new power systems, supports multi-channel auto-negotiation and self-organizing networking, enables adjacent nodes to intelligently select the optimal path based on the connection status of the opposite network, and realizes efficient data transmission across heterogeneous media channels. It supports an effective mechanism for publishing lists of connected devices regularly between adjacent nodes, introduces an adaptive topology recognition algorithm, enables gateway nodes to dynamically exchange their own device connection and change information, timely update and maintain the regional network communication connection table, realizes rapid adjustment of the network when the topology changes, and adopts multiple measures to prevent the normal operation of equipment in an island state, ensuring the flexibility, stability and efficiency of the power network; 2) This invention can be widely applied to dynamic networking scenarios of various devices in new power systems, such as integrated terminals, concentrators, station gateways, and downstream devices such as inverters, charging piles, energy storage PCS, environmental monitoring, video monitoring, energy meters, smart air conditioners, smart lighting, and other equipment systems. Through a distributed communication bus, it implements adaptive communication networking negotiation, channel security encryption, cross-channel and cross-protocol forwarding, channel-level reliable transmission and link flow control, dynamic network reconstruction, and security detection mechanisms. This solves the problems of network topology changes and real-time cross-channel interconnection after a large number of heterogeneous devices are connected to the network in new power systems, enabling rapid self-organization of heterogeneous devices on the edge side, and improving the efficiency of dynamic interconnection and interaction of a large number of edge-side devices in various application scenarios in the substation area. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a schematic diagram of the edge-side heterogeneous device network architecture provided by the present invention; Figure 2 This is a schematic diagram showing the network connection relationship of the side devices provided by the present invention; Figure 3 This is a basic flow chart of a dynamic self-organizing network based on distributed communication bus devices according to an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.

[0035] Example: The system network structure in Example 1 of the present invention can be divided into edge and end sides. The edge-side application mainly uses the cloud-side to control the edge-side smart terminal A as the main control device, and connects to several end-side devices through different communication channels. In this communication domain, smart terminal B serves as an auxiliary edge-side terminal device, connects to several end-side devices through different communication channels, and implements interaction with the main device (smart terminal A). Edge-side device networking methods include but are not limited to Bluetooth, WIFI, RS485, HPLC, CAN, RS232, I2C, LoRa, ZigBee, infrared and other device network interfaces. Edge-side devices often have one or more device network interfaces and are networked through physical connections or wireless methods. It should be noted that end-side devices are often able to support two or more communication methods and edge-side communications, such as the common RS485 or HPLC, as well as LoRa or Bluetooth.

[0036] In the diagram showing the network connection relationship of the edge devices in Example 2 of the present invention, the edge device network connection table includes the channel connection relationship of all known network-reachable resources on the edge side, including the end-side device channels connected between adjacent edge devices (device X and device Y). Various device systems on the edge side are uniformly managed according to the connection relationship of the physical network connection channel resources to form a unified network channel connection table, which is uniformly managed by the device communication module. Devices of different types and communication protocols on the edge side are dynamically managed according to the physical connection mode of the channel, supporting dynamic configuration of network resources, redundant backup, routing selection, fault detection and other mechanisms, solving the problems of unreachable physical channels, unsupported transmission protocols and lack of security redundancy in point-to-point direct communication between traditional power edge and end-side devices, ensuring high availability and operational reliability during the communication process.

[0037] Figure 3 This is a basic flow chart for implementing a dynamic self-organizing network of edge devices based on a distributed communication bus in an embodiment of the present invention. In the figure, edge-side smart terminal A and smart terminal B are directly connected via traditional Ethernet, while the edge-side smart air conditioner is connected to smart terminal A and smart terminal B via LoRa and RS485, respectively, to achieve heterogeneous networking communication. The method includes: The network detection request 301 provided in this embodiment of the present invention periodically sends network detection packets after a side device is powered on and activated, whenever a communication device or a device channel port is opened or activated. These packets include the baud rate, version number, networking mode, duplex mode, and port list, negotiating the networking status of each communication port device. This enables multi-channel access to heterogeneous networks for massive regional devices and rapid networking of heterogeneous resources on-site, enhancing the self-discovery, self-networking, and self-coordination capabilities of facility monitoring terminal devices.

[0038] The networking detection response 302 provided in the embodiment of the present invention has full-duplex and half-duplex working modes widely existing in power communications. The device working in full-duplex mode responds directly when receiving the network detection, and replies with the local port list and the communication directly connected device list information. Among them, the channel in half-duplex mode defaults to the side device as the main device to actively initiate the networking negotiation, and the end-side device as the slave device passively responds to the networking request. Through network detection, all known communication connection states on the opposite device directly connected to this device can be detected, whether it is a point-to-point connection, a point-to-multipoint connection, or a ring network connection, whether it is full-duplex or half-duplex, port speed and other information, and the forwarding node device capable of cross-device communication within the system, the communication channel on the forwarding node and its connection status can be clearly identified.

[0039] In the network topology identification 303 provided by the embodiment of the present invention, the edge device automatically identifies the network topology connection relationship based on the actual network detection results, and selects the communication channel with the best communication efficiency with the other end based on the real-time connectivity status, communication bandwidth, etc. The network connection relationship table generated by the network detection within the entire system is used to evaluate the relationship between the communication channel capabilities and status, as well as the communication connection requirements, and build a directed acyclic communication network for all reachable edge devices. By applying heterogeneous terminal communication discovery and access methods, efficient and stable topological networking and interconnection of underlying links between devices are achieved.

[0040] The dynamic network reconstruction 304 provided in the embodiment of the present invention can realize flexible networking of multiple heterogeneous communication modes when the networking conditions of field equipment change, and supports adaptive channel selection and channel security switching functions, including: 1) Supports a regular release and update mechanism for the effective connection device list between adjacent nodes, introduces an adaptive topology recognition algorithm, enables gateway nodes to dynamically exchange their own device connection and change information, timely update and maintain the regional network communication connection table, and realize rapid adjustment of the network when the topology changes. Various measures are adopted to prevent the normal operation of equipment in an island state, ensuring the stability and efficiency of the power network.

[0041] 2) For edge devices that support multiple communication channels to connect to end-side devices, the device can smoothly switch a faulty channel on the end-side device to a functioning channel based on the actual connectivity status of the current end-side channel. If the end-side device supports multiple channels to connect to edge devices, if communication on the current channel is interrupted, the edge device must proactively attempt to connect to other end-side channels. This ensures that if an end-side channel fails, it can safely switch to another functioning channel, ensuring continued data communication.

[0042] The cross-channel routing 305 provided in this embodiment of the present invention is based on routing and forwarding between different transmission channels and different transmission protocols. It supports various networking modes, such as ring networks, buses, and hand-in-hand networks, and cross-channel forwarding, to achieve transparent data transmission. By regularly updating the communication connection table information of all external ports on adjacent edge devices, the end-side device can forward data based on intermediate edge device nodes that are not directly connected locally.

[0043] The cross-channel and cross-protocol data forwarding 306 provided by the embodiment of the present invention supports the function of transparently forwarding data from the edge side device (intelligent terminal B) to other edge side devices across channels as a forwarding node. The forwarding node (intelligent terminal B) is responsible for receiving and parsing network messages, selecting a physical communication port reachable to the destination address, such as RS485, and encapsulating the corresponding link layer message to complete cross-channel and cross-protocol forwarding. Based on routing forwarding of different transmission protocols between different channels, it supports multiple networking modes such as ring network mode, bus mode, hand-in-hand mode, and cross-channel and cross-protocol forwarding to achieve transparent data transmission. The forwarding node only transmits the transmitted data transparently and does not parse the data content.

[0044] The data security communication 307 provided by the embodiments of the present invention allows for end-to-end negotiation and selection of multiple encryption algorithms, such as SM1, AES, DES, RSA, and DSA. By combining a one-time password, a shared key, and a random seed, a point-to-point session key is dynamically generated, thereby establishing a secure and reliable communication connection. After the communication handshake negotiates the session key, the shared key issued using the session key provides the basic trust condition for secure negotiation between devices. If the peer end remains unresponsive for an extended period of time, the transmission channel is immediately disconnected and the session key is updated, thereby establishing a trusted path between devices and ensuring the security and reliability of data transmission.

[0045] The data link control 308 provided by the embodiment of the present invention implements reliable transmission and link flow control at the device channel level based on a sliding window for point-to-point communication. The main approach is to establish a sliding window mechanism for the device channel: 1) The sliding window consists of a send window and a receive window, both of which have an initial size of N. When a frame of data is sent, the send window size shrinks to N-1, and the sent data is temporarily retained. After the peer receives an acknowledgment, the send window clears the sent data and restores the send window size to +1. When the send window shrinks to 0, transmission stops.

[0046] 2) The receiving window size of a frame of data is reduced to N-1. After the local end completes processing, it releases the received data and the receiving window size +1 is restored to N. When the receiving window is reduced to 0, it stops receiving and actively notifies the other end of the congestion.

[0047] 3) Synchronization of the send window and receive window. The sender is informed of the receive window size in a timely manner through subsequent data packets. The sender adjusts the send window size to match the peer receive window size, ensuring that the receiver's processing capacity is consistent with the sender's sending capacity.

[0048] 4) The receiving end processes too much data, the receiving window is reduced to 0, and the sending end is synchronized to the sending window, which is 0, and data transmission is stopped to ensure that the sending data is controlled according to the data processing capability of the other end.

[0049] 5) After all data is processed by the receiving end, the receiving window size is restored to N and synchronized with the sending end. The sending end's window size is also synchronized back to N, and the sending end is able to send full data again.

[0050] The link security detection 309 provided in the embodiment of the present invention establishes a detection and processing mechanism for active and passive link closures, and ensures timely detection and processing of normal and abnormal closures of communication links through means such as the pre-closure RST mechanism and anti-islanding protection.

[0051] 1) Active shutdown: Before closing the communication port, the device sends an RST notification to the other end to close immediately. After receiving the RST notification, the other end needs to initiate network reconstruction processing according to the actual connection status in a timely manner.

[0052] 2) Passive shutdown: adopt an anti-islanding protection mechanism. When the normally connected port channel is idle, it always sends regular detection packets. If no normal data transmission or regular detection packets are received for a long time, the port is considered to be disconnected. You can try to recover by taking the following measures according to the on-site environmental conditions: Device port reset: close the communication port, clear the device cache, and reopen the device port; Device reset: shut down the device driver, clear the device cache, reset the chip, reinitialize the device, and open the port; Switch to the backup communication channel: If a backup channel exists, disable the current communication channel and use the backup communication channel to try to restore communication; Reset the entire system: shut down all devices in the system, re-power on to initialize, and reopen the device ports.

[0053] The dynamic network reconstruction 310 provided in the embodiment of the present invention can realize the flexible networking of heterogeneous communication modes of new energy equipment in the substation area, quickly identify network topology changes, and complete adaptive channel selection and channel security switching functions when the on-site networking conditions change: 1) Edge devices automatically identify network topology connections based on actual network changes and reselect the communication channel with the best communication efficiency based on real-time connectivity status, communication bandwidth, etc. For example, if an edge device supports both RS485 and LoRa communication modes and an RS485 link is abnormally interrupted during normal communication, LoRa communication mode can be reselected based on the network topology change.

[0054] 2) For edge devices that support multiple communication channels to connect to end-side devices, the communication channel on the end-side device that is in a faulty state can be smoothly switched to a channel that can communicate normally based on the actual communication connectivity status of the current end-side channel.

[0055] If the client supports multiple channels for connecting to edge devices, the edge device must proactively attempt to connect to other client channels if communication on the current channel is interrupted. This ensures that if a channel on the client fails, it can safely switch to another functioning channel to ensure continued data communication. If the master device in master-slave communication fails or goes offline for a long time, other slave devices connected to the bus can renegotiate the master device and attempt to restore communication on that channel.

[0056] It should be noted that the above content merely illustrates the technical idea of ​​the present invention and cannot be used to limit the scope of protection of the present invention. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications all fall within the scope of protection of the claims of the present invention.

Claims

1. A method for realizing dynamic self-organizing networking of devices based on a distributed communication bus, characterized in that: The following steps are involved: Step 1: After the side device is powered on, it periodically sends network detection packets whenever the communication device or a device channel port is opened or activated; Step 2: Detect all known communication connection states on the peer device directly connected to the device through network detection; Step 3: The edge device automatically identifies the network topology connection relationship based on the actual network detection results; Step 4: Under the circumstance that the networking conditions of the equipment in the field area change, flexible networking with multiple heterogeneous communication modes is realized; Step 5: Routing and forwarding based on different transmission protocols between different transmission channels, supporting ring network, bus network, hand-in-hand network and cross-channel forwarding; Step 6: Support edge devices as forwarding nodes to transparently forward data to other edge devices across channels; In step 7, the communication end-to-end negotiates and selects multiple encryption algorithms, combining one-time passwords, shared keys, and random seeds to dynamically generate channel point-to-point session keys; Step 8: For point-to-point communication, implement reliable transmission and link flow control at the device channel level based on the sliding window. Step nine: Establish a detection and processing mechanism for active and passive link closures, and initiate dynamic network reconstruction based on link changes.

2. The method for realizing dynamic self-organizing network of devices based on distributed communication bus according to claim 1, characterized in that: In step three, based on the actual network detection results, the communication channel with the best communication efficiency with the other end is selected, and the network connection relationship table generated by the network detection in the entire system is used to evaluate the relationship between the communication channel capacity and status, as well as the communication connection requirements, to build a directed acyclic communication network for all reachable end-side devices.

3. The method for realizing dynamic self-organizing network of devices based on distributed communication bus according to claim 1, characterized in that: The step 4 includes the following steps: 1) Supports a regular release and update mechanism for the effective connected device list between adjacent nodes, introduces an adaptive topology recognition algorithm, enables gateway nodes to dynamically exchange their own device connection and change information, and timely update and maintain the regional network communication connection table; 2) For edge devices that support multiple communication channels to connect to end-side devices, the communication channel on the end-side device that is in a faulty state will be smoothly switched to a channel that can communicate normally based on the actual communication connectivity status of the current end-side channel. If the end-side supports multiple channels to connect to edge devices, when communication is interrupted on the current channel, the edge needs to actively try to communicate with other channels on the end-side.

4. The method for realizing dynamic self-organizing network of devices based on distributed communication bus according to claim 1, characterized in that: The step five includes periodically updating the communication connection table information of all external ports on adjacent edge devices, and the edge devices forward data based on the intermediate edge device nodes that are not directly connected locally.

5. The method for realizing dynamic self-organizing network of devices based on distributed communication bus according to claim 1, characterized in that: The step six includes the forwarding node being responsible for receiving and parsing the network message, selecting a physical communication port with a reachable destination address, and forwarding based on routing of different transmission protocols between different channels. The forwarding node only transmits the transmitted data without parsing the data content.

6. The method for realizing dynamic self-organizing network of devices based on distributed communication bus according to claim 1, characterized in that: The step seven includes using the shared key issued by the session key after the communication handshake negotiation is completed to provide basic trust conditions for security negotiation between devices, immediately disconnecting the transmission channel that has been unresponsive to the other end for a long time, and updating the session key, thereby establishing a trusted path between devices.

7. The method for realizing dynamic self-organizing network of devices based on distributed communication bus according to claim 1, characterized in that: Step eight includes establishing a sliding window mechanism for the device channel, including the following steps: 1) The sliding window includes a sending window and a receiving window. The initial size of both is N. When a frame of data is sent, the sending window size is reduced to N-1. The sent data is temporarily retained. After the other end replies to the confirmation, the sending window clears the sent data and restores the sending window size + 1. When the sending window is reduced to 0, sending stops; 2) The receiving window size of a frame of data is reduced to N-1. After the local end completes processing, it releases the received data and the receiving window size is restored to N by +1. When the receiving window is reduced to 0, it stops receiving and actively notifies the other end of the congestion. 3) The sending window and receiving window are synchronized. The receiving window size is promptly notified to the sending end through subsequent data packets. The sending end adjusts the sending window size to the receiving window size of the other end to ensure that the processing capacity of the receiving end is consistent with the sending capacity of the sending end. 4) The receiving end processes too much data, and the receiving window is reduced to 0. The receiving end synchronizes with the sending end, and the sending window is 0, and data transmission is stopped to ensure that the sending data is controlled according to the data processing capacity of the other end; 5) After all data processing is completed on the receiving end, the receiving window size is restored to N and synchronized to the sending end. The sending end's window size is also synchronized back to N, and the sending end has the ability to send complete data again.

8. The method for realizing dynamic self-organizing network of devices based on distributed communication bus according to claim 1, characterized in that: Step 9 includes ensuring timely detection and processing of normal and abnormal communication link shutdowns through the pre-shutdown RST mechanism and anti-islanding protection measures, including: 1) Active shutdown: Before closing the communication port, the device sends an RST notification to the other end to immediately close the port. When the other end receives the RST notification, it needs to promptly initiate network reconstruction based on the actual connection status. 2) Passive shutdown, adopting an anti-islanding protection mechanism. When the normally connected port channel is idle, there are always regular detection packets. If no normal data transmission or regular detection packets are received for a long time, the port is considered to be interrupted. It self-recovers according to the on-site environmental conditions. When the on-site network link changes, it can quickly identify the network topology changes and complete the adaptive channel selection and channel security switching functions.

9. A system for implementing dynamic ad hoc networking of devices based on a distributed communication bus and used in the method according to any one of claims 1 to 8, characterized in that: The system network structure is divided into edge and end sides. The edge application uses the cloud-side controlled smart terminal A as the main control device, and connects several end-side devices through different communication channels. In this communication domain, smart terminal B is used as the auxiliary edge terminal device, which connects several end-side devices through different communication channels and realizes interaction with the main device.

10. The system for implementing dynamic self-organizing networking of devices based on a distributed communication bus according to claim 9, characterized in that: The edge device network connection table includes the channel connection relationships of all known network-reachable resources on the edge side, and uniformly manages various device systems on the edge side according to the physical network connection channel resource connection relationships to form a unified network channel connection table, which is uniformly managed by the device communication module. Devices of different types and communication protocols on the edge side are dynamically managed according to the physical channel connection method.

Citation Information

Patent Citations

  • Grid-oriented configurable data transmission method and system

    CN101212401B

  • Networking method, control device and networking system for double communication link

    CN104104567A

  • Distribution-area integrated-reading-system dynamic ad hoc network method based on wireless sensor network technology

    CN104134332A

  • Method for multi-type energy equipment information to access system based on energy controller

    CN112422694A

  • Electric power Internet of Things authentication and key updating method and system based on trusted third party

    CN115426204A