Network node access method, device, equipment and storage medium

By detecting surrounding relay nodes and dynamically adjusting the relay function of this node, the flexibility and stability of the low-power Bluetooth Mesh network in a dynamic environment are improved, which solves the network flexibility caused by the fixed setting of the Relay function in the existing technology. Restricted issues.

CN110913410BActive Publication Date: 2024-10-29MORNINGCORE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201911176858.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-26
Publication Date
2024-10-29
Estimated Expiration
2039-11-26

AI Technical Summary

Technical Problem

Due to the fixed settings of the Relay function during node deployment, the existing low-power Bluetooth Mesh network has limited network flexibility and cannot adapt to dynamically changing network environments, affecting coverage and communication efficiency.

Method used

By detecting whether there is a relay node in the surrounding area, if not, activating the relay function of this node, and monitoring whether there are other nodes in the surrounding area that have activated the relay function within a preset time period, dynamically adjusting the enabling status of the relay function. , to avoid flexibility limitations caused by manual selection or all enablement.

Benefits of technology

It realizes the dynamic adjustment of relay function according to the current network status, improves the flexibility and stability of the network, adapts to large-scale high-density networking environment, and reduces the risk of network failure and data transmission redundancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110913410B_ABST
    Figure CN110913410B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a network access method, device, equipment and storage medium for a network node. The method comprises: detecting whether there is a relay node around the node; if it is determined that there is no relay node, starting the relay function start process of the node, and monitoring whether there are other nodes around the node that have started the relay function start process within a preset time period; if it is determined that there are no other nodes around the node that have started the relay function start process, starting the relay function of the node. Through the technical solution of the present invention, the flexibility of the network can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to wireless communication networking technology, and in particular to a network access method, device, equipment and storage medium for a network node. Background Art

[0002] The popularity of low-power Bluetooth technology has expanded the application scope of Bluetooth and greatly promoted the continuous evolution of this technology. With the development of the Internet of Things, low-power Bluetooth technology faces the problems of a small number of network-accessible devices and a small coverage range. Based on this, the SIG organization has released the low-power Bluetooth Mesh protocol, also known as the SIG Mesh Profile. This protocol is based on the BLE underlying transmission protocol, enriches the networking form and transmission method of BLE devices, greatly expands the coverage range and network device capacity of low-power Bluetooth, and clears the obstacles for the widespread application of low-power Bluetooth in Internet of Things devices. In particular, due to its extremely low power consumption, the low-power Bluetooth Mesh network has obvious application advantages.

[0003] The existing Mesh networking method based on low-power Bluetooth follows the standard SIG Mesh Profile networking protocol and meets the networking needs in the field of low-power wireless transmission. It has the following main features:

[0004] 1) For a device to join the network, a Bluetooth device called "network configuration device" is required to complete the addition of "devices waiting to join the network" through a specific process.

[0005] 2) After joining the network, each node sends and receives data through the "managed flooding" method.

[0006] 3) In order to improve network coverage and enhance network flexibility, the protocol stipulates special functions that nodes can have. For example, devices with relay function can forward data received from surrounding nodes; devices with friend ship function can cache data sent to low-power devices. These functions are determined when the device joins the network.

[0007] In the prior art, when deploying nodes, the relay function of all nodes is generally enabled, or relay nodes are manually selected during deployment. However, for a dynamically changing network, changes in the positions of relay nodes will directly affect the coverage and communication efficiency of the network. Therefore, the existing network node deployment scheme limits the flexibility of the network. Summary of the invention

[0008] The embodiments of the present invention provide a network node access method, device, equipment and storage medium to improve the flexibility of the network.

[0009] In a first aspect, an embodiment of the present invention provides a method for a network node to access a network, including:

[0010] Detect whether there are relay nodes around this node;

[0011] If it is determined that the relay node does not exist, start the relay function activation process of the node, and monitor whether there are other nodes around the node that have activated the relay function activation process within a preset time period;

[0012] If it is determined that there are no other nodes around the node that have started the relay function activation process, the relay function of the node is activated.

[0013] In a second aspect, an embodiment of the present invention further provides a network access device for a network node, the device comprising:

[0014] Relay node detection module, used to detect whether there are relay nodes around this node;

[0015] A relay process startup module, used for starting the relay function startup process of the node if it is determined that the relay node does not exist, and monitoring whether there are other nodes around the node that have started the relay function startup process within a preset time period;

[0016] The relay function activation module is used to activate the relay function of the node if it is determined that there are no other nodes around the node that have activated the relay function activation process.

[0017] In a third aspect, an embodiment of the present invention further provides a wireless communication device, the device comprising:

[0018] one or more processors;

[0019] A memory for storing one or more programs;

[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the network access method for a network node as described in any one of the embodiments of the present invention.

[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a network access method for a network node as described in any one of the embodiments of the present invention.

[0022] The embodiment of the present invention detects whether there are relay nodes around the node. If it is determined that there are no relay nodes, the relay function activation process of the node is started, and monitors whether there are other nodes around the node that have activated the relay function activation process within a preset time period. If it is determined that there are no other nodes around the node that have activated the relay function activation process, the relay function of the node is activated. The advantage of the node dynamically enabling the relay function according to the current network status is utilized, and the problem of limiting network flexibility caused by directly enabling the relay function of each node entering the network or manually selecting the relay node in the prior art is solved, and the effect of improving network flexibility is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1a It is a flowchart of a method for network node access provided by Embodiment 1 of the present invention;

[0024] Figure 1b This is a schematic diagram of a large-scale high-density network applicable to the first embodiment of the present invention;

[0025] Figure 2a It is a flowchart of a method for network node access provided by Embodiment 2 of the present invention;

[0026] Figure 2b This is a schematic diagram of large-scale high-density networking data transmission applicable to the second embodiment of the present invention;

[0027] Figure 3 It is a schematic diagram of the structure of a network access device of a network node provided in Embodiment 3 of the present invention;

[0028] Figure 4 It is a structural diagram of a wireless communication device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0030] Embodiment 1

[0031] Figure 1a The present invention provides a flowchart of a network node access method provided in the first embodiment of the present invention. The method is applicable to the deployment of network nodes in large-scale wireless device networking. The method can be executed by a network node access device, which can be composed of hardware and / or software and can generally be integrated in a wireless communication device. Specifically, the method includes the following steps:

[0032] S110, detecting whether there are relay nodes around the node.

[0033] In this embodiment, the relay node may be a node with a relay function, also called a relay node. The network obtained by using the node access method of this embodiment may include at least two types of nodes: relay nodes and common nodes.

[0034] In the existing technology, in large-scale networking application scenarios based on low-power Bluetooth Mesh, the selection of Relay nodes can be manually specified, but this greatly reduces the flexibility of the network. When a Relay node fails or is removed from the network, it will cause network failure. Among them, a large-scale high-density network means that there are a large number of devices within one hop range of each device, but when the range of the entire network exceeds the range that a single device can cover, more than one hop is required to transmit data to devices at other nodes within the network range.

[0035] Based on the above status quo, in the process of large-scale dense networking based on low-power Bluetooth Mesh, a method is needed to realize the automatic deployment and update of Relay nodes in the low-power Bluetooth Mesh network, so that the deployment of Relay nodes is more suitable for the existing network status, reducing the impact of network flooding on data packet transmission, making the network more robust and stable, and at the same time being able to dynamically adjust the network topology according to the current network status and the location of the Realy node to improve the network robustness.

[0036] In order to achieve the above functions, in this embodiment, after the low-power Bluetooth Mesh node completes the network access process, each Mesh node that has joined the network needs to determine whether it needs to enable the Relay function. Specifically, it is first necessary to detect whether there are Relay nodes around the node, and if there are no Relay nodes, then consider whether to enable the Relay function of the node.

[0037] Optionally, detecting whether there are relay nodes around the current node includes: listening to heartbeat packets sent by relay nodes around the current node; if it is determined that the heartbeat packet is received and the received signal strength indication RSSI corresponding to the heartbeat packet is greater than a first set threshold, then determining that there are relay nodes around the current node; otherwise, determining that there are no relay nodes around the current node.

[0038] Exemplarily, when a Mesh node is connected to the network, it can first listen to whether there are any Relay nodes in the surrounding area that regularly send heartbeat packets. After each Relay node determines its own Relay role, it will regularly broadcast its own heartbeat packet. If no heartbeat packet is received, it can be determined that there is no relay node around the Mesh node, and the Mesh node can start the Relay function to start the process by itself; if a heartbeat packet is received, the newly added Mesh node will continue to determine whether the RSSI (Received Signal Strength Indication) of the received Relay heartbeat packet meets the set threshold, that is, the first set threshold, wherein the first set threshold is a minimum RSSI value, if the RSSI of the received heartbeat packet is less than or equal to the threshold, it can be considered that the Relay node is far away from the Mesh node, and the Mesh node can still start the Relay function to start the process by itself; if the RSSI is greater than the first set threshold, it means that the Relay node is near the Mesh node, and it can be determined that there is a relay node around the Mesh node, and there is no need to start its own Relay function.

[0039] In this embodiment, the heartbeat packet sent by the Relay node has two functions: one is to indicate its own existence, so that the surrounding Mesh nodes can search for it; the other is that when the surrounding nodes cannot search for the heartbeat packet of the Relay node within a certain time interval, the surrounding nodes can automatically start the Realy function to start the process to compete to become the Relay node, thereby maintaining the robustness and stability of the network.

[0040] Optionally, after detecting whether there is a relay node around the node, the method further includes: when the node joins the network, if it is determined that there is a relay node, caching the address of the relay node and using the relay node as the target relay node when the node sends data.

[0041] For example, when a Mesh node joins the network, if the Mesh node detects that there is a Relay node around the node, the Mesh node will cache the address of the Relay node and give priority to sending data to the Relay node when sending data.

[0042] Optionally, detecting whether there is a relay node around the node includes: when the node has joined the network, periodically detecting whether there is a relay node around the node.

[0043] Correspondingly, after detecting whether there is a relay node around the current node, the method further includes: if it is determined that there is a relay node, keeping the function of the current node unchanged.

[0044] Exemplarily, in order to improve network stability and increase network flexibility, this embodiment can also realize dynamic update of Relay nodes by periodically detecting whether there are Relay nodes around the Mesh node when the Mesh node has been connected to the network. Specifically, since the maintenance of Relay nodes can be performed based on heartbeat packets, if the Mesh node can periodically receive the heartbeat packets sent by the Relay node, it means that there are Relay nodes around at this time, and the current function of the Mesh node can be kept unchanged, that is, the Relay function of the node itself is not enabled. When the Mesh node cannot receive the heartbeat packet sent by the Relay node, it can randomly back off for a period of time, that is, wait for a period of time, and then re-select and determine the Relay node.

[0045] S120: If it is determined that there is no relay node, start the relay function activation process of the node, and monitor whether there are other nodes around the node that have started the relay function activation process within a preset time period.

[0046] In this embodiment, if no surrounding Relay nodes can be detected, that is, when it is determined that there are no Relay nodes, the Relay function startup process of this node can be started to enable the Relay function of this node. At the same time, in order to avoid the simultaneous activation of the Relay function that may be caused by the Mesh nodes entering the network at the same time, so that the distribution of Relay nodes in the network is more uniform and reasonable, when the Relay function startup process is started on this Mesh node, it can be monitored whether there are other nodes around this node that compete with it for the Relay function, that is, other nodes that have started the Relay function startup process.

[0047] Optionally, start the relay function of this node, including:

[0048] After a random backoff period, a notification to enable the relay function is broadcast to surrounding nodes.

[0049] The purpose of broadcasting the relay function activation notification is to announce to surrounding nodes that the node will activate the Relay function, so as to avoid repeated activation of the Relay function with other surrounding nodes that are connected to the network at the same time, so as to make the distribution of Relay nodes in the network more reasonable.

[0050] The benefit of random backoff is that it can stagger the sending of relay function activation notifications between nodes that access the network at the same time, so as to prevent other surrounding nodes that access the network at the same time from sending relay function activation notifications to this node at the same time, resulting in infinite competition for the Relay function between nodes.

[0051] Optionally, monitoring whether there are other nodes around the current node that have started the relay function startup process is performed within a preset time period, including: listening to the relay function startup notifications sent by other nodes around the current node within the preset time period; if it is determined that the relay function startup notification is received, and the RSSI corresponding to the relay function startup notification is greater than a second set threshold, then determining that there are other nodes around the current node that have started the relay function startup process; otherwise, determining that there are no other nodes around the current node that have started the relay function startup process.

[0052] Optionally, after monitoring whether there are other nodes that have started the relay function startup process around the current node within a preset time period, it also includes: if it is determined that there are other nodes that have started the relay function startup process, then after randomly backing off for a period of time, return to re-detect whether there are relay nodes around the current node.

[0053] Exemplarily, if it is determined that there is no relay node, the Mesh node can start the Relay function activation process after a random backoff for a certain period of time, that is, send a relay function activation notification to the surrounding devices, where the relay function activation notification can be, for example, a Realy activation broadcast packet. Specifically, after the Mesh node sends the Relay activation broadcast packet, it will perform a scanning operation by default within a period of time to confirm whether there are the same Mesh nodes around that are competing to activate the Relay function. If the Mesh node receives the Realy activation broadcast packet from the surrounding nodes during the scanning window, and the RSSI of the broadcast packet meets the threshold condition, that is, the second set threshold, it proves that the surrounding nodes are competing for the Relay function at the same time. At this time, the Mesh node can return to re-detect whether there are relay nodes around the node after a random backoff period of time, and re-execute the above process; if the Mesh node does not receive the Relay activation broadcast packet sent by other nodes during the scanning window, it means that the surrounding nodes have not activated the Realy function, and the competition of this node is successful. At this time, the Realy function of this node can be activated.

[0054] S130: If it is determined that there are no other nodes around the node that have started the relay function activation process, then activate the relay function of the node.

[0055] In this embodiment, if it is determined that there are no other nodes around the node that have started the relay function activation process, it means that the surrounding nodes have not activated the Realy function, and the competition of the node is successful. At this time, the Realy function of the node can be activated. Specifically, after the node officially activates the Realy function, it can broadcast and send heartbeat packets to the surrounding nodes to indicate its existence.

[0056] In this embodiment, when each node enters the network, it first determines whether there are Relay nodes in the vicinity, and then turns on the Relay function according to the method provided in this embodiment. In this way, as the network scale increases, the Relay nodes will be reasonably distributed in the network. In addition, adjacent Relay nodes can cache each other's addresses as the destination address for data transmission during multi-hop transmission. In this way, when forwarding data between Relay nodes, data can be sent only to the corresponding Relay node, avoiding flooding data transmission and reducing data redundancy during network transmission.

[0057] The schematic diagram of large-scale high-density networking implemented by the node access method provided in this embodiment is as follows: Figure 1b As shown in the figure, the node marked with "R" is a node with Relay function automatically selected according to the method provided in the present invention during the process of each node joining the network, that is, Relay node 1, and the other nodes not marked with "R" are nodes without Relay function, that is, ordinary nodes 2. The number of distributed Relay nodes increases with the continuous increase of network scale, but each ordinary node will be covered by at least one node with Relay function, thereby ensuring that each node can send or receive information to nodes outside its one-hop range, and also realizing the automatic selection function of Relay nodes.

[0058] The technical solution of this embodiment detects whether there are relay nodes around the node. If it is determined that there are no relay nodes, the relay function activation process of the node is started, and monitors whether there are other nodes around the node that have activated the relay function activation process within a preset time period. If it is determined that there are no other nodes around the node that have activated the relay function activation process, the relay function of the node is activated. The advantage of the node dynamically enabling the relay function according to the current network status is utilized, and the problem of limiting network flexibility caused by directly enabling the relay function of each node entering the network or manually selecting the relay node in the prior art is solved, and the effect of improving network flexibility is achieved.

[0059] Embodiment 2

[0060] Figure 2a The present invention provides a flow chart of a method for accessing a network node according to the second embodiment of the present invention. This embodiment is optimized based on the above embodiment and provides a preferred method for accessing a network node. The method specifically includes the following steps:

[0061] S201: Whether the node is connected to the network, if yes, execute S203; if no, execute S202.

[0062] S202: Continue to wait for joining the network.

[0063] S203: Whether the heartbeat packets sent by the relay nodes around the node are detected, if so, execute S204; if not, execute S206.

[0064] S204: Whether the RSSI corresponding to the heartbeat packet is greater than the first set threshold, if so, execute S205; if not, execute S206.

[0065] S205: Cache the address of the relay node, and use the relay node as the target relay node when the current node sends data.

[0066] S206. After a random backoff period, broadcast a relay function activation notification to surrounding nodes, and listen to relay function activation notifications sent by other nodes around the node within a preset time period.

[0067] S207: During a preset time period, whether a relay function activation notification sent by other nodes around the node is detected. If so, execute S208; if not, execute S210.

[0068] S208: Whether the RSSI corresponding to the relay function activation notification is greater than a second set threshold, if so, execute S209; if not, execute S210.

[0069] S209: Randomly back off for a period of time, and return to execute S203.

[0070] S210: Enable the relay function of the node and broadcast a heartbeat packet to surrounding nodes.

[0071] The technical solution of this embodiment, based on the above-mentioned embodiment, determines whether the relay function needs to be enabled in the vicinity of the node by listening to the heartbeat packet, and when enabling the relay function, determines whether the node has competed for the relay function by listening to the relay function enable notification sent by other surrounding nodes, so that the relay function of the node is officially enabled only when it is determined that the node has competed for the relay function. This solves the problem of limiting network flexibility caused by directly enabling the relay function of each node entering the network or manually selecting the relay node in the prior art, and achieves the effect of ensuring the rationality of the distribution of relay nodes in a dynamic network while improving network flexibility.

[0072] Based on the networking methods provided in the above embodiments, a typical data transmission process is listed below. Figure 2b As shown, the nodes with "R" are relay nodes, such as B node, C node, D node, E node, F node and G node; the nodes without "R" are common nodes, such as A node, I node and H node. The specific steps may include:

[0073] 1) Node A and Node I are common low-power Bluetooth Mesh nodes that have been connected to the network. Node A finds the nearby Node B as the preferred Relay node according to the network node access method provided in this embodiment. Similarly, Node I finds Node F and Node G as its Relay nodes.

[0074] 2) When node A sends data to node I, it first sends the data to node B. After broadcasting once, node B waits for response information from surrounding ordinary nodes. However, since node I is outside the one-hop range of node B, node B cannot receive any response message sent by node I after waiting for a certain period of time, and continues to execute the following steps;

[0075] 3) Node B continues to forward the data packet to the surrounding Relay nodes, and Node B forwards the data to the surrounding Relay nodes, such as Node E. Node E repeats similar operations in step 2) and then forwards the data to Node F again. Of course, Node B can also send data to Node C, which is then forwarded to Node D, which will not be repeated here;

[0076] 4) Since the I node is within the coverage of the F node with the Relay function, the F node will receive a response message sent by the I node after broadcasting the data once;

[0077] 5) When node I replies to node A with a response message, it follows similar operations to the above steps, except that when the response message is transmitted to a node that is not involved in the data packet transmission path, the node does not process it and directly discards it. For example, if the data is transmitted to node I via the path of node B-node E-node F, then when the response message is transmitted from node F to node D, node D will discard the response message.

[0078] 6) When node A receives the response message from node I, a typical data transmission operation is completed.

[0079] In summary, it should be noted that data forwarding between Relay nodes is sent through broadcast, that is, the Relay node will forward the data to all its adjacent Relay nodes. If a Relay node receives duplicate data, it can be discarded directly to avoid a large amount of duplicate data in the network. In addition, the principle of selecting one to send from ordinary nodes to Relay nodes is followed, that is, ordinary nodes can select one of the at least one Relay nodes in their cache as the target relay node for data transmission.

[0080] Embodiment 3

[0081] Figure 3This is a schematic diagram of the structure of a network access device for a network node provided by Embodiment 3 of the present invention. Figure 3 The network access device of the network node includes: a relay node detection module 310, a relay process starting module 320 and a relay function starting module 330. Each module is described in detail below.

[0082] A relay node detection module 310 is used to detect whether there are relay nodes around the node;

[0083] The relay process starting module 320 is used to start the relay function starting process of the node if it is determined that the relay node does not exist, and monitor whether there are other nodes around the node that have started the relay function starting process within a preset time period;

[0084] The relay function activation module 330 is used to activate the relay function of the node if it is determined that there are no other nodes around the node that have activated the relay function activation process.

[0085] The network access device of the network node provided in this embodiment detects whether there are relay nodes around the node. If it is determined that there are no relay nodes, the relay function activation process of the node is started, and monitors whether there are other nodes around the node that have activated the relay function activation process within a preset time period. If it is determined that there are no other nodes around the node that have activated the relay function activation process, the relay function of the node is activated. The advantage of the node dynamically enabling the relay function according to the current network status is utilized, and the problem of limiting network flexibility caused by directly enabling the relay function of each network access node or manually selecting a relay node in the prior art is solved, and the effect of improving network flexibility is achieved.

[0086] Optionally, the device further comprises:

[0087] The relay address cache module is used to detect whether there is a relay node around the node. When the node enters the network, if it is determined that there is a relay node, cache the address of the relay node and use the relay node as the target relay node when the node sends data.

[0088] Optionally, the relay node detection module 310 may be specifically used for:

[0089] When the node has been connected to the network, periodically check whether there are relay nodes around the node;

[0090] Accordingly, the device further comprises:

[0091] The node function maintaining module is used to detect whether there is a relay node around the node, and if it is determined that there is a relay node, keep the function of the node unchanged.

[0092] The relay node detection module 310 may be specifically used for:

[0093] Listen to the heartbeat packets sent by the relay nodes around this node;

[0094] If it is determined that the heartbeat packet is received, and the received signal strength indication RSSI corresponding to the heartbeat packet is greater than the first set threshold, it is determined that the relay node exists around the node;

[0095] Otherwise, it is determined that there is no relay node around the node.

[0096] Optionally, the relay process starting module 320 may be specifically used for:

[0097] After a random backoff period, a notification to enable the relay function is broadcast to surrounding nodes.

[0098] Optionally, the relay process starting module 320 may also be used to:

[0099] During the preset time period, listen to the relay function activation notifications sent by other nodes around this node;

[0100] If it is determined that the relay function activation notification is received, and the RSSI corresponding to the relay function activation notification is greater than the second set threshold, it is determined that there are other nodes around the node that have started the relay function activation process;

