Reorganization methods, apparatuses, nodes, systems, devices, and media for node failures in a network

CN122742007APending Publication Date: 2026-09-11JIANGSU TIANHE ENERGY STORAGE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510274910.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2026-09-11

AI Technical Summary

Technical Problem

[0007]本发明的目的是提供一种网络中节点失效的重组方法、装置、节点、系统以及设备和介质,以解决现有技术中网络节点失效后重组效率低、适应性差的问题

Benefits of technology

[0030] By employing the above technical solution, the network node failure reorganization method provided by this invention can quickly detect failed nodes in the network and achieve rapid network reorganization by dynamically selecting and upgrading slave nodes to nodes with master node functions. This method improves the network's adaptability and reliability, effectively reducing network outage time and the risk of data loss. Simultaneously, the control device for network node failure reorganization provided by this invention, through the coordinated work of the detection module, selection and upgrade module, and connection module, achieves efficient management and control of the network reorganization process, improving the accuracy and speed of reorganization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122742007A_ABST
    Figure CN122742007A_ABST
Patent Text Reader

Abstract

This invention relates to the field of communication networks, specifically to a method, apparatus, node, system, device, and medium for reassembling failed nodes in a network. The invention provides a method for reassembling failed nodes in a network, comprising the following steps: detecting the presence of failed nodes in the network; selecting and upgrading at least one slave node to a node with master node functionality; and establishing connections between other nodes and the node with master node functionality. Using the above technical solution, the method for reassembling failed nodes in a network provided by this invention can quickly detect failed nodes in the network and achieve rapid network reassembly by dynamically selecting and upgrading slave nodes to nodes with master node functionality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication networks, and more specifically to a method, apparatus, node, system, device, and medium for reassembling failed nodes in a network. Background Technology

[0002] In existing communication network systems, network nodes are typically organized using a fixed master-slave structure. This structure ensures network stability and data transmission efficiency during normal operation. However, when a node in the network fails or malfunctions, the fixed master-slave structure often cannot quickly adapt to network changes, leading to decreased network performance or even complete network paralysis.

[0003] When the master node fails, slave nodes cannot take over its functions in a timely manner, causing network interruption and data loss. Even if a backup master node exists in the network, traditional failover mechanisms usually require manual intervention or complex configuration processes, which cannot meet real-time requirements. Furthermore, in multi-level network structures, the failure of a single node can trigger a chain reaction, affecting the stability of the entire network.

[0004] On the other hand, existing network reorganization methods often lack flexibility and adaptability. They typically rely on pre-defined, fixed rules for node role transformation and network reconstruction, failing to make optimal decisions based on real-time network conditions. This rigid reorganization strategy struggles to guarantee the continuous and reliable operation of the network in the face of complex and dynamically changing network environments.

[0005] Furthermore, existing network reorganization processes often neglect continuous monitoring and recovery attempts for failed nodes. Once a node is determined to be failed, the network immediately reorganizes, without considering the possibility of the node temporarily recovering. This approach can lead to unnecessary changes in network structure, increasing network instability and management complexity.

[0006] These issues are particularly prominent in applications requiring high reliability and real-time performance, such as industrial control systems, smart grids, and vehicle networks. In these areas, network outages or data loss can lead to serious economic losses or security risks. Summary of the Invention

[0007] The purpose of this invention is to provide a method, apparatus, node, system, device, and medium for reassembling failed nodes in a network, in order to solve the problems of low reassembly efficiency and poor adaptability of network nodes after failure in the prior art.

[0008] To achieve the above objectives, in a first aspect of the present invention, a method for reorganizing a failed node in a network is provided, comprising the following steps: detecting the existence of a failed node in the network; selecting and upgrading at least one slave node to a node with master node functionality; and establishing connections between other nodes and the node with master node functionality.

[0009] Furthermore, the step of detecting the presence of a failed node in the network includes: the master node, a node with master node function, or a slave node detecting the failed node.

[0010] Furthermore, the step of selecting and upgrading at least one slave node to a node with master node functionality includes: upgrading at least one slave node to a node with master node functionality according to a preset priority rule.

[0011] Furthermore, the method also includes the following steps: the node with master node function performs a search for the failed node; and performs corresponding network recovery or maintenance operations based on the search results.

[0012] Furthermore, the step of performing corresponding network recovery or maintenance operations based on the search results includes: when the node with master node function finds the failed node, attempting to establish communication with the failed node and perform data synchronization; when the node with master node function does not find the failed node, maintaining the current network structure and generating a network status report.

[0013] In a second aspect of the invention, a method for reorganizing a failed node in a cell management system network is provided, comprising the following steps: detecting a failed node in the cell management system network; when a failed node is detected, selecting at least one AFE module to upgrade to a node with master node functionality; and re-establishing connections between the remaining AFE modules and the node with master node functionality.

[0014] Furthermore, the detection of faulty nodes in the battery cell management system network includes detecting faulty nodes in the wireless SOC, nodes with master node function, or slave node AFE modules in the battery cell management system network.

[0015] Furthermore, when a failed node is detected, selecting at least one AFE module to upgrade to a node with master node functionality includes: at least one slave node AFE module being upgraded to a node with master node functionality according to a preset priority rule.

[0016] Furthermore, the method also includes the following steps: the node with master node function performs a search for the failed node; and performs corresponding cell management system network recovery or maintenance operations based on the search results.

[0017] Furthermore, the step of performing the corresponding cell management system network recovery or maintenance operation based on the search results includes the following steps: when the node with master node function finds the failed node, it attempts to establish communication with the failed node and perform data synchronization; when the node with master node function does not find the failed node, it maintains the current cell management system network structure and generates a network status report.

