CN111886843B - Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium - Google Patents

Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium Download PDF

Info

Publication number
CN111886843B
CN111886843B CN201880091315.8A CN201880091315A CN111886843B CN 111886843 B CN111886843 B CN 111886843B CN 201880091315 A CN201880091315 A CN 201880091315A CN 111886843 B CN111886843 B CN 111886843B
Authority
CN
China
Prior art keywords
node
low
power
path
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201880091315.8A
Other languages
Chinese (zh)
Other versions
CN111886843A (en
Inventor
朱洲
李志晨
刘延飞
潘阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wocao Technology Shenzhen Co ltd
Original Assignee
Wocao Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wocao Technology Shenzhen Co ltd filed Critical Wocao Technology Shenzhen Co ltd
Publication of CN111886843A publication Critical patent/CN111886843A/en
Application granted granted Critical
Publication of CN111886843B publication Critical patent/CN111886843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a low-power consumption Bluetooth network maintenance method, electronic equipment, a Bluetooth network and a medium, wherein the method comprises the steps that a current node acquires a low-power notification from a low-power node; if the low-power node is a relay equipment node of the current node, sending an off-network notification to equipment nodes in the communication range of the current node; and removing a first type of path and a second type of path corresponding to the low-power node in the current node, wherein the low-power node refers to a device node with the battery power lower than a low-power threshold, the first type of path is a path to the root node, and the second type of path is a path to the device node in the communication range. The maintenance process of the low-power-consumption Bluetooth network when the low-power nodes leave the network is achieved, and the influence of the low-power nodes leaving the network on the Bluetooth network is reduced.

Description

Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium
Technical Field
The present invention relates to bluetooth networking technologies, and in particular, to a method, an electronic device, a bluetooth network, and a medium for maintaining a bluetooth low energy network.
Background
Bluetooth Low Energy (BLE) is a new Bluetooth 4.0 specification that was introduced by Bluetooth SIG on 7/2010. The most important characteristics are very low power consumption and short distance. The traditional bluetooth networking connection method is in the form of piconets (piconets), each Piconet has only one master device, and the others are all slave devices, that is, one master device can communicate with 1 or no more than 7 bluetooth devices within the bluetooth communication range.
The Mesh working group of bluetooth in 7 months in 2017 provides a networking specification based on BLE, the specification is a Mesh network technology based on a Flooding protocol, for low-power-consumption nodes in a Mesh network topology structure provided by the specification, the low-power-consumption nodes can only communicate with friend nodes existing around, and more node roles are allocated in the use of the whole network.
The existing Bluetooth device networking usually adopts a tree-shaped networking method, some Bluetooth nodes are forced to leave the network when the electric quantity is exhausted, and other nodes in the Bluetooth network cannot adjust corresponding routing information in time, so that the nodes exhausted by the electric quantity leave the network, and the Bluetooth network is greatly influenced.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a low-power-consumption Bluetooth network maintenance method, electronic equipment, a Bluetooth network and a medium, which can solve the problem that the existing tree-shaped networking method can forcibly leave the network when some Bluetooth nodes are exhausted in electric quantity, and other nodes in the Bluetooth network can not adjust corresponding routing information in time, so that the node exhausted in electric quantity leaves the network to cause larger influence on the Bluetooth network.
The purpose of the invention is realized by adopting the following technical scheme:
the low-power-consumption Bluetooth network maintenance method comprises the following steps:
acquiring a low power notification from a low power node;
if the low-power node is a relay device node of the current node, sending an off-network notification to a device node in the communication range of the current node; and
and removing the first-class path and the second-class path corresponding to the low-power node in the current node.
The low-power-consumption Bluetooth network maintenance method comprises the following steps:
if the battery electric quantity is lower than a low electric quantity threshold value, sending an off-network request to a root node according to a first type of path so that the root node deletes the path corresponding to the low electric quantity node; and
and sending a low power notification to the corresponding equipment node according to the second type of path so as to enable the equipment node to adjust the routing information.
An electronic device comprising a memory, a processor, and a program stored in the memory, the program configured to be executed by the processor, the processor when executing the program implementing the steps of the bluetooth low energy network maintenance method described above.
The Bluetooth network comprises a root node and the electronic equipment.
A medium storing a computer program which, when executed by a processor, performs the steps of the above-described bluetooth low energy network maintenance method.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: the method comprises the steps that a first type of path which can be communicated with a root node and/or a second type of path which can be communicated with each equipment node in a communication range are stored in the equipment nodes which are accessed to the network, and when the battery power of a certain equipment node is lower than a low power threshold value, corresponding low power information is sent to the root node and the equipment nodes at different positions in the network, so that the root node and the corresponding equipment nodes can adjust routing information and carry out an off-network step conveniently; therefore, the maintenance process of the low-power-consumption Bluetooth network when the low-power-consumption nodes leave the network is realized, and the influence of the low-power-consumption nodes leaving the network on the Bluetooth network is reduced.
Drawings
FIG. 1 is a schematic diagram of a Bluetooth network;
fig. 2 is a schematic flowchart of a method for maintaining a bluetooth low energy network for low power nodes according to a first embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for maintaining a bluetooth low energy network for a current node according to a first embodiment of the present invention;
fig. 4 is a flowchart illustrating a bluetooth low energy network maintenance method for a current node according to a second embodiment of the present invention;
fig. 5 is a schematic flowchart of a network access operation performed by a current node according to a second embodiment of the present invention;
FIG. 6 is a schematic flow chart illustrating the generation of the first-type path and the second-type path by the current node in FIG. 5;
fig. 7 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
The present invention is further described with reference to the accompanying drawings and the detailed description, and it should be noted that, in the case of no conflict, any combination between the embodiments or technical features described below may form a new embodiment.
Fig. 1 is a schematic structural diagram of a bluetooth network, which is a Mesh network topology structure. The Mesh network formed by the low-power consumption Bluetooth devices, namely the BLE devices, does not need to be specially pre-configured when the BLE device nodes join the Mesh network, and all the BLE devices can serve as relay devices to forward messages in the Mesh network so as to enlarge the communication range of the BLE.
In fig. 1, a device node R is a root node, and device nodes a, B, C, D, E, F, G, H, I, J, and K are common device nodes; the device nodes are distinguished by unique physical addresses or other identification information. The communication between the device nodes is based on a protocol-defined GATT service that may employ two or more features for data transceiving between two device nodes. The root node R is used to manage and optimize the routing table of the entire Mesh network and to maintain the routing changes caused by the device nodes joining the network, leaving the network and moving the device nodes. In fig. 1, a dashed circle represents a BLE communication range of the device node a, and a user mobile terminal in the communication range, such as a mobile phone, a tablet, or a computer, may communicate with the device node a, and may also communicate with other common device nodes or root nodes R in the bluetooth network through the device node a.
As a preferred embodiment, the root node R is a non-power-consumption-sensitive low-power-consumption bluetooth device, for example, a BLE device powered by an AC power supply, which may be referred to as a first type BLE device; the other device nodes are generally power consumption sensitive bluetooth low energy devices, such as battery powered BLE devices, which are referred to as BLE devices of the second type.
The first type BLE device may be a device having only a single BLE communication function, or may be a device having both a BLE function and other external networks, such as Wi-Fi or Enternet, etc., network communication functions; a BLE device node of the second type is typically used to implement a single BLE communication function.
Example one
If the battery power of a certain device node is lower than the low power threshold, the device node is called a low power node.
As shown in fig. 1, the node I of the networked device is powered by a battery, and has a function of detecting the usage of battery power. In the using process, due to the consumption of the battery power, when the device node I detects that the battery power of the device node I is lower than a preset low power threshold, for example, 10%, the device node I becomes a low power node.
Fig. 2 is a flow chart of a method for maintaining a bluetooth low energy network for a low battery node.
The method for maintaining the low-power Bluetooth network for the low-power nodes comprises the following steps:
and step S110, sending an off-network request to the root node according to the first type after the battery power of the low-power node is lower than the low-power threshold.
In this embodiment, the network-accessed node stores the first type of path and/or the second type of path; the first type of path is a path from the accessed node to the root node, and the second type of path is a path from the accessed node to the equipment node in the communication range. Taking device node I as an example, it stores the first type of path I-D-R, and the second type of paths I-D, I-H, and I-J. Accordingly, a path corresponding to each first type of path, such as path R-D-I corresponding to first type of path I-D-R of device node I, is stored in the root node.
When the device node I detects that the battery power of the device node I is lower than the low power threshold, for example, 10%, the device node I, that is, the low power node, actively sends an off-network request of the device node I to the root node R according to the first type of path.
In a preferred embodiment, after the root node obtains the off-network request of the low-power node, the root node deletes the path corresponding to the low-power node.
Because the low-power node cannot meet the reliable communication requirement, the root node deletes the path corresponding to the low-power node, including the path from the root node to the low-power node and the path from the root node to another device node through the low-power node; such as deleting the path R-D-I corresponding to the low battery node I and the path R-D-I-J corresponding to the low battery node I. In the path R-D-I-J, the low power node I is used as a relay node between the device node J and the root node R, and cannot meet the communication requirement between the device node J and the root node R.
And step S120, after the battery power of the low-power node is lower than the low-power threshold, sending a low-power notification to the corresponding equipment node according to the second type of path, so that the equipment node adjusts the routing information.
The second type of path is a path from a low power node to the rest of the device nodes in the communication range of the low power node, and since the battery power of the low power node is lower than the low power threshold, the path may affect the communication between the low power node and the rest of the device nodes in the communication range of the low power node, and may also affect the communication between the low power node and the root node via a device node in the communication range of the low power node, and the communication between the low power node and the root node via a device node in the communication range of the low power node. Routing information of device nodes within the communication range of the low-power node needs to be adjusted.
Fig. 3 is a schematic flow chart illustrating a method for implementing a bluetooth low energy network maintenance by a device node that acquires a low power notification from a low power node. The low-power-consumption Bluetooth network maintenance method comprises the following steps:
step S210, the current node acquires a low power notification from the low power node.
And sending a low-power notification to the equipment nodes in the communication range of the low-power node according to the second type of path of the low-power node after the battery power of the low-power node is lower than the low-power threshold. And if the current node acquires the low-power notification from a certain low-power node, the current node is positioned in the communication range of the low-power node.
Step S220, if the low-power node is the relay equipment node of the current node, the current node sends an off-network notification to the equipment nodes in the communication range of the current node.
As a preferred embodiment, the low battery node is a relay device node of the current node, and is specifically determined according to the following rule:
the low-battery node is positioned on a first type path of the current node, and the hop count value of the low-battery node is smaller than the hop count value of the current node.
In this embodiment, the hop count value is used to distinguish whether the device node is a network-accessing device node or a non-network-accessing device node. If the hop count value of a certain equipment node is a negative number, the equipment node is represented as a non-network-accessing equipment node, namely a node which cannot communicate with the root node; and if the hop value of a certain equipment node is a non-negative number, the equipment node is a network access equipment node. The hop value can also distinguish the position of the Mesh network where the device node is located, namely the number of times of sending and forwarding when communicating with the root node. Taking the Mesh network shown in fig. 1 as an example, if the hop value of the root node R is defined as 0, the hop values of the device nodes B, C, and D are 1, the hop values of the device nodes a, E, F, G, H, and I are 2, and the hop values of the device nodes K and J are 3.
After acquiring a low-power notification of a certain low-power node, a current node inquires routing information of the current node; if the low-battery node is located on the first type of path of the current node, if the low-battery node I is located on the first type of path J-I-D-R of the current node J, and the hop count value of the low-battery node I is smaller than the hop count value of the current node, if the hop count value 2 of the low-battery node I is smaller than the hop count value 3 of the current node J, the current node determines that the low-battery node is the relay device node of the current node.
A device node within communication range of a low-battery node may need to communicate with the root node using the low-battery node as a relay device node, and thus stores a first type of path to the root node via the low-battery node. For example, the device node J needs to communicate with the root node R by using the low power node I as a relay device node, the device node J stores a first type of path jadr from the low power node I to the root node R, and the low power node I is a relay device node between the current node J and the root node R.
Since the battery level of the low-power node is lower than the low-power threshold and cannot satisfy the requirement as the relay device node between the current node and the root node, the current node temporarily becomes the non-network-connected device node. The current node may be subjected to an off-network operation, and an off-network notification may be sent to the device node within the communication range of the current node according to the second type of path in the routing information of the current node, so that the device node adjusts the routing information. If the battery power of the low-power node I is low, the low-power node I cannot be used as a relay device node between the current node J and the root node R, so that the current node J cannot send information to the root node through the first-type path J-I-D-R, and becomes a non-network-access device node. As a device node becomes a low-power node and affects other device nodes in its communication range, the current node becomes an unmanaged device node and may affect the communication of the device node in the communication range of the current node, so that the current node J needs to perform an off-network operation. And if the current node J has the equipment node D and the equipment node H in the communication range, the current node J sends an off-network notification to the equipment node D and the equipment node H, so that the equipment node D and the equipment node H can adjust respective routing information conveniently.
Step S230, if the low power node is a relay device node of the current node, the current node removes the first type path and the second type path corresponding to the low power node in the current node.
Since the current node is located within the communication range of the low-power node, the current node stores routing information corresponding to the low-power node. Taking the low-power node I as an example, the low-power node I stores second-type paths I-D, I-H and I-J; correspondingly, a second type of path D-I corresponding to I-D is stored in device node D, a second type of path H-I corresponding to I-H is stored in device node H, and a second type of path J-I corresponding to I-J is stored in device node J. Because the battery power of the low-power node is lower than the low-power threshold value, the communication requirement with the device node in the communication range cannot be met, so that the current node needs to remove a second type of path corresponding to the low-power node in the current node, and the current node cannot send information to the low-power node through the second type of path. In a preferred embodiment, the removing a certain path is specifically deleting the path.
Because the battery power of the low-power node is lower than the low-power threshold, the requirement of the node as a relay device between the current node and the root node cannot be met, so that the current node needs to remove a first type of path corresponding to the low-power node in the current node, and the current node cannot send information to the root node through the low-power node through the first type of path.
As a preferred embodiment, if the low power node is a relay device node of the current node, the current node removes the routing information stored by the current node, including the first type of path and the second type of path corresponding to the low power node, to become an isolated non-network-accessing node, so that the current node can perform network access operation again.
As a preferred embodiment, the method for maintaining the bluetooth low energy network comprises the following steps:
step S240, if the current node is the relay device node of the low power node, the current node removes the second type of path corresponding to the low power node in the current node.
As a preferred embodiment, the current node is a relay device node of the low battery node, and specifically is determined according to the following rule:
and the current node is positioned on the first-class path of the low-electricity node, and the hop count value of the low-electricity node is greater than that of the current node.
In a preferred embodiment, the low power notification sent by the low power node to each device node in the communication range of the low power node comprises a notification type flag; to identify whether each device node is located on the first type path of the low battery node. When the current node receives a low power notification sent by a certain low power node, whether the current node is located on the first type path of the low power node can be known, and the notification can obtain the hop count value of the low power device according to the low power notification. If the current node D is located on the first type path I-D-R of the low-power node I, and the hop value 2 of the low-power node I is larger than the hop value 1 of the current node D, the current node D is judged to be the relay equipment node of the low-power node I.
At this time, the low power node does not affect the communication between the current node and the root node, so that the current node only needs to remove the second type of path corresponding to the low power node in the current node, such as the second type of path H-I.
And step S250, if the low-power node is not the relay equipment node of the current node and the current node is not the relay equipment node of the low-power node, removing a second type of path corresponding to the low-power node in the current node.
If the low-power node is not on the first-class path of the current node, the current node is not on the first-class path of the low-power node, that is, the low-power node is only on the second-class path of the current node, and the current node is only on the second-class path of the low-power node, then the low-power node will not affect the communication between the current node and the root node, so that the current node only needs to remove the second-class path corresponding to the low-power node in the current node, such as the second-class path D-I.
According to the low-power-consumption Bluetooth network maintenance method provided by the embodiment of the invention, the first type of path which can be communicated with the root node and/or the second type of path which can be communicated with each device node in a communication range are stored in the device nodes which are accessed to the network, and when the battery power of a certain device node is lower than the low power threshold value, corresponding low power information is sent to the root node and the device nodes at different positions in the network, so that the root node and the corresponding device nodes can conveniently adjust routing information and carry out an off-network step; therefore, the maintenance process of the low-power-consumption Bluetooth network when the low-power-consumption nodes leave the network is realized, and the influence of the low-power-consumption nodes leaving the network on the Bluetooth network is reduced.
As a preferred embodiment, after the battery level of the low-level node is lower than the low-level threshold, the method further includes the following steps:
and step S130, deleting the first-type path and the second-type path in the low-power node routing information.
As a preferred embodiment, after the root node successfully confirms the off-network request of the low-power node, the low-power node deletes the stored routing information, including the first-type path and the second-type path, and completely off-network; the method and the device can avoid misjudgment caused by residual routing information when the network is accessed again, and avoid excessive useless information stored in the low-power node.
As a preferred embodiment, after the battery level of the low-level node is lower than the low-level threshold, the method further includes the following steps:
step S140, the low battery node sends a low battery prompt to the user terminal in the communication range.
And after the low-power node completes the steps, the low-power node enters a broadcasting state and stops other related work. And change the hop count value in its broadcast packet to a negative number, such as-1; and low power information is also included in the broadcast packet to identify that the device node has successfully left the network and the battery power is too low. When a user terminal supporting a Bluetooth function is located in a broadcast range of a low-power node, the low-power node sends a low-power prompt, namely a broadcast packet including low-power information, to the user terminal located in the communication range of the low-power node; thereby prompting the user that the terminal needs to replace the device battery.
As a preferred embodiment, since the low-power node sends the off-network request to the root node according to the first type of path, the root node may notify the user terminal located within a communication range of a certain device node in the bluetooth network of replacing the device battery through the device node located in the bluetooth network, or may notify the user terminal that the device battery needs to be replaced through other external networks, such as Wi-Fi or enterprise.
Example two
The method for maintaining the bluetooth low energy network shown in fig. 4 includes the following steps:
step S310, the current node acquires a low power notification from the low power node.
Step S320, if the low power node is a relay device node of the current node, the current node sends an off-network notification to a device node in the communication range of the current node.
Step S330, if the low-power node is a relay device node of the current node, the current node removes a first type of path and a second type of path corresponding to the low-power node in the current node.
Steps S310, S320, and S330 respectively correspond to steps S210, S220, and S230 in the first embodiment, and are not described again.
In this embodiment, after the current node sends the off-network notification to the device node in the communication range of the current node in step S330, the method further includes the following steps:
and step S340, the current node performs network access operation.
Since the battery level of the low-power node is lower than the low-power threshold and cannot satisfy the requirement as the relay device node between the current node and the root node, the current node temporarily becomes the non-network-connected device node. The current node may be off-grid operated. When the off-network operation is completed, the current node can perform the network access operation again and join the Bluetooth network.
As a preferred embodiment, as shown in fig. 5, the step S340 of performing a network access operation by the current node specifically includes the following steps:
step S341, the current node scans for device nodes within the communication range.
All the device nodes in the Mesh network are in a broadcast state, and the broadcast period can be determined according to the information of the use frequency, the use time period, the remaining battery power and the like of the device nodes in the routing table. All the device nodes in the network can forward data information in the network for the relay device, so that the application range of the low-power Bluetooth is expanded.
As shown in fig. 1, taking a device node a as a current node, which is a device node that needs to perform a network access operation, a dashed circle is a BLE communication range of the current node a. When the current node performs network access operation, the routing table information of the current node is checked, and if the routing table information in the current node A is empty, the equipment node A performs scanning and broadcasting within a certain time. In this embodiment, the current node a may scan to the surrounding device nodes B and E.
As a preferred embodiment, if no other device node exists in the scanning communication range of the current node, the current node switches to a broadcast state, and the broadcast information includes a network label, a device type, a battery level, a hop value, and the like. The network reference numbers are used for identifying and distinguishing a Mesh network formed by the BLE device nodes of the first type; the device type is used for identifying and distinguishing the device type of the device node, 0 represents a first type BLE device node, and 1 represents a second type BLE device node; the battery power identifier is used for identifying the battery power condition of the second type BLE device node and whether the battery power condition is lower than a preset usable threshold value, if the second type BLE device node detects that the battery power of the second type BLE device node is lower than the usable threshold value of the battery power, the flag position of the broadcast packet is set to be 1, otherwise, the flag position of the broadcast packet is set to be 0; the hop value can be used to distinguish whether the device node is a network-accessing device node or a non-network-accessing device node, and if the hop value is a negative number, it indicates that the device node is a non-network-accessing device node, that is, a node that cannot communicate with the root node. When the user terminal is located in the communication range of the current node A, acquiring the broadcast information of the current node A; and judging that the current node A is not successfully added into the Bluetooth network managed by the corresponding root node according to the broadcast information and is an isolated equipment node.
As a preferred embodiment, after scanning device nodes within a communication range, a current node acquires routing information from the device nodes within the communication range, where the routing information includes hop values of corresponding device nodes.
The device node B and the device node E that have already been networked are always in a broadcast state, and therefore the device node a can acquire their respective routing information from the device node B and the device node E.
In a preferred embodiment, if all the other device nodes in the current node scanning communication range are non-network-accessing device nodes, that is, nodes that cannot communicate with the root node, the node is switched to the broadcast state. When the user terminal is located in the communication range of the current node A, the fact that the current node A is not successfully added into the Bluetooth network can be judged according to the broadcast information of the current node A, and the current node A is an isolated equipment node.
Step S342, the current node generates a first type path and a second type path according to the routing information of the device node in the communication range.
The current node A scans other equipment nodes in the communication range of the current node A and acquires the routing information of the corresponding equipment nodes. The routing information may indicate whether the corresponding device node may be connected to the root node, and if so, the hop value is a positive number; the routing information may also represent a distance between the respective device node and the root node. In this embodiment, in the routing information of the nodes B and E of the network access device, the hop values are 1 and 2, respectively; indicating that the routing tables of the device nodes B and E contain the information of the root node R, so that the current node a can establish a connection with the root node through the device nodes B and E.
As a preferred embodiment, if the hop count value of a certain device node or some device nodes in the communication range of the current node a is a positive number, and if the hop count values of the device nodes B and E are 1 and 2 respectively, it indicates that the device nodes B and E include information of the root node R in the routing table; the current node a may establish a connection with the root node through such device nodes, e.g., device nodes B and E, i.e., may generate two paths, e.g., a-B-R and a-E-B-R, according to the routing information of such device nodes.
As a preferred embodiment, the hop count value of the relay device node is not greater than the hop count value of each device node in the communication range, that is, one or more device nodes with the smallest hop count value in the communication range of the current node are relay device nodes. Therefore, in this embodiment, the device node B is a relay device node.
The first type of path is a path through which the current node communicates with the root node through the relay device node within the communication range.
As a preferred embodiment, as shown in fig. 6, in step S342, the current node generates a first type of path and a second type of path according to the routing information of the device node in the communication range, which specifically includes the following steps:
step S3421, if the hop count value of the current node according to the device node in the communication range is not greater than the hop count values of the other device nodes in the communication range, the current node generates the first type path according to the device node.
And if the hop count value of the current node according to a certain equipment node in the communication range is not larger than the hop count values of other equipment nodes in the communication range, the equipment node is the equipment node with the smallest hop count value in the communication range of the current node, namely the relay equipment node. The current node generates a first type path according to the equipment node, specifically, the current node generates the first type path according to the routing information of the relay equipment node.
In this embodiment, the device node with the smallest hop count value is preferentially selected as the relay node between the current node a and the root node R, that is, the shorter path is selected as the first-type path a-B-R. The first type of path generated by current node A includes A-B-R and does not include A-E-B-R.
Step S3422, the current node generates a second type of path according to the information of each device node in the communication range, such as the physical address or the identification information.
The second type of path is a path through which the current node is communicated with each equipment node in the communication range. In this embodiment, the second type of path generated by the current node A includes A-E, and A-B.
Taking the device node I as the current node, if there are device nodes D, H, and J in the communication range, the first type of path generated by the device node I includes I-D-R, and the second type of path includes I-D, I-H, and I-J.
As a preferred embodiment, after the step S3421 generates the first type path, the method further includes the following steps:
step S3423, the current node sends an access notice to the root node according to the first type of path; and the root node acquires the access notification from the current node.
In this embodiment, the current node needs to be granted by the root node to access the bluetooth network whose main manager is the root node. Therefore, after the current node generates the first type path, an access notification needs to be sent to the root node. Specifically, the current node sends an access notification to the root node through a first type of path, such as a-B-R.
After the current node generates the first type path, the current node is firstly informed to the root node through the first type path to join the Mesh network of the root node. If the root node correctly receives the notice of the current node, an acknowledgement character ACK (acknowledgement) is sent to the current node, and if the access notice of the current node is not correctly received, a NAK (Negative acknowledgement) is sent to the current node to indicate Negative acknowledgement or non-acknowledgement. If the current node receives NAK or does not receive the response of the root node after a preset time, the current node fails to access the network, and the current node becomes an isolated node which does not access the network. If the current node receives the acknowledgement character ACK, the step of notifying the network is successfully completed, and then an access notification is sent to the root node through a first type of path, such as A-B-R.
As a preferred embodiment, if the current node receives NAK or does not receive a response from the root node after a predetermined time, it switches to the broadcast state. When the user terminal is located in the communication range of the current node A, the fact that the current node A is not successfully added into the Bluetooth network can be judged according to the broadcast information of the current node A, and the current node A is an isolated equipment node.
If the root node agrees with the access notification of the current node, generating a path corresponding to a first type path of the root node end and the current node according to the path of the access notification sent by the current node; if the current node A sends an access notification to the root node through ase:Sub>A first type path A-B-R, the root node generates ase:Sub>A path R-B-A corresponding to the first type path; the path is specifically a path from the root node to the current node through the corresponding device node.
Therefore, in step S342, after the current node generates the first type path according to the routing information of the device node in the communication range, the current node synchronizes the first type path to the root device node.
Step S3424, if the current node obtains the authorization of the root node, the first path and the second path are saved.
And if the root node agrees to carry out network authorization on the current node, namely the new equipment node to be accessed into the network, namely agrees to add the current node A into the network, sending an authorization instruction to the current node according to the generated path. And after the current node acquires the authorization of the root node, storing the first type of path and the second type of path.
As ase:Sub>A preferred embodiment, after the root node performs network authorization on the current node, it is required that the current node also successfully confirms to join the current node into the network, and ase:Sub>A path generated according to the first type of path, such as R-B-ase:Sub>A, sent by the current node for access notification is added to its own routing table information.
If the root node does not perform network authorization on the current node after acquiring the access notification from the current node, that is, the current node is not authorized to be added into the network, the network access of the current node fails, and the equipment node becomes an isolated node which is not accessed into the network.
And when the current node acquires the authorization from the root node and successfully confirms to join the Bluetooth network, the first type of path, such as A-B-R, and the second type of paths A-E and A-B are stored in a routing table of the current node.
As a further improvement of the embodiment of the present invention, the method for maintaining the bluetooth low energy network further includes the following steps:
step S301, if the communication between the current node and the root node through the relay equipment node fails, network access operation is carried out.
In this embodiment, the current node is moved from one location to another in the bluetooth network, and therefore the current node may not be able to communicate with the root node through its stored routing information, such as the first type of path; therefore, the current node needs to perform network access operation. The process of the network access operation is the same as the network access operation in step S340, and is not described herein again.
In a preferred embodiment, before the current node performs the network entry operation, the stored routing information is deleted.
As a preferred embodiment, the method for maintaining the bluetooth low energy network further comprises the following steps:
step S302, if the current node acquires the network access notification sent by the root node, network access operation is carried out.
In this embodiment, the root node fails to communicate with the current node because the current node is moved from one location to another in the bluetooth network.
Since the moved current node, for example, the device node B in fig. 1, is not in the bluetooth network of the root node R, the root node needs to perform a full network search on the moved current node B according to the hop count value of each device node in the Mesh network.
When the communication between the root node and the current node B fails, if the message sent for many times is not received, the root node R may perform the whole network search on the moved current node B according to the hop count values of the device nodes in the Mesh network. Because the hop count value of the root node R is 0, searching the current node B from the root node R, namely, the root node R is switched from a broadcasting state to a broadcasting and scanning state, and determining whether the current node B is found or not by comparing the MAC address of the equipment node found by scanning with the MAC address of the current node B; and if the root node R finds the current node B, the root node R stops the whole network search, and the root node R informs the current node B to carry out network access operation again according to the path R-B.
If the root node R does not find the current node B through the scanning, the root node R informs the next hop of equipment nodes according to the routing information stored by the root node R, namely the equipment nodes with the hop value of 1 search the current node B, the equipment nodes with the hop value of 1 are switched into a broadcasting state and a scanning state from the broadcasting state, whether the current node B is found or not is confirmed by comparing the MAC addresses of the equipment nodes found through scanning with the MAC address of the current node B, and if the equipment nodes with the hop value of 1 find the current node B, the equipment nodes with the hop value of 1 inform the root node R of finding the current node B and stop the whole network search of the current node B. And the root node R informs the current node B of carrying out network access operation again through the equipment node with the hop value of 1.
If all the device nodes with the hop value of 1 do not find the current node B, that is, the device nodes with the hop value of 1 all return a message that the current node B is not found to the root node R, the root node R notifies the device nodes with the hop value of 2 to search the current node B according to the routing information stored by the root node R. If the current node B is found by the equipment node with the hop number value of 2, the root node R informs the current node B to carry out network access operation again through the equipment node with the hop number value of 2.
If the current node B is not scanned after all the network equipment nodes search the current node B, the root node R informs the user terminal that the current node B is lost or the current node B is not in the communication range of the equipment nodes in the Bluetooth network.
As a preferred embodiment, the root node R may further send a notification to the user equipment to prompt that the current node B is not in the Mesh network, and the current node B needs to be triggered to perform a network access operation through a power switch or a mechanism similar to the power switch.
As a preferred embodiment, if the current node acquires the network access notification sent by the root node, the routing information of the current node is deleted, so as to avoid misjudgment caused by the remaining routing information when the current node accesses the network again, and avoid excessive useless information from being stored in the low-power node.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. With such an understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments, such as:
a medium storing a computer program which, when executed by a processor, performs the steps of the aforementioned bluetooth low energy network maintenance method.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like, as in example three.
EXAMPLE III
The electronic device shown in fig. 7 comprises a memory 200, a processor 300 and a program stored in the memory 200, the program being configured to be executed by the processor 300, the processor 300 implementing the steps of the above-mentioned bluetooth low energy network maintenance method when executing the program.
The electronic device in this embodiment and the method in the foregoing embodiment are based on two aspects of the same inventive concept, and the method implementation process has been described in detail in the foregoing, so that those skilled in the art can clearly understand the structure and implementation process of the system in this embodiment according to the foregoing description, and for the sake of brevity of the description, details are not repeated here.
According to the electronic device provided by the embodiment of the invention, the first type of path which can be communicated with the root node and/or the second type of path which is communicated with each device node in a communication range are stored in the device nodes which are accessed to the network, and when the battery power of a certain device node is lower than the low power threshold value, corresponding low power information is sent to the root node and the device nodes at different positions in the network, so that the root node and the corresponding device nodes can conveniently adjust routing information and carry out an off-network step; therefore, the maintenance process of the low-power-consumption Bluetooth network when the low-power-consumption node is off the network is realized, and the influence of the low-power-consumption node off the network on the Bluetooth network is reduced.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention should not be limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are intended to be covered by the claims.

Claims (17)

1. A low power consumption Bluetooth network maintenance method is characterized by comprising the following steps:
the current node acquires a low-power notification from the low-power node;
if the low-power node is a relay equipment node of the current node, sending an off-network notification to equipment nodes in the communication range of the current node;
removing a first type of path and a second type of path corresponding to the low-power node in the current node;
the low-power node is a device node with the battery power lower than a low-power threshold, the first-class path is a path to a root node, and the second-class path is a path to a device node in a communication range.
2. The bluetooth low energy network maintenance method according to claim 1, further comprising the steps of:
if the current node is the relay equipment node of the low-power node, removing a second type of path corresponding to the low-power node in the current node;
and if the low-power node is not the relay equipment node of the current node and the current node is not the relay equipment node of the low-power node, removing a second type of path corresponding to the low-power node in the current node.
3. The bluetooth low energy network maintenance method according to claim 2, wherein the low power node is a relay device node of a current node, and specifically comprises:
the low-power node is positioned on a first type path of the current node, and the hop count value of the low-power node is smaller than that of the current node;
the current node is a relay device node of the low-power node, and specifically includes:
and the current node is positioned on the first-class path of the low-electricity node, and the hop count value of the low-electricity node is greater than that of the current node.
4. The bluetooth low energy network maintenance method according to claim 1, wherein after sending the off-network notification to the device nodes within communication range of the current node, further comprising the steps of:
and the current node performs network access operation.
5. The bluetooth low energy network maintenance method according to claim 1, further comprising the steps of:
and if the communication between the relay equipment node and the root node fails, performing network access operation.
6. The bluetooth low energy network maintenance method according to claim 1, further comprising the steps of:
if the network access notification sent by the root node is obtained, network access operation is carried out;
the network access notification is sent after the root node fails to communicate with the current node and the current node is searched in the whole network.
7. The bluetooth low energy network maintenance method according to claim 6, further comprising the steps of:
and if the current node acquires the network access notification sent by the root node, deleting the routing information of the current node.
8. The bluetooth low energy network maintenance method according to any of claims 4 to 6, wherein the performing the network entry operation specifically comprises the steps of:
the current node scans equipment nodes in a communication range;
the current node generates a first type path and a second type path according to the routing information of the equipment node in the communication range;
the first type of path is a path which is communicated with a root node through a relay equipment node in the communication range; the second type of path is a path communicating with each device node within the communication range.
9. The bluetooth low energy network maintenance method according to claim 8, further comprising, after scanning for device nodes within communication range, the steps of:
obtaining routing information from the equipment nodes in the communication range, wherein the routing information comprises hop values of the corresponding equipment nodes;
and the hop value of the relay equipment node is not more than the hop value of each equipment node in the communication range.
10. A low power consumption Bluetooth network maintenance method is characterized by comprising the following steps:
the method comprises the steps that a low-power node sends an off-network request to a root node according to a first type of path so that the root node deletes the path corresponding to the low-power node, wherein the low-power node is a device node with the battery power lower than a low-power threshold value;
the low-power node sends a low-power notification to the corresponding equipment node according to the second type of path so that the corresponding equipment node adjusts the routing information;
the first type of path is a path to a root node, and the second type of path is a path to other equipment nodes in the communication range of the first type of path.
11. The bluetooth low energy network maintenance method according to claim 10, further comprising the steps of:
and the low-power node sends a low-power prompt to the user terminal within the communication range.
12. The bluetooth low energy network maintenance method according to claim 10, further comprising the steps of:
and deleting the first type of path and the second type of path in the routing information of the low-power nodes.
13. An electronic device, characterized in that: comprising a memory, a processor and a program stored in the memory, the program being configured for execution by the processor, the processor when executing the program performing the steps of the bluetooth low energy network maintenance method according to any of the claims 1-9.
14. An electronic device, characterized in that: comprising a memory, a processor, and a program stored in the memory, the program configured to be executed by the processor, the processor when executing the program implementing: a method of maintaining a bluetooth low energy network as claimed in any one of the claims 10-12.
15. A bluetooth network, characterized by: comprising a root node, an electronic device as claimed in claim 13, and an electronic device as claimed in claim 14.
16. A medium storing a computer program, characterized in that: the computer program realizing the steps of the bluetooth low energy network maintenance method according to any one of claims 1-9 when executed by a processor.
17. A medium storing a computer program, the medium characterized in that: the computer program realizing the steps of the bluetooth low energy network maintenance method according to any one of claims 10-12 when executed by a processor.
CN201880091315.8A 2018-06-13 2018-06-13 Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium Active CN111886843B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/090932 WO2019237263A1 (en) 2018-06-13 2018-06-13 Low-energy bluetooth network maintenance method, electronic device, bluetooth network, and medium

Publications (2)

Publication Number Publication Date
CN111886843A CN111886843A (en) 2020-11-03
CN111886843B true CN111886843B (en) 2023-04-04

Family

ID=68841805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880091315.8A Active CN111886843B (en) 2018-06-13 2018-06-13 Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium

Country Status (2)

Country Link
CN (1) CN111886843B (en)
WO (1) WO2019237263A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113207113B (en) * 2021-04-20 2023-01-13 上海富芮坤微电子有限公司 Multi-connection networking system, method, storage medium and electronic device
CN115604787A (en) * 2021-07-09 2023-01-13 博通集成电路(上海)股份有限公司(Cn) Method and system for automatically connecting wireless device to network through mobile phone
CN117156597B (en) * 2023-01-20 2024-05-07 荣耀终端有限公司 Ad hoc network-based device processing method, device and storage medium
CN117560713B (en) * 2024-01-11 2024-03-29 成都大公博创信息技术有限公司 Radio monitoring management system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217490A (en) * 2008-01-09 2008-07-09 西南科技大学 A Bluetooth wireless transducer network organizing and routing method
CN104244170A (en) * 2014-09-28 2014-12-24 成都金海鼎盛科技有限公司 Low-power-consumption Bluetooth node independent networking method
CN105827282A (en) * 2016-05-24 2016-08-03 卧槽科技(深圳)有限公司 Bluetooth equipment networking method and device and Bluetooth equipment
CN105877728A (en) * 2016-05-24 2016-08-24 孙世宇 Wireless heart rate meter system based on ultralow-power-consumption Bluetooth and control method of wireless heart rate meter system
CN106604212A (en) * 2016-12-21 2017-04-26 深圳市北电仪表有限公司 Mesh networking method based on BLE attribute and GATT
CN106814600A (en) * 2017-01-17 2017-06-09 冯宇霖 Bluetooth technology clock networking timing system and method for the one kind based on the Big Dipper/GPS
CN107466478A (en) * 2017-06-06 2017-12-12 香港应用科技研究院有限公司 Between the Optimization deployment and BLE equipment of BLE networks the effect of data exchange and safety management

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SG11201508569SA (en) * 2013-04-19 2015-11-27 Cubic Corp Payment reconciliation in mixed-ownership low-power mesh networks
GB2512501A (en) * 2014-02-25 2014-10-01 Cambridge Silicon Radio Ltd Packet identification
US9654906B2 (en) * 2014-06-12 2017-05-16 Samsung Electronics Co., Ltd Method for processing data based on bluetooth protocol and electronic device thereof
EP3189625A4 (en) * 2014-09-03 2018-08-29 Cloudleaf, Inc. Systems, methods and devices for asset status determination
CN105959921B (en) * 2016-07-20 2019-11-22 矽力杰半导体技术(杭州)有限公司 Network controller, node device and apply its mesh network system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217490A (en) * 2008-01-09 2008-07-09 西南科技大学 A Bluetooth wireless transducer network organizing and routing method
CN104244170A (en) * 2014-09-28 2014-12-24 成都金海鼎盛科技有限公司 Low-power-consumption Bluetooth node independent networking method
CN105827282A (en) * 2016-05-24 2016-08-03 卧槽科技(深圳)有限公司 Bluetooth equipment networking method and device and Bluetooth equipment
CN105877728A (en) * 2016-05-24 2016-08-24 孙世宇 Wireless heart rate meter system based on ultralow-power-consumption Bluetooth and control method of wireless heart rate meter system
CN106604212A (en) * 2016-12-21 2017-04-26 深圳市北电仪表有限公司 Mesh networking method based on BLE attribute and GATT
CN106814600A (en) * 2017-01-17 2017-06-09 冯宇霖 Bluetooth technology clock networking timing system and method for the one kind based on the Big Dipper/GPS
CN107466478A (en) * 2017-06-06 2017-12-12 香港应用科技研究院有限公司 Between the Optimization deployment and BLE equipment of BLE networks the effect of data exchange and safety management

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Design of CAN to Bluetooth gateway for a Battery Management System";Giuseppe De Maso-Gentile;《2015 12th International Workshop on Intelligent Solutions in Embedded Systems》;20151217;全文 *
"基于ZigBee的路由节点的研究";高井峰;《中国优秀硕士学位论文全文数据库 信息科技辑》;20111215;全文 *

Also Published As

Publication number Publication date
CN111886843A (en) 2020-11-03
WO2019237263A1 (en) 2019-12-19

Similar Documents

Publication Publication Date Title
CN111886843B (en) Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium
US10171986B2 (en) Radio relay device and system with waiting time optimization
CN102202333B (en) Routing method of wireless ad hoc network used for small satellite constellation communication
CN110430116B (en) Data forwarding method and device, edge device and readable storage medium
CN106330723B (en) Discovery method and device of network neighbor equipment
US10305778B2 (en) Enhanced peer discovery in a mesh network
CN112491941A (en) Data management method, related product and communication system
JP2008160584A (en) Network system and data transfer method
CN111971984B (en) Low-power consumption Bluetooth communication method, electronic device, network and storage medium
CN112075102B (en) Bluetooth low energy networking method, electronic equipment, network and storage medium
US20080008201A1 (en) Communication terminal, a method for communication, and a program strorage medium storing a program thereof
CN114786241A (en) Network selection method, related device, network equipment and storage medium
CN113055945B (en) Load balancing method and mobile self-organizing network
CN106535299B (en) Correlation method and device
CN111866845A (en) Data transmission method, device, equipment and computer readable storage medium
US11723101B1 (en) Mobile ad-hoc network data concurrency
US10469388B2 (en) Flow entry delivering method, flow entry storage method, related apparatus, and related system
CN111954102B (en) Routing control method and device in DHCPV6 PD scene
KR101780657B1 (en) Path information exchange method, communication node, communication system, and computer-readable storage medium storing a communication node program
CN108282380B (en) Method and device for detecting legality
CN106453080B (en) Tracing method and device for link state clearing message
CN113259922B (en) Communication method, system, equipment and storage medium for emergency service forwarding
CN107547406B (en) Method and device for establishing FIB table in distributed EVPN gateway networking
KR100703730B1 (en) Wireless network device and communication method using wireless network device
US20150016452A1 (en) Communication node device, communication system, communication control method and computer-readable program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant