A communication method based on bluetooth network, node and communication system thereof

By introducing a relay node mechanism into the Bluetooth network and dynamically selecting and adjusting relay nodes, the problem of excessive Bluetooth Mesh network throughput is solved and network performance and efficiency are optimized.

CN113259916BActive Publication Date: 2024-10-25ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010089201.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-12
Publication Date
2024-10-25
Estimated Expiration
2040-02-12

AI Technical Summary

Technical Problem

Due to the broadcast flooding mechanism of the Bluetooth Mesh network, the throughput is too high, resulting in too many invalid broadcast packets and affecting network performance.

Method used

By introducing a relay node mechanism in the Bluetooth network, if the adjacent node has a relay node, the relay node will be used to transmit data. If there is no relay node, a request to configure a relay message will be broadcast to select the gateway node to configure the relay node and configure the relay node according to preset conditions. Select the most suitable relay node and dynamically adjust the relay node to optimize the network topology.

Benefits of technology

It achieves flexible and minimum number of relay node configurations, reduces unnecessary broadcast packet forwarding, and improves network throughput and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113259916B_ABST
    Figure CN113259916B_ABST
Patent Text Reader

Abstract

The present invention provides a communication method based on a Bluetooth network, a node and a communication system thereof, and the communication method for a Bluetooth terminal node includes: if there is a relay node in an adjacent Bluetooth node, data communication is performed through the relay node; if there is no relay node in the adjacent Bluetooth node, a request to configure a relay message is broadcast to request a gateway node to select a configured relay node from the adjacent Bluetooth node. The communication method based on a Bluetooth network provided by the present invention, a node and a communication system thereof can realize flexible and minimum number configuration of relay nodes according to actual network topology scenarios, and prevent too many relay nodes in the network, resulting in too many forwarded broadcast packets and affecting network throughput.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a communication method based on a Bluetooth network, and a node and a communication system thereof. Background Art

[0002] In response to the application scenarios of IoT device communication, the Bluetooth Technology Alliance SIG released the Bluetooth Mesh protocol in 2017, which can realize mesh network topology, support multi-hop connection, and expand the coverage of Bluetooth network. It is particularly suitable for IoT device communication scenarios in smart homes and smart buildings. However, the Bluetooth Mesh protocol is based on the communication mechanism of broadcast flooding. For each Bluetooth Mesh node, a Bluetooth Mesh message is sent through a broadcast packet. After receiving this broadcast packet, all other nodes will forward it once until the destination address node receives this Bluetooth Mesh message. This will cause some invalid and unnecessary broadcast packets to be sent in the Bluetooth Mesh network, thereby affecting the throughput of the Bluetooth Mesh network. Summary of the invention

[0003] An object of the present invention is to provide a communication method based on a Bluetooth network, a node and a communication system thereof, so as to solve the problem of excessively high throughput of the existing Bluetooth network.

[0004] According to a first aspect of the present invention, there is provided a communication method based on a Bluetooth network, for use in a Bluetooth end node, the method comprising:

[0005] If there is a relay node among the adjacent Bluetooth nodes, data communication is performed through the relay node;

[0006] If there is no relay node among the neighboring Bluetooth nodes, a message requesting to configure a relay is broadcasted to request the gateway node to select a relay node to configure from the neighboring Bluetooth nodes.

[0007] Furthermore, the communication method described in the first aspect of the present invention further includes:

[0008] If a relay notification message sent by the adjacent Bluetooth node is received, the adjacent Bluetooth node is recorded as a relay node.

[0009] Furthermore, the communication method described in the first aspect of the present invention broadcasts the relay notification message.

[0010] According to a second aspect of the present invention, there is provided a communication method based on a Bluetooth network, for use in a Bluetooth gateway node, the method comprising:

[0011] Receiving a request configuration relay message; wherein the request configuration relay message includes: a propagation path set in sequence by an end node, an intermediate node, and a gateway node;

[0012] Selecting a relay node from the intermediate nodes of the propagation path according to a preset selection condition;

[0013] Sending a relay enable request to the relay node; wherein the relay enable request includes: address information of the end node.

[0014] Further, in the communication method described in the second aspect of the present invention, the preset selection condition includes:

[0015] Select a long-powered Bluetooth node;

[0016] Selecting a Bluetooth node with a high signal strength relative to the requesting Bluetooth node compared to other Bluetooth nodes;

[0017] Select a Bluetooth node that has been online longer than other Bluetooth nodes;

[0018] A Bluetooth node whose configuration relay message arrives earlier than other Bluetooth nodes is selected.

[0019] Furthermore, the communication method described in the second aspect of the present invention further includes:

[0020] If it is found that the relay node of the terminal node is changed, a child node list update message is sent to the original relay node.

[0021] According to a third aspect of the present invention, there is provided a communication method based on a Bluetooth network, for use in a Bluetooth relay node, the method comprising:

[0022] Receive a request configuration relay message;

[0023] If the relay function is enabled, the address information of the local node is added to the request configuration relay message, and the request configuration relay message is broadcasted;

[0024] If the relay function is not enabled, the address information of the local node is added only to the configuration request relay message that has not been forwarded, and the configuration request relay message that has not been forwarded is broadcasted.

[0025] Furthermore, the communication method described in the third aspect of the present invention further includes:

[0026] Enabling the relay function according to the relay enable request; wherein the relay enable request includes: address information of the end node;

[0027] Record the terminal node in the local node list;

[0028] A relay notification message is sent to the end node.

[0029] Furthermore, the communication method described in the third aspect of the present invention further includes:

[0030] If a child node list update message is received, the changed end node is deleted from the local node list according to the child node list update message.

[0031] Furthermore, the communication method described in the third aspect of the present invention further includes:

[0032] If the network connection fails, the relay function is turned off and a request to configure the relay message is broadcast to the adjacent Bluetooth nodes.

[0033] According to a fourth aspect of the present invention, there is provided a Bluetooth end node, comprising:

[0034] A communication module, used for performing data communication via a relay node if there is one among the adjacent Bluetooth nodes;

[0035] The broadcast module is used for broadcasting a message requesting to configure a relay if there is no relay node among the adjacent Bluetooth nodes, so as to request the gateway node to select a relay node to configure from the adjacent Bluetooth nodes.

[0036] Furthermore, the Bluetooth end node described in the fourth aspect of the present invention further includes:

[0037] The relay node recording module is used to record the adjacent Bluetooth node as a relay node if a relay notification message sent by the adjacent Bluetooth node is received.

[0038] Furthermore, in the Bluetooth end node described in the fourth aspect of the present invention, the broadcast module is also used to: broadcast and send the relay notification message.

[0039] According to a fifth aspect of the present invention, there is provided a Bluetooth gateway node, comprising:

[0040] A first receiving module is used to receive a request configuration relay message; wherein the request configuration relay message includes: a propagation path set in sequence by an end node, an intermediate node, and a gateway node;

[0041] A relay node configuration module, configured to select a relay node from the intermediate nodes of the propagation path according to a preset selection condition;

[0042] The relay node startup module is used to send a relay start request to the relay node; wherein the relay start request includes: the address information of the end node.

[0043] Further, in the Bluetooth gateway node described in the fifth aspect of the present invention, the preset selection condition includes:

[0044] Select a long-powered Bluetooth node;

[0045] Selecting a Bluetooth node with a high signal strength relative to the requesting Bluetooth node compared to other Bluetooth nodes;

[0046] Select a Bluetooth node that has been online longer than other Bluetooth nodes;

[0047] A Bluetooth node whose configuration relay message arrives earlier than other Bluetooth nodes is selected.

[0048] Further, the Bluetooth gateway node described in the fifth aspect of the present invention further includes:

[0049] The first updating module is used to send a child node list update message to the original relay node if it is found that the relay node of the terminal node is changed.

[0050] According to a sixth aspect of the present invention, there is provided a Bluetooth relay node, comprising:

[0051] A second receiving module, used for receiving a configuration request relay message;

[0052] Relay function module, used for:

[0053] If the relay function is enabled, the address information of the local node is added to the request configuration relay message, and the request configuration relay message is broadcasted;

[0054] If the relay function is not enabled, the address information of the local node is added only to the configuration request relay message that has not been forwarded, and the configuration request relay message that has not been forwarded is broadcasted.

[0055] Furthermore, in the Bluetooth relay node described in the sixth aspect of the present invention, the relay function module is further used for:

[0056] Enabling the relay function according to the relay enable request; wherein the relay enable request includes: address information of the end node;

[0057] Record the terminal node in the local node list;

[0058] A relay notification message is sent to the end node.

[0059] Furthermore, the Bluetooth relay node described in the sixth aspect of the present invention further includes:

[0060] The second updating module is configured to delete the changed terminal node from the local node list according to the child node list update message if a child node list update message is received.

[0061] Furthermore, the Bluetooth relay node described in the sixth aspect of the present invention further includes:

[0062] The reset module is used to turn off the relay function if the network connection fails, and broadcast a request to configure the relay message to the adjacent Bluetooth nodes.

[0063] According to the seventh aspect of the present invention, there is provided a Bluetooth communication network system, comprising: the Bluetooth end node described in the fourth aspect of the present invention, the Bluetooth gateway node described in the fifth aspect of the present invention and the Bluetooth relay node described in the sixth aspect of the present invention.

[0064] According to an eighth aspect of the present invention, there is provided a storage device storing computer program instructions for executing the method according to the present invention.

[0065] According to a ninth aspect of the present invention, there is provided a computing device, comprising: a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the computing device is triggered to execute the method described in the present invention.

[0066] The communication method based on Bluetooth network, its node and communication system provided by the present invention can realize flexible and minimum number configuration of relay nodes according to the actual network topology scenario, so as to prevent too many relay nodes in the network, resulting in too many forwarded broadcast packets and affecting the network throughput. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0068] Figure 1 A schematic diagram of a flow chart of a communication method based on a Bluetooth network according to a first embodiment of the present invention;

[0069] Figure 2 This is a schematic diagram of a Bluetooth network topology according to Embodiment 1 of the present invention;

[0070] Figure 3 A schematic diagram of a flow chart of a communication method based on a Bluetooth network according to a second embodiment of the present invention;

[0071] Figure 4 This is a schematic diagram of a Bluetooth network topology change according to Embodiment 2 of the present invention;

[0072] Figure 5 Schematic diagram of a communication method based on a Bluetooth network according to Embodiment 3 of the present invention;

[0073] Figure 6 This is a schematic diagram of the structure of a Bluetooth end node according to a fourth embodiment of the present invention;

[0074] Figure 7 This is a schematic diagram of the structure of a Bluetooth gateway node according to Embodiment 5 of the present invention;

[0075] Figure 8 This is a schematic diagram of the structure of a Bluetooth relay node according to Embodiment 6 of the present invention;

[0076] Fig. 9 This is a schematic diagram of the structure of a Bluetooth communication network system according to Embodiment 7 of the present invention;

[0077] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0078] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0079] Figure 1 FIG. 1 is a flow chart of a communication method based on a Bluetooth network according to Embodiment 1 of the present invention. Figure 1 As shown, a communication method based on a Bluetooth network provided in Embodiment 1 of the present invention is used for a Bluetooth end node, and the method includes:

[0080] Step S101: If there is a relay node among the adjacent Bluetooth nodes, data communication is performed through the relay node.

[0081] Step S102: If there is no relay node among the adjacent Bluetooth nodes, a message requesting to configure a relay is broadcasted to request the gateway node to select a relay node to configure from the adjacent Bluetooth nodes.

[0082] Figure 2 FIG. 1 is a schematic diagram of a Bluetooth network topology according to a first embodiment of the present invention. Figure 2As shown, the Bluetooth network of the embodiment of the present invention includes: a gateway node and node 1, node 2, node 3, node 4, and node 5. Each node can use a normal Bluetooth device, and the gateway node needs to meet the minimum network computing and storage requirements of the Bluetooth network. In the initial stage, there is only a gateway node in the Bluetooth network, and the gateway node has a relay function. First, node 1 applies to join the Bluetooth network. After node 1 joins the network, node 1 turns on the neighboring node scan neighbor_discover, and finds that there are nodes with relay functions among the surrounding adjacent nodes, that is, gateway nodes, and then chooses not to turn on the relay function. Afterwards, node 2 applies to join the Bluetooth network. Similarly, node 2 turns on the neighboring node scan neighbor_discover, and finds that there are nodes with relay functions among the surrounding adjacent nodes, that is, gateway nodes, and then chooses not to turn on the relay function. Afterwards, node 3 applies to join the Bluetooth network. Similarly, node 3 turns on the neighboring node scan neighbor_discover, and finds that there are nodes 1 and 2 among the surrounding adjacent nodes, but neither of them has a relay function. At this time, node 3 broadcasts a request to configure a relay message relay_config. At this time, both node 1 and node 2 will receive the request configuration relay message relay_config, and add the address information of node 1 and node 2 in the relay_config package respectively, and then forward it to the gateway node in the form of broadcast. After that, the gateway node will receive the request configuration relay message relay_config from node 1 and node 2 respectively. The relay_config message includes 2 paths:

[0083] Node 3 to Node 1 to Gateway Node;

[0084] Node 3 to Node 2 to Gateway Node.

[0085] The gateway node selects node 1 or node 2 to enable the relay function according to preset selection conditions, such as whether the power supply is long, signal strength, online time, request arrival time, etc. For example, the gateway node selects node 1 to enable the relay function, and sends a relay enable request enable_relay to node 1. The request contains the address information of node 3. After receiving the relay enable request enable_relay, node 1 enables the relay function and returns a success reply to the gateway node to successfully enable the relay function. In addition, node 1 maintains a list of child nodes locally, records that node 3 is the end node of relay node 1, and sends a relay notification message relay_notification to node 3, informing node 3 that its adjacent relay node is node 1. At this time, node 3 and node 2 are end nodes, and node 1 is a relay node. When node 3 performs data communication, it checks the local node list and finds that node 1 is its relay node, then node 3 performs data communication through node 1. If node 3 moves and cannot connect to node 1, node 3 performs neighbor_discover scanning of neighboring nodes and finds that there is no node 1 among the neighboring nodes, that is, there is no node with relay function. Then node 3 broadcasts a request to configure relay message, and sends the request to configure relay message to the gateway node through other nodes. The gateway node automatically configures the relay function to reconnect node 3 to the Bluetooth network.

[0086] Specifically, according to the newly added nodes, the end nodes can also become relay nodes. And due to the reduction of end nodes, the relay nodes can also become end nodes. That is, except for the gateway node, each network node can turn on the relay function and become a relay node or turn off the relay function and become an end node based on the instruction of the gateway node.

[0087] The communication method based on the Bluetooth network provided in the first embodiment of the present invention can realize the flexible and minimum configuration of the relay node roles according to the actual network topology scenario, so as to prevent too many relay nodes in the network, resulting in too many forwarding broadcast packets and affecting the network throughput.

[0088] Furthermore, the communication method of the first embodiment of the present invention further includes:

[0089] Step S103: If a relay notification message sent by the adjacent Bluetooth node is received, the adjacent Bluetooth node is recorded as a relay node.

[0090] Furthermore, the communication method of the first embodiment of the present invention further includes:

[0091] Step S104: broadcast and send the relay notification message.

[0092] Specifically, after node 3 receives the relay notification message, that is, after learning that node 1 has the relay function, it can inform other adjacent nodes. When other adjacent nodes of node 3 need to connect to the Bluetooth network, they can directly connect through node 1, avoiding other adjacent nodes from repeatedly sending request configuration relay messages, further reducing network throughput.

[0093] Figure 3 FIG. 1 is a flow chart of a communication method based on a Bluetooth network according to Embodiment 2 of the present invention. Figure 3 As shown, Embodiment 2 of the present invention provides a communication method based on a Bluetooth network, which is used for a Bluetooth gateway node. The method includes:

[0094] Step S201, receiving a request configuration relay message; wherein the request configuration relay message includes: a propagation path set in sequence by an end node, an intermediate node, and a gateway node.

[0095] Step S202: Select a relay node from the intermediate nodes of the propagation path according to a preset selection condition.

[0096] Step S203, sending a relay enable request to the relay node; wherein the relay enable request includes: address information of the end node.

[0097] like Figure 2 As shown, node 1 applies to join the Bluetooth network. After node 1 joins the network, node 1 starts the neighboring node scan neighbor_discover. It is found that there are nodes with relay functions, that is, gateway nodes, among the surrounding adjacent nodes, and then chooses not to turn on the relay function. Afterwards, node 2 applies to join the Bluetooth network. Similarly, node 2 starts the neighboring node scan neighbor_discover. It is found that there are nodes with relay functions, that is, gateway nodes, among the surrounding adjacent nodes, and then chooses not to turn on the relay function. Afterwards, node 3 applies to join the Bluetooth network. Similarly, node 3 starts the neighboring node scan neighbor_discover. It is found that there are nodes 1 and 2 among the surrounding adjacent nodes, but neither of them is a node with relay function. At this time, node 3 broadcasts and sends a request to configure relay message relay_config. At this time, node 1 and node 2 will receive the request to configure relay message relay_config, and add the address information of node 1 and node 2 to the relay_config package respectively, and then forward it to the gateway node in the form of broadcast. After that, the gateway node will receive the request to configure relay message relay_config from node 1 and node 2 respectively. The relay_config message includes 2 paths:

[0098] Node 3 to Node 1 to Gateway Node;

[0099] Node 3 to Node 2 to Gateway Node.

[0100] The gateway node selects node 1 or node 2 to enable the relay function according to preset selection conditions, such as whether the power supply is long, signal strength, online time, request arrival time, etc. For example, the gateway node selects node 1 to enable the relay function, and sends a relay enable request enable_relay to node 1. The request contains the address information of node 3. After receiving the relay enable request enable_relay, node 1 enables the relay function and returns a success reply to the gateway node to successfully enable the relay function. In addition, node 1 maintains a list of child nodes locally, records that node 3 is the end node of relay node 1, and sends a relay notification message relay_notification to node 3, informing node 3 that its adjacent relay node is node 1. At this time, node 3 and node 2 are end nodes, and node 1 is a relay node. When node 3 performs data communication, it checks the local node list and finds that node 1 is its relay node, then node 3 performs data communication through node 1.

[0101] like Figure 2 As shown, for example, node 4 applies to join the Bluetooth network, and node 4 also turns on neighbor_discover, a neighboring node scan, and finds that the surrounding neighbors are node 1, node 2, and node 3, among which node 1 turns on the relay function, and node 4 chooses not to turn on the relay function. Node 5 applies to join the Bluetooth network, and node 5 also turns on neighbor_discover, a neighboring node scan, and finds that the surrounding neighbors are node 2, node 3, and node 4, but none of them turn on the relay function. At this time, node 5 sends a request to configure the relay message relay_config to the gateway device, and the message is also sent in the form of a Bluetooth Mesh broadcast packet. At this time, node 2, node 3, and node 4 will all receive the request to configure the relay message relay_config, and add the address information of node 2, node 3, and node 4 to the relay_config packet respectively, and then forward it in the form of broadcast. Among them, the relay_config packet forwarded by node 4 will reach node 1, node 2, and node 3 respectively. At this time, node 2 and node 3 find that the relay_config packet has been forwarded once, and will not forward it again. Since node 1 is a relay node, it will add its own node address information to the relay_config packet again and broadcast it again. After that, the gateway node will receive four relay_config packets with different paths, namely:

[0102] 1) Node 5-Node>3->Node 1->Gateway Node;

[0103] 2) Node 5->Node 4->Node 1->Gateway Node;

[0104] 3) Node 5->Node 2->Gateway Node;

[0105] 4) Node 5->Node 2->1->Gateway Node.

[0106] The gateway node selects a suitable node to enable the relay capability based on the preset selection conditions. For example, the gateway node selects node 4 to enable the relay function, and sends a relay enable request enable_relay to node 4. The request contains the address information of node 5. When the relay enable request enable_relay passes through node 1, node 1 will first locally record that node 5 is the terminal child node of relay node 1. After receiving the relay enable request enable_relay, node 4 enables the relay capability and returns a success reply to the gateway node. In addition, node 4 maintains a list of child nodes locally, recording that node 5 is the terminal child node of relay node 4. At the same time, node 4 sends a relay notification message relay_notification to node 5, informing node 5 that its adjacent relay node is node 4.

