Network partitioning method and device, electronic equipment and storage medium

By acquiring information on the quality of wireless link communication between devices, and distinguishing between restricted and normal communication links, the problem of communication instability in distributed systems is solved, thereby improving network stability and communication quality.

CN121908306APending Publication Date: 2026-04-21SHANGHAI SIGE DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI SIGE DIGITAL TECHNOLOGY CO LTD
Filing Date
2026-01-23
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In distributed systems, wireless signals from different zones are prone to overlap, data frame collisions and channel conflicts cause intermittent interruptions in communication links, business data flows randomly across zones, core gateways have difficulty identifying it, command execution delays are severe, and frequent switching of device ownership increases authentication overhead, resulting in poor network stability.

Method used

By acquiring communication quality information of direct wireless links between devices, it distinguishes between restricted communication links and normal communication links. Restricted links only exchange target messages related to communication quality, preventing business data from running around across regions, automatically adapting to large-scale distributed systems, and reducing authentication overhead caused by frequent switching of device affiliation.

Benefits of technology

It improves network topology stability and communication quality, reduces command execution latency, reduces authentication overhead, and adapts to scenarios where devices are physically located.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121908306A_ABST
    Figure CN121908306A_ABST
Patent Text Reader

Abstract

According to the network partitioning method and device, the electronic equipment and the storage medium provided by the invention, the limited communication link and the normal communication link are distinguished by acquiring the communication quality information of the direct wireless link between the equipment, the limited communication link only interacts the target message related to the communication quality, cross-region disordered running of service data is prevented, the instruction execution delay is reduced, and the user experience is improved. Besides, the method does not depend on manual division, can automatically adapt to a large-scale distributed system and a scene with dispersed physical positions of equipment, reduces authentication overhead caused by frequent switching of equipment affiliation, and improves network topology stability and communication quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of network partitioning technology, and particularly relates to a network partitioning method, apparatus, electronic device and storage medium. Background Technology

[0002] In the field of wireless networking for distributed systems (such as distributed optical-storage systems and distributed optical-storage-charging systems), frequent problems arise when using a single core network architecture to achieve multi-regional partitioned networking. Wireless signals from different partitions are prone to overlap, leading to continuous data frame collisions and channel conflicts, resulting in intermittent communication link interruptions and severely impacting the real-time performance of equipment collaborative control. Simultaneously, due to the lack of partition isolation mechanisms, service data "crosses regions haphazardly," making it difficult for the core gateway to accurately identify data and exacerbating command execution delays. Furthermore, wireless communication nodes are affected by partition boundary signals, frequently switching affiliations, increasing authentication overhead and compromising network stability. Traditional manual partitioning methods also suffer from drawbacks such as reliance on specialized skills and poor scenario adaptability. Summary of the Invention

[0003] This application provides a network partitioning method, apparatus, electronic device, and storage medium. By acquiring the communication quality information of direct wireless links between devices, it distinguishes between restricted communication links and normal communication links. Restricted communication links only exchange target messages related to communication quality, preventing service data from "crossing zones" and reducing instruction execution latency. In addition, it does not rely on manual partitioning and can automatically adapt to large-scale distributed systems and scenarios where devices are physically located, reducing the authentication overhead caused by frequent switching of device affiliation and improving network topology stability and communication quality.

[0004] In a first aspect, embodiments of this application provide a network partitioning method, including:

[0005] Obtain communication quality information of the wireless network link between the device and other devices in the network system, wherein the wireless network link between the device and the other devices does not pass through intermediate devices; If the communication quality information corresponding to other devices of the first target does not meet the communication quality requirements, the wireless network link between the other devices of the first target and the device is determined to be a restricted communication link. In this case, the devices corresponding to the restricted communication link only exchange target messages, and the target messages are messages related to the communication quality information. If the communication quality information corresponding to the other devices of the second target meets the communication quality requirements, the wireless network link between the other devices of the second target and the device is determined to be a normal communication link, so as to realize the network partition of the network system. Among them, the devices corresponding to the normal communication link can process all the packets of the other device.

[0006] In some embodiments, the target message includes a heartbeat frame, and the step of obtaining communication quality information of the wireless network link between the device and other devices in the network system includes: The device acquires heartbeat frames broadcast by the other device, wherein the heartbeat frames cannot be forwarded; Based on the heartbeat frame, the communication quality assessment parameters of the wireless network link between the device and other devices are determined; Communication quality information is obtained based on the aforementioned communication quality assessment parameters.

[0007] In some embodiments, the target message includes: a heartbeat frame and a heartbeat response frame, and the step of obtaining communication quality information of the wireless network link between the device and other devices in the network system includes: The device broadcasts a heartbeat frame so that other devices can determine the communication quality assessment parameters of the wireless network link between the device and other devices based on the heartbeat frame, and obtain communication quality information based on the communication quality assessment parameters; The device broadcasts a heartbeat response frame so that when other devices receive the heartbeat response frame, they generate a response based on communication quality information and send the response. Upon receiving a response from another device, the device obtains communication quality information of the wireless network link between the device and other devices in the network system based on the response.

[0008] In some embodiments, the method further includes: In the absence of remote communication capability, the communication quality information of other devices corresponding to the first target is sorted in descending order to obtain the sorting result; Upon receiving a heartbeat response frame from another target device currently ranked in the sorting results, a response message is generated and sent to the other target device currently ranked. The response message carries information indicating a desire for the wireless communication link between the device and the other target device to be restored to a normal communication link. Upon receiving the response message, the other target device restores the wireless network link between itself and the device to a normal communication link, thereby restoring the device's remote communication capability.

[0009] In some embodiments, the method further includes: If the device still lacks remote communication capabilities, and upon receiving a heartbeat response frame from the next first target device in the current ranking, a response message is generated and sent to the next first target device. The response message carries information indicating a desire for the wireless communication link between the device and the next first target device to be restored to a normal communication link. Upon receiving the response message, the next first target device restores the wireless network link between itself and the device to a normal communication link until the device regains its remote communication capabilities or restores normal communication links with all first target devices.

[0010] In some embodiments, the communication quality assessment parameters include at least one of signal strength, packet loss rate, and transmission delay. If the signal strength is less than or equal to a first strength threshold, the packet loss rate is greater than or equal to a first packet loss rate threshold, and / or the transmission delay is greater than or equal to a transmission delay threshold, the communication quality information is determined to not meet the communication quality requirements.