[0018] In a third aspect of the invention, a battery storage system with network reconfiguration capability is provided, comprising: an energy storage central controller, serving as the system's overall control center and including multiple master nodes; multiple battery clusters, each battery cluster including a high-voltage control box and multiple cell groups, each corresponding to multiple sub-nodes; wherein all sub-nodes are directly connected to their corresponding master nodes of the energy storage central controller; the system further comprises: a failure detection unit for detecting node failures; a node upgrade unit for selecting sub-nodes and upgrading them to nodes with master node functionality; and a network reconfiguration unit for reconfiguring network connections; wherein the failure detection unit, node upgrade unit, and network reconfiguration unit are interconnected via a system bus and work collaboratively to complete network reconfiguration.

[0019] Furthermore, the failure detection unit performs failure detection on the master node, nodes with master node functions, or child nodes.

[0020] Furthermore, the node upgrade unit selects at least one child node to upgrade into a node with master node functionality according to a preset priority rule.

[0021] Furthermore, the system also includes: a failed node search unit for searching for failed nodes; and a network recovery unit for performing corresponding network recovery or maintenance operations based on the search results.

[0022] Furthermore, in the system, when a failed node is found, the network recovery unit establishes communication with the failed node and performs data synchronization; when no failed node is found, the network recovery unit maintains the current network structure and generates a network status report.

[0023] In a fourth aspect of the invention, a control device for node failure reorganization in a network is provided, comprising: a detection module for detecting the presence of a failed node in the network; a selection and upgrade module for selecting and upgrading at least one slave node to a node with master node functionality after receiving information about a failed node; and a connection module for establishing connections between other nodes and the node with master node functionality based on the output of the selection and upgrade module; wherein the detection module, the selection and upgrade module, and the connection module are interconnected via a system bus to exchange data and control information.

[0024] Furthermore, the control device also includes: a search module for enabling the node with master node function to perform a search for the failed node; and a recovery and maintenance module for performing corresponding network recovery or maintenance operations based on the search results; the search module and the recovery and maintenance module are connected to other modules via the system bus.

[0025] In a fifth aspect of the invention, a network node is provided, including the control device described in the fourth aspect above.

[0026] In a sixth aspect of the invention, a network system with a dynamic master-slave structure is provided, comprising a plurality of network nodes, wherein any network node in the network system can dynamically assume the function of a master node or a slave node according to the network status, and the network nodes in the system can communicate with each other wirelessly or via wired means.

[0027] In a seventh aspect of the invention, a communication device is provided, including a processor and a memory, wherein when the processor invokes and runs a computer program stored in the memory, it performs the method described in the first aspect above.

[0028] In an eighth aspect of the invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.

[0029] Compared with the prior art, the present invention has at least the following technical effects:

[0030] By employing the above technical solution, the network node failure reorganization method provided by this invention can quickly detect failed nodes in the network and achieve rapid network reorganization by dynamically selecting and upgrading slave nodes to nodes with master node functions. This method improves the network's adaptability and reliability, effectively reducing network outage time and the risk of data loss. Simultaneously, the control device for network node failure reorganization provided by this invention, through the coordinated work of the detection module, selection and upgrade module, and connection module, achieves efficient management and control of the network reorganization process, improving the accuracy and speed of reorganization.

[0031] Furthermore, the method of this invention improves the accuracy and comprehensiveness of fault identification by having a master node, nodes with master node functions, or slave nodes jointly participate in failure detection. The selection of upgrade nodes through preset priority rules ensures the orderly progress of the upgrade process, reducing conflicts and resource waste. In addition, the failure node search and recovery operations included in the method enhance the network's self-healing capability and improve the overall stability of the system. Regarding the control device, the introduction of the search module and the recovery and maintenance module further enhances the functional completeness of the device, enabling it to more comprehensively handle various situations during the network reorganization process, improving the success rate and efficiency of reorganization. Attached Figure Description

[0032] Figure 1 This is a diagram of a cell-level wireless BMS network architecture in one embodiment of the present invention;

[0033] Figure 2 This is a diagram of a cluster-level wireless BMS network architecture in one embodiment of the present invention;

[0034] Figure 3 This is a diagram of a battery cluster system architecture according to an embodiment of the present invention;

[0035] Figure 4 This is a schematic diagram of a single-master multi-slave network reconfiguration in one embodiment of the present invention;

[0036] Figure 5 This is a schematic diagram of another single-master multi-slave network reconfiguration in one embodiment of the present invention;

[0037] Figure 6 This is a schematic diagram of a multi-master multi-slave network reconfiguration according to an embodiment of the present invention;

[0038] Figure 7 This is a schematic diagram of a takeover scheme between adjacent master nodes in a multi-master, multi-slave network according to an embodiment of the present invention;

[0039] Figure 8 This is a flowchart of a network node failure reorganization method according to an embodiment of the present invention;

[0040] Figure 9 This is a structural block diagram of a node failure reorganization control device according to an embodiment of the present invention. Detailed Implementation

[0041] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the described embodiments are only used to explain the technical principles of the present invention and are not intended to limit its scope of protection. Those skilled in the art should understand that various transformations, modifications, or equivalent substitutions can be made to these embodiments without departing from the spirit and scope of the present invention. All such transformations, modifications, or equivalent substitutions should be considered to fall within the scope of protection defined by the claims of the present invention.

