Method for processing multi-node networking, server and mesh system
By identifying backup master nodes in the Mesh network and optimizing packet forwarding paths, the performance degradation caused by broadcast flooding was resolved, thus improving network efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2022-06-21
- Publication Date
- 2026-06-26
AI Technical Summary
Broadcast flooding in existing mesh networks leads to performance issues.
By obtaining the RSSI values of target nodes and non-target nodes in the subspace, the backup master node is determined, and the forwarding path of data packets in the subspace is controlled to mitigate broadcast flooding.
It effectively mitigates broadcast flooding issues and improves the performance of Mesh networks.
Smart Images

Figure CN117319927B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network processing, and more specifically, to a method for processing multi-node networking, a server, a Mesh system, and a computer-readable storage medium. Background Technology
[0002] The Mesh wireless self-organizing network system is a mobile broadband multimedia communication system designed using the novel "wireless mesh network" concept. Under non-line-of-sight and rapid movement conditions, all nodes in the system can achieve real-time interaction of multiple voice, data, and image multimedia information using a decentralized self-organizing network architecture. Simultaneously, the system supports arbitrary network topologies; each node device can move randomly and rapidly, and the system topology can be quickly updated without affecting system transmission. The overall system is convenient to deploy, flexible to use, simple to operate, and easy to maintain.
[0003] Mesh wireless self-organizing network systems are decentralized systems, with all nodes having equal status, and any terminal device can function as a relay node. In actual user experience, different network areas (such as the living room and kitchen) have varying numbers of node devices. When the number of devices in a certain network area is significantly greater than in other network areas, the latency of data packets flowing through this network area (data packets in a mesh network are broadcast outwards, causing each device to receive data packets that do not belong to it) will increase significantly. This broadcast flooding results in lower performance for the mesh network. Summary of the Invention
[0004] The main objective of this application is to provide a multi-node networking processing method, server, Mesh system, and computer-readable storage medium to solve the problem of low performance of Mesh networks caused by broadcast flooding in the prior art.
[0005] According to one aspect of the present invention, a processing method for multi-node networking is provided, comprising: obtaining a first RSSI value received by a target node in a subspace of a predetermined space from a non-target node in the subspace, wherein the predetermined space includes a plurality of subspaces, the plurality of subspaces including a first subspace and a second subspace, each subspace including a master node and a plurality of non-master nodes, the target node being a non-master node, and the non-target nodes being non-master nodes other than the target node in the subspace; obtaining a second RSSI value received by the master node from the non-master node in the subspace; if the second RSSI value is less than a predetermined RSSI value, determining a backup master node in each subspace based on the first RSSI value; and if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, controlling the master node in the first subspace to forward the data packet to the master node in the second subspace, controlling the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controlling the backup master node in the second subspace to forward the data packet to a controlled node in the second subspace, wherein the data packet is used to control the controlled node.
[0006] Optionally, if the second RSSI value is less than a predetermined RSSI value, before determining the backup master node in each of the subspaces based on the first RSSI value, the method further includes: obtaining the average value of the first RSSI values issued by a plurality of non-target nodes; obtaining a first difference between the average value and each of the first RSSI values to obtain a plurality of first differences; determining a predetermined RSSI value, wherein a second difference between the predetermined RSSI value and the average value is greater than a predetermined number of first differences, and the predetermined number is less than the total number of the plurality of first differences; obtaining the difference between the second RSSI value and the average value to obtain the difference of the second RSSI value; and determining whether the difference of the second RSSI value of the master node is less than the predetermined RSSI value.
[0007] Optionally, determining the backup master node in each subspace based on the first RSSI value includes: determining the non-target node corresponding to the first RSSI value with the smallest first difference among a plurality of first differences as the backup master node; if at least two first differences are the same and the smallest, obtaining the location information of at least two non-target nodes with the same first difference; determining the distance between the location of the non-target node and the target location based on the plurality of location information; determining the non-target node corresponding to the smallest distance as the backup master node, wherein the target location is the location of the target node or the center location of the subspace.
[0008] Optionally, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, the master node in the first subspace is controlled to forward the data packet to the master node in the second subspace, the master node in the second subspace is controlled to forward the data packet to the backup master node in the second subspace, and the backup master node in the second subspace is controlled to forward the data packet to the controlled node in the second subspace. The data packet is used to control the controlled node, including: determining the distance between the backup master node in the first subspace and the backup master node in the second subspace; determining the transmission route for the backup master node in the first subspace to send the data packet to the controlled node in the second subspace based on the distance; and using the transmission route, controlling the backup master node in the first subspace to send the data packet to the controlled node in the second subspace.
[0009] Optionally, determining the transmission route for the backup master node in the first subspace to send the data packet to the controlled node in the second subspace based on the distance includes: if the distance is less than a distance threshold, determining a first transmission route, wherein the data packet sent along the first transmission route sequentially passes through the master node in the first subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace; if the distance is greater than or equal to the distance threshold, determining a second transmission route, wherein the data packet sent along the second transmission route sequentially passes through the master node in the first subspace, the master node in the third subspace, the backup master node in the third subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace, wherein the distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance between the backup master node in the first subspace and the backup master node in the second subspace, and the distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance threshold.
[0010] Optionally, after determining the backup master node in each of the subspaces based on the first RSSI value, the method further includes: generating a prompt message, the prompt message indicating to the user that the second RSSI value of the master node is poor; and sending the prompt message to the mobile node.
[0011] Optionally, both the backup master node in the second subspace and the non-backup master node in the second subspace receive the data packet sent by the master node in the first subspace. The non-backup master node in the second subspace does not respond to the data packet. Only after the backup master node in the second subspace forwards the data packet to the controlled node in the second subspace does the controlled node in the second subspace respond to the data packet.
[0012] Optionally, after determining the backup master node in each subspace based on the first RSSI value, the method further includes: controlling the backup master node in the first subspace to send a first broadcast packet to the non-backup master node in the first subspace, and controlling the backup master node in the second subspace to send a second broadcast packet to the non-backup master node in the second subspace, wherein the first broadcast packet includes first information, the first information including the identifier of the backup master node in the first subspace, and the second broadcast packet includes second information, the second information including the identifier of the backup master node in the second subspace; controlling the backup master node in the second subspace to receive the data packet sent by the master node in the second subspace, and determining whether the data packet is a data packet to be processed by the node in the second subspace; if it is determined that the data packet is not a data packet to be processed by the node in the second subspace, controlling the backup master node in the second subspace not to forward the data packet.
[0013] Optionally, after determining the backup master node in each subspace based on the first RSSI value, the method further includes: controlling the backup master node in the first subspace to generate a first backup master node label, controlling the backup master node in the second subspace to generate a second backup master node label, wherein the first backup master node label refers to the label indicating that the backup master node in the first subspace is a backup master node in the first subspace, and the second backup master node label refers to the label indicating that the backup master node in the second subspace is a backup master node in the second subspace; and controlling the master node in the first subspace to send the first backup master node label and the data packet to the master node in the second subspace.
[0014] According to another aspect of the present invention, a server is also provided, comprising: a first acquisition unit, configured to acquire a first RSSI value received by a target node in a subspace of a predetermined space from a non-target node in the subspace, wherein the predetermined space includes a plurality of subspaces, the plurality of subspaces including a first subspace and a second subspace, each subspace including a master node and a plurality of non-master nodes, the target node being a non-master node, and the non-target nodes being non-master nodes in the subspace other than the target node; a second acquisition unit, configured to acquire a second RSSI value received by the master node from a non-master node in the subspace; and a first determination unit. The first unit is configured to determine the backup master node in each subspace based on the first RSSI value when the second RSSI value is less than a predetermined RSSI value; the second unit is configured to, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, control the master node in the first subspace to forward the data packet to the master node in the second subspace, control the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and control the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace, wherein the data packet is used to control the controlled node.
[0015] According to another aspect of the present invention, a Mesh system is also provided, comprising: a mobile node, a server, a routing node, and multiple nodes, each of the nodes being equipped with a BLE communication module, the mobile node communicating with the server, the server communicating with the routing node, the routing node communicating with the nodes, and the nodes communicating with each other via Bluetooth BLE technology, the server being used to execute any of the methods described.
[0016] According to another aspect of the present invention, a Mesh system is also provided, comprising: a mobile node, a server, a routing node, and multiple nodes, each of the nodes being equipped with a WIFI communication module, the mobile node communicating with the server, the server communicating with the routing node, the routing node communicating with the nodes, and the nodes communicating with each other via WIFI technology, the server being used to execute any one of the methods described.
[0017] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein the program executes any one of the methods described.
[0018] In this embodiment of the invention, firstly, the target node in a subspace within a predetermined space receives a first RSSI value sent by a non-target node in that subspace. Then, the master node receives a second RSSI value sent by a non-master node in that subspace. If the second RSSI value is less than a predetermined RSSI value, backup master nodes in each subspace are determined based on the first RSSI value. Finally, if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace. The master node in the second subspace then forwards the data packet to the backup master node in the second subspace, and the backup master node in the second subspace forwards the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, the backup master nodes in each subspace are determined, and then the backup master nodes in each subspace are controlled to forward data packets. This filters data packets in the network, reduces the problem of broadcast flooding, and thus improves the performance of the Mesh network. Attached Figure Description
[0019] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:
[0020] Figure 1 A flowchart illustrating a multi-node networking processing method according to an embodiment of this application is shown.
[0021] Figure 2 A schematic diagram of packet broadcast links in multiple subspaces is shown;
[0022] Figure 3 A schematic diagram of the structure of a server according to an embodiment of this application is shown;
[0023] Figure 4 A schematic diagram of the structure of a Mesh system according to an embodiment of this application is shown;
[0024] Figure 5 A schematic diagram of another Mesh system according to an embodiment of this application is shown;
[0025] Figure 6 A flowchart illustrating another method for processing node networking is shown. Detailed Implementation
[0026] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0027] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be an intermediate element present. Furthermore, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element via a third element.
[0030] For ease of description, the following explains some of the nouns or terms used in the embodiments of this application:
[0031] RSSI value: Received Signal Strength Indication, is an indicator of the received signal strength. It is an optional part of the wireless transmission layer used to determine connection quality and whether to increase broadcast transmission strength.
[0032] As mentioned in the background section, broadcast flooding in the prior art results in low performance of Mesh networks. To address the above problem, one embodiment of this application provides a multi-node networking processing method, a server, a Mesh system, and a computer-readable storage medium.
[0033] According to an embodiment of this application, a method for processing multi-node networking is provided.
[0034] Figure 1This is a flowchart of a multi-node networking processing method according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:
[0035] Step S101: Obtain the first RSSI value sent by a non-target node in the subspace of the predetermined space received by the target node in the subspace of the predetermined space. The predetermined space includes multiple subspaces, including a first subspace and a second subspace. Each subspace includes a master node and multiple non-master nodes. The target node is a non-master node, and the non-target node is a non-master node in the subspace other than the target node.
[0036] Step S102: Obtain the second RSSI value sent by the non-master node in the subspace received by the master node.
[0037] Step S103: If the second RSSI value is less than the predetermined RSSI value, determine the backup master node in each of the subspaces based on the first RSSI value.
[0038] In step S104, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, the master node in the first subspace is controlled to forward the data packet to the master node in the second subspace, the master node in the second subspace is controlled to forward the data packet to the backup master node in the second subspace, and the backup master node in the second subspace is controlled to forward the data packet to the controlled node in the second subspace. The data packet is used to control the controlled node.
[0039] Specifically, the nodes in the reserved space can include air conditioners, rice cookers, refrigerators, washing machines, microwave ovens, and so on.
[0040] In the above method, firstly, the target node in a subspace within a predetermined space receives the first RSSI value sent by a non-target node in that subspace. Then, the master node receives the second RSSI value sent by a non-master node in that subspace. If the second RSSI value is less than a predetermined RSSI value, backup master nodes in each subspace are determined based on the first RSSI value. Finally, if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace. The master node in the second subspace then forwards the data packet to the backup master node in the second subspace, and the backup master node in the second subspace forwards the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, the backup master nodes in each subspace are determined, and then the backup master nodes in each subspace are controlled to forward data packets. This filters data packets in the network, reduces broadcast flooding problems, and thus improves the performance of the Mesh network.
[0041] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0042] In one embodiment of this application, before determining the backup master node in each of the subspaces based on the first RSSI value when the second RSSI value is less than a predetermined RSSI value, the method further includes: obtaining the average of the first RSSI values issued by multiple non-target nodes; obtaining a first difference between the average value and each of the first RSSI values to obtain multiple first differences; determining a predetermined RSSI value, wherein a second difference between the predetermined RSSI value and the average value is greater than a predetermined number of the first differences, and the predetermined number is less than the total number of the multiple first differences; obtaining the difference between the second RSSI value and the average value to obtain the difference of the second RSSI value; and determining whether the difference of the second RSSI value of the master node is less than the predetermined RSSI value. In this embodiment, based on the average of the RSSI values issued by multiple non-target nodes in each subspace, the first difference between the average value and the first RSSI value can be obtained, and the second difference between the average value and the second RSSI value can also be obtained, thus allowing for a more accurate determination of whether the difference of the second RSSI value is less than the predetermined RSSI value.
[0043] In one embodiment, the difference between the predetermined RSSI value and the average value is the median of a plurality of differences.
[0044] In another embodiment of this application, determining the backup master node in each of the subspaces based on the first RSSI value includes: determining the non-target node corresponding to the first RSSI value with the smallest first difference among multiple first differences as the backup master node; obtaining the location information of at least two non-target nodes with the same and smallest first difference when there are at least two such first differences; determining the distance between the location of the non-target node and the target location based on the multiple location information; and determining the non-target node corresponding to the smallest distance as the backup master node, wherein the target location is the location of the target node or the center location of the subspace. In this embodiment, if there are multiple non-target nodes with the same and smallest difference, the backup master node can also be determined based on the distance between the location of the non-target node and the target location. For example, the non-target node corresponding to the smallest distance can be determined as the backup master node, so that the distance between the backup master node and the target node is smaller, or the distance between the backup master node and the middle location of the subspace is smaller, thus enabling more efficient forwarding of data packets.
[0045] In another embodiment of this application, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, the system controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to a backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to a controlled node in the second subspace. The data packet is used to control the controlled node, including: determining the distance between the backup master nodes in the first and second subspaces; determining a transmission route for the backup master node in the first subspace to send the data packet to the controlled node in the second subspace based on the distance; and using the transmission route, controlling the backup master node in the first subspace to send the data packet to the controlled node in the second subspace. In this embodiment, the transmission route can be determined based on the distance between backup master nodes in different subspaces, allowing for more efficient forwarding of data packets and further mitigating the problem of broadcast flooding.
[0046] In another embodiment of this application, determining the transmission route for the backup master node in the first subspace to send the data packet to the controlled node in the second subspace based on the aforementioned distance includes: when the distance is less than a distance threshold, determining a first transmission route, wherein the data packet sent along the first transmission route sequentially passes through the master node in the first subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace; when the distance is greater than or equal to the distance threshold, determining a second transmission route, wherein the data packet sent along the second transmission route sequentially passes through the master node in the first subspace, the master node in the third subspace, the backup master node in the third subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace, wherein the distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance between the backup master node in the first subspace and the backup master node in the second subspace, and the distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance threshold. In this embodiment, when the distance between the backup master nodes of the two subspaces is less than the distance threshold, the data packet transmission route can be determined to be directly forwarded from the master node in the first subspace to the master node in the second subspace, and then forwarded to the backup master node in the second subspace. When the distance between the backup master nodes of the two subspaces is greater than or equal to the distance threshold, the backup master node in the first subspace cannot directly forward the data packet to the backup master node in the second subspace. The data packet transmission route can be determined to be forwarded from the master node in the first subspace to the master node in the third subspace. After the backup master node in the third subspace determines that it is not processed in this area, it forwards the data packet to the master node in the second subspace, and then forwards it to the backup master node in the second subspace. This embodiment further determines the transmission route based on the distance between the backup master nodes of different subspaces. When the backup master nodes in two subspaces are far apart, the backup master node in another subspace acts as an intermediate medium to forward the data packet to the backup master node in the second subspace. This allows for more efficient forwarding of data packets based on the transmission route, thereby further mitigating the problem of broadcast flooding.
[0047] In one embodiment, such as Figure 2As shown, the predetermined space includes a first subspace, a second subspace, and a third subspace. The first subspace includes nodes 1, 2, 3, and 4, with node 1 as the master node. The second subspace includes nodes 1, 2, 3, and 4, with node 3 as the master node and node 1 as the backup master node. The third subspace includes nodes 1, 2, 3, 4, 5, and 6, with node 1 as the master node and node 3 as the backup master node. Node 4 in the first subspace needs to send a data packet to node 4 in the second subspace, and the data packet will include the IP address of node 4 in the first subspace and the IP address of node 4 in the second subspace. The IP address is used to broadcast a data packet to nodes 1, 2, and 3 in the first subspace. After receiving the data packet, node 1 in the first subspace forwards it to node 1 in the third subspace. Node 1 in the third subspace then forwards the data packet to node 3 in the third subspace. Node 3 in the third subspace determines that the data packet is not a device in the third subspace and forwards it to node 3 in the second subspace. Node 3 in the second subspace forwards the data packet to node 1 in the second subspace. Node 1 in the second subspace determines that the data packet is a device in the second subspace and forwards it to node 4 in the second subspace. (The dashed line represents the broadcast route, and the solid line represents the actual transmission route.)
[0048] In one specific embodiment of this application, after determining the backup master node in each of the aforementioned subspaces based on the first RSSI value, the method further includes: generating a prompt message, wherein the prompt message indicates to the user that the second RSSI value of the master node is poor; and sending the prompt message to the mobile node. In this embodiment, by sending the prompt message to the mobile node, the user can promptly know that the second RSSI value of the master node is currently poor.
[0049] In another specific embodiment of this application, both the backup master node and the non-backup master node in the second subspace receive the data packets sent by the master node in the first subspace. The non-backup master nodes in the second subspace do not respond to the data packets. Only the backup master node in the second subspace forwards the data packets to the controlled nodes in the second subspace, at which point the controlled nodes respond to the data packets. In this embodiment, during the broadcasting of the actual data packets, all nodes in the second subspace receive the data packets. However, except for the master node and the backup master node, which discard the data packets and do not respond, only the backup master node receives the data packets forwarded by the master node and then forwards them to the controlled nodes. This further mitigates the problem of broadcast flooding.
[0050] In another specific embodiment of this application, after determining the backup master node in each of the subspaces based on the first RSSI value, the method further includes: controlling the backup master node in the first subspace to send a first broadcast packet to the non-backup master node in the first subspace; controlling the backup master node in the second subspace to send a second broadcast packet to the non-backup master node in the second subspace; wherein the first broadcast packet includes first information, the first information including the identifier of the backup master node in the first subspace; the second broadcast packet includes second information, the second information including the identifier of the backup master node in the second subspace; controlling the backup master node in the second subspace to receive the data packet sent by the master node in the second subspace; determining whether the data packet is a data packet to be processed by the node in the second subspace; and controlling the backup master node in the second subspace not to forward the data packet if it is determined that the data packet is not a data packet to be processed by the node in the second subspace. In this embodiment, the backup master node in the first subspace sends a first broadcast packet to the non-backup master node in the first subspace, indicating that the backup master node in the first subspace is a backup master node in the first subspace. Similarly, the non-backup master node in the second subspace sends a second broadcast packet to the non-backup master node in the second subspace, indicating that the backup master node in the second subspace is a backup master node in the second subspace. Then, the backup master node in each subspace determines whether the received data packet is a data packet to be processed by the device in its own space. If not, it is not forwarded to the device in its own space. This can further reduce the problem of broadcast flooding.
[0051] In another specific embodiment of this application, after determining the backup master node in each of the aforementioned subspaces based on the first RSSI value, the method further includes: controlling the backup master node in the first subspace to generate a first backup master node label, and controlling the backup master node in the second subspace to generate a second backup master node label. The first backup master node label refers to the label indicating that the backup master node in the first subspace is a backup master node in the first subspace, and the second backup master node label refers to the label indicating that the backup master node in the second subspace is a backup master node in the second subspace. The method also involves controlling the master node in the first subspace to send the first backup master node label and the data packet to the master node in the second subspace. In this embodiment, the backup master node in the first subspace can also generate a first backup master node label and, during the forwarding of the data packet, forward the first backup master node label and the data packet together to the master node in the second subspace, thus making the backup master node in the second subspace aware of the backup master node in the first subspace.
[0052] This application also provides a server. It should be noted that the server in this application can be used to execute the processing method for multi-node networking provided in this application. The server provided in this application is described below.
[0053] Figure 3 This is a schematic diagram of a server according to an embodiment of this application. Figure 3 As shown, the server includes:
[0054] The first acquisition unit 10 is used to acquire the first RSSI value sent by a non-target node in a subspace of a predetermined space to a target node in the subspace. The predetermined space includes multiple subspaces, including a first subspace and a second subspace. Each subspace includes a master node and multiple non-master nodes. The target node is a non-master node, and the non-target node is a non-master node in the subspace other than the target node.
[0055] The second acquisition unit 20 is used to acquire the second RSSI value sent by the non-master node in the subspace received by the master node.
[0056] The first determining unit 30 is used to determine the backup master node in each of the subspaces based on the first RSSI value when the second RSSI value is less than a predetermined RSSI value.
[0057] The first sending unit 40 is configured to, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, control the master node in the first subspace to forward the data packet to the master node in the second subspace, control the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and control the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace, wherein the data packet is used to control the controlled node.
[0058] In the aforementioned server, the first acquisition unit acquires the first RSSI value sent by a non-target node in a subspace within a predetermined space to the target node. The second acquisition unit acquires the second RSSI value sent by a non-master node in a subspace to the master node. If the second RSSI value is less than a predetermined RSSI value, the first determination unit determines the backup master node in each subspace based on the first RSSI value. If the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, the first sending unit controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, the backup master nodes in each subspace are determined, and then the backup master nodes in each subspace are controlled to forward data packets. This filters data packets in the network, reduces the problem of broadcast flooding, and thus improves the performance of the Mesh network.
[0059] In one embodiment of this application, the server further includes a third acquisition unit, a fourth acquisition unit, a second determination unit, a fifth acquisition unit, and a third determination unit. The third acquisition unit is used to acquire the average value of the first RSSI values sent by multiple non-target nodes before determining the backup master node in each of the subspaces based on the first RSSI value when the second RSSI value is less than a predetermined RSSI value. The fourth acquisition unit is used to acquire the first difference between the average value and each of the first RSSI values to obtain multiple first differences. The second determination unit is used to determine a predetermined RSSI value, wherein the second difference between the predetermined RSSI value and the average value is greater than a predetermined number of the first differences, and the predetermined number is less than the total number of the multiple first differences. The fifth acquisition unit is used to acquire the difference between the second RSSI value and the average value to obtain the difference of the second RSSI value. The third determination unit is used to determine whether the difference of the second RSSI value of the master node is less than the predetermined RSSI value. In this embodiment, based on the average value of RSSI values emitted by multiple non-target nodes in each subspace, a first difference between the average value and the first RSSI value can be obtained, and a second difference between the average value and the second RSSI value can also be obtained. This allows for a more accurate determination of whether the difference between the second RSSI value and the predetermined RSSI value is less than the predetermined RSSI value.
[0060] In one embodiment, the difference between the predetermined RSSI value and the average value is the median of a plurality of differences.
[0061] In another embodiment of this application, the first determining unit includes a first determining module, an acquiring module, a second determining module, and a third determining module. The first determining module is used to determine that the non-target node corresponding to the first RSSI value with the smallest first difference among multiple first differences is the backup master node. The acquiring module is used to acquire the location information of at least two non-target nodes with the same and smallest first difference when there are at least two such first differences. The second determining module is used to determine the distance between the location of the non-target node and the target location based on the multiple location information. The third determining module is used to determine that the non-target node corresponding to the smallest distance is the backup master node, wherein the target location is the location of the target node or the center location of the subspace. In this embodiment, if there are multiple non-target nodes with the same and smallest difference, the backup master node can also be determined based on the distance between the location of the non-target node and the target location. For example, the non-target node corresponding to the smallest distance can be determined as the backup master node, so that the distance between the backup master node and the target node is small, or the distance between the backup master node and the middle location of the subspace is small, so that data packets can be forwarded more efficiently afterward.
[0062] In another embodiment of this application, the first sending unit includes a fourth determining module, a fifth determining module, and a sending module. The fourth determining module is used to determine the distance between the backup master node in the first subspace and the backup master node in the second subspace. The fifth determining module is used to determine, based on the distance, a sending route for the backup master node in the first subspace to send the data packet to the controlled node in the second subspace. The sending module is used to control the backup master node in the first subspace to send the data packet to the controlled node in the second subspace using the sending route. In this embodiment, the sending route can be determined based on the distance between backup master nodes in different subspaces, which allows for more efficient forwarding of data packets based on the sending route, thereby further mitigating the problem of broadcast flooding.
[0063] In another embodiment of this application, the fifth determining module includes a first determining submodule and a second determining submodule. The first determining submodule is used to determine a first sending route when the distance is less than a distance threshold, wherein the data packet sent along the first sending route sequentially passes through the master node in the first subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace. The second determining submodule is used to determine a second sending route when the distance is greater than or equal to the distance threshold, wherein the data packet sent along the second sending route sequentially passes through the master node in the first subspace, the master node in the third subspace, the backup master node in the third subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace, wherein the distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance between the backup master node in the first subspace and the backup master node in the second subspace, and the distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance threshold. In this embodiment, when the distance between the backup master nodes of the two subspaces is less than the distance threshold, the data packet transmission route can be determined to be directly forwarded from the master node in the first subspace to the master node in the second subspace, and then forwarded to the backup master node in the second subspace. When the distance between the backup master nodes of the two subspaces is greater than or equal to the distance threshold, the backup master node in the first subspace cannot directly forward the data packet to the backup master node in the second subspace. The data packet transmission route can be determined to be forwarded from the master node in the first subspace to the master node in the third subspace. After the backup master node in the third subspace determines that it is not processed in this area, it forwards the data packet to the master node in the second subspace, and then forwards it to the backup master node in the second subspace. This embodiment further determines the transmission route based on the distance between the backup master nodes of different subspaces. When the backup master nodes in two subspaces are far apart, the backup master node in another subspace acts as an intermediate medium to forward the data packet to the backup master node in the second subspace. This allows for more efficient forwarding of data packets based on the transmission route, thereby further mitigating the problem of broadcast flooding.
[0064] In one specific embodiment of this application, the server further includes a first generation unit and a second sending unit. The first generation unit is used to generate a prompt message after determining the backup master node in each of the subspaces based on the first RSSI value. The prompt message indicates to the user that the second RSSI value of the master node is poor. The second sending unit is used to send the prompt message to the mobile node. In this embodiment, by sending the prompt message to the mobile node, the user can promptly know that the second RSSI value of the master node is currently poor.
[0065] In another specific embodiment of this application, both the backup master node and the non-backup master node in the second subspace receive the data packets sent by the master node in the first subspace. The non-backup master nodes in the second subspace do not respond to the data packets. Only the backup master node in the second subspace forwards the data packets to the controlled nodes in the second subspace, at which point the controlled nodes respond to the data packets. In this embodiment, during the broadcasting of the actual data packets, all nodes in the second subspace receive the data packets. However, except for the master node and the backup master node, which discard the data packets and do not respond, only the backup master node receives the data packets forwarded by the master node and then forwards them to the controlled nodes. This further mitigates the problem of broadcast flooding.
[0066] In another specific embodiment of this application, the server further includes a third sending unit, a fourth determining unit, and a fourth sending unit. The third sending unit is configured to, after determining the backup master nodes in each of the subspaces based on the first RSSI value, control the backup master nodes in the first subspace to send a first broadcast packet to the non-backup master nodes in the first subspace, and control the backup master nodes in the second subspace to send a second broadcast packet to the non-backup master nodes in the second subspace. The first broadcast packet includes first information, which includes the identifier of the backup master node in the first subspace, and the second broadcast packet includes second information, which includes the identifier of the backup master node in the second subspace. The fourth determining unit is configured to control the backup master nodes in the second subspace to receive the data packets sent by the master nodes in the second subspace, and determine whether the data packets are data packets to be processed by the nodes in the second subspace. The fourth sending unit is configured to, if it is determined that the data packets are not data packets to be processed by the nodes in the second subspace, control the backup master nodes in the second subspace not to forward the data packets. In this embodiment, the backup master node in the first subspace sends a first broadcast packet to the non-backup master node in the first subspace, indicating that the backup master node in the first subspace is a backup master node in the first subspace. Similarly, the non-backup master node in the second subspace sends a second broadcast packet to the non-backup master node in the second subspace, indicating that the backup master node in the second subspace is a backup master node in the second subspace. Then, the backup master node in each subspace determines whether the received data packet is a data packet to be processed by the device in its own space. If not, it is not forwarded to the device in its own space. This can further reduce the problem of broadcast flooding.
[0067] In another specific embodiment of this application, the server further includes a second generation unit and a fifth sending unit. The second generation unit is used to, after determining the backup master nodes in each of the subspaces based on the first RSSI value, control the backup master nodes in the first subspace to generate a first backup master node label and control the backup master nodes in the second subspace to generate a second backup master node label. The first backup master node label refers to the label indicating that the backup master node in the first subspace is a backup master node in the first subspace, and the second backup master node label refers to the label indicating that the backup master node in the second subspace is a backup master node in the second subspace. The fifth sending unit is used to control the master nodes in the first subspace to send the first backup master node label and the data packet to the master nodes in the second subspace. In this embodiment, the backup master nodes in the first subspace can also generate a first backup master node label and forward the first backup master node label and the data packet together to the master nodes in the second subspace during the forwarding process, so that the backup master nodes in the second subspace will know the backup master nodes in the first subspace.
[0068] The server includes a processor and a memory. The first acquisition unit, the second acquisition unit, the first determination unit, and the first sending unit are all stored in the memory as program units. The processor executes the program units stored in the memory to implement the corresponding functions.
[0069] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can mitigate the performance degradation of mesh networks caused by broadcast flooding.
[0070] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0071] This application also provides a Mesh system, such as Figure 4 As shown, the system includes a mobile node, a server, a routing node, and multiple nodes. Each of the nodes is equipped with a BLE communication module. The mobile node communicates with the server, the server communicates with the routing node, the routing node communicates with the nodes, and the nodes communicate with each other via Bluetooth BLE technology. The server is used to execute any of the methods described above.
[0072] In the aforementioned system, since any of the methods described above are included, the method first obtains the first RSSI value sent by a non-target node in a subspace within a predetermined space to the target node. Then, it obtains the second RSSI value sent by a non-master node in a subspace to the master node. If the second RSSI value is less than a predetermined RSSI value, the backup master node in each subspace is determined based on the first RSSI value. Finally, if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, the backup master nodes in each subspace are determined, and the data packets are forwarded by controlling the backup master nodes in each subspace. This filters data packets in the network, reduces the problem of broadcast flooding, and thus improves the performance of the Mesh network.
[0073] This application also provides another Mesh system, such as Figure 5 As shown, the system includes a mobile node, a server, a routing node, and multiple nodes. Each of the nodes is equipped with a Wi-Fi communication module. The mobile node communicates with the server, the server communicates with the routing node, the routing node communicates with the nodes, and the nodes communicate with each other via Wi-Fi technology. The server is used to execute any of the methods described above.
[0074] In the aforementioned system, since any of the methods described above are included, the method first obtains the first RSSI value sent by a non-target node in a subspace within a predetermined space to the target node. Then, it obtains the second RSSI value sent by a non-master node in a subspace to the master node. If the second RSSI value is less than a predetermined RSSI value, the backup master node in each subspace is determined based on the first RSSI value. Finally, if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, the backup master nodes in each subspace are determined, and the data packets are forwarded by controlling the backup master nodes in each subspace. This filters data packets in the network, reduces the problem of broadcast flooding, and thus improves the performance of the Mesh network.
[0075] This invention provides a computer-readable storage medium storing a program thereon, which, when executed by a processor, implements the above-described multi-node networking processing method.
[0076] This invention provides a processor for running a program, wherein the program executes the multi-node networking processing method described above.
[0077] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:
[0078] Step S101: Obtain the first RSSI value sent by a non-target node in the subspace of the predetermined space received by the target node in the subspace of the predetermined space. The predetermined space includes multiple subspaces, including a first subspace and a second subspace. Each subspace includes a master node and multiple non-master nodes. The target node is a non-master node, and the non-target node is a non-master node in the subspace other than the target node.
[0079] Step S102: Obtain the second RSSI value sent by the non-master node in the subspace received by the master node.
[0080] Step S103: If the second RSSI value is less than the predetermined RSSI value, determine the backup master node in each of the subspaces based on the first RSSI value.
[0081] In step S104, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, the master node in the first subspace is controlled to forward the data packet to the master node in the second subspace, the master node in the second subspace is controlled to forward the data packet to the backup master node in the second subspace, and the backup master node in the second subspace is controlled to forward the data packet to the controlled node in the second subspace. The data packet is used to control the controlled node.
[0082] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.
[0083] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:
[0084] Step S101: Obtain the first RSSI value sent by a non-target node in the subspace of the predetermined space received by the target node in the subspace of the predetermined space. The predetermined space includes multiple subspaces, including a first subspace and a second subspace. Each subspace includes a master node and multiple non-master nodes. The target node is a non-master node, and the non-target node is a non-master node in the subspace other than the target node.
[0085] Step S102: Obtain the second RSSI value sent by the non-master node in the subspace received by the master node.
[0086] Step S103: If the second RSSI value is less than the predetermined RSSI value, determine the backup master node in each of the subspaces based on the first RSSI value.
[0087] In step S104, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, the master node in the first subspace is controlled to forward the data packet to the master node in the second subspace, the master node in the second subspace is controlled to forward the data packet to the backup master node in the second subspace, and the backup master node in the second subspace is controlled to forward the data packet to the controlled node in the second subspace. The data packet is used to control the controlled node.
[0088] To enable those skilled in the art to better understand the technical solution of this application, the technical solution and technical effects of this application will be described below in conjunction with specific embodiments.
[0089] Example
[0090] Multi-node networking processing methods are as follows: Figure 6 As shown, firstly, after the devices in the subspaces of the predetermined space are powered on, it is determined whether there is a user-defined master node in the subspace. Based on the current specified situation, the network performance is automatically optimized. Specifically, if the RSSI value of the master node is less than the predetermined RSSI value, a backup master node in each subspace is determined. Each backup master node in a subspace directly forwards data packets to be processed by devices that do not belong to this space to other subspaces. This can reduce the problem of low performance of the Mesh network caused by broadcast flooding.
[0091] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0092] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units described above can be 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 units or modules may be electrical or other forms.
[0093] The units described above 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 units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0094] Furthermore, the functional units in the various embodiments of the present invention 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.
[0095] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0096] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0097] 1) The multi-node networking processing method of this application first obtains the first RSSI value sent by a non-target node in a subspace within a predetermined space to the target node. Then, it obtains the second RSSI value sent by a non-master node in a subspace to the master node. If the second RSSI value is less than a predetermined RSSI value, the backup master node in each subspace is determined based on the first RSSI value. Finally, if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, the backup master node in each subspace is determined, and the data packet is forwarded by controlling the backup master node in each subspace. This filters the data packets in the network, reduces the problem of broadcast flooding, and thus improves the performance of the Mesh network.
[0098] 2) In the server of this application, the first acquisition unit acquires the first RSSI value sent by a non-target node in a subspace within a predetermined space to the target node in that subspace; the second acquisition unit acquires the second RSSI value sent by a non-master node in a subspace to the master node; the first determination unit, when the second RSSI value is less than a predetermined RSSI value, determines the backup master node in each subspace based on the first RSSI value; and the first sending unit, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, by determining the backup master node in each subspace and then controlling the backup master node in each subspace to forward data packets, data packets in the network can be filtered, mitigating the problem of broadcast flooding and thus improving the performance of the Mesh network.
[0099] 3) The Mesh system of this application, including any of the methods described above, firstly obtains the first RSSI value sent by a non-target node in a subspace within a predetermined space to the target node, then obtains the second RSSI value sent by a non-master node in a subspace to the master node. If the second RSSI value is less than a predetermined RSSI value, backup master nodes in each subspace are determined based on the first RSSI value. Finally, if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, by determining the backup master nodes in each subspace and then controlling the backup master nodes in each subspace to forward data packets, data packets in the network can be filtered, mitigating the problem of broadcast flooding and thus improving the performance of the Mesh network.
[0100] 4) Another Mesh system of this application, including any of the above-mentioned methods, firstly obtains the first RSSI value sent by a non-target node in a subspace within a predetermined space to the target node, then obtains the second RSSI value sent by a non-master node in a subspace to the master node. If the second RSSI value is less than a predetermined RSSI value, backup master nodes in each subspace are determined based on the first RSSI value. Finally, if the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. In this scheme, after the master node in the subspace has been determined, and the master node's RSSI value is less than the predetermined RSSI value, the backup master nodes in each subspace are determined, and the backup master nodes in each subspace are controlled to forward data packets. This filters data packets in the network, reduces the problem of broadcast flooding, and thus improves the performance of the Mesh network.
[0101] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A processing method for multi-node networking, characterized in that, include: The target node in a subspace of a predetermined space receives a first RSSI value sent by a non-target node in the subspace. The predetermined space includes multiple subspaces, including a first subspace and a second subspace. Each subspace includes a master node and multiple non-master nodes. The target node is one of the non-master nodes, and the non-target nodes are the non-master nodes in the subspace other than the target node. Obtain the second RSSI value sent by the non-master node in the subspace received by the master node; If the second RSSI value is less than the predetermined RSSI value, the backup master node in each of the subspaces is determined based on the first RSSI value; When the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. The data packet is used to control the controlled node. If the second RSSI value is less than a predetermined RSSI value, before determining the backup master node in each of the subspaces based on the first RSSI value, the method further includes: obtaining the average of the first RSSI values issued by a plurality of non-target nodes; obtaining a first difference between the average value and each of the first RSSI values to obtain a plurality of first differences; determining a predetermined RSSI value, wherein a second difference between the predetermined RSSI value and the average value is greater than a predetermined number of first differences, and the predetermined number is less than the total number of the plurality of first differences; obtaining the difference between the second RSSI value and the average value to obtain the difference of the second RSSI value; and determining whether the difference of the second RSSI value of the master node is less than the predetermined RSSI value. Determining the backup master node in each subspace based on the first RSSI value includes: determining the non-target node corresponding to the first RSSI value with the smallest first difference among multiple first differences as the backup master node; Both the backup master node and the non-backup master node in the second subspace receive the data packet sent by the master node in the first subspace. The non-backup master node in the second subspace does not respond to the data packet. Only after the backup master node in the second subspace forwards the data packet to the controlled node in the second subspace does the controlled node in the second subspace respond to the data packet.
2. The method according to claim 1, characterized in that, Based on the first RSSI value, the backup master node in each of the subspaces is determined, including: If at least two of the first differences are the same and the smallest, obtain the position information of at least two of the non-target nodes with the same first difference; Based on the multiple location information, determine the distance between the location of the non-target node and the target location; The non-target node corresponding to the minimum distance is determined as the backup master node, wherein the target position is the position of the target node or the center position of the subspace.
3. The method according to claim 1, characterized in that, When the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, it controls the master node in the first subspace to forward the data packet to the master node in the second subspace, controls the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and controls the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace. The data packet is used to control the controlled node, including: Determine the distance between the backup master node in the first subspace and the backup master node in the second subspace; Based on the distance, determine the transmission route for the backup master node in the first subspace to send the data packet to the controlled node in the second subspace; Using the aforementioned transmission route, the backup master node in the first subspace is controlled to send the data packet to the controlled node in the second subspace.
4. The method according to claim 3, characterized in that, Based on the distance, the transmission route for the backup master node in the first subspace to send the data packet to the controlled node in the second subspace is determined, including: If the distance is less than the distance threshold, a first transmission route is determined, and the data packets transmitted along the first transmission route pass sequentially through the master node in the first subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace. If the distance is greater than or equal to the distance threshold, a second transmission route is determined. Data packets transmitted along the second transmission route sequentially pass through the master node in the first subspace, the master node in the third subspace, the backup master node in the third subspace, the master node in the second subspace, the backup master node in the second subspace, and the controlled node in the second subspace. The distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance between the backup master node in the first subspace and the backup master node in the second subspace, and the distance between the backup master node in the first subspace and the backup master node in the third subspace is less than the distance threshold.
5. The method according to claim 1, characterized in that, After determining the backup master node in each of the subspaces based on the first RSSI value, the method further includes: Generate a prompt message, which indicates to the user that the second RSSI value of the master node is poor; The notification message is sent to the mobile node.
6. The method according to any one of claims 1 to 5, characterized in that, After determining the backup master node in each of the subspaces based on the first RSSI value, the method further includes: The system controls the backup master node in the first subspace to send a first broadcast packet to the non-backup master node in the first subspace, and controls the backup master node in the second subspace to send a second broadcast packet to the non-backup master node in the second subspace. The first broadcast packet includes first information, which includes the identifier of the backup master node in the first subspace, and the second broadcast packet includes second information, which includes the identifier of the backup master node in the second subspace. The backup master node in the second subspace is controlled to receive the data packet sent by the master node in the second subspace, and to determine whether the data packet is a data packet to be processed by the node in the second subspace; If it is determined that the data packet is not to be processed by a node in the second subspace, the backup master node in the second subspace is controlled not to forward the data packet.
7. The method according to any one of claims 1 to 5, characterized in that, After determining the backup master node in each of the subspaces based on the first RSSI value, the method further includes: Control the backup master node in the first subspace to generate a first backup master node label, and control the backup master node in the second subspace to generate a second backup master node label. The first backup master node label refers to the label of the backup master node in the first subspace as a backup master node in the first subspace, and the second backup master node label refers to the label of the backup master node in the second subspace as a backup master node in the second subspace. The master node in the first subspace is controlled to send the first backup master node tag and the data packet to the master node in the second subspace.
8. A server, characterized in that, include: The first acquisition unit is used to acquire the first RSSI value received by the target node in the subspace of the predetermined space from the non-target node in the subspace. The predetermined space includes multiple subspaces, including a first subspace and a second subspace. Each subspace includes a master node and multiple non-master nodes. The target node is one of the non-master nodes, and the non-target nodes are the non-master nodes in the subspace other than the target node. The second acquisition unit is used to acquire the second RSSI value sent by the non-master node in the subspace received by the master node; The first determining unit is configured to determine the backup master node in each of the subspaces based on the first RSSI value when the second RSSI value is less than a predetermined RSSI value. The first sending unit is configured to, when the master node in the first subspace receives a data packet sent by a non-master node in the first subspace, control the master node in the first subspace to forward the data packet to the master node in the second subspace, control the master node in the second subspace to forward the data packet to the backup master node in the second subspace, and control the backup master node in the second subspace to forward the data packet to the controlled node in the second subspace, wherein the data packet is used to control the controlled node; The server further includes a third acquisition unit, a fourth acquisition unit, a second determination unit, a fifth acquisition unit, and a third determination unit. The third acquisition unit is used to acquire the average value of the first RSSI values sent by multiple non-target nodes before determining the backup master node in each of the subspaces based on the first RSSI value when the second RSSI value is less than a predetermined RSSI value. The fourth acquisition unit is used to acquire the first difference between the average value and each of the first RSSI values, thereby obtaining multiple first differences; The second determining unit is used to determine a predetermined RSSI value, wherein a second difference between the predetermined RSSI value and the average value is greater than a predetermined number of first differences, and the predetermined number is less than the total number of multiple first differences; The fifth acquisition unit is used to acquire the difference between the second RSSI value and the average value, thereby obtaining the difference of the second RSSI value; The third determining unit is used to determine whether the difference between the second RSSI value of the master node and the predetermined RSSI value is less than the predetermined RSSI value; The first determining unit includes a first determining module, which is used to determine the non-target node corresponding to the first RSSI value with the smallest first difference among a plurality of first differences as the backup master node; Both the backup master node and the non-backup master node in the second subspace receive the data packet sent by the master node in the first subspace. The non-backup master node in the second subspace does not respond to the data packet. Only after the backup master node in the second subspace forwards the data packet to the controlled node in the second subspace does the controlled node in the second subspace respond to the data packet.
9. A Mesh system, characterized in that, include: The system includes a mobile node, a server, a routing node, and multiple nodes, each of which is equipped with a BLE communication module. The mobile node communicates with the server, the server communicates with the routing node, the routing node communicates with the nodes, and the nodes communicate with each other via Bluetooth BLE technology. The server is used to perform the method described in any one of claims 1 to 7.
10. A Mesh system, characterized in that, include: The system includes a mobile node, a server, a routing node, and multiple nodes, each of which is equipped with a Wi-Fi communication module. The mobile node communicates with the server, the server communicates with the routing node, the routing node communicates with the nodes, and the nodes communicate with each other via Wi-Fi technology. The server is used to perform the method described in any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program performs the method according to any one of claims 1 to 7.