[0011] In some embodiments, the method further includes: In the absence of remote communication capability, the communication quality information of other devices corresponding to the first target is sorted in descending order to obtain the sorting result; Upon receiving a heartbeat response frame from another target device currently ranked in the sorting results, a response message is generated and sent to the other target device currently ranked. The response message carries a second signal strength threshold, a second packet loss rate threshold, and / or a second transmission delay threshold. If the other target device currently ranked receives the second signal strength threshold and / or the second packet loss rate threshold, and determines that the communication quality requirements are met based on these thresholds, it restores the wireless network link between itself and the device to a normal communication link, thereby restoring the device's remote communication capability. The second signal strength threshold is less than the first strength threshold, the second packet loss rate threshold is greater than the first packet loss rate threshold, and the second transmission delay threshold is greater than the first transmission delay threshold. If the device still lacks remote communication capabilities, and upon receiving a heartbeat response frame from the next first target device in the current ranking, the device generates response information and sends it to the next first target device. The response information carries a second signal strength threshold, a second packet loss rate threshold, and / or a second transmission delay threshold. Upon receiving the second signal strength threshold and / or the second packet loss rate threshold, and determining that the communication quality requirements are met based on these thresholds, the next first target device restores the wireless network link between itself and the device to a normal communication link until the device regains its remote communication capabilities or restores normal communication links with all first target devices.

[0012] Secondly, embodiments of this application provide a network partitioning device, comprising: The acquisition module is used to acquire communication quality information of the wireless network link between the device and other devices in the network system, wherein the wireless network link between the device and the other devices does not pass through an intermediate device; The first determining module is configured to determine, when the communication quality information corresponding to the other devices of the first target does not meet the communication quality requirements, that the wireless network link between the other devices of the first target and the device is a restricted communication link, wherein the devices corresponding to the restricted communication link only exchange target messages, and the target message is a message related to the communication quality information; The second determining module is used to determine, when the communication quality information corresponding to the other devices of the second target meets the communication quality requirements, that the wireless network link between the other devices of the second target and the device is a normal communication link, so as to realize the network partitioning of the network system, wherein the devices corresponding to the normal communication link can process all the packets of the other device.

[0013] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in any of the above-mentioned embodiments.

[0014] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any of the preceding claims.

[0015] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the electronic device to execute any of the methods described above.

[0016] The beneficial effects of the embodiments in this application compared with the prior art are: The network partitioning method provided in this application distinguishes between restricted communication links and normal communication links by obtaining communication quality information of direct wireless links between devices. Restricted communication links only exchange target messages related to communication quality, preventing service data from running around across zones and reducing instruction execution latency. In addition, it does not rely on manual partitioning and can automatically adapt to large-scale distributed systems and scenarios where devices are physically located, reducing authentication overhead caused by frequent switching of device affiliation and improving network topology stability and communication quality.

[0017] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A schematic diagram illustrating the implementation process of a network partitioning method provided for the purposes of this application; Figure 2 This application provides a schematic diagram of data interaction in a network system. Figure 3 This application provides a schematic diagram for identifying communication problems in an embodiment. Figure 4 This application provides a schematic diagram for identifying communication problems in an embodiment. Figure 5 This application provides a schematic diagram for identifying communication problems in an embodiment. Figure 6 A schematic diagram illustrating the removal of redundant communication links provided in an embodiment of this application; Figure 7 A schematic diagram illustrating the restoration of remote communication as provided in an embodiment of this application; Figure 8 A schematic diagram of a network partition provided in an embodiment of this application; Figure 9 A schematic diagram illustrating the restoration of remote communication as provided in an embodiment of this application; Figure 10 This application provides a schematic diagram of data interaction between optical storage and charging devices. Figure 11 A schematic diagram illustrating the process of restoring remote communication in an optical storage and charging device, provided as an embodiment of this application; Figure 12 A schematic diagram illustrating the process of restoring remote communication in an optical storage and charging device, provided as an embodiment of this application; Figure 13 This is a schematic diagram of the structure of a network partitioning device provided in an embodiment of this application; Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0021] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0022] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0023] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once detected," or "in response to detection."

[0024] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0025] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0026] Based on the technical problems of related technologies, this application provides a network partitioning method that can be applied to devices in a network system. The devices in the network can be nodes in the network system and have wireless communication capabilities. The devices can include: photovoltaic inverters, energy storage batteries, charging piles, sensors, etc., photovoltaic-energy storage-charging equipment, etc. Devices within a preset area can be in the same network system. Wireless communication includes, but is not limited to: Bluetooth, Zigbee, sub-1G, Wi-Fi, etc. The devices can be any device in the network system.

[0027] Figure 1 A schematic diagram illustrating the implementation process of a network partitioning method provided for the purposes of this application is shown below. Figure 1 As shown, network partitioning methods include: Step S101: Obtain communication quality information of the wireless network link between the device and other devices in the network system, wherein the wireless network link between the device and the other devices does not go through an intermediate device.

[0028] In this embodiment, other devices are neighboring nodes that communicate directly with the current device, belonging to the same network system but possibly located in different partitions. A wireless network link is a direct connection established between devices via wireless signals (such as Wi-Fi, Zigbee, LoRa), requiring no relay. Communication quality information is used to quantify parameters describing link performance, including but not limited to: signal strength (RSSI), packet loss rate, and / or transmission delay. Signal strength reflects signal power; packet loss rate is the proportion of data packets lost per unit time; and transmission delay is the time difference between sending and receiving a data packet.

[0029] In this embodiment, the device can periodically send probe packets to other devices and record response time (latency) and packet loss. The device can also listen to data packets sent by other devices and parse parameters such as signal strength index (RSSI).

[0030] Step S102: If the communication quality information corresponding to the first target other device does not meet the communication quality requirements, determine that the wireless network link between the first target other device and the device is a restricted communication link. In this case, the devices corresponding to the restricted communication link only exchange target messages, and the target message is a message related to the communication quality information.