[0042] The following embodiments use the networking of a wireless battery management system (BMS) as an example for illustration, but the technical solution of the present invention can also be applied to other network systems that require dynamic reconfiguration. For example, in industrial control networks, the present invention can be used to realize controller redundancy and fast switching; in smart grids, it can be used for remote monitoring and fault recovery of power equipment; in vehicle communication systems, it can be used to realize dynamic management and fault diagnosis of vehicle equipment; and in large-scale sensor networks, it can be used to optimize the organizational structure of data acquisition nodes.

[0043] Please refer to Figure 1 , Figure 1 This is a diagram of a cell-level wireless BMS network architecture according to an embodiment of the present invention. In this embodiment, the wireless BMS network adopts a cell-level architecture, including multiple slave node AFE modules and one master node wireless SOC.

[0044] like Figure 1 As shown, multiple battery cells are divided into multiple groups, each group containing n cells. For example, the first group includes cells 1 to n, the second group includes cells n+1 to 2n, and so on, until the last group includes cells (m-1)n+1 to mn. Each group of cells is connected to a corresponding AFE module (AFE1, AFE2, AFE3 up to AFEm).

[0045] The slave AFE modules are responsible for collecting voltage, temperature, and other parameter information from the battery cells they are connected to. These AFE modules are interconnected via an SPI (Serial Peripheral Interface) bus, forming a daisy-chain structure. AFE1, as the master AFE, is directly connected to the wireless SOC via the SPI interface.

[0046] The master node wireless SOC serves as the main control unit of the entire system, responsible for managing all slave node AFE modules and conducting wireless communication via antennas. The wireless SOC receives data from the AFE modules, processes and analyzes it, and sends information to external systems or receives control commands as needed.

[0047] In this embodiment, when a slave node AFE module failure is detected, the master node wireless SOC will initiate a network reconfiguration strategy. Specifically:

[0048] 1. If one of the slave node AFE modules (such as AFE2) fails, the master node wireless SOC can reconfigure the communication path via the SPI bus, enabling AFE1 to communicate directly with AFE3, bypassing the failed AFE2.

[0049] 2. If AFE1 fails, the master node wireless SOC can upgrade AFE2 to a node with master node functionality and re-establish communication links with other slave node AFE modules. During this process, data from AFE1 will be discarded, and according to standard design, an alarm message will be sent to the master node wireless SOC.

[0050] 3. Not only AFE1 has master node functionality, but all other AFEs also have master node functionality. In the event of any slave node AFE module failure, the master node wireless SOC can reallocate data acquisition tasks, ensuring that the remaining slave node AFE modules can cover the cells originally handled by the failed AFE module.

[0051] This design gives the system high flexibility and fault tolerance. Even if a slave node AFE module fails, the entire BMS system can still maintain basic functions and continue to monitor and manage the battery pack, thereby improving the system's reliability and stability.

[0052] Please refer to Figure 2 , Figure 2 This is a diagram of a cluster-level wireless BMS network architecture according to another embodiment of the present invention. In this embodiment, the wireless BMS network adopts a cluster-level architecture, including multiple slave node cell groups and a master node high-voltage control box.

[0053] like Figure 2 As shown, the system comprises p battery cell groups (cell group 1 to cell group p) and a high-voltage control box. Each battery cell group corresponds to one antenna (antenna 1 to antenna p), and the high-voltage control box corresponds to antenna p+1. This structure forms a star topology network, with the high-voltage control box as the central node and each battery cell group as peripheral nodes.

[0054] The slave node cell group is responsible for collecting and managing the status information of its respective battery cells, such as voltage and temperature. Each cell group communicates wirelessly with the master node high-voltage control box through its corresponding antenna to upload data and receive commands.

[0055] The master node high-voltage control box serves as the control center of the entire system, responsible for managing all slave node cell groups. The high-voltage control box receives data from each cell group via antenna p+1, performs comprehensive processing and analysis, and sends control commands to each cell group as needed.

[0056] In this embodiment, when a failure of the master node's high-voltage control box is detected, the system will initiate a network reconfiguration strategy. Specifically:

[0057] 1. When the master node high-voltage control box fails, the system will select the best-performing cell group from the existing slave node cell groups to upgrade as a temporary master node. Selection criteria may include factors such as processing power, communication stability, and battery status.

[0058] 2. The selected slave node cell group (e.g., cell group 1) will be upgraded to a temporary master node with master node functions. This temporary master node will take over the management responsibilities of the original high-voltage control box, including data aggregation, system monitoring, and decision-making.

[0059] 3. The temporary master node will re-establish communication links with other slave node cell groups. It will use its own antenna (such as antenna 1) as the main communication interface to exchange data and issue commands with other cell groups.

[0060] 4. Other slave node cell groups will receive the network reorganization notification and switch their communication target from the original high-voltage control box to the new temporary master node.

[0061] 5. The temporary master node will periodically check the status of the original master node's high-voltage control box. If the high-voltage control box is detected to be back to normal, the system will perform a recovery operation, returning the master node role to the high-voltage control box, and the temporary master node will revert to a normal slave node.

[0062] This dynamic reconfiguration strategy ensures that the entire BMS system can maintain its basic functions even in the event of a master node failure. It improves system reliability and fault tolerance, reducing the risk of system-wide paralysis due to a single point of failure in the master node. At the same time, this approach also demonstrates the system's flexibility and adaptability, enabling it to make optimal network structure adjustments based on real-time conditions.

[0063] Please refer to Figure 3 , Figure 3 This is a diagram of a battery compartment-level system architecture according to another embodiment of the present invention. In this embodiment, the system adopts a multi-level network architecture, including a central energy storage controller, multiple master nodes, and multiple slave nodes.

[0064] like Figure 3 As shown, the system consists of a central energy storage controller comprising multiple master nodes and multiple slave nodes, forming a flat network structure. The system contains x battery clusters, each containing p cell groups and a high-voltage control box. The central energy storage controller includes q master nodes, and each cell group and high-voltage control box corresponds to a slave node, directly connected to the corresponding master node of the central energy storage controller.

[0065] The total number of child nodes in the system is (x+1)p. Each child node is responsible for collecting and managing the status information of its corresponding unit, such as voltage, temperature and other parameters, and reporting directly to the corresponding master node of the energy storage central controller.

[0066] The energy storage central controller serves as the overall control center of the system, managing all master nodes. Although the high-voltage control box node is functionally responsible for managing the cell group nodes within its respective battery cluster, it holds the same status as the cell group nodes in the network structure, both being direct subordinate nodes of the energy storage central controller master node.

[0067] In this embodiment, the system will initiate corresponding reorganization strategies based on different node failure scenarios.

[0068] When a slave node fails, for example, when the child node p+2 corresponding to cell group p+2 fails, the system will execute the following reorganization strategy:

[0069] First, the master node detects the failure of child node p+2 through a heartbeat detection mechanism. Then, the master node selects one of the remaining child nodes to be promoted to master node status based on a preset priority algorithm. This priority algorithm may be based on factors such as the node's processing power, storage capacity, or communication bandwidth.

[0070] Once the upgrade node is selected, the other child nodes within the battery cluster will receive a network topology update notification and establish a communication link with the newly upgraded node that has master node functionality. This process involves routing table updates and communication protocol adjustments.

[0071] Next, the node with master node functionality will initiate a failed node search procedure. This procedure may include sending probe packets, analyzing network traffic, or checking system logs. Based on the search results, the system will perform corresponding network recovery or maintenance operations. If the failed child node p+2 is successfully located and reconnected to, the system will perform data synchronization to ensure consistency. If reconnection is not possible, the system will maintain the current network topology and generate a detailed network status report for administrators to further analyze and make decisions.

[0072] When the primary node fails, for example, if primary node 3 fails, the system will execute the following reorganization strategy:

[0073] First, the child nodes associated with master node 3 identify the failure of master node 3 using a distributed fault detection algorithm. This may involve a negotiation process among multiple child nodes to reach a consensus regarding the failure of the master node.

[0074] After confirming the failure of the master node, the system selects a child node to be promoted to a master node based on a preset priority rule. This rule may consider multiple factors such as the node's computing power, storage capacity, and battery status. The selection process may involve a distributed election algorithm.

[0075] Once a new node with master node functionality is identified, the other child nodes within the battery cluster receive network reconfiguration instructions and establish secure communication channels with the newly upgraded node. This process includes updating routing tables, reconfiguring communication protocols, and establishing new encrypted connections.

[0076] Subsequently, the node with master node functionality will initiate a comprehensive network diagnostic procedure to attempt to locate and recover the failed master node 3. This may include methods such as sending specific diagnostic packets, analyzing network topology changes, or checking system logs.

[0077] Based on the diagnostic results, the system will perform corresponding network recovery or maintenance operations. If a successful reconnection to the failed master node 3 is achieved, the system will perform a comprehensive data synchronization and consistency check. If the connection cannot be restored, the system will consolidate the new network structure and generate a detailed event report, including failure cause analysis, impact assessment, and recovery recommendations, for system administrators to conduct in-depth analysis and develop long-term solutions.

[0078] These reconfiguration strategies ensure that the system can respond quickly and automatically adjust the network structure when faced with different types of node failures, and maintain high availability and data integrity.

[0079] Reference Figure 4 , Figure 4 This is a schematic diagram of a single-master, multi-slave network reorganization according to an embodiment of the present invention. This embodiment illustrates the network reorganization process when the master node fails in a single-master, multi-slave network structure.

[0080] like Figure 4 As shown, the initial network structure includes one master node and multiple child nodes (child node 1 to child node p). Under normal operating conditions, the master node is responsible for managing all child nodes and coordinating the communication and data processing of the entire network.

[0081] When the master node fails, the network reorganization strategy is as follows:

[0082] 1. The slave node detects that the master node has failed. This can be achieved through periodic heartbeat signal detection. For example, the master node sends a heartbeat signal to all slave nodes at fixed intervals, such as 100 milliseconds. If no heartbeat signal is received consecutively, such as three times, the slave node determines that the master node has failed. In some embodiments, the detection may also include a communication timeout mechanism, i.e., if a slave node does not receive a response from the master node within a preset time after sending data, it determines that the master node has failed. Furthermore, in some embodiments, slave nodes may also perform data consistency checks by exchanging the timestamps of their last communication with the master node to determine the status of the master node.

[0083] 2. Upon detecting a master node failure, the slave node will be upgraded according to predetermined rules. In this embodiment, the predetermined rules select child node 2 to be upgraded as a temporary master node. In some embodiments, the predetermined rules may also select the slave node with the smallest or largest network address based on the node address. Alternatively, in some embodiments, the rule may consider the node's load capacity, selecting the slave node with the strongest processing power or the lowest current load; furthermore, in battery management system applications, the predetermined rules may also consider selecting the slave node with the highest remaining battery power.

[0084] 3. Child node 2 is promoted to a node with master node functionality, represented in the diagram as "Child node 2 (Master node 1)". This indicates that child node 2 now assumes the functions of the original master node. The upgrade process may include loading the master node functional modules, initializing the master node data structure, and broadcasting the new master node identity information.

[0085] 4. The upgraded temporary master node (atomic node 2) actively re-establishes connections with other child nodes. In some embodiments, this process may include broadcasting connection requests, establishing dedicated communication channels with each slave node, and synchronizing network topology information.

