Mesh networking method, device and equipment

By dynamically planning the timing and signal strength control of mesh networking, the randomness problem of traditional mesh networking is solved, and accurate topology generation and consistency verification are achieved, improving networking efficiency and user experience.

CN120897248APending Publication Date: 2025-11-04深圳市亿联无限科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511017247.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-11-04

AI Technical Summary

Technical Problem

Traditional mesh networking relies on signal strength and device location, resulting in random topology, which affects test consistency and reliability, and makes it difficult to accurately control network topology.

Method used

By selecting either a star or chain topology, the timing of WPS triggering for network devices is dynamically planned. The latency is determined by combining the average signal strength and volatility. Network devices are controlled to join the Mesh network according to predetermined rules. The topology consistency is verified through the HTTP interface, and timing is automatically adjusted or faulty connections are disconnected.

Benefits of technology

It achieves a high degree of determinism and predictability in Mesh network topology, improves networking efficiency and user experience, and ensures the consistency and reliability of topology in test scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120897248A_ABST
    Figure CN120897248A_ABST
Patent Text Reader

Abstract

The invention discloses a Mesh networking method, a Mesh networking device and Mesh networking equipment. The Mesh networking method comprises the following steps: selecting a topology type of a Mesh network to be networked; according to the topology type and the signal intensity in the current environment, dynamically planning a time sequence triggered by the WPS of the network equipment to be networked; and sending a WPS trigger signal at a specified time point according to the time sequence, and adding the network equipment to be networked into the Mesh network according to the trigger signal and a preset rule. By controlling the WPS triggering time sequence, a user can accurately generate the star-type or chain-type Mesh network topology without manually adjusting the position of equipment or performing complex configuration operation, so that the randomness defect of a traditional WPS networking mode is overcome, the generation of the network topology has high certainty and predictability, the networking efficiency is improved, and the network topology generation efficiency is improved. And the user experience is improved. Besides, the topological structure of the Mesh network can be accurately controlled, so that a specific topological structure can be reproduced in a test scene, and the test consistency and reliability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of wireless communication, and in particular to a Mesh networking method, device and equipment. BACKGROUND

[0002] Mesh networking technology is widely used in the field of wireless communication, but there is a randomness defect and a lack of topology determination generation capability in building a Mesh network through a traditional WPS (Wi-Fi Protected Setup) method. Specifically, the topology generation is highly dependent on signal strength (RSSI) and the physical location of the device, resulting in a random topology structure, which affects the consistency and reliability of the test. In the test and research work that requires precise control of the network topology, this randomness defect becomes an insurmountable obstacle. SUMMARY

[0003] The present application provides a Mesh networking method and device.

[0004] According to a first aspect of the present application, the present application provides a Mesh networking method, comprising:

[0005] selecting a topology type of a Mesh network to be networked, the topology type including a star topology and a chain topology;

[0006] dynamically planning a timing of a WPS trigger of a network device to be networked according to the topology type and a signal strength in a current environment;

[0007] sending a WPS trigger signal at a specified time point according to the timing, and the network device to be networked joining the Mesh network according to the trigger signal and a predetermined rule.

[0008] In the method involved in the present application, the dynamically planning a timing of a WPS trigger of a network device to be networked according to the topology type and a signal strength in a current environment comprises:

[0009] the network device to be networked sending a WPS probe request, the WPS probe request including a signal strength of the network device to be networked;

[0010] the network device to be networked receiving a response signal sent by a network device that has been networked;

[0011] determining a time delay of the WPS trigger of the network device to be networked according to the signal strength.

[0012] In the method involved in the present application, the determining a time delay of the WPS trigger of the network device to be networked according to the signal strength comprises:

[0013] acquiring a signal strength average, setting an adjustment weight of the signal strength average, obtaining a first weight value, determining a basic time delay according to the signal strength average and the first weight value;

[0014] acquiring a signal strength fluctuation rate, setting an adjustment weight of the signal strength fluctuation rate, obtaining a second weight value, determining a trigger time delay compensation according to the signal strength fluctuation rate and the second weight value;

[0015] the time delay triggered by the network device to be networked is determined according to the basic time delay and the trigger time delay compensation.

[0016] In the method, the WPS trigger signal is sent at a specified time point according to the time sequence, and the network device to be networked joins the Mesh network according to the trigger signal and a predetermined rule.

[0017] calculating a signal strength average of the network device to be networked arranged at each node;

[0018] when the topology type is a star topology, the network device to be networked with the strongest signal strength is selected as a center node, and a WPS trigger delay is started, the time delay of the network device to be networked joining the Mesh network is determined according to dynamic time sequence distribution, the time delay of the network device to be networked with strong signal strength is shorter than that of the network device to be networked with weak signal strength, and the network device to be networked with strong signal strength joins the Mesh network first.

[0019] when the topology type is a chain topology, nodes are arranged according to a signal strength gradient, and weak signal nodes are dynamically compensated, a first node is selected, a WPS trigger delay is started, the time delay of the network device to be networked joining the Mesh network is determined according to dynamic time sequence distribution, and it is verified whether the signal strength difference of adjacent nodes is less than a second threshold value, if yes, the network device to be networked joins the Mesh network.