[0107] The communication method based on the Bluetooth network provided in the second embodiment of the present invention can realize the flexible and minimum configuration of the relay node roles according to the actual network topology scenario, so as to prevent too many relay nodes in the network, resulting in too many forwarding broadcast packets and affecting the network throughput.

[0108] Further, in the communication method of the second embodiment of the present invention, the preset selection condition includes:

[0109] Select a long-powered Bluetooth node;

[0110] Selecting a Bluetooth node with a high signal strength relative to the requesting Bluetooth node compared to other Bluetooth nodes;

[0111] Select a Bluetooth node that has been online longer than other Bluetooth nodes;

[0112] A Bluetooth node whose configuration relay message arrives earlier than other Bluetooth nodes is selected.

[0113] Specifically, the priorities can be ranked from high to low as follows: long power supply, signal strength, online time, and arrival time of the request configuration relay message. The requesting Bluetooth node refers to the node that broadcasts the request configuration relay message. Figure 2As shown, the requesting Bluetooth node is node 3. If node 1 is a Bluetooth device with long-term power supply, node 1 is preferably enabled with the relay function. If the long power supply information cannot be obtained, the signal strength between node 3 that initiates the request and node 1 and node 2 is judged respectively. If the signal strength between node 1 and node 3 is stronger, node 1 is selected to enable the relay function. The signal strength judgment can be obtained by the RSSI data (Received Signal Strength Indication) of node 1. If the signal strength of node 1 and node 2 is the same or similar to that of node 3, the node with a longer online time is selected. If the online time cannot be obtained, the node with a shorter request arrival time is selected based on the arrival time of the request configuration relay message.

[0114] Furthermore, the communication method of the second embodiment of the present invention further includes:

[0115] Step S204: If it is found that the relay node of the terminal node is changed, a child node list update message is sent to the original relay node.

[0116] Figure 4 Schematic diagram of the Bluetooth network topology change according to the second embodiment of the present invention. Figure 4 As shown, assuming that node 5 has been moved, node 5 has sent data packets for three consecutive times without receiving an ACK reply, it is considered that there is no relay node in the surrounding area. Node 5 turns on neighbor_discover to scan neighboring nodes and finds that the only neighbor in the surrounding area is node 2, but node 2 does not have the relay capability turned on. At this time, node 5 broadcasts a request to configure the relay message relay_config. At this time, node 2 will receive the request to configure the relay message relay_config, and add the address information of node 2 to the relay_config package, and then forward it to the gateway node in the form of broadcast. At this time, the gateway node selects node 2 to enable the relay capability, and sends a relay enable request enable_relay to node 2. The relay enable request contains the address information of node 5. After receiving the enable_relay, node 2 turns on the relay capability and returns a success reply to the gateway node. In addition, node 2 maintains a list of child nodes locally, records that node 5 belongs to the terminal child node of relay node 2, and sends a relay_notification message to node 5 at the same time, informing node 5 that its neighboring relay node is node 2. At the same time, the gateway node sends a child node list update message to node 4, the message including the address information of node 5, informing node 4 to delete the address information of node 5 in the local child node list.

[0117] Figure 5 FIG. 1 is a flow chart of a communication method based on a Bluetooth network according to Embodiment 3 of the present invention. Figure 5As shown, Embodiment 3 of the present invention provides a communication method based on a Bluetooth network, which is used for a Bluetooth relay node. The method includes:

[0118] Step S301: receiving a message requesting configuration of a relay.

[0119] Step S302: If the relay function is enabled, the address information of the local node is added to the request configuration relay message, and the request configuration relay message is broadcasted.

[0120] Step S303: If the relay function is not enabled, the address information of the local node is added only to the configuration request relay message that has not been forwarded, and the configuration request relay message that has not been forwarded is broadcasted.

[0121] like Figure 2 As shown, node 5 applies to join the Bluetooth network. Similarly, node 5 turns on neighbor_discover to scan neighboring nodes, and finds that the surrounding neighbors are node 2, node 3 and node 4, but none of them have the relay function turned on. At this time, node 5 sends a request to configure the relay message relay_config to the gateway device, and the message is also sent in the form of a Bluetooth Mesh broadcast packet. At this time, node 2, node 3 and node 4 will all receive the request to configure the relay message relay_config, and add the address information of node 2, node 3 and node 4 to the relay_config package respectively, and then forward it in the form of broadcast. Among them, the relay_config package forwarded by node 4 will reach node 1, node 2 and node 3 respectively. At this time, node 2 and node 3 find that the relay_config package has been forwarded once, and will not forward it again. Because node 1 is a relay node, it will add its own node address information to the relay_config package again, and broadcast it again. After that, the gateway node will receive four relay_config packages with different paths, which are:

[0122] 1) Node 5-Node>3->Node 1->Gateway Node;

[0123] 2) Node 5->Node 4->Node 1->Gateway Node;

[0124] 3) Node 5->Node 2->Gateway Node;

[0125] 4) Node 5->Node 2->1->Gateway Node.

[0126] The gateway node selects a node to enable the relay capability based on the preset selection conditions. For example, the gateway node selects node 4 to enable the relay function, and sends a relay enable request enable_relay to node 4. The request contains the address information of node 5. When the relay enable request enable_relay passes through node 1, node 1 will first locally record that node 5 is the terminal child node of relay node 1. After receiving the relay enable request enable_relay, node 4 enables the relay capability and returns a success reply to the gateway node. In addition, node 4 maintains a list of child nodes locally, recording that node 5 is the terminal child node of relay node 4. At the same time, node 4 sends a relay notification message relay_notification to node 5, informing node 5 that its adjacent relay node is node 4.

[0127] Furthermore, the communication method of the third embodiment of the present invention further includes:

[0128] Step S304, enabling the relay function according to the relay enable request; wherein the relay enable request includes: address information of the end node;

[0129] Step S305, recording the end node in the local node list;

[0130] Step S306: Send a relay notification message to the end node.

[0131] Furthermore, the communication method described in Embodiment 3 of the present invention further includes:

[0132] If a child node list update message is received, the changed end node is deleted from the local node list according to the child node list update message.

[0133] like Figure 4As shown, assuming that node 5 has been moved, node 5 has sent data packets for three consecutive times without receiving an ACK reply, it is considered that there is no relay node in the surrounding area. Node 5 turns on neighbor_discover to scan neighboring nodes and finds that the only neighbor in the surrounding area is node 2, but node 2 does not have the relay capability turned on. At this time, node 5 broadcasts a request to configure the relay message relay_config. At this time, node 2 will receive the request to configure the relay message relay_config, and add the address information of node 2 to the relay_config package, and then forward it to the gateway node in the form of broadcast. At this time, the gateway node selects node 2 to enable the relay capability, and sends a relay enable request enable_relay to node 2. The relay enable request contains the address information of node 5. After receiving the enable_relay, node 2 turns on the relay capability and returns a success reply to the gateway node. In addition, node 2 maintains a list of child nodes locally, records that node 5 belongs to the terminal child node of relay node 2, and sends a relay_notification message to node 5 at the same time, informing node 5 that its neighboring relay node is node 2. At the same time, the gateway node sends a child node list update message to node 4, the message including the address information of node 5, informing node 4 to delete the address information of node 5 in the local child node list.

[0134] Furthermore, the communication method described in Embodiment 3 of the present invention further includes:

[0135] If the network connection fails, the relay function is turned off and a request to configure the relay message is broadcast to the adjacent Bluetooth nodes.

[0136] For example, Figure 2 As shown, if the position of node 4 changes and it cannot connect to node 1 and fails to connect to the network, node 4 turns off the relay function and broadcasts a request to configure a relay message as an end node to request the gateway node to configure a relay node for it through adjacent nodes and connect to the Bluetooth network.

[0137] Figure 6 FIG. 4 is a schematic diagram of the structure of a Bluetooth end node according to a fourth embodiment of the present invention. Figure 6 As shown, the Bluetooth end node of the fourth embodiment of the present invention includes: a communication module 41 and a broadcast module 42.

[0138] The communication module 41 is used for performing data communication through a relay node if there is one among the adjacent Bluetooth nodes.

[0139] The broadcast module 42 is configured to broadcast a message requesting to configure a relay if there is no relay node among the adjacent Bluetooth nodes, so as to request the gateway node to select a relay node to configure from the adjacent Bluetooth nodes.

[0140] Furthermore, the Bluetooth end node of the fourth embodiment of the present invention further includes: a relay node recording module 43.

[0141] The relay node recording module 43 is configured to record the adjacent Bluetooth node as a relay node if a relay notification message sent by the adjacent Bluetooth node is received.

[0142] Furthermore, in the Bluetooth end node described in the fourth aspect of the present invention, the broadcast module 42 is also used to: broadcast and send the relay notification message.

[0143] The Bluetooth end node of the fourth embodiment of the present invention is Figure 1 For details about the implementation device of the communication method shown in Figure 1 Embodiment 1 of the present invention will not be described in detail here.

[0144] Figure 7 FIG. 5 is a schematic diagram of the structure of a Bluetooth gateway node according to Embodiment 5 of the present invention. Figure 7 As shown, the Bluetooth gateway node 50 of the fourth embodiment of the present invention includes: a first receiving module 51, a relay node configuration module 52 and a relay node starting module 53.

[0145] The first receiving module 51 is used to receive a request configuration relay message; wherein the request configuration relay message includes: a propagation path set in sequence by an end node, an intermediate node, and a gateway node;

[0146] A relay node configuration module 52, configured to select a relay node from the intermediate nodes of the propagation path according to a preset selection condition;

[0147] The relay node activation module 53 is used to send a relay activation request to the relay node; wherein the relay activation request includes: the address information of the end node.

[0148] Further, in the Bluetooth gateway node of the fifth embodiment of the present invention, the preset selection condition includes:

[0149] Select a long-powered Bluetooth node;

[0150] Selecting a Bluetooth node with a high signal strength relative to the requesting Bluetooth node compared to other Bluetooth nodes;

[0151] Select a Bluetooth node that has been online longer than other Bluetooth nodes;

[0152] A Bluetooth node whose configuration relay message arrives earlier than other Bluetooth nodes is selected.

[0153] Furthermore, the Bluetooth gateway node of the fifth embodiment of the present invention further includes: a first updating module 54 .

[0154] The first updating module 54 is configured to send a child node list update message to the original relay node if it is found that the relay node of the terminal node is changed.

[0155] The Bluetooth gateway node of the fifth embodiment of the present invention is Figure 2 For details about the implementation device of the communication method shown in Figure 2 Embodiment 2 of the present invention will not be described in detail here.

[0156] Figure 8 FIG. 1 is a schematic diagram of the structure of a Bluetooth relay node according to Embodiment 6 of the present invention. Figure 8 As shown, a Bluetooth relay node 60 is provided, including: a second receiving module 61 and a relay function module 62.

[0157] The second receiving module 61 is used to receive a message requesting to configure a relay.

[0158] The relay function module 62 is used for:

[0159] If the relay function is enabled, the address information of the local node is added to the request configuration relay message, and the request configuration relay message is broadcasted;

[0160] If the relay function is not enabled, the address information of the local node is added only to the configuration request relay message that has not been forwarded, and the configuration request relay message that has not been forwarded is broadcasted.

[0161] Furthermore, in the Bluetooth relay node of the sixth embodiment of the present invention, the relay function module 62 is further used for:

[0162] Enabling the relay function according to the relay enable request; wherein the relay enable request includes: address information of the end node;

[0163] Record the terminal node in the local node list;

[0164] A relay notification message is sent to the end node.

[0165] Furthermore, the Bluetooth relay node of the sixth embodiment of the present invention further includes: a second updating module 63 .

[0166] The second updating module 63 is configured to delete the changed terminal node from the local node list according to the child node list update message if a child node list update message is received.

[0167] Furthermore, the Bluetooth relay node of the sixth embodiment of the present invention further includes: a reset module 64 .

[0168] The reset module 64 is used to disable the relay function if the network connection fails, and broadcast a message requesting to configure the relay to adjacent Bluetooth nodes.

[0169] The Bluetooth relay node of the sixth embodiment of the present invention is Figure 3 For details about the implementation device of the communication method shown in Figure 3 Embodiment 3 of the present invention will not be described in detail here.

[0170] Fig. 9 FIG. 1 is a schematic diagram of the structure of a Bluetooth communication network system according to Embodiment 7 of the present invention. Fig. 9 As shown, the Bluetooth communication network system of the seventh embodiment of the present invention includes: Figure 6 The Bluetooth end node 40 shown, Figure 7 The Bluetooth gateway node 50 and Figure 8 A Bluetooth relay node 60 is shown.

[0171] The Bluetooth communication network system of the seventh embodiment of the present invention adopts Figure 6 The Bluetooth end node 40 shown, Figure 7 The Bluetooth gateway node 50 and Figure 8 The Bluetooth relay node 60 shown in FIG. Figure 3 Embodiments 5, 6 and 7 of the present invention will not be described in detail here.

[0172] According to an embodiment of the present invention, a storage device is provided, wherein the storage device stores computer program instructions, and the computer program instructions are executed according to the method of the present invention.

[0173] In a typical configuration of the present invention, the storage device includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be a device of computer-readable instructions, data structures, programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0174] According to an embodiment of the present invention, a computing device is provided, comprising: a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the computing device is triggered to execute the method described in the present invention.

[0175] In a typical configuration of the present invention, computing devices each include one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0176] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0177] The computing devices referred to in the present invention include but are not limited to any electronic product that can perform human-computer interaction with a user (for example, human-computer interaction through a touchpad), such as smart phones, tablet computers and other mobile electronic products. The mobile electronic products can use any operating system, such as Android operating system, iOS operating system, etc.

[0178] It should be noted that the present invention can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In some embodiments, the software program of the present invention can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present invention (including related data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the present invention can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0179] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A communication method based on a Bluetooth network, characterized in that: End nodes for Bluetooth networks, including: If there is a relay node among the adjacent Bluetooth nodes, data communication is performed through the relay node; If there is no relay node among the adjacent Bluetooth nodes, a request to configure a relay message is broadcasted to request the gateway node to select a configured relay node from the adjacent Bluetooth nodes; wherein the request to configure a relay message includes a propagation path in which an end node, an intermediate node, and a gateway node are sequentially set; and the relay node is selected by the gateway node from the intermediate nodes included in the propagation path according to a preset selection condition; If a relay notification message sent by one of the adjacent Bluetooth nodes is received, the adjacent Bluetooth node is recorded as a relay node.

2. The communication method according to claim 1, characterized in that: Also includes: The relay notification message is sent by broadcasting.

3. A communication method based on a Bluetooth network, characterized in that: Gateway node for Bluetooth network, including: Receiving a request configuration relay message; wherein the request configuration relay message includes a propagation path and address information of an intermediate node, and the propagation path is a propagation path set sequentially by an end node, an intermediate node, and the gateway node; Selecting a relay node from the intermediate nodes included in the propagation path according to a preset selection condition; A relay enable request is sent to the relay node so that the relay node enables a relay function and records the end node in a node list; wherein the relay enable request includes address information of the end node.

4. The communication method according to claim 3, characterized in that: The preset selection conditions include: Select a long-powered Bluetooth node; Selecting a Bluetooth node with a high signal strength relative to the requesting Bluetooth node compared to other Bluetooth nodes; Select a Bluetooth node that has been online longer than other Bluetooth nodes; A Bluetooth node whose configuration relay message arrives earlier than other Bluetooth nodes is selected.

5. The communication method according to claim 3, characterized in that: Also includes: If it is found that the relay node of the terminal node is changed, a child node list update message is sent to the original relay node.

6. A communication method based on a Bluetooth network, characterized in that: Relay nodes for Bluetooth networks, including: Receive a request configuration relay message; If the relay function is enabled, the address information of the local node is added to the request configuration relay message, and the request configuration relay message is broadcasted; the address information is used to indicate the propagation path of the request configuration relay message; If the relay function is not enabled, the address information of the local node is added only to the request configuration relay message that has not been forwarded, and the request configuration relay message that has not been forwarded is broadcasted; Among them, the relay function is enabled by the relay node according to the relay enable request; the relay enable request is sent to the relay node after the gateway node selects the relay node from the intermediate node according to the preset selection conditions; the relay enable request includes the address information of the end node.

7. The communication method according to claim 6, characterized in that: Also includes: Record the terminal node in the local node list; A relay notification message is sent to the end node.

8. The communication method according to claim 7, characterized in that: Also includes: If a child node list update message is received, the changed end node is deleted from the local node list according to the child node list update message.

9. The communication method according to claim 7, characterized in that: Also includes: If the network connection fails, the relay function is turned off and a request to configure the relay message is broadcast to the adjacent Bluetooth nodes.

10. A Bluetooth end node, characterized in that: include: A communication module, used for performing data communication via a relay node if there is one among the adjacent Bluetooth nodes; A broadcast module, configured to broadcast a request to configure a relay message if there is no relay node among the adjacent Bluetooth nodes, so as to request the gateway node to select a configured relay node from the adjacent Bluetooth nodes; wherein the request to configure a relay message includes a propagation path in which an end node, an intermediate node, and a gateway node are sequentially set; and the relay node is selected by the gateway node from the intermediate nodes included in the propagation path according to a preset selection condition; The relay node recording module is used for recording a neighboring Bluetooth node as a relay node if a relay notification message sent by one of the neighboring Bluetooth nodes is received.

11. The Bluetooth end node according to claim 10, characterized in that: The broadcast module is further used for broadcasting the relay notification message.

12. A Bluetooth gateway node, characterized in that: include: A first receiving module is used to receive a request configuration relay message; wherein the request configuration relay message includes a propagation path and address information of an intermediate node, and the propagation path is a propagation path set in sequence by an end node, an intermediate node, and the gateway node; A relay node configuration module, configured to select a relay node from the intermediate nodes included in the propagation path according to a preset selection condition; The relay node startup module is used to send a relay enable request to the relay node so that the relay node enables the relay function and records the terminal node in the node list; wherein the relay enable request includes: the address information of the terminal node.

13. The Bluetooth gateway node according to claim 12, characterized in that: The preset selection conditions include: Select a long-powered Bluetooth node; Selecting a Bluetooth node with a high signal strength relative to the requesting Bluetooth node compared to other Bluetooth nodes; Select a Bluetooth node that has been online longer than other Bluetooth nodes; A Bluetooth node whose configuration relay message arrives earlier than other Bluetooth nodes is selected.

14. The Bluetooth gateway node according to claim 12, characterized in that: Also includes: The first updating module is used to send a child node list update message to the original relay node if it is found that the relay node of the terminal node is changed.

15. A Bluetooth relay node, characterized in that: include: A second receiving module, used for receiving a configuration request relay message; Relay function module, used for: If the relay function is enabled, the address information of the local node is added to the request configuration relay message, and the request configuration relay message is broadcasted; the address information is used to indicate the propagation path of the request configuration relay message; If the relay function is not enabled, the address information of the local node is added only to the request configuration relay message that has not been forwarded, and the request configuration relay message that has not been forwarded is broadcasted; Among them, the relay function is enabled by the relay node according to the relay enable request; the relay enable request is sent to the relay node after the gateway node selects the relay node from the intermediate node according to the preset selection conditions; the relay enable request includes the address information of the end node.

16. The Bluetooth relay node according to claim 15, characterized in that: The relay function module is also used to: Record the terminal node in the local node list; A relay notification message is sent to the end node.

17. The Bluetooth relay node according to claim 15, characterized in that: Also includes: The second updating module is configured to delete the changed terminal node from the local node list according to the child node list update message if a child node list update message is received.

18. The Bluetooth relay node according to claim 15, characterized in that: Also includes: The reset module is used to turn off the relay function if the network connection fails, and broadcast a request to configure the relay message to the adjacent Bluetooth nodes.

19. A Bluetooth communication network system, characterized in that: include: The Bluetooth end node according to any one of claims 10 to 11, the Bluetooth gateway node according to any one of claims 12 to 14, and the Bluetooth relay node according to any one of claims 15 to 18.

20. A storage device, characterized in that: The storage device stores computer program instructions for executing the method according to any one of claims 1 to 9.

21. A computing device, characterized in that include: A memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the computing device is triggered to execute the method according to any one of claims 1 to 9.