[0086] 5. Other child nodes identify the new ephemeral master node and update their communication configurations. This may include updating routing tables, reconfiguring data reporting targets, or adjusting communication parameters to adapt to the new network structure.

[0087] 6. The original master node temporarily disconnects from the network structure. The system will continuously monitor the status of the original master node to take appropriate action when it recovers. In some embodiments, monitoring may include periodically sending wake-up signals or listening for recovery signals that the original master node may send. When network load is low, the system may also attempt to re-establish a connection with the original master node.

[0088] This dynamic reorganization strategy, characterized by proactive detection and response from slave nodes, ensures that the network can quickly and autonomously maintain basic functions even in the event of a master node failure. It improves the system's reliability, adaptability, and fault tolerance, effectively reducing the risk of overall system paralysis due to a single point of failure in the master node. Simultaneously, this approach also demonstrates the system's decision-making capabilities, enabling the network to self-organize and self-recover without central control.

[0089] Please refer to Figure 5 , Figure 5 This is a schematic diagram of a single-master, multi-slave network reorganization according to an embodiment of the present invention. This embodiment illustrates the network reorganization process when the master node fails in a single-master, multi-slave network structure.

[0090] like Figure 5 As shown, the initial network structure includes one master node and multiple child nodes (child node 1 to child node p). Under normal operating conditions, the master node is responsible for managing all child nodes and coordinating the communication and data processing of the entire network.

[0091] When the master node fails, the network reorganization strategy proceeds according to the following steps:

[0092] 1. The slave node detects that the master node has failed. In this embodiment, the detection method can be varied. For example, the slave node can determine whether the master node has failed by listening to the master node's periodic broadcast signals. In some embodiments, the slave node can also actively send probe messages to the master node, and if it does not receive a response within a predetermined time, it determines that the master node has failed.

[0093] 2. Upon detecting a master node failure, the slave node will be upgraded according to predetermined rules. In this embodiment, the predetermined rules select slave node 1 to be upgraded as the new master node. This selection may be based on various factors. In some embodiments, the slave node with the smallest network address may be selected as the new master node. Alternatively, the system may select the most suitable node to be upgraded as the master node based on performance indicators such as the slave node's processing power, storage capacity, or communication bandwidth.

[0094] 3. Child node 1 is promoted to the new master node. Figure 5 This is represented as "Child Node 1 (Master Node)". This indicates that Child Node 1 now assumes all the functions of the original master node. The upgrade process may include activating the pre-installed master node software module, reconfiguring network parameters, and preparing to take over network management tasks.

[0095] 4. The new master node (atomic node 1) re-establishes connections with other child nodes. During this process, the new master node can broadcast its new identity information, update the network topology, and reallocate communication resources. In some embodiments, the new master node can also synchronize data with other child nodes to ensure data consistency across the entire network.

[0096] 5. Other child nodes (child node 2 to child node p) identify and accept the new master node. This process may update their routing tables, adjust communication protocols, and reconfigure data reporting mechanisms. In some embodiments, other child nodes may perform authentication to ensure network security.

[0097] 6. The original master node is temporarily removed from the network structure. The system can continuously monitor the status of the original master node so as to take appropriate action when it recovers. In some embodiments, the system can periodically attempt to re-establish a connection with the original master node, or rejoin the original master node as a regular slave node after it recovers.

[0098] This reorganization strategy is characterized by selecting the first child node in the network as the new master node, which can be based on the node's specific performance or pre-configuration. Compared to the previous embodiment, this method is more suitable for scenarios with specific requirements for master node selection, such as applications requiring fast response or specific processing capabilities.

[0099] This reconfiguration method also ensures that the network can quickly recover its functionality in the event of a master node failure, improving the system's reliability and robustness. It is particularly suitable for applications with strict requirements on network recovery time, such as real-time control systems or critical data acquisition networks.

[0100] Please refer to Figure 6 , Figure 6 This is a schematic diagram of a multi-master, multi-slave network reorganization according to an embodiment of the present invention. This embodiment illustrates the network reorganization process when a master node fails in a multi-master, multi-slave network structure.

[0101] like Figure 6 As shown, the initial network structure contains multiple subnetworks, each consisting of a master node (master node 1 to master node p) and multiple child nodes (child node 1 to child node p). Under normal operating conditions, each master node is responsible for managing all child nodes within its subnetwork and maintaining communication with other master nodes.

[0102] When a failure of master node 1 is detected, the network reorganization strategy proceeds according to the following steps:

[0103] 1. The child node detects that its parent node (in this example, parent node 1) has failed. In some embodiments, this detection can be achieved by the child node monitoring the parent node's heartbeat signal. If no heartbeat signal is received for several consecutive times, the child node determines that the parent node has failed.

[0104] 2. Upon detection of the failure of master node 1, the child nodes within the sub-network will be reorganized according to predetermined rules. In this embodiment, child node 1 is selected to be promoted to the new master node. In some embodiments, this selection may be based on the performance indicators of the child node, such as processing power, storage capacity, or communication bandwidth. Alternatively, the system may also use a pre-set standby order to select a new master node.

[0105] 3. Child node 1 is promoted to the new master node, represented in the diagram as "Child node 1 (Master node 1)". This indicates that child node 1 now assumes all the functions of the original master node 1. The upgrade process may include activating the pre-installed master node software module, reconfiguring network parameters, and preparing to take over network management tasks.

[0106] 4. The new master node (atomic node 1) re-establishes connections with other child nodes within its sub-network. During this process, the new master node may need to broadcast its new identity information, update the network topology, and reallocate communication resources.