[0020] In the method, the following steps are further included:

[0021] the connection relationship of the network device to be networked is acquired through an HTTP interface or a network communication protocol, it is verified whether the actually generated topology type is consistent with the selected topology type, if the verification is passed, the topology generation process is ended, otherwise, the time sequence is readjusted or the error connection is disconnected, the actually generated topology type is repaired, and the actually generated topology type is consistent with the selected topology type.

[0022] According to a second aspect of the present application, a Mesh network device is provided, comprising:

[0023] The selecting module is configured to select a topology type of the Mesh network to be networked, wherein the topology type comprises a star topology and a chain topology.

[0024] The triggering module is configured to dynamically plan a timing of a WPS trigger of the network device to be networked according to the topology type and a signal strength in a current environment.

[0025] The network module is configured to send a WPS trigger signal at a specified time point according to the timing, and the network device to be networked joins the Mesh network according to the trigger signal and a predetermined rule.

[0026] In the device, the triggering module comprises:

[0027] The requesting unit is configured to send a WPS probe request, wherein the WPS probe request comprises a signal strength of the network device to be networked.

[0028] The receiving unit is configured to receive a response signal sent by the network device that has been networked.

[0029] The triggering unit is configured to determine a time delay of the WPS trigger of the network device to be networked according to the signal strength.

[0030] In the device, the triggering unit is further configured to:

[0031] Obtain a mean value of the signal strength, set an adjustment weight of the mean value of the signal strength to obtain a first weight value, and determine a basic time delay according to the mean value of the signal strength and the first weight value.

[0032] Obtain a signal strength fluctuation rate, set an adjustment weight of the signal strength fluctuation rate to obtain a second weight value, and determine a trigger time delay compensation according to the signal strength fluctuation rate and the second weight value.

[0033] The time delay of the WPS trigger of the network device to be networked is determined according to the basic time delay and the trigger time delay compensation.

[0034] In the device, the network module comprises:

[0035] The calculating unit is configured to calculate a mean value of the signal strength of the network device to be networked arranged at each node.

[0036] The first processing unit is configured to, when the topology type is a star topology, select a network device with the strongest signal strength among the network devices to be networked as a center node, start a WPS trigger delay after the selection, determine a time delay for the network devices to be networked to join the Mesh network according to dynamic timing distribution, the network device with the stronger signal strength has a shorter time delay than the network device with the weaker signal strength, and the network device with the stronger signal strength joins the Mesh network first.

[0037] The second processing unit is configured to, when the topology type is a chain topology, arrange nodes according to a signal strength gradient, dynamically compensate for a weak signal node, start a WPS trigger delay after a first node is selected, determine a time delay for the network devices to be networked to join the Mesh network according to dynamic timing distribution, and verify whether the node meets a condition that a signal strength difference between adjacent nodes is less than a second threshold value, and if yes, the network device to be networked joins the Mesh network.

[0038] In the device, the device further comprises:

[0039] The verification module is configured to acquire a connection relationship of the network devices to be networked through an HTTP interface or a network communication protocol, verify whether an actually generated topology type is consistent with a selected topology type, if the verification is passed, end a topology generation process, or if the verification fails, readjust a timing or disconnect an error connection, repair the actually generated topology type, and make the actually generated topology type consistent with the selected topology type.

[0040] According to a third aspect of the present application, the present application provides a Mesh network device, which comprises a memory, a processor, and a Mesh network program stored in the memory and executable on the processor. When the Mesh network program is executed by the processor, the steps of the Mesh network method are implemented.

[0041] Due to the above technical solutions, the present application has the following beneficial effects:

[0042] The Mesh networking method, apparatus, and device provided in this application include: selecting the topology type of the Mesh network to be networked, including star topology and chain topology; dynamically planning the WPS triggering timing of the network devices to be networked based on the topology type and the signal strength in the current environment; and issuing a WPS trigger signal at a specified time point according to the timing sequence, so that the network devices to be networked join the Mesh network according to the trigger signal and predetermined rules. By controlling the WPS triggering timing, this application allows users to accurately generate star or chain Mesh network topologies without manually adjusting device positions or performing complex configuration operations. This not only overcomes the randomness defects of traditional WPS networking methods, making the generation of network topologies highly deterministic and predictable, but also improves networking efficiency and enhances user experience. Furthermore, because this application can precisely control the topology structure of the Mesh network, specific topologies can be reproduced in test scenarios, thereby improving the consistency and reliability of the tests. Attached Figure Description

[0043] Figure 1 A flowchart of one implementation of the Mesh networking method provided in this application embodiment;

[0044] Figure 2 A flowchart of a sub-step in the Mesh networking method is provided in one embodiment of this application.

[0045] Figure 3 A flowchart of a sub-step in the Mesh networking method provided in this application is shown in another implementation.

[0046] Figure 4 A flowchart of another implementation of the Mesh networking method provided in the embodiments of this application;

[0047] Figure 5 A schematic diagram of the program modules of the Mesh networking device provided in one embodiment of this application;

[0048] Figure 6 A schematic diagram of the program modules of the Mesh networking device provided in this application embodiment in another implementation. Detailed Implementation

[0049] The application will be described in further detail below with specific reference to the drawings. Like elements in different embodiments are denoted by like reference numerals. In the following description, numerous specific details are described to provide a thorough understanding of the application. However, it will be apparent to one skilled in the art that the application can be practiced without these specific details. In other instances, well-known methods have not been described in detail in order not to unnecessarily obscure the application. In the following description, numerous specific details are described to provide a thorough understanding of the application. However, one skilled in the art will recognize that the application can be practiced without these specific details. In some instances, well-known structures have not been described in detail in order not to unnecessarily obscure the application.

[0050] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various embodiments. Meanwhile, the steps or actions in the method description can also be sequentially adjusted or changed in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment, and do not mean that the sequence is necessary, unless otherwise stated that a certain sequence must be followed.

[0051] The serial numbers of components in this paper, such as "first", "second", etc., are only used to distinguish the described objects, and do not have any sequence or technical meaning.

[0052] In addition, the technical features and technical solutions described in this paper can also be combined in any appropriate manner in one or more embodiments. Those skilled in the art will easily understand that the order of steps or operations related to the embodiments provided herein can also be changed. Therefore, any sequence in the drawings and embodiments is only for the purpose of illustration, and does not imply that it is required to follow a certain order, unless it is explicitly stated that a certain order is required.

[0053] As shown in the figure, one embodiment of the Mesh networking method provided by the application includes the following steps: Figure 1

[0054] Step 101: Select the topology type of the Mesh network to be networked, and the topology type includes star topology and chain topology.

[0055] In one embodiment, the topology type of the Mesh network can be directly interacted with the user through the user interface, and the user can select the required Mesh network topology type (star or chain) and start the topology generation process.

[0056] Step 102: Dynamically plan the timing of the WPS trigger of the network device to be networked according to the topology type and the signal strength in the current environment.​

[0057] The signal strength in the current environment can be the signal strength of the network device to be networked. According to the topology type selected by the user and the RSSI value in the current environment, the timing of the WPS trigger is dynamically planned. In an embodiment, the RSSI value in the current environment can include the RSSI value of the network device to be networked.

[0058] The essence of the mesh network topology generation is to control the connection order between the network devices to be networked. The WPS trigger timing is controlled by programming delay, different WPS trigger delays are allocated to different nodes, the time sequence of starting network of each node is determined, and the connection is ensured to be established in the preset order, so as to forcibly constrain the mesh network topology structure. In addition, the timing is dynamically adjusted in combination with the RSSI value, so as to avoid that the weak signal node causes connection failure due to too long delay.

[0059] The application simplifies the network generation process of the mesh network by controlling the WPS trigger timing by programming. The user does not need to manually adjust the device position or perform complex configuration operation, and the mesh network generation of the specific topology structure can be realized, the network generation efficiency is improved, and the user experience is improved.

[0060] Step 103: According to the timing, a WPS trigger signal is sent at a specified time point, and the network device to be networked joins the mesh network according to the trigger signal and according to the predetermined rule.

[0061] The WPS network function of the mesh network device is triggered at the specified time point to form the topology structure required by the user.

[0062] The mesh network generation method provided by the embodiment of the application solves the problems of uncontrollable mesh network topology and weak signal dependence in the prior art by dynamically cooperating the WPS timing and the signal strength, provides a reliable technical means for scenes such as testing and scientific research which require accurate topology, and avoids the uncontrollability of the traditional random WPS network generation by combining the programmed delay control and the topology constraint mechanism, so as to realize the mesh network topology.

[0063] As shown in FIG. 1, the step 102 can specifically include the following steps: Figure 2

[0064] Step 1021: The network device to be networked sends a WPS probe request, and the WPS probe request includes the signal strength of the network device to be networked.

[0065] Step 1022: The network device to be networked receives a response signal sent by the network device already networked.

[0066] Step 1023: The WPS trigger delay of the network device to be networked is determined according to the signal strength. ​

[0067] In an embodiment, the response signal received by the network device to be networked can further include a channel busy index (CBI), the RSSI and the CBI are input to the policy engine, the policy engine can return a dynamic time delay to the network device to be networked, and the network device to be networked can initiate a WPS handshake with the networked device according to the time delay.

[0068] In an embodiment, step 1023 can further include:

[0069] obtaining a signal strength average, setting an adjustment weight of the signal strength average to obtain a first weight value, and determining a basic time delay according to the signal strength average and the first weight value;

[0070] obtaining a signal strength fluctuation rate, setting an adjustment weight of the signal strength fluctuation rate to obtain a second weight value, and determining a trigger time delay compensation according to the signal strength fluctuation rate and the second weight value;

[0071] The time delay of the network device to be networked triggered by WPS is determined according to the basic time delay and the trigger time delay compensation.