[0031] In this embodiment, communication quality requirements are used to distinguish between normal communication links and restricted communication links. Signal strength thresholds, packet loss rate thresholds, and delay thresholds can be set to determine whether the communication quality meets the requirements. The first target device is the device whose communication quality does not meet the requirements. A restricted communication link is a link whose communication quality does not meet the requirements; only specific messages (target messages) are allowed to be exchanged between devices. The target message is a message related to communication quality information, used to maintain or optimize link performance. The target message may include: heartbeat frames, heartbeat response frames, etc. The communication quality evaluation parameters include at least one of: signal strength, packet loss rate, and transmission delay. If the signal strength is less than or equal to a first strength threshold, the packet loss rate is greater than or equal to a first packet loss rate threshold, and / or the transmission delay is greater than or equal to a transmission delay threshold, it is determined that the communication quality information does not meet the communication quality requirements. If the communication quality requirements are not met, it is considered poor communication; if the communication quality requirements are met, it is considered normal communication.

[0032] In this embodiment of the application, all messages sent outside the device include a device identifier, which includes, but is not limited to: the device MAC address, the device SN, the number calculated by hashing the device SN, and the number calculated by hashing the device part SN plus the device SN.

[0033] In this embodiment, the collected communication quality information (such as RSSI and packet loss rate) can be compared with a preset threshold. Links that do not meet the requirements are marked as "restricted" in the device routing table, and the associated first target other devices are recorded, thereby determining that the wireless network link between the first target other device and the device is a restricted communication link. A restricted communication link can be considered a poorly functioning link.

[0034] Step S103: If the communication quality information corresponding to the other devices of the second target meets the communication quality requirements, determine that the wireless network link between the other devices of the second target and the device is a normal communication link, so as to realize the network partition of the network system. In this case, the devices corresponding to the normal communication link can process all the packets of the other device.

[0035] In this embodiment, the other devices in the second target are those whose communication quality meets the requirements, and the normal communication link is a link whose communication quality meets the requirements, allowing free exchange of all messages between the devices. For example, this may include control commands, status data, configuration information, etc.

[0036] In this embodiment of the application, all links marked as "restricted" are excluded, and the remaining links are normal communication links. The devices corresponding to each normal communication link can form a network partition.

[0037] For example, in the network system, optical storage and charging device 1 periodically broadcasts heartbeat frames, which do not require a response from the receiving device. Upon receiving a heartbeat frame from optical storage and charging device 1, optical storage and charging device 2 records the RSSI of the received data, parses the transmission interval and the old / new heartbeat frame identifier, and calculates the heartbeat frame packet loss rate. After sending a certain number of broadcast heartbeat frames that do not require a response, optical storage and charging device 1 sends a heartbeat frame that requires a response. Upon receiving the heartbeat frame requiring a response, optical storage and charging device 2 sends a heartbeat response frame in response to optical storage and charging device 1. Optical storage and charging device 1 also calculates the packet loss rate of its heartbeat response frames from optical storage and charging device 2. Optical storage and charging devices 1 and 2 have symmetrical roles, meaning each optical storage and charging device operates according to the above process. If either optical storage and charging device calculates that the packet loss rate of the heartbeat frame from another optical storage and charging device is higher than a first packet loss rate threshold, or that the received data signal strength is lower than a first signal strength threshold, it determines that the communication between that device and itself is poor. If the other device marks its communication as faulty in the heartbeat response received by the optical storage and charging equipment, then both devices will mark each other as being in a faulty communication state. The two optical storage and charging devices in a faulty communication state will filter out all messages except heartbeat frames and heartbeat frame responses using device identifiers, and will not process other messages.

[0038] The method provided in this application distinguishes between restricted communication links and normal communication links by obtaining communication quality information of direct wireless links between devices. The restricted communication links only exchange target messages related to communication quality, preventing service data from "crossing regions randomly" and reducing instruction execution latency. In addition, it does not rely on manual division and can automatically adapt to large-scale distributed systems and scenarios where devices are physically located, reducing authentication overhead caused by frequent switching of device affiliation and improving network topology stability and communication quality.

[0039] In some embodiments, the target message includes a heartbeat frame. The heartbeat frame may include: the initiator's device identifier; an identifier indicating whether a response is required; if the heartbeat frame contains a response identifier, the device receiving the heartbeat frame needs to reply with a response message; the heartbeat frame transmission interval; and D. a heartbeat frame age identifier, including but not limited to: timestamps, serial numbers, etc.

[0040] Step S101 can be achieved through the following steps: In step S1011, the device acquires the heartbeat frame broadcast by the other device, wherein the heartbeat frame cannot be forwarded.

[0041] In this embodiment, the heartbeat frame is broadcast directly by the device without being relayed through intermediate nodes (to avoid interference with the evaluation due to forwarding delay).

[0042] In this embodiment, other devices can broadcast heartbeat frames at fixed intervals. The current device activates its wireless receiving interface to listen for all heartbeat frames, thereby obtaining the broadcast heartbeat frames from other devices. Protocol layer restrictions can be used to prevent the forwarding of heartbeat frames; for example, it can be stipulated that heartbeat frames can only be sent by the source device, prohibiting relay nodes from modifying or forwarding them.

[0043] Step S1012: Determine the communication quality assessment parameters of the wireless network link between the device and other devices based on the heartbeat frame.

[0044] In this embodiment, the communication quality assessment parameters are indicators that directly or indirectly reflect link performance, extracted from heartbeat frames. Delay time, packet loss rate, etc., can be calculated from heartbeat frames.

[0045] Step S1013: Obtain communication quality information based on the communication quality evaluation parameters.

[0046] In this embodiment of the application, communication quality can be obtained by comparing the notification quality assessment parameters with various thresholds.

[0047] The method provided in this application reuses the periodic broadcast characteristics of heartbeat frames, eliminating the need for additional probe packets and saving bandwidth and energy consumption.

[0048] In some embodiments, the target message includes a heartbeat frame and a heartbeat response frame.

[0049] In this embodiment, the heartbeat response frame may include at least one of the following: the responding device identifier, the packet loss rate of the responding device receiving the heartbeat frame from the initiating device, the signal strength of the responding device receiving the heartbeat frame from the initiating device, the responding device's determination of the initiating device's poor communication identifier, whether the responding device wants the other party to keep disabling its identifier, and a communication quality threshold negotiated by the responding devices. The communication quality threshold includes, but is not limited to, at least one of the following: a packet loss rate threshold (a packet loss rate higher than this threshold indicates poor communication quality); a signal strength threshold (a signal strength lower than this threshold indicates poor communication quality); and a transmission delay threshold (a transmission delay higher than this threshold indicates poor communication quality).

[0050] In this embodiment of the application, step S101 can be implemented through the following steps: In step S1014, the device broadcasts a heartbeat frame so that the other devices can determine the communication quality assessment parameters of the wireless network link between the device and the other devices based on the heartbeat frame, and obtain communication quality information based on the communication quality assessment parameters.