[0107] 5. The original master node 1 is marked as "Master Node 1 (Damaged)" and temporarily removed from the network structure. The system may continuously monitor its status to take appropriate action when it recovers.

[0108] 6. The new master node (atomic node 1) also needs to establish connections with the master nodes of other sub-networks (master node 2 to master node p) to maintain the integrity of the entire network. This may involve updating routing tables across sub-networks, adjusting communication protocols, and reconfiguring data exchange mechanisms.

[0109] The key feature of this reorganization strategy is that, in a multi-master, multi-slave network structure, when the master node of a subnetwork fails, a new master node can be quickly selected within that subnetwork while maintaining the connectivity of the entire network. Compared to the previous two embodiments, this method is more suitable for large-scale network systems, such as large industrial control networks or smart grid systems.

[0110] This reconfiguration method ensures that even if a master node fails, the affected subnetwork can quickly recover its functionality, while the rest of the network continues to operate normally. This design significantly improves the system's reliability, scalability, and fault tolerance, making it particularly suitable for complex network systems that are sensitive to localized failures but require high overall stability.

[0111] In some embodiments, the system can also implement load balancing. For example, if an excessively high load is detected in a subnetwork, the master node of a neighboring subnetwork can temporarily take over some subnodes to optimize overall network performance. This dynamic adjustment capability enables the system to better cope with fluctuations in network traffic and changes in device performance.

[0112] To better understand the advantages of this invention, please refer to Figure 7 An alternative solution is shown. For example... Figure 7 As shown, when a failure of master node 1 is detected, the system adopts different network reorganization strategies. In this scheme, after master node 1 fails, all child nodes managed by it join the adjacent master node 2 network. Specifically, child nodes 1 to 1 establish new connections with master node 2 and forward all data originally sent to master node 1 to master node 2. When the failed master node 1 recovers and resumes normal operation, all child nodes that originally belonged to master node 1's network leave master node 2's network and rejoin master node 1. However, this method has some potential problems. When all child nodes of master node 1 suddenly join master node 2's network, it may cause a sharp increase in the load on master node 2, affecting the performance of the entire subnet. In addition, all child nodes need to be reconfigured and establish connections with the new master node, which may generate a lot of communication overhead. When the original master node recovers, a large-scale network reorganization is required, which may cause a brief network outage. This method also does not fully utilize network resources, such as the possibility of promoting a child node to become the new master node.

[0113] In comparison, the method proposed in this invention has advantages. (Refer to...) Figure 6By promoting child node 1 to the new master node, most of the network structure remains unchanged, minimizing the impact on the entire network. This method avoids the problem of shifting all load to a single adjacent master node, maintaining the overall balance of the network. The subnetwork can quickly restore normal function, reducing data transmission interruption time. Simultaneously, this method better utilizes the capabilities of existing child nodes, improving the overall efficiency of the system. It allows the selection of the most suitable child node as the new master node based on the actual situation, enhancing the system's adaptability. When the original master node recovers, only a role swap with the newly selected master node is required, without involving the reconfiguration of a large number of child nodes, simplifying the recovery process. Therefore, the reorganization method proposed in this invention exhibits higher efficiency, stronger stability, and better scalability when handling master node failures, making it particularly suitable for complex systems with high requirements for network performance and reliability.

[0114] Please refer to Figure 8 , Figure 8 This is a flowchart of a network node failure reorganization method in one embodiment of the present invention.

[0115] like Figure 8 As shown, the reorganization method for node failure in a network according to the present invention includes the following steps:

[0116] S1: Detects the presence of a failed node in the network.

[0117] In this step, the master node, nodes with master node functionality, or slave nodes in the network continuously monitor the network status to detect any failed nodes. For example, this can be determined by periodically sending heartbeat signals or checking node response times. Failed nodes may be due to hardware malfunctions, network connection interruptions, or other reasons that prevent them from functioning properly.

[0118] S2: Select and upgrade at least one slave node to a node with master node functionality.

[0119] Once a failed node is detected, the system immediately initiates a reorganization process. In this step, the system selects at least one slave node and promotes it to a master node based on preset priority rules. These priority rules may be based on factors such as the node's processing power, storage capacity, and network connectivity quality.

[0120] S3: Other nodes establish connections with the node that has the function of a master node.

[0121] After the upgrade is complete, other nodes in the network will establish connections with the newly upgraded node that has master node functionality. This step ensures network connectivity and normal data transmission.

[0122] S4: The node with master node function performs the search for the failed node.

[0123] To further assess network conditions and attempt to recover failed nodes, newly upgraded nodes with master node functionality will perform a search for failed nodes. This may include sending probe signals, checking network topology, and other methods.

[0124] S5: Perform the corresponding network recovery or maintenance operation based on the search results.

[0125] Based on the search results from S4, the system will perform the corresponding operations:

[0126] 1) When a node with master node functionality detects the failed node, the system will attempt to establish communication with the failed node and synchronize data. This may include operations such as reinitializing the node, updating the node configuration, or restoring the node data.

[0127] 2) When the node with master node functionality fails to find the failed node, the system will maintain the current network structure and generate a detailed network status report. This report may include the last known state of the failed node, changes in network topology, and recommendations for further maintenance operations that may be required.

[0128] By performing the above steps, the method of this invention can quickly reassemble the network when a node fails, minimizing the impact of network outages on overall system performance. Simultaneously, the method also provides a recovery mechanism for failed nodes, enhancing the robustness and reliability of the network.

[0129] This approach is particularly suitable for scenarios requiring high availability and self-healing capabilities, such as network systems, cloud computing environments, and IoT networks. Through automated node failure detection and network reconfiguration processes, this method reduces the need for manual intervention and improves the overall efficiency and reliability of the system.