[0072] The first weight value and the second weight value can be set as needed. In an embodiment, the first weight value can be set to [65%, 75%], and the second weight value can be set to [25%, 35%]. In a specific embodiment, the first weight value can be set to 70%, and the second weight value can be set to 30%.

[0073] In another embodiment, the time delay of the network device to be networked triggered by WPS can also be determined according to the basic time delay, the trigger time delay compensation, and a time delay additional amount. The time delay additional amount can be determined by channel interference, an adjustment weight of the channel interference is set to obtain a third weight value, and the time delay additional amount is determined according to the channel interference and the third weight value. In an embodiment, the first weight value can be set to [55%, 65%], the second weight value can be set to [20%, 30%], and the third weight value can be set to [100%, 20%]. In a specific embodiment, as shown in Table 1, the first weight value can be set to 60%, the second weight value can be set to 25%, and the third weight value can be set to 15%.

[0074]

[0075] Table 1: Composition table of the time delay of the network device to be networked triggered by WPS

[0076] As shown in Figure 3 , step 103 can specifically include the following steps:

[0077] Step 1031: Calculate the average of the signal strength of the network devices to be networked at each node.

[0078] Step 1032: When the topology type is star topology, select the network device to be networked with the strongest signal strength as the center node, start the WPS trigger delay, determine the time delay of the network device to be networked to join the Mesh network according to the dynamic timing allocation, the time delay of the network device to be networked with strong signal strength is shorter than that of the network device to be networked with weak signal strength, and the network device to be networked with strong signal strength joins the Mesh network first. The generation condition of star topology can be referred to Table 2.

[0079]

[0080] Table 2: Generation condition of star topology

[0081] An example of constructing a star Mesh network topology is as follows:

[0082] Scenario description: The device includes 1 center node (Router) + 3 sub-nodes (Device A / B / C).

[0083] Objective: To force the generation of a star topology centered on the Router (all sub-nodes are connected only to the Router, and are not interconnected with each other).

[0084] Implementation steps:

[0085] Center node priority trigger: Router immediately starts WPS (delay = 0 seconds), broadcasts network signal.

[0086] Sub-node time-sharing trigger: Device A starts WPS after a delay of 1 second, Device B starts WPS after a delay of 2 seconds, and Device C starts WPS after a delay of 3 seconds.

[0087] Dynamic timing adjustment: If the RSSI of Device B is 20 dBm weaker than that of Device A, its delay is additionally increased by 0.5 seconds (to compensate for signal loss).

[0088] Effect verification: The connection result meets the expectation, forming a star topology.

[0089] Step 1033: When the topology type is chain topology, arrange the nodes according to the signal strength gradient and dynamically compensate for weak signal nodes, select the first node, start the WPS trigger delay, determine the time delay of the network device to be networked to join the Mesh network according to the dynamic timing allocation, verify whether the node meets the condition that the signal strength difference between adjacent nodes is less than a second threshold, and if so, the network device to be networked joins the Mesh network. The generation condition of chain topology can be referred to Table 3.

[0090]

[0091] Table 3 shows the generation conditions for the three-chain topology.

[0092] The following is an example of building a chained Mesh network topology:

[0093] Scenario description: The devices include Device 1 → Device 2 → Device 3 (signal strength decreases step by step).

[0094] The goal is to force the generation of a chain topology of Device 1-2-3 (Device 1 is only connected to Device 2, and Device 2 is only connected to Device 3).

[0095] Implementation steps:

[0096] Sequential triggering: Device 1 immediately starts WPS (delay = 0 seconds) and attempts to connect to Device 2. After Device 1 completes the connection, Device 2 starts WPS after a 1-second delay and attempts to connect to Device 3. Device 3 does not actively trigger WPS; it only responds to Device 2's connection request.

[0097] Signal strength constraint: If the RSSI of Device 2 and Device 3 is -65dBm (weak signal), then the delay of Device 2 is shortened to 0.5 seconds (reducing the risk of connection failure under weak signal).

[0098] Isolate interference: After completing the connection with Device 2, Device 1 immediately turns off WPS broadcast to avoid accidental connection with Device 3.

[0099] Results verification: The connection results meet expectations, forming a chain topology.

[0100] like Figure 4 As shown in the embodiments of this application, the Mesh networking method may further include the following steps:

[0101] Step 104: Obtain the connection relationship of the network devices to be networked through the HTTP interface or network communication protocol, and verify whether the actual generated topology type is consistent with the selected topology type. If the verification is successful, the topology generation process ends; otherwise, readjust the timing or disconnect the faulty connection to repair the actual generated topology type so that it is consistent with the selected topology type.

[0102] The connection relationship of the network device to be networked after networking can be acquired through an HTTP interface or a network communication protocol, it is verified whether the actually generated Mesh network topology is consistent with the target topology selected by the user, and the verification result is fed back to the user. If the verification passes, the topology generation process ends, and if the verification fails, the timing is adjusted or the incorrect connection is disconnected, the actual generated topology type is repaired, so that the actual generated topology type is consistent with the selected topology type.