[0101] Otherwise, it is determined that there are no other nodes around the node that have started the relay function start process.

[0102] Optionally, the device further comprises:

[0103] The node backoff module is used to monitor whether there are other nodes around the current node that have started the relay function startup process within a preset time period. If it is determined that there are other nodes that have started the relay function startup process, it will randomly back off for a period of time and then return to re-detect whether there are relay nodes around the current node.

[0104] The above-mentioned product can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0105] Embodiment 4

[0106] Figure 4 A schematic diagram of the structure of a wireless communication device provided in Embodiment 4 of the present invention is shown in FIG. Figure 4 As shown, a wireless communication device provided in this embodiment includes: a processor 41 and a memory 42. The processor in the wireless communication device may be one or more processors. Figure 4Taking a processor 41 as an example, the processor 41 and the memory 42 in the wireless communication device may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0107] In this embodiment, the processor 41 of the wireless communication device integrates the network access device of the network node provided in the above embodiment. In addition, the memory 42 in the wireless communication device is a computer-readable storage medium, which can be used to store one or more programs, and the program can be a software program, a computer executable program and a module, such as the program instructions / modules corresponding to the network access method of the network node in the embodiment of the present invention (for example, the attached Figure 3 The modules in the network access device of the network node shown include: a relay node detection module 310, a relay process startup module 320 and a relay function activation module 330). The processor 41 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 42, that is, the network access method of the network node in the above method embodiment is implemented.

[0108] The memory 42 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 42 may further include a memory remotely arranged relative to the processor 41, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0109] Furthermore, when one or more programs included in the wireless communication device are executed by the one or more processors 41, the program performs the following operations:

[0110] Detect whether there are relay nodes around this node; if it is determined that there are no relay nodes, start the relay function startup process of this node, and monitor whether there are other nodes around this node that have started the relay function startup process within a preset time period; if it is determined that there are no other nodes around this node that have started the relay function startup process, start the relay function of this node.

[0111] Embodiment 5

[0112] Embodiment 5 of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by the network access device of the network node, the network access method of the network node provided in Embodiment 1 of the present invention is implemented, the method comprising: detecting whether there is a relay node around the node; if it is determined that the relay node does not exist, starting the relay function startup process of the node, and monitoring whether there are other nodes around the node that have started the relay function startup process within a preset time period; if it is determined that there are no other nodes around the node that have started the relay function startup process, starting the relay function of the node.

[0113] Of course, a computer-readable storage medium provided in an embodiment of the present invention, on which a computer program stored is executed, is not limited to implementing the method operations described above, but can also implement related operations in the network node access method provided in any embodiment of the present invention.