[0130] Please refer to Figure 9 , Figure 9 This is a block diagram of a control device for node failure and reorganization in a network according to an embodiment of the present invention. Figure 9 As shown, the control device includes a detection module, an upgrade selection module, a connection module, a search module, and a recovery and maintenance module. These modules are interconnected through a system bus to exchange data and control information.

[0131] The detection module is used to detect the presence of failed nodes in the network. In some embodiments, the detection module can monitor the status of each node in the network by periodically sending heartbeat signals. For example, in a wireless sensor network, the detection module may send a probe signal to all nodes every 30 seconds; if it does not receive a response from a node three times consecutively, it determines that the node has failed. In other embodiments, the detection module may analyze network traffic patterns; if it detects that the data transmission volume of a node suddenly drops to an abnormally low level, it may also trigger a failure warning.

[0132] The upgrade selection module is used to select and upgrade at least one slave node to a node with master node functionality after receiving information about a failed node. In some embodiments, the upgrade selection module can select the most suitable slave node for upgrade based on factors such as the node's processing power, remaining power, and network location. For example, in an industrial control network, the node with the highest processor performance and located at the center of the network topology can be selected as the new master node. In other cases, such as smart grid applications, the node with the most stable power supply can be selected as the new master node.

[0133] The connection module enables other nodes to establish connections with the node that has master node functionality, based on the output of the selected upgrade module. In practical applications, the connection module can reconfigure network routing tables, update security authentication information, or adjust communication protocol parameters. For example, in a mesh network, the connection module can assign a special network address to a new master node and notify all other nodes to update their routing tables.

[0134] The search module enables nodes with master node functionality to perform searches for failed nodes. In some embodiments, the search module can implement a progressive search strategy. For example, in a large sensor network, the search module can first instruct a new master node to send probe signals to the vicinity of the failed node, and then gradually expand the search range. In other cases, such as in connected vehicle applications, the search module can utilize geographic location information to optimize the search path.

[0135] The recovery and maintenance module performs corresponding network recovery or maintenance operations based on the search results. In some embodiments, if the failed node is found to have recovered, the recovery and maintenance module can perform a series of reorganization operations, including data synchronization, role reassignment, etc. For example, in a database system, the recovery and maintenance module can perform data consistency checks and determine whether certain transactions need to be rolled back. In other cases, if it is determined that a node cannot be recovered, the recovery and maintenance module can initiate a resource reallocation procedure to permanently transfer the tasks of the failed node to other nodes.

[0136] These modules can efficiently exchange data and control information via the system bus. For example, when the detection module detects a node failure, it can immediately notify the upgrade selection module via the system bus to trigger the node upgrade process. Similarly, after the search module completes the search for failed nodes, it can transmit the results to the recovery and maintenance module via the system bus for further processing.

[0137] This modular design gives the control device a high degree of flexibility and scalability. In different application scenarios, the specific implementation of each module can be adjusted as needed, or new functional modules can be added to meet specific network management requirements.

[0138] The present invention also provides a network node that includes the control device as described above. In some embodiments, the network node may be a node in a wireless sensor network. For example, in smart agriculture applications, the network node may be a sensor node deployed in farmland to collect data such as soil moisture and temperature. In other embodiments, the network node may be a control unit in an industrial Internet of Things (IIoT), such as a production line controller in a smart factory. Furthermore, in intelligent transportation systems, the network node may be a roadside unit responsible for collecting and processing traffic flow data.

[0139] The present invention also provides a network system with a dynamic master-slave structure, comprising multiple network nodes as described above. In this system, any network node can dynamically assume the function of a master node or a slave node according to the network status, and the network nodes in the system can communicate with each other wirelessly or via wired means.

[0140] In some embodiments, this network system can be applied to smart grids. For example, in a power distribution network, each substation can act as a network node, dynamically adjusting its role as a master or slave node based on load conditions and network status. In another instance, the system can be used for large-scale logistics management. Each area controller in a warehouse can act as a network node, flexibly switching its master / slave role according to cargo flow and processing needs.

[0141] The present invention also provides a communication device including a processor and a memory, wherein when the processor invokes and runs a computer program stored in the memory, it performs the method described above. In some embodiments, the communication device may be a smartphone. For example, in a mobile ad hoc network, a smartphone may act as a network node, dynamically assuming the role of a data relay or gateway based on the user's location and network conditions.

[0142] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described above. In some embodiments, the storage medium may be a storage unit in a cloud server. For example, in a cloud computing environment, a program stored on a cloud server can dynamically manage and schedule computing resources, automatically adjusting the role of each computing node according to the load.

[0143] The methods, apparatus, nodes, systems, devices, and media proposed in this invention help improve the reliability of network systems. By promptly detecting node failures and implementing reorganization strategies, the system can quickly recover to normal operation, reducing network interruptions and data loss caused by node failures. This is particularly helpful for applications requiring continuous operation, such as industrial control systems or communication networks. The dynamic reorganization mechanism of this invention enhances the network's flexibility and adaptability. The system can select appropriate nodes for upgrades and adjust the network structure based on the current network conditions. This adaptability allows the network to better cope with various operating environments and potential failure scenarios, contributing to maintaining system stability.

[0144] The control device design proposed in this invention offers a degree of scalability. Each functional module can be adjusted according to specific application requirements, enabling the system to adapt to different types of network environments. This design simplifies system maintenance and upgrades, and facilitates future functional expansion.

[0145] Furthermore, the method and apparatus of this invention can reduce the complexity of network management. By automating failure detection, node upgrades, and network reorganization processes, the need for manual intervention is reduced, thereby improving the efficiency of network management.