[0103] The connection relationship of the device is acquired through an HTTP interface or a network communication protocol, and it is verified whether the actually generated topology is consistent with the target topology (for example: Controller→Agent A→Agent B). If the verification passes, the topology generation process ends. If the verification fails (for example, Agent B is incorrectly connected with Controller), the topology repair mechanism is triggered, and the timing is adjusted or the incorrect connection is disconnected.

[0104] Effect verification: the connection result meets the expectation, for example, a target chain topology (Controller→Agent A→Agent B) is formed, and Controller and Agent B are not directly connected, and then the process ends.

[0105] The process of switching the star topology to the chain topology is as follows:

[0106] Scenario description: the current Mesh network is a star topology, including one central node (Controller) and two sub-nodes (Agent A and Agent B). The target is to switch the topology to a linear topology (Controller→Agent A→Agent B), in which: Controller is connected with only Agent A, Agent A is connected with only Agent B, and Agent B is not directly connected with Controller.

[0107] Implementation steps:

[0108] Disconnecting the unintended connection: after receiving the instruction, the topology management module first disconnects the Mesh connection between Controller and Agent B (to avoid the connection between Controller and Agent B in the chain topology).

[0109] Dynamic timing planning: The dynamic timing planning module is called to calculate the WPS trigger timing based on the current RSSI value (such as the signal strength between Controller and Agent A, and between Agent A and Agent B). If the RSSI of Agent A and Agent B is a weak signal (such as -65dBm), then after Agent A triggers WPS, the WPS trigger delay of Agent B is shortened (for example, from 1 second to 0.5 seconds) to reduce the risk of connection failure under weak signal conditions.

[0110] Agent B only responds to connection requests from Agent A. Once the controller has completed the connection with Agent A, it disables WPS broadcasting to prevent accidental connection with Agent B.

[0111] The Mesh networking method provided in this application monitors connection status. Upon detecting an incorrect connection (such as an unexpected node connection or a topology that does not meet expectations), the system automatically triggers a disconnection mechanism to break the erroneous connection and retry the connection according to a preset topology, ensuring that the final generated topology meets expectations. The Mesh networking method provided in this application not only supports the accurate generation of star and chain topologies but also supports flexible switching between these two topologies. By programmatically controlling the restart or disconnection of specific child nodes, dynamic adjustments to the topology can be achieved to meet the needs of different application scenarios.

[0112] like Figure 5 As shown in the embodiment of this application, one implementation of the Mesh networking device includes a selection module 510, a triggering module 520, and a networking module 530.

[0113] Select module 510 is used to select the topology type of the Mesh network to be constructed. The topology types include star topology and chain topology.

[0114] In one implementation, the topology type of the Mesh network can be directly interacted with by the user through a user interface. The user can select the desired Mesh network topology type (star or chain) and start the topology generation process.

[0115] Trigger module 520 is used to dynamically plan the timing of WPS triggering of network devices to be networked based on topology type and signal strength in the current environment.

[0116] The signal strength in the current environment can be the signal strength of the network devices to be networked. Based on the topology type selected by the user and the RSSI value in the current environment, the timing of WPS triggering is dynamically planned. In one implementation, the RSSI value in the current environment can include the RSSI value of the network devices to be networked.

[0117] The essence of the Mesh network topology generation is to control the connection order between the network devices to be networked. The WPS trigger timing is controlled by a programmed delay, different WPS trigger delays are allocated to different nodes, the time sequence of starting the network of each node is determined, the connection is ensured to be established in the preset order, thereby the Mesh network topology structure is forcedly constrained. In addition, the timing is dynamically adjusted in combination with the RSSI value, and the connection failure of a weak signal node due to too long delay can be avoided.

[0118] The application simplifies the network forming process of the Mesh network by controlling the WPS trigger timing by programming. The user can realize the Mesh network generation of a specific topology structure without manually adjusting the device position or performing complex configuration operations, the network forming efficiency is improved, and the user experience is improved.

[0119] The network forming module 530 is configured to send a WPS trigger signal at a specified time point according to the timing, and the network devices to be networked join the Mesh network according to the trigger signal and in accordance with a predetermined rule.

[0120] The WPS network forming function of the Mesh network device is triggered at the specified time point to form the topology structure required by the user.

[0121] The Mesh network forming method provided by the application embodiment solves the problems of uncontrollable traditional Mesh network topology and weak signal dependence by controlling the WPS timing and dynamically cooperating with the signal strength, provides a reliable technical means for scenes such as testing and scientific research that require accurate topology, and avoids the uncontrollability of the traditional random WPS network forming by combining the programmed delay control and the topology constraint mechanism, and realizes the Mesh network topology.

[0122] As shown in Figure 6 The Mesh network forming device provided by the application embodiment has another embodiment, which includes a selection module 610, a trigger module 620, a network forming module 630, and a verification module 640.

[0123] The selection module 610 is configured to select a topology type of the Mesh network to be networked, and the topology type includes a star topology and a chain topology.

[0124] The trigger module 620 is configured to dynamically plan the timing of the WPS trigger of the network devices to be networked according to the topology type and the signal strength in the current environment.