[0051] In step S1015, the device broadcasts a heartbeat response frame so that when other devices receive the heartbeat response frame, they generate a response based on communication quality information and send the response.

[0052] In this embodiment, the device can send a heartbeat response frame, which can be sent using a unicast address (such as the MAC address of the target device) to ensure that only the designated device receives it. Other devices then generate a response with communication quality information. These responses can be broadcast by other devices.

[0053] In step S1016, when the device receives the response from other devices, it obtains the communication quality information of the wireless network link between the device and other devices in the network system based on the response.

[0054] In this embodiment of the application, when the device receives a response, communication quality information can be extracted from the response.

[0055] The method provided in this application embodiment can obtain communication quality information through other devices.

[0056] In some embodiments, after step S103, the method further includes: Step S104: If the device does not have remote communication capability, sort the communication quality information of other devices corresponding to the first target in descending order to obtain the sorting result.

[0057] In this embodiment of the application, remote communication capability refers to the ability of a device to transmit data and interact with other devices or network nodes at a distance (beyond a certain range, depending on the communication technology standard), such as communicating via the Internet, wide area network, etc.

[0058] In this embodiment, the device needs to detect whether it possesses remote communication capabilities. This can be achieved by attempting communication tests with a remote server or other known remote nodes, for example, by sending a specific test data packet and waiting for a response. If no valid response is received within a specified time, it is determined that it lacks remote communication capabilities. Once it is determined that it lacks remote communication capabilities, the device collects communication quality information from other related first-target devices. This information can be obtained through data recorded during previous communications with these devices, or by actively sending probe signals to these devices and analyzing the returned information. After collecting the communication quality information, these other first-target devices are sorted according to signal strength from high to low and data transmission rate from fast to slow, ultimately resulting in a sorted list.

[0059] Step S105: Upon receiving a heartbeat response frame from the currently ranked first target other device in the ranking result, generate response information and send the response information to the currently ranked first target other device. The response information carries information indicating that the wireless communication link between the device and the currently ranked first target other device is expected to be restored to a normal communication link. Upon receiving the response information, the currently ranked first target other device restores the wireless network link between itself and the device to a normal communication link, thereby restoring the device's remote communication capability.

[0060] In this embodiment, the response information is generated by the device and sent to the currently ranked first target other devices. It carries a specific instruction, namely, the desire for the wireless communication link between the device and the currently ranked first target other devices to be restored to a normal communication link. The device continuously monitors heartbeat response frames from each first target other device in the ranking result. When it receives a heartbeat response frame from the currently ranked first target other device, the device generates response information according to preset rules and requirements. The generation of the response information may involve encoding specific instructions, adding device identifiers, etc., to ensure that the first target other device can correctly understand and process it. After generating the response information, the device sends the response information out through the restricted communication link established with the currently ranked first target other device. After receiving the response information sent by the device, the currently ranked first target other device first parses it. It extracts the key instruction information carried within, namely the instruction to restore the wireless network link to a normal communication link. After extracting the instruction, the first target other device takes corresponding measures to adjust the wireless network link with the device according to its own capabilities and configuration. For example, it may increase transmission power, optimize signal modulation, or reselect the communication channel to improve communication quality and restore the link to a normal state. Once the wireless network link is restored to normal, the device can use this normal communication link to conduct stable data transmission with other devices of the first target, and then use other devices of the first target as relays or through the remote network connected to them to restore its own remote communication capability.

[0061] The method provided in this application sorts other devices of the first target according to communication quality information, prioritizing devices with better communication quality for attempting to restore the communication link. This reduces the time and resource consumption of blind attempts, enabling the faster identification of suitable devices to help restore remote communication capabilities and improving the efficiency of the entire recovery process. When a device lacks remote communication capabilities, it can restore those capabilities by establishing communication with other devices, increasing the system's ability to cope with communication failures or abnormal situations. This mechanism allows the system to maintain a certain level of functional integrity even when some devices or communication links experience problems, improving the overall system's reliability and fault tolerance, and ensuring normal data transmission and service continuity.

[0062] In some embodiments, after step S105, the method further includes: Step S106: If the device still lacks remote communication capability, and if a heartbeat response frame is received from the next first target other device in the current sorting result, a response information is generated and sent to the next first target other device. The response information carries information indicating that the wireless communication link between the device and the next first target other device is expected to be restored to a normal communication link. Upon receiving the response information, the next first target other device restores the wireless network link between itself and the device to a normal communication link until the device restores its remote communication capability or restores normal communication links with all first target other devices.

[0063] In this embodiment, after each attempt to establish a normal communication link with a first target other device, the device re-checks its own remote communication capability. If the remote communication capability is restored, the entire process ends. If the remote communication capability is still not restored, and there are still first target other devices that have not been tried (i.e., normal communication links have not been restored with all first target other devices), the device continues to wait for the next first target other device to send a heartbeat response frame according to the sorting result, and then repeats the above steps of generating response information, sending response information, and prompting the other party to restore the communication link until the termination condition is met.

[0064] For example, if an optical storage and charging device 3 loses its remote communication capability after being network-segmented with other optical storage and charging devices, including the inability to communicate with routers, servers, gateways, or hosts, it needs to restore communication with neighboring optical storage and charging devices. The neighboring optical storage and charging devices marked as having poor communication are sorted from highest to lowest based on their communication quality information. Starting with the optical storage and charging device with the highest communication quality, data reception from that device is resumed, and in the heartbeat response frame to that node, the device is marked as "hoping the other party will not disconnect itself." If the optical storage and charging device 4 finds in the response frame that the other party has set the flag to "hoping the other party will not disconnect itself," then it resumes receiving data from optical storage and charging device 3. If optical storage and charging device 3 still loses its remote communication capability at this point, the process continues from other nodes, following the same steps, until remote communication can be established.

[0065] The method provided in this application increases the chances of a device restoring its remote communication capabilities by sequentially attempting to establish normal communication links with each of the other first-target devices in a sorted order. Even if a normal link is established with a device but remote communication is not restored, attempts can continue to be made to establish connections with other devices until successful restoration is achieved or all possible devices have been tried, greatly increasing the probability of successful restoration. This method fully utilizes the available resources of other first-target devices in the surrounding area, attempting them sequentially according to communication quality, prioritizing devices with better communication quality, while also not abandoning devices with slightly lower communication quality but which may still contribute to restoring remote communication, maximizing the role of existing devices and improving resource utilization efficiency. When a device lacks remote communication capabilities, it can restore its capabilities by continuously attempting to establish communication with other devices, making the system more responsive to communication failures or abnormal situations. This mechanism increases the stability and reliability of the system in complex environments, ensures normal data transmission and business continuity, and reduces losses caused by communication interruptions.