[0146] Finally, the solution of this invention considers resource utilization while ensuring network reliability. By selecting and upgrading nodes, the system can improve the utilization rate of existing hardware resources while maintaining network functionality, potentially avoiding some unnecessary equipment investment.

[0147] In summary, the method, apparatus, node, system, equipment, and medium for node failure reorganization in networks provided by this invention offer a possible technical solution for the operation and management of complex network systems through their adaptability and efficiency. It is applicable to a variety of network applications and provides some ideas for the development of network systems, possessing considerable application potential and practical value.

[0148] The present invention has been described in detail through the above specific embodiments. However, it should be understood that the above content is illustrative only and is not intended to limit the scope of the present invention. Those skilled in the art can make various modifications and variations to the present invention according to specific application scenarios and actual needs without departing from the spirit and scope of the present invention, and all such modifications and variations are within the protection scope of the present invention.

Claims

1. A method for reassembling failed nodes in a network, characterized in that, Includes the following steps: S1: A failed node was detected in the network; S2: Select at least one slave node to upgrade to a node with master node functionality; S3: Other nodes establish connections with the node that has the function of a master node.

2. The method according to claim 1, characterized in that, Step S1 includes: Detecting failed nodes in the network, including master nodes, nodes with master node functions, and slave nodes.

3. The method according to claim 1, characterized in that, Step S2 includes: At least one slave node is promoted to a node with master node functionality according to a preset priority rule.

4. The method according to claim 1, characterized in that, It also includes the following steps: S4: The node with master node function performs the search for the failed node; S5: Perform the corresponding network recovery or maintenance operation based on the search results.

5. The method according to claim 4, characterized in that, Step S5 includes: When the node with master node function finds the failed node, it attempts to establish communication with the failed node and synchronize data. When the node with master node function fails to find the failed node, the current network structure is maintained and a network status report is generated.

6. A method for reassembling nodes in a battery cell management system network after node failure, characterized in that, Includes the following steps: S11: A faulty node has been detected in the battery cell management system network; S12: When a failed node is detected, select at least one AFE module to upgrade it to a node with master node functionality; S13: The remaining AFE modules reconnect with the node that has the master node function.

7. The method according to claim 6, characterized in that, Step S11 includes: Detect failed nodes in the wireless SOC, master node function nodes, or slave node AFE modules in the battery cell management system network.

8. The method according to claim 6, characterized in that, Step S12 includes: At least one slave node AFE module is upgraded to a node with master node functionality according to a preset priority rule.

9. The method according to claim 6, characterized in that, It also includes the following steps: S14: The node with master node function performs the search for the failed node; S15: Perform the corresponding cell management system network recovery or maintenance operation based on the search results.

10. The method according to claim 9, characterized in that, Step S15 includes: When the node with master node function finds the failed node, it attempts to establish communication with the failed node and synchronize data. When the node with master node function fails to find the failed node, the current cell management system network structure is maintained and a network status report is generated.

11. A battery compartment-level system with network reconfiguration function, characterized in that, include: The energy storage central controller, as the system's overall control center, contains multiple master nodes; Multiple battery clusters, each battery cluster including a high-voltage control box and multiple cell groups, each corresponding to multiple sub-nodes; All child nodes are directly connected to the corresponding master node of the energy storage central controller; The system also includes: Failure detection unit, used to detect node failure; The node upgrade unit is used to select child nodes and upgrade them into nodes with master node functions. Network reconfiguration unit, used to reconfigure network connectivity; The failure detection unit, node upgrade unit, and network reconstruction unit are interconnected through a system bus and work together to complete network reorganization.

12. The system according to claim 11, characterized in that: The failure detection unit performs failure detection on the master node, nodes with master node functions, or child nodes.

13. The system according to claim 11, characterized in that: The node upgrade unit selects at least one child node to upgrade into a node with master node functionality according to a preset priority rule.

14. The system according to claim 11, characterized in that, Also includes: The failure node search unit is used to perform the search for failure nodes; The network recovery unit is used to perform corresponding network recovery or maintenance operations based on the search results.

15. The system according to claim 14, characterized in that: When a failed node is detected, the network recovery unit establishes communication with the failed node and synchronizes data. When no failed node is found, the network recovery unit maintains the current network structure and generates a network status report.

16. A control device for node failure reorganization in a network, characterized in that, include: The detection module is used to detect the presence of faulty nodes in the network. The upgrade selection module is used to select at least one slave node to be upgraded to a node with master node functionality after receiving information about a failed node. A connection module is used to enable other nodes to establish connections with the node that has the master node function, based on the output of the selection and upgrade module. The detection module, the upgrade selection module, and the connection module are interconnected via a system bus to enable the exchange of data and control information.

17. The control device according to claim 16, characterized in that, Also includes: The search module is used to enable the node with master node function to perform the search for the failed node; The recovery and maintenance module is used to perform corresponding network recovery or maintenance operations based on the search results. The search module and the recovery and maintenance module are all connected to the detection module, the upgrade selection module and the connection module via the system bus.

18. A network node, characterized in that, Includes the control device as described in any one of claims 16-17.

19. A network system with a dynamic master-slave structure, characterized in that, The system includes multiple network nodes as described in claim 18, and any network node in the system can dynamically assume the function of a master node or a slave node according to the network status. The network nodes in the system can communicate with each other wirelessly or via wired means.

20. A communication device, characterized in that, It includes a processor and a memory, wherein when the processor calls and runs a computer program stored in the memory, it performs the method as described in any one of claims 1-5.

21. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method as described in any one of claims 1-5.