[0125] The network forming module 630 is configured to send a WPS trigger signal at a specified time point according to the timing, and the network devices to be networked join the Mesh network according to the trigger signal and in accordance with a predetermined rule.

[0126] The Mesh networking device provided by the embodiment of the application, wherein the triggering module 620 can include a request unit 621, a receiving unit 622 and a triggering unit 623.

[0127] The request unit 621 is configured to send a WPS detection request, wherein the WPS detection request includes the signal strength of the network device to be networked.

[0128] The receiving unit 622 is configured to receive a response signal sent by the network device that has been networked.

[0129] The triggering unit 623 is configured to determine the WPS triggering time delay of the network device to be networked according to the signal strength.

[0130] In an embodiment, the response signal received by the network device to be networked can further include a channel busy index (CBI), and the RSSI and CBI are input to the strategy engine, and the strategy engine can return a dynamic time delay to the network device to be networked, and the network device to be networked can initiate a WPS handshake with the networked device according to the time delay.

[0131] In an embodiment, the triggering unit 623 can be further configured to:

[0132] obtain a signal strength average, set an adjustment weight of the signal strength average to obtain a first weight value, and determine a basic time delay according to the signal strength average and the first weight value;

[0133] obtain a signal strength fluctuation rate, set an adjustment weight of the signal strength fluctuation rate to obtain a second weight value, and determine a triggering time delay compensation according to the signal strength fluctuation rate and the second weight value;

[0134] The WPS triggering time delay of the network device to be networked is determined according to the basic time delay and the triggering time delay compensation.

[0135] The first weight value and the second weight value can be set as needed, and in an embodiment, the first weight value can be set to [65%, 75%], and the second weight value can be set to [25%, 35%]. In a specific embodiment, the first weight value can be set to 70%, and the second weight value can be set to 30%.

[0136] In another embodiment, the WPS trigger delay of the network device to be networked can also be determined according to the basic delay, the trigger delay compensation and the delay additional amount. The delay additional amount can be determined according to the channel interference and the third weight value by setting the adjustment weight of the channel interference and obtaining the third weight value. In an embodiment, the first weight value can be set as [55%, 65%], the second weight value can be set as [20%, 30%] and the third weight value can be set as [100%, 20%]. In a specific embodiment, as shown in Table I, the first weight value can be set as 60%, the second weight value can be set as 25% and the third weight value can be set as 15%.

[0137]

[0138]

[0139] Table I Composition table of WPS trigger delay of network device to be networked

[0140] The Mesh networking device provided by the embodiments of the present application, wherein the networking module 630 can include a calculation unit 631, a first processing unit 632 and a second processing unit 633.

[0141] The calculation unit 631 is configured to calculate the average signal strength of the network device to be networked arranged at each node.

[0142] The first processing unit 632 is configured to, when the topology type is a star topology, select the network device to be networked with the strongest signal strength as the center node, start the WPS trigger delay, determine the delay of the network device to be networked to join the Mesh network according to the dynamic timing distribution, the delay of the network device to be networked with strong signal strength is shorter than the delay of the network device to be networked with weak signal strength, and the network device to be networked with strong signal strength joins the Mesh network first. The generation condition of the star topology can be referred to Table II.

[0143]

[0144] Table II Generation condition of star topology

[0145] The example of constructing the star Mesh network topology is as follows:

[0146] Scenario description: The device includes 1 center node (Router) + 3 sub-nodes (Device A / B / C).

[0147] The goal is to force the generation of a star topology centered on the Router (all sub-nodes are connected only to the Router and are not interconnected with each other).

[0148] Implementation steps:

[0149] Central node priority trigger: Router initiates WPS immediately (delay = 0 seconds), broadcasts networking signal.

[0150] Sub-node time-sharing trigger: Device A initiates WPS after 1 second delay, Device B initiates WPS after 2 second delay, Device C initiates WPS after 3 second delay.

[0151] Dynamic timing adjustment: If RSSI of Device B is 20dBm weaker than that of Device A, its delay is additionally increased by 0.5 seconds (compensation for signal loss).

[0152] Effect verification: The connection result is as expected, forming a star topology.

[0153] The second processing unit 633 is configured to, when the topology type is a chain topology, arrange nodes according to a signal strength gradient, dynamically compensate for a weak signal node, initiate a WPS trigger delay after selecting a first node, determine a time delay for a network device to be networked to join a Mesh network according to dynamic timing distribution, verify whether the network device to be networked meets a condition that a signal strength difference between adjacent nodes is less than a second threshold value, and if so, the network device to be networked joins the Mesh network. The generation condition of the chain topology can be referred to Table 3.

[0154] Control dimension technology implementation and association with RSSI / delay

[0155] Table 3: Generation condition of chain topology

[0156] An example of constructing a chain Mesh network topology is as follows:

[0157] Scenario description: The devices include Device 1→Device 2→Device 3 (signal strength gradually attenuates).

[0158] Objective: To force generation of a chain topology of Device 1-2-3 (Device 1 only connects Device 2, and Device 2 only connects Device 3).