[0066] In some embodiments, after step S103, the method further includes: Step S107: If the device does not have remote communication capability, sort the communication quality information of other devices corresponding to the first target in descending order to obtain the sorting result.

[0067] In this embodiment of the application, the implementation of step S104 can be referred to.

[0068] Step S108: Upon receiving a heartbeat response frame from the currently ranked first target other device in the ranking result, generate response information and send the response information to the currently ranked first target other device. The response information carries a second signal strength threshold, a second packet loss rate threshold, and / or a second transmission delay threshold. If the currently ranked first target other device determines that the communication quality information between itself and the device meets the communication quality requirements based on the second signal strength threshold, the second packet loss rate threshold, and / or the second transmission delay threshold, restore the wireless network link between itself and the device to a normal communication link, thereby restoring the device's remote communication capability. The second signal strength threshold is less than the first strength threshold, the second packet loss rate threshold is greater than the first packet loss rate threshold, and the second transmission delay threshold is greater than the first transmission delay threshold.

[0069] In this embodiment, the second signal strength threshold is a lower limit value of signal strength carried in the response information to determine whether the communication quality meets the requirements, and this value is less than the first strength threshold (the first strength threshold may be a higher standard or a default standard previously set by the device). The second packet loss rate threshold is an upper limit value of packet loss rate carried in the response information to determine whether the communication quality meets the requirements, and this value is greater than the first packet loss rate threshold (the first packet loss rate threshold may be a lower standard or a default standard previously set by the device).

[0070] In this embodiment, the device continuously monitors heartbeat response frames from each of the other first target devices in the ranking results. When a heartbeat response frame is received from a currently ranked other first target device, the device generates response information according to preset rules and requirements. In addition to regular instructions, the response information also carries a second signal strength threshold, a second packet loss rate threshold, and / or a second transmission delay threshold. The generation process may involve encoding specific instructions and thresholds, adding device identifiers, etc., to ensure that the other first target devices can correctly understand and process the information. After generating the response information, the device sends it out through the communication link established with the currently ranked other first target devices. Upon receiving the response information sent by the device, the currently ranked other first target devices first parse it, extracting the key instruction information and the second signal strength threshold, second packet loss rate threshold, and / or second transmission delay threshold. After extracting the thresholds, the other first target devices detect the actual signal strength, packet loss rate, and / or transmission delay of the communication link with the device, and compare the actual values ​​with the thresholds in the response information. If the actual signal strength is greater than or equal to the second signal strength threshold, and the actual packet loss rate is less than or equal to the second packet loss rate threshold, and the transmission delay is less than or equal to the second transmission delay threshold, then the communication quality requirements are deemed met. Once the communication quality requirements are met, other devices at the first target will take appropriate measures to adjust the wireless network link with the device based on their own capabilities and configurations. For example, it may increase transmission power, optimize signal modulation, or reselect a communication channel to improve communication quality and restore the link to normal operation.

[0071] Step S109: If the device still lacks remote communication capability, and if a heartbeat response frame is received from the next first target other device in the current ranking result, a response information is generated and sent to the next first target other device in the current ranking. The response information carries a second signal strength threshold, a second packet loss rate threshold, and / or a second transmission delay threshold. If the next first target other device in the current ranking determines that the communication quality information between the next first target other device in the current ranking and the device meets the communication quality requirements based on the second signal strength threshold, the second packet loss rate threshold, and / or the second transmission delay threshold, the wireless network link between the next first target other device in the current ranking and the device is restored to a normal communication link until the device regains its remote communication capability or restores a normal communication link with all first target other devices.

[0072] In this embodiment, after each attempt to establish a normal communication link with a first target other device, the device re-checks its own remote communication capability. If the remote communication capability has still not been restored, and there are still first target other devices that have not been tried (i.e., normal communication links have not been restored with all first target other devices), the device continues to listen to the heartbeat response frames sent by each first target other device in sequence according to the sorting result. When a heartbeat response frame sent by the next first target other device in the current sorting is received, the steps of generating response information, sending response information, and prompting the other party to restore the communication link are repeated.

[0073] In this embodiment, after each attempt to establish a normal communication link with another device of the first target, the device continuously monitors its own remote communication capability. If the remote communication capability is restored, the entire process ends. If the remote communication capability is not restored, and normal communication links have already been established with all other devices of the first target, the process also ends.

[0074] For example, when optical storage and charging device 3 loses its remote communication capability and needs to restore communication with neighboring optical storage and charging devices, a method of dynamically negotiating and adjusting communication thresholds can be used to restore network communication. Neighboring optical storage and charging devices marked as having poor communication are sorted from highest to lowest communication quality. Starting with the optical storage and charging device with the highest communication quality, a communication failure threshold is given in the heartbeat response frame to the other party, allowing both devices to restore normal communication. Optical storage and charging device 4 receives the response frame and parses it to obtain the communication threshold. For communication indicators where higher values ​​indicate better communication, such as signal strength, the smaller of the local threshold and the received threshold is used as the communication failure threshold. For communication indicators where lower values ​​indicate better communication quality, such as packet loss rate, the larger value is used as the communication failure threshold. After using the new threshold, optical storage and charging device 4 and optical storage and charging device 3 resume communication. If optical storage and charging device 3 still loses its remote communication capability, the above steps are continued from other nodes until remote communication can be established.

[0075] The method provided in this application increases the chances of a device restoring its remote communication capabilities by sequentially attempting to establish normal communication links with each of the other first target devices in a sorted order and dynamically adjusting communication quality requirements. Even if a normal link cannot be established with some devices under higher standards, it may still succeed under relatively lenient standards, greatly increasing the probability of successful recovery. The introduction of a second signal strength threshold, a second packet loss rate threshold, and / or a second delay threshold, with these thresholds having different settings from the existing first strength threshold and first packet loss rate threshold, allows the device to flexibly adjust its communication quality requirements according to the actual communication environment. Even under poor communication conditions, by reducing signal strength requirements and increasing packet loss rate tolerance, a usable communication link can still be attempted, enhancing the method's adaptability to different environments. This method fully utilizes the available resources of other first target devices in the vicinity, attempting them sequentially according to communication quality, prioritizing devices with better communication quality while not abandoning devices with slightly lower communication quality that may still contribute to restoring remote communication, maximizing the role of existing devices and improving resource utilization efficiency.