[0114] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a wireless communication device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0115] It is worth noting that in the embodiment of the network access device of the above-mentioned network node, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific name of each functional unit is only for the convenience of distinguishing each other, and is not used to limit the scope of protection of the present invention.

[0116] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A network access method for network nodes, characterized in that include: Detect whether there is a relay node around the node; wherein the relay node regularly broadcasts heartbeat packets; If it is determined that the relay node does not exist, start the relay function activation process of the node, and monitor whether there are other nodes around the node that have activated the relay function activation process within a preset time period; If it is determined that there are no other nodes around this node that have started the relay function and started the process, then the relay function of this node is enabled; Among them, the monitoring of whether there are other nodes around the node that have started the relay function opening process within the preset time period, including: During the preset time period, listen to the relay function activation notification sent by other nodes around this node; If it is determined that the relay function activation notification is received, and the RSSI corresponding to the relay function activation notification is greater than the second set threshold, it is determined that there are other nodes around the node that have started the relay function activation process; Otherwise, it is determined that there are no other nodes around this node that have started the relay function to start the process; Among them, after monitoring whether there are other nodes around the node that have started the relay function to start the process within the preset time period, it also includes: If it is determined that there are other nodes that have started the relay function and started the process, then after a random backing for a period of time, return to re-detect whether the relay node exists around the node; Among them, the detection of whether there is a relay node around the periphery of the node includes: Listen to the heartbeat packet sent by the relay node around this node; If it is determined that the heartbeat packet is received, and the received signal strength corresponding to the heartbeat packet indicates that the RSSI is greater than the first set threshold, it is determined that the relay node exists around the present node; Otherwise, it is determined that the relay node does not exist around this node; Among them, the process of starting the relay function of the node that starts the process includes: After a random backing for a period of time, the relay function activation notification is broadcast to the peripheral node.

2. The method according to claim 1, characterized in that After detecting whether there is a relay node around this node, it also includes: When this node joins the network, if it is determined that there is a relay node, the address of the relay node is cached and the relay node is used as the target relay node when the data is sent by the node.

3. The method according to claim 1, characterized in that Detect whether there are relay nodes around this node, including: If this node has been connected to the network, periodically detect whether there are relay nodes around this node; Correspondingly, after detecting whether there is a relay node around this node, it also includes: If it is determined that there is a relay node, the function of this node remains unchanged.

4. A network access device for a network node, characterized in that include: The relay node detection module is used to detect whether there is a relay node around the node; wherein the relay node regularly broadcasts heartbeat packets; A relay process starting module, used for starting the relay function starting process of the node if it is determined that the relay node does not exist, and monitoring whether there are other nodes around the node that have started the relay function starting process within a preset time period; The relay function enable module is used to enable the relay function of this node if it is determined that there is no other node around the node that has started the relay function opening process; Among them, the relay process startup module is specifically used to listen to the relay function startup notification sent by other nodes around the node within a preset time period; if it is determined that the relay function startup notification is received, and the RSSI corresponding to the relay function startup notification is greater than the second set threshold, it is determined that there are other nodes around the node that have started the relay function startup process; otherwise, it is determined that there are no other nodes around the node that have started the relay function startup process; Wherein, the device further comprises: A node backoff module is used to monitor whether there are other nodes around the node that have started the relay function start process within a preset time period. If it is determined that there are other nodes that have started the relay function start process, it will randomly back off for a period of time and then return to re-detect whether there are relay nodes around the node; Wherein, the relay node detection module is specifically used to listen to the heartbeat packet sent by the relay node around the node; if it is determined that the heartbeat packet is received, and the received signal strength indication RSSI corresponding to the heartbeat packet is greater than the first set threshold, it is determined that the relay node exists around the node; otherwise, it is determined that the relay node does not exist around the node; Among them, the relay process startup module is specifically used to broadcast the relay function activation notification to the peripheral node after a period of random backing.

5. A wireless communication device, characterized in that: The device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the network access method of a network node as claimed in any of claims 1-3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the network access method of the network node as claimed in any one of claims 1-3 is implemented.

Citation Information

Patent Citations

  • TDMA based long propagation delay wireless link time slot distribution method

    CN106658735A