[0159] Implementation steps:

[0160] Sequential trigger: Device 1 initiates WPS immediately (delay = 0 seconds), attempts to connect Device 2. Device 2 initiates WPS after a 1 second delay after Device 1 completes connection, attempts to connect Device 3. Device 3 does not actively trigger WPS, and only responds to the connection request of Device 2.

[0161] Signal strength constraint: If the RSSI of Device 2 and Device 3 is -65dBm (weak signal), the delay of Device 2 is shortened to 0.5 seconds (to reduce the risk of connection failure under weak signal).

[0162] Isolation interference: Device 1 closes the WPS broadcast immediately after completing the connection with Device 2, avoiding misconnection with Device 3.

[0163] Effect verification: The connection result meets the expectation, forming a chain topology.

[0164] The Mesh networking device provided by the embodiment of the application, wherein the verification module 640 is configured to acquire the connection relationship of the network device to be networked through an HTTP interface or a network communication protocol, verify whether the actual generated topology type is consistent with the selected topology type, if the verification is passed, the topology generation process is ended, otherwise, the timing is adjusted or the error connection is disconnected, and the actual generated topology type is repaired to make the actual generated topology type consistent with the selected topology type.

[0165] The connection relationship of the network device to be networked after networking can be acquired through the HTTP interface or the network communication protocol, it is verified whether the actual generated Mesh network topology is consistent with the target topology selected by the user, and the verification result is fed back to the user. If the verification is passed, the topology generation process is ended, if the verification is not passed, the timing is adjusted or the error connection is disconnected, and the actual generated topology type is repaired to make the actual generated topology type consistent with the selected topology type.

[0166] The connection relationship of the device is acquired through the HTTP interface or the network communication protocol, it is verified whether the actual generated topology is consistent with the target topology (for example, Controller→Agent A→Agent B). If the verification is passed, the topology generation process is ended. If the verification is not passed (for example, Agent B is misconnected with Controller), the topology repair mechanism is triggered, the timing is adjusted or the error connection is disconnected.

[0167] Effect verification: The connection result meets the expectation, for example, the target chain topology (Controller→Agent A→Agent B) is formed, and the Controller and Agent B are not directly connected, and then the process is ended.

[0168] The process of switching the star topology to the chain topology is as follows:

[0169] Scenario description: Current Mesh network is star topology, containing one central node (Controller) and two sub-nodes (Agent A and Agent B). The goal is to switch the topology to linear topology (Controller→Agent A→Agent B), in which: Controller only connects to Agent A, Agent A only connects to Agent B, and Agent B does not directly connect to Controller.

[0170] Implementation steps:

[0171] Disconnecting unintended connection:

[0172] After receiving the instruction, the topology management module first disconnects the Mesh connection between Controller and Agent B (avoiding the connection between Controller and Agent B in the chain topology).

[0173] Dynamic timing planning:

[0174] The dynamic timing planning module is called to calculate the WPS trigger timing according to the current RSSI value (such as the signal strength between Controller and Agent A, and between Agent A and Agent B): if the RSSI between Agent A and Agent B is a weak signal (such as -65 dBm), then after Agent A WPS trigger, the WPS trigger delay of Agent B is shortened (for example, from 1 second to 0.5 second), in order to reduce the risk of connection failure under weak signal.

[0175] Agent B only responds to the connection request of Agent A. After Controller has completed the connection with Agent A, it avoids misconnection with Agent B, and then closes the WPS broadcast.

[0176] The Mesh networking method provided by the embodiments of the present application can monitor the connection state. Once an error connection (such as an unintended node connection or a topology structure that does not meet the expectation) is found, the system will automatically trigger a disconnection mechanism to disconnect the error connection, and then reattempt connection according to the preset topology structure, so as to ensure that the finally generated topology meets the expectation. The Mesh networking method provided by the embodiments of the present application not only supports the accurate generation of star and chain topologies, but also supports the flexible switching between the two topologies. Through program control restart or disconnection of a specific sub-node, the dynamic adjustment of the topology structure can be realized, and the needs in different application scenarios can be met.

[0177] The Mesh networking device provided by the embodiment of the present application comprises a memory, a processor, and a Mesh networking program stored in the memory and capable of running on the processor. When the Mesh networking program is executed by the processor, the steps of the Mesh networking method described above are implemented.

[0178] A computer readable storage medium comprises a program capable of being executed by a processor to implement the steps of the Mesh networking method described above.

[0179] Those skilled in the art can understand that all or part of the steps of the various methods in the above embodiments can be instructed by a program to be completed by relevant hardware. The program can be stored in a computer readable storage medium, which can include a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0180] The above is a further detailed description of the present application in combination with specific embodiments, and the specific implementation of the present application cannot be limited to these descriptions. For those skilled in the art to which the present application belongs, some simple deductions or substitutions can be made without departing from the concept of the present application.

Claims