[0076] The method provided in this application addresses the issue of inconsistent communication quality between devices in the same network system distributed across multiple areas. Therefore, it's necessary to evaluate the communication quality between devices. Devices with good communication quality are grouped into the same area; devices with poor communication quality (i.e., those with limited communication links) are disconnected and grouped with devices of better communication quality into the same network area. To enable mutual evaluation of communication quality between devices, each device periodically broadcasts heartbeat frames, which do not require a response from the receiving device. After a certain number of heartbeat frames are sent, a response flag is added, requiring a response from the receiver. Upon receiving a heartbeat frame requiring a response, the receiver replies with a data frame including its own device identifier, the packet loss rate of the received heartbeat frame, signal strength, whether poor communication is detected, and whether it wishes the other party to maintain communication. Each device can independently determine the quality of data communication from other devices to itself and will also inform the other party of its judgment through heartbeat frame responses. If either device determines poor communication, the other device must also recognize poor communication between them. When a device loses its remote communication capability due to a disconnection with certain devices, the device can restore communication between the two devices by indicating to the specific node in a heartbeat frame response that it does not wish to disconnect from it, until the remote communication capability is restored.

[0077] The following are some specific examples provided in the embodiments of this application: Figure 2 This application provides a schematic diagram of data interaction in a network system, as shown in the embodiments of this application. Figure 2As shown, optical storage and charging devices 1, 2, and 3 periodically broadcast heartbeat frames and simultaneously receive heartbeat frames from surrounding devices. Upon receiving data, they record the signal strength value; based on the information carried in a certain number of heartbeat frames—device identifier, transmission time interval, and frame serial number—they calculate packet loss over a period of time; after each device sends a certain number of broadcast heartbeat frames without an acknowledgment flag, it inserts a broadcast heartbeat frame requiring an acknowledgment. The device receiving this heartbeat frame needs to unicast a heartbeat acknowledgment frame in response.

[0078] Figure 3 This application provides a schematic diagram for identifying communication problems, as shown in the embodiments. Figure 3 As shown, optical storage and charging device 1 counts the packet loss rate of heartbeat frames from optical storage and charging device 2. If the packet loss rate is higher than a given threshold T1, or the RSSI signal strength is lower than a given threshold T2, it determines that data communication from device 2 to device 1 is poor. Similarly, optical storage and charging device 2 determines that data communication from device 1 to device 2 is poor. At this time, the judgment results of both optical storage and charging devices are consistent, and this result will also be notified to the other party through heartbeat response frames. At this time, the communication between optical storage and charging device 1 and optical storage and charging device 2 is judged to be poor, and neither device processes data from the other other except for heartbeat frames and heartbeat response frames.

[0079] Figure 4 This application provides a schematic diagram for identifying communication problems, as shown in the embodiments. Figure 4 As shown, optical storage and charging device 2 counts the packet loss rate of heartbeat frames from optical storage and charging device 1. If the packet loss rate is higher than a given threshold T1, or the RSSI signal strength is lower than a given threshold T2, it is determined that data communication between device 1 and device 2 is poor. However, due to network communication asymmetry, communication between optical storage and charging device 2 and optical storage and charging device 1 is actually normal. In this situation, optical storage and charging device 2 informs optical storage and charging device 1 via a heartbeat response frame that communication between optical storage and charging device 1 and optical storage and charging device 2 is poor. Ultimately, both parties agree that their network communication is poor.

[0080] Figure 5 This application provides a schematic diagram for identifying communication problems, as shown in the embodiments. Figure 5 As shown, optical storage and charging device 1 can receive data from optical storage and charging device 2 normally, and communication is good. Optical storage and charging device 2 cannot receive data from optical storage and charging device 1, meaning it does not receive heartbeat frames from optical storage and charging device 1, nor does it send any heartbeat response frames. At this time, optical storage and charging device 2 is unaware of the existence of optical storage and charging device 1, while optical storage and charging device 1 considers the data communication from optical storage and charging device 2 to be good. Since optical storage and charging device 1 only receives heartbeat frames from optical storage and charging device 2 but does not receive heartbeat response frames, based on this condition, optical storage and charging device 1 determines that communication is unidirectional and marks the communication status of the two devices as poor.

[0081] Figure 6 A schematic diagram illustrating the removal of redundant communication links provided in this application embodiment is shown below. Figure 6 As shown, both optical storage and charging devices 2 and 4 can have multiple paths for remote communication, but the communication between optical storage and charging devices 2 and 3, and between optical storage and charging devices 4 and 3, is unstable. In this case, optical storage and charging devices 2 and 3, and optical storage and charging devices 4 and 3 are marked as having poor communication, and redundant and faulty communication links are removed to improve stability.

[0082] Figure 7 This is a schematic diagram illustrating the restoration of remote communication as provided in an embodiment of this application, such as... Figure 7 As shown, initially, due to insufficient communication stability, optical storage and charging devices 2 and 4 were identified as having a faulty communication link. Consequently, optical storage and charging devices 4, 5, and 6 lost their remote communication capabilities. Upon detecting this loss, optical storage and charging device 4 attempted to restore communication with optical storage and charging device 2. It informed optical storage and charging device 2 via a heartbeat response frame that it did not wish for the communication to be interrupted. After receiving the heartbeat response from optical storage and charging device 4, optical storage and charging device 2 restored communication with it, thereby restoring the remote communication capabilities of optical storage and charging devices 4, 5, and 6.

[0083] Figure 8 A schematic diagram of a network partition provided in an embodiment of this application is shown below. Figure 8 As shown, optical storage and charging devices 1, 2, and 3 are located relatively close to each other, while optical storage and charging devices 4, 5, and 6 are located relatively close to each other, forming two separate areas. Communication between the two areas cannot be completely disconnected; for example, the communication between optical storage and charging device 3 and optical storage and charging device 5 is unstable.

[0084] To prevent data from erratically moving between the two networks and to maintain stable communication links, it is necessary to disconnect the communication between optical storage and charging device 3 and optical storage and charging device 5. Following the conditions determined in Examples 1 to 4, optical storage and charging device 3 and optical storage and charging device 5 are marked as having poor communication, thereby disconnecting the faulty connection between the two networks.

[0085] Figure 9 This is a schematic diagram illustrating the restoration of remote communication as provided in an embodiment of this application, such as... Figure 9As shown, optical storage and charging devices 1, 2, and 3 are located close to each other, as are optical storage and charging devices 4, 5, and 6, forming two separate areas. Optical storage and charging device 7 is located near the boundary between these two areas, and its communication with both networks is unstable. After optical storage and charging device 7 loses communication with optical storage and charging devices 2, 3, and 5, it discovers that it has lost its remote communication capability. At this point, the communication quality of the disconnected optical storage and charging devices is ranked in descending order, with communication quality with optical storage and charging device 3 being the best, followed by optical storage and charging device 2, and optical storage and charging device 5 being the worst. Optical storage and charging device 7 first attempts to restore communication with optical storage and charging device 3 and then checks again to see if remote communication capability has been restored. If not, it continues to attempt to restore communication with the next optical storage and charging device until remote communication capability is restored. In this embodiment, optical storage and charging device 7 restores its remote communication capability immediately after restoring communication with optical storage and charging device 2, therefore no further operation is required. Since optical storage and charging equipment 7 is restored one by one with optical storage and charging equipment 2, 3, and 5, it avoids the confusion of area segmentation caused by restoring communication with three devices at the same time, as well as the problem of optical storage and charging equipment 7 swinging between two areas.

[0086] Figure 10 This application provides a schematic diagram of data interaction between optical storage and charging devices, as shown in the embodiments of this application. Figure 10 As shown, Each device periodically broadcasts heartbeat frames, which include: the initiator device identifier, the heartbeat frame transmission interval, the heartbeat frame sequence number, and a response identifier. For heartbeat frames that do not require a response, the receiver, upon receiving them, parses the device identifier to identify which device sent them, and identifies the heartbeat frame transmission interval and sequence number for packet loss rate calculation. It also records the signal strength when receiving the heartbeat frame to assess communication quality. Periodically, a response identifier is added to the heartbeat frame, requiring the receiver to reply with a heartbeat response frame. When an optical storage and charging device receives a heartbeat frame requiring a response, in addition to parsing the heartbeat frame content for communication quality assessment, it must also unicast a heartbeat response frame. This response frame includes the responder device identifier, the packet loss rate of the responder device receiving the initiator device's heartbeat frame, the signal strength of the responder device receiving the initiator device's heartbeat frame, the responder device's indicator of poor communication with the initiator device, and whether the responder device wants the other party to keep its heartbeat open.

[0087] Sometimes, due to poor communication quality between optical storage and charging devices, the devices may mistakenly believe that communication should be disconnected, resulting in some devices losing their remote communication capabilities. In this case, when an optical storage and charging device discovers that a device has lost its remote communication capability, it needs to interact with other optical storage and charging devices to restore the communication status and thus restore its remote communication capability. Figure 11 This application provides a schematic diagram of a process for restoring remote communication in an optical storage and charging device, as illustrated in the embodiments of this application. Figure 11As shown, communication between optical storage and charging devices can be restored by directly notifying the devices. The process involves the optical storage and charging device marking other devices with poor communication status, sorting their communication quality from best to worst, and notifying each device individually through the identifier in the heartbeat response frame not to disconnect. After notifying each device, it checks whether remote communication capability has been restored. If not, it continues to notify the next device until its own remote communication capability is restored, or communication with all devices is restored.

[0088] Figure 12 This application provides a schematic diagram of a process for restoring remote communication in an optical storage and charging device, as illustrated in the embodiments of this application. Figure 12 As shown, when optical storage and charging device 1 discovers that it has lost its remote communication capability, it sorts the adjacent optical storage and charging devices that have been marked as having poor communication quality from best to worst. Starting with the optical storage and charging device with the best communication quality, in the heartbeat response frame of the other party, a new communication threshold is given. The communication threshold includes, but is not limited to: packet loss rate threshold, if the packet loss rate is higher than the threshold, the communication quality is considered poor; signal strength threshold, if the signal strength is lower than the threshold, the communication quality is considered poor; transmission delay threshold, if the transmission delay is higher than the threshold, the communication quality is considered poor.

[0089] Optical storage and charging device 2 receives a response frame and parses it to obtain the communication threshold. For communication indicators such as signal strength, where higher values ​​indicate better communication, the smaller of the local threshold and the received threshold is used as the threshold for poor communication. For communication indicators such as packet loss rate, where lower values ​​indicate better communication quality, the larger value is used as the threshold for poor communication. After using the new threshold, optical storage and charging device 2 resumes communication with optical storage and charging device 1.

[0090] Each time communication with a device is restored, it is necessary to check whether the remote communication capability has been restored. If it has not been restored, the communication threshold is negotiated with the next optical storage and charging device until its own remote communication capability is restored, or communication with all devices is restored.

[0091] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0092] According to the foregoing embodiments, this application provides a network partitioning device. The modules and units included in the device can be implemented by a processor in a computer device; of course, they can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0093] This application provides a network partitioning device. Figure 13 This is a schematic diagram of the structure of a network partitioning device provided in an embodiment of this application, as shown below. Figure 13 As shown, the network partitioning device 1300 includes: The acquisition module 1301 is used to acquire communication quality information of the wireless network link between the device and other devices in the network system, wherein the wireless network link between the device and the other devices does not pass through an intermediate device; The first determining module 1302 is used to determine, when the communication quality information corresponding to the other first target device does not meet the communication quality requirements, that the wireless network link between the other first target device and the device is a restricted communication link, wherein the devices corresponding to the restricted communication link only exchange target messages, and the target message is a message related to the communication quality information; The second determining module 1303 is used to determine, when the communication quality information corresponding to the other devices of the second target meets the communication quality requirements, that the wireless network link between the other devices of the second target and the device is a normal communication link, so as to realize the network partitioning of the network system, wherein the devices corresponding to the normal communication link can process all the packets of the other device.

[0094] in addition, Figure 13 The network partitioning device shown can be a software unit, a hardware unit, or a combination of software and hardware. It can also be integrated into the electronic device as an independent component, or exist as an independent terminal device.