1. A Mesh networking method, characterized in that, include: Select the topology type of the Mesh network to be constructed, including star topology and chain topology; Based on the topology type and the signal strength in the current environment, dynamically plan the timing of WPS triggering for the network devices to be networked; According to the timing sequence, a WPS trigger signal is sent at a specified time point, and the network device to be networked joins the Mesh network according to the trigger signal and a predetermined rule.

2. The method as described in claim 1, characterized in that, The step of dynamically planning the WPS triggering sequence of the network devices to be networked based on the topology type and the signal strength in the current environment includes: The network device to be networked sends a WPS probe request, and the WPS probe request includes the signal strength of the network device to be networked. The network device to be networked receives the response signal sent by the network device already networked; The WPS triggering delay of the network device to be networked is determined based on the signal strength.

3. The method as described in claim 2, characterized in that, The step of determining the WPS triggering delay of the network device to be networked based on the signal strength includes: Obtain the average signal strength, set the adjustment weight of the average signal strength to obtain a first weight value, and determine the base delay based on the average signal strength and the first weight value; Obtain the signal strength volatility, set the adjustment weight of the signal strength volatility to obtain a second weight value, and determine the trigger delay compensation based on the signal strength volatility and the second weight value; The latency of WPS triggering of the network device to be networked is determined based on the base latency and the trigger latency compensation.

4. The method as described in claim 3, characterized in that, The step of sending a WPS trigger signal at a predetermined time point according to the timing sequence, and the network device to be networked joining the Mesh network according to the trigger signal and predetermined rules, includes: Calculate the average signal strength of the network devices to be networked, which are set at each node; When the topology is a star topology, the network device with the strongest signal strength is selected as the central node and WPS triggers a delay. The delay of the network device joining the Mesh network is determined according to the dynamic timing allocation. The delay of the network device with the strongest signal strength is shorter than that of the network device with the weakest signal strength. The network device with the strongest signal strength joins the Mesh network first. When the topology type is a chain topology, the nodes are arranged according to the signal strength gradient and weak signal nodes are dynamically compensated. After selecting the first node, WPS trigger delay is started. The latency for the network device to be networked to join the Mesh network is determined according to the dynamic timing allocation. It is verified whether the signal strength difference between adjacent nodes is less than the second threshold. If so, the network device to be networked joins the Mesh network.

5. The method according to any one of claims 1 to 4, characterized in that, Also includes: The connection relationship of the network devices to be networked is obtained through the HTTP interface or network communication protocol. The actual generated topology type is verified to be consistent with the selected topology type. If the verification is successful, the topology generation process ends. Otherwise, the timing is readjusted or the faulty connection is disconnected to repair the actual generated topology type so that it is consistent with the selected topology type.

6. A Mesh networking device, characterized in that, include: The selection module is used to select the topology type of the Mesh network to be constructed, including star topology and chain topology; The triggering module is used to dynamically plan the timing of WPS triggering of the network devices to be networked based on the topology type and the signal strength in the current environment. The networking module is used to send a WPS trigger signal at a specified time point according to the timing sequence, and the network device to be networked joins the Mesh network according to the trigger signal and a predetermined rule.

7. The apparatus as claimed in claim 6, characterized in that, The triggering module includes: A request unit is used to send a WPS probe request, the WPS probe request including the signal strength of the network device to be networked; The receiving unit is used to receive response signals sent by network devices that have formed a network. The triggering unit is used to determine the WPS triggering delay of the network device to be networked based on the signal strength.

8. The apparatus as claimed in claim 7, characterized in that, The triggering unit is also used for: Obtain the average signal strength, set the adjustment weight of the average signal strength to obtain a first weight value, and determine the base delay based on the average signal strength and the first weight value; Obtain the signal strength volatility, set the adjustment weight of the signal strength volatility to obtain a second weight value, and determine the trigger delay compensation based on the signal strength volatility and the second weight value; The latency of WPS triggering of the network device to be networked is determined based on the base latency and the trigger latency compensation.

9. The apparatus as claimed in claim 8, characterized in that, The networking module includes: The calculation unit is used to calculate the average signal strength of the network devices to be networked, which are set at each node; The first processing unit is configured to, when the topology type is star topology, select the network device to be networked with the strongest signal strength as the central node and then start WPS trigger delay, determine the latency of the network device to be networked joining the Mesh network according to dynamic timing allocation, the latency of the network device to be networked with the strong signal strength is shorter than the latency of the network device to be networked with the weak signal strength, and the network device to be networked with the strong signal strength joins the Mesh network first. The second processing unit is used to arrange nodes according to signal strength gradient when the topology type is chain topology, dynamically compensate weak signal nodes, start WPS trigger delay after selecting the first node, determine the latency for the network device to be networked to join the Mesh network according to dynamic timing allocation, and verify whether the signal strength difference between adjacent nodes is less than a second threshold. If so, the network device to be networked joins the Mesh network.

10. A Mesh networking device, characterized in that, The Mesh networking device includes a memory, a processor, and a Mesh networking program stored in the memory and executable on the processor. When the Mesh networking program is executed by the processor, it implements the steps of the Mesh networking method as described in any one of claims 1 to 5.