[0095] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0096] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 14 As shown, the electronic device of this embodiment may include: at least one processor 30 ( Figure 14 Only one processor 30, memory 31, and computer program 32 stored in memory 31 and executable on at least one processor 30 are shown. When the processor 30 executes the computer program 32, it implements the steps in any of the above method embodiments, or the processor 30 executes the computer program 32 to implement the functions of each module / unit in the above device embodiments.

[0097] For example, computer program 32 may be divided into one or more modules / units, one or more of which are stored in memory 31 and executed by processor 30 to complete this application. One or more modules / units may be a series of computer program 32 instruction segments capable of performing a specific function, which describe the execution process of computer program 32 in an electronic device.

[0098] This application also provides a computer-readable storage medium storing a computer program 32, which, when executed by a processor 30, implements the steps described in the above-described method embodiments.

[0099] This application provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0100] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program 32 instructing related hardware. The computer program 32 can be stored in a computer-readable storage medium, and when executed by the processor 30, it can implement the steps of the various method embodiments described above. The computer program 32 includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code to a terminal, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, a computer-readable medium cannot be an electrical carrier signal or a telecommunication signal.

[0101] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0102] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0103] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0104] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0105] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A network partitioning method, characterized in that, Devices used in network systems include: Obtain communication quality information of the wireless network link between the device and other devices in the network system, wherein the wireless network link between the device and the other devices does not pass through intermediate devices; If the communication quality information corresponding to other devices of the first target does not meet the communication quality requirements, the wireless network link between the other devices of the first target and the device is determined to be a restricted communication link. In this case, the devices corresponding to the restricted communication link only exchange target messages, and the target messages are messages related to the communication quality information. If the communication quality information corresponding to the other devices of the second target meets the communication quality requirements, the wireless network link between the other devices of the second target and the device is determined to be a normal communication link, so as to realize the network partition of the network system. Among them, the devices corresponding to the normal communication link can process all the packets of the other device.

2. The method according to claim 1, characterized in that, The target message includes: a heartbeat frame; the step of obtaining communication quality information of the wireless network link between the device and other devices in the network system includes: The device acquires heartbeat frames broadcast by the other device, wherein the heartbeat frames cannot be forwarded; Based on the heartbeat frame, the communication quality assessment parameters of the wireless network link between the device and other devices are determined; Communication quality information is obtained based on the aforementioned communication quality assessment parameters.

3. The method according to claim 1 or 2, characterized in that, The target message includes: a heartbeat frame and a heartbeat response frame. The step of obtaining communication quality information of the wireless network link between the device and other devices in the network system includes: The device broadcasts a heartbeat frame so that other devices can determine the communication quality assessment parameters of the wireless network link between the device and other devices based on the heartbeat frame, and obtain communication quality information based on the communication quality assessment parameters; The device broadcasts a heartbeat response frame so that when other devices receive the heartbeat response frame, they generate a response based on communication quality information and send the response. Upon receiving a response from another device, the device obtains communication quality information of the wireless network link between the device and other devices in the network system based on the response.

4. The method according to claim 3, characterized in that, The method further includes: In the absence of remote communication capability, the communication quality information of other devices corresponding to the first target is sorted in descending order to obtain the sorting result; Upon receiving a heartbeat response frame from another target device currently ranked in the sorting results, a response message is generated and sent to the other target device currently ranked. The response message carries information indicating a desire for the wireless communication link between the device and the other target device to be restored to a normal communication link. Upon receiving the response message, the other target device restores the wireless network link between itself and the device to a normal communication link, thereby restoring the device's remote communication capability.

5. The method according to claim 4, characterized in that, The method further includes: If the device still lacks remote communication capabilities, and upon receiving a heartbeat response frame from the next first target device in the current ranking, a response message is generated and sent to the next first target device. The response message carries information indicating a desire for the wireless communication link between the device and the next first target device to be restored to a normal communication link. Upon receiving the response message, the next first target device restores the wireless network link between itself and the device to a normal communication link until the device regains its remote communication capabilities or restores normal communication links with all first target devices.

6. The method according to claim 3, characterized in that, The communication quality assessment parameters include at least one of signal strength, packet loss rate, and transmission delay. If the signal strength is less than or equal to a first strength threshold, the packet loss rate is greater than or equal to a first packet loss rate threshold, and / or the transmission delay is greater than or equal to a first transmission delay threshold, the communication quality information is determined to not meet the communication quality requirements.

7. The method according to claim 6, characterized in that, The method further includes: In the absence of remote communication capability, the communication quality information of other devices corresponding to the first target is sorted in descending order to obtain the sorting result; Upon receiving a heartbeat response frame from another target device currently ranked in the sorting results, a response information is generated and sent to the other target device currently ranked. The response information carries a second signal strength threshold, a second packet loss rate threshold, and / or a second transmission delay threshold. If the other target device currently ranked determines that the communication quality information between itself and the device meets the communication quality requirements based on the second signal strength threshold, the second packet loss rate threshold, and / or the second transmission delay threshold, the wireless network link between itself and the device is restored to a normal communication link, thereby restoring the device's remote communication capability. The second signal strength threshold is less than the first strength threshold, the second packet loss rate threshold is greater than the first packet loss rate threshold, and the second transmission delay threshold is greater than the first transmission delay threshold. If the device still lacks remote communication capabilities, and upon receiving a heartbeat response frame from the next first target device in the current ranking, a response message is generated and sent to the next first target device. The response message carries a second signal strength threshold, a second packet loss rate threshold, and / or a second transmission delay threshold. If the next first target device determines that the communication quality information between the device and the device meets the communication quality requirements based on the second signal strength threshold, the second packet loss rate threshold, and / or the second transmission delay threshold, the wireless network link between the next first target device and the device is restored to a normal communication link until the device regains its remote communication capabilities or restores normal communication links with all first target devices.

8. A network partitioning device, characterized in that, Devices in a network system include: The acquisition module is used to acquire communication quality information of the wireless network link between the device and other devices in the network system, wherein the wireless network link between the device and the other devices does not pass through an intermediate device; The first determining module is configured to determine, when the communication quality information corresponding to the other devices of the first target does not meet the communication quality requirements, that the wireless network link between the other devices of the first target and the device is a restricted communication link, wherein the devices corresponding to the restricted communication link only exchange target messages, and the target message is a message related to the communication quality information; The second determining module is used to determine, when the communication quality information corresponding to the other devices of the second target meets the communication quality requirements, that the wireless network link between the other devices of the second target and the device is a normal communication link, so as to realize the network partitioning of the network system, wherein the devices corresponding to the normal communication link can process all the packets of the other device.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.