WO2019237262A1 - Low-power bluetooth networking method, electronic device, network, and storage medium - Google Patents

Low-power bluetooth networking method, electronic device, network, and storage medium Download PDF

Info

Publication number
WO2019237262A1
WO2019237262A1 PCT/CN2018/090931 CN2018090931W WO2019237262A1 WO 2019237262 A1 WO2019237262 A1 WO 2019237262A1 CN 2018090931 W CN2018090931 W CN 2018090931W WO 2019237262 A1 WO2019237262 A1 WO 2019237262A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
node
current
downlink path
standby
Prior art date
Application number
PCT/CN2018/090931
Other languages
French (fr)
Chinese (zh)
Inventor
朱洲
李志晨
刘延飞
潘阳
Original Assignee
卧槽科技(深圳)有限公司
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 卧槽科技(深圳)有限公司 filed Critical 卧槽科技(深圳)有限公司
Priority to CN201880091377.9A priority Critical patent/CN112075102B/en
Priority to PCT/CN2018/090931 priority patent/WO2019237262A1/en
Publication of WO2019237262A1 publication Critical patent/WO2019237262A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a low-power Bluetooth networking method, an electronic device, a network, and a storage medium. The method comprises: a current node scanning a device node within a communication range; the current node obtaining routing information from the device node within the communication range; the current node generating a first path according to the routing information of the device node, wherein the first path is specifically a path in which the current node passes a corresponding device node and reaches a root node; and if the number of the first paths is greater than one, the current node marking one of the first paths as a current uplink path, and marking the other first paths as alternate uplink paths. In the invention, one path is marked as a current path and the others as alternate paths when there are a plurality of paths between a current node and a root node, so that when the current node communicates with the root node, the root node normally communicates with the current node by means of the current path, and in certain situations, such as if the current path has failed, communication between the root node and the current node is established by means of an alternate path, and as a result message transmission and reception success rates can be ensured.

Description

低功耗蓝牙组网方法、电子设备、网络和存储介质Low-power Bluetooth networking method, electronic device, network and storage medium 技术领域Technical field
本发明涉及蓝牙组网技术,尤其涉及低功耗蓝牙组网方法、电子设备、网络和存储介质。The present invention relates to Bluetooth networking technology, and in particular, to a low-power Bluetooth networking method, an electronic device, a network, and a storage medium.
背景技术Background technique
2017年7月蓝牙的Mesh工作组提出了基于BLE的组网规范,该规范是基于Flooding协议的Mesh网络技术,对于低功耗节点在该规范所提出的Mesh网络拓扑结构中,其只能与周围存在的朋友节点进行通信,在整个网络的使用中分配了较多的节点角色,对于较多采用电池供电的低功耗蓝牙设备网络并不适用。In July 2017, the Mesh Working Group of Bluetooth proposed a BLE-based networking specification. This specification is a Mesh network technology based on the Flooding protocol. For low-power nodes in the Mesh network topology proposed by the specification, it can only communicate with There are friend nodes around to communicate, and more node roles are assigned in the use of the entire network, which is not applicable to a network of low-power Bluetooth devices that mostly use battery power.
现有的蓝牙设备组网通常采用树形组网方法,但是设备节点入网时与根节点之间的路径如何建立,以保证消息的收发成功率仍是需要解决的技术问题。The existing Bluetooth device networking usually adopts a tree networking method, but how to establish a path between the device node and the root node when the device node enters the network to ensure the success rate of message transmission and reception is still a technical problem to be solved.
发明内容Summary of the Invention
为了克服现有技术的不足,本发明的目的在于提供低功耗蓝牙组网方法,用于当前节点;提供低功耗蓝牙组网方法,用于根节点;提供电子设备,可作为当前节点;提供电子设备,可作为根节点;提供低功耗蓝牙网络以及存储介质,存储有计算机程序;在当前节点与根节点通信时,根节点与当前节点通过当前路径通信,在当前路径出现故障等情况时通过备用路径建立根节点与当前节点的通信,从而可保证消息的收发成功率。In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a low-power Bluetooth networking method for the current node; provide a low-power Bluetooth networking method for the root node; provide an electronic device that can be used as the current node; Provide electronic devices that can be used as root nodes; provide Bluetooth low energy networks and storage media with computer programs stored; when the current node communicates with the root node, the root node communicates with the current node through the current path, and the current path fails, etc. In some cases, the communication between the root node and the current node is established through the backup path, so that the success rate of receiving and sending messages can be guaranteed.
本发明的目的采用以下技术方案实现:The objective of the present invention is achieved by the following technical solutions:
低功耗蓝牙组网方法,用于当前节点,所述低功耗蓝牙组网方法包括以下步骤:The Bluetooth low energy networking method is used for the current node. The Bluetooth low energy networking method includes the following steps:
扫描通信范围内的设备节点;Scan for device nodes within communication range;
从所述通信范围内的设备节点获取路由信息;Obtaining routing information from a device node within the communication range;
根据所述设备节点的路由信息生成第一路径,所述第一路径具体为当前节点经过相应设备节点到根节点的路径;Generating a first path according to the routing information of the device node, where the first path is specifically a path from the current node to the root node through the corresponding device node;
当所述第一路径的数目多于一条时,标记一条第一路径为当前上行路径,标记其余第一路径为备用上行路径。When the number of the first paths is more than one, a first path is marked as a current uplink path, and the remaining first paths are marked as standby uplink paths.
低功耗蓝牙组网方法,用于根节点,所述低功耗蓝牙组网方法包括以下步骤:The Bluetooth low energy networking method is used for the root node. The Bluetooth low energy networking method includes the following steps:
从当前节点获取接入通知,所述接入通知是当前节点根据第一路径发送的;Obtaining an access notification from the current node, where the access notification is sent by the current node according to the first path;
根据所述当前节点发送所述接入通知的路径生成第二路径;所述第二路径具体为根节点经过相应设备节点到所述当前节点的路径;Generating a second path according to a path that the current node sends the access notification; the second path is specifically a path from a root node to the current node through a corresponding device node;
标记一条第二路径为当前下行路径,其余第二路径为备用下行路径。One second path is marked as the current downlink path, and the remaining second paths are standby downlink paths.
电子设备,包括存储器、处理器以及存储在存储器中的程序,所述程序被配置成由处理器执行,处理器执行所述程序时实现前述应用于当前节点的低功耗蓝牙组网方法的步骤。An electronic device includes a memory, a processor, and a program stored in the memory. The program is configured to be executed by a processor. When the processor executes the program, the steps of the foregoing Bluetooth low energy networking method applied to the current node are implemented. .
电子设备,包括存储器、处理器以及存储在存储器中的程序,所述程序被配置成由处理器执行,处理器执行所述程序时实现前述应用于根节点的低功耗蓝牙组网方法的步骤。An electronic device includes a memory, a processor, and a program stored in the memory. The program is configured to be executed by a processor. When the processor executes the program, the steps of the foregoing Bluetooth low energy networking method applied to a root node are implemented. .
低功耗蓝牙网络,包括至少一个应用了前述根节点低功耗蓝牙组网方法的电子设备、以及至少一个应用了前述当前节点低功耗蓝牙组网方法的电子设备。The low-power Bluetooth network includes at least one electronic device to which the foregoing root node low-power Bluetooth networking method is applied, and at least one electronic device to which the foregoing current node low-power Bluetooth networking method is applied.
存储介质,所述存储介质存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现:上述应用于根节点和/或当前节点的低功耗蓝牙组网方法的步骤。A storage medium storing a computer program, which is characterized in that when the computer program is executed by a processor, the steps of the above-mentioned Bluetooth low energy networking method applied to the root node and / or the current node are implemented.
相比现有技术,本发明实施例的有益效果在于:通过在当前节点与根节点之间有多条路径时,标记一条路径为当前路径,其余为备用路径,因此,在当前节点与根节点通信时,根节点与当前节点通过当前路径通信,在当前路径出现故障等情况时通过备用路径建立根节点与当前节点的通信,从而可保证消息的收发成功率。Compared with the prior art, the embodiment of the present invention has the beneficial effect that when there are multiple paths between the current node and the root node, one path is marked as the current path, and the rest are backup paths. Therefore, the current node and the root node When communicating, the root node communicates with the current node through the current path, and when the current path fails, etc., the communication between the root node and the current node is established through the backup path, thereby ensuring the success rate of message transmission and reception.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为蓝牙网络的结构示意图;FIG. 1 is a schematic structural diagram of a Bluetooth network;
图2为本发明实施例一的低功耗蓝牙组网方法的流程示意图;2 is a schematic flowchart of a Bluetooth low energy networking method according to the first embodiment of the present invention;
图3为当前节点加入蓝牙网络的流程示意图;FIG. 3 is a schematic flowchart of a current node joining a Bluetooth network;
图4为根节点对当前下行路径、备用下行路径管理的流程示意图;FIG. 4 is a schematic flowchart of management of a current downlink path and a standby downlink path by a root node; FIG.
图5为根节点标记当前下行路径的流程示意图;5 is a schematic flowchart of a root node marking a current downlink path;
图6为图2中当前节点或根节点的结构示意图。FIG. 6 is a schematic structural diagram of a current node or a root node in FIG. 2.
具体实施方式detailed description
下面,结合附图以及具体实施方式,对本发明做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例。In the following, the present invention is further described with reference to the drawings and specific embodiments. It should be noted that, under the premise of no conflict, the embodiments described below or technical features can be arbitrarily combined to form a new embodiment. .
如图1所示为蓝牙网络的结构示意图,为Mesh网络拓扑结构。由低功耗蓝牙设备,即BLE设备组成的Mesh网络,在BLE设备节点加入Mesh网络时无需特别预配置,所有BLE设备在Mesh网络中可以充当中继设备进行消息转发,用以扩大BLE的通信范围。Figure 1 shows the structure of the Bluetooth network, which is the topology of the Mesh network. A mesh network composed of low-power Bluetooth devices, that is, BLE devices, does not require special pre-configuration when a BLE device node joins the mesh network. All BLE devices can act as relay devices in the mesh network for message forwarding to expand BLE communication. range.
在图1中,设备节点R为根节点,设备节点A、B、C、D、E、F、G、H、I、J和K为普通的设备节点;各设备节点之间以独一无二的物理地址或者其他 身份识别信息进行区分。设备节点之间的通讯基于协议定义的GATT服务,该服务可以采用两个或者多个特征进行两个设备节点之间的数据收发。根节点R用于管理和优化整个Mesh网络的路由表以及维护设备节点加入网络、离开网络和设备节点移动引起的路由变化。在图1中虚线圆圈表示设备节点A的BLE通信范围,该通信范围的用户移动终端,如手机、平板或电脑等可以和设备节点A通信,也可以通过设备节点A和低功耗蓝牙网络中的其他普通设备节点或根节点R通信。In Figure 1, device node R is the root node, and device nodes A, B, C, D, E, F, G, H, I, J, and K are ordinary device nodes; each device node has a unique physical Address or other identifying information. Communication between device nodes is based on the GATT service defined by the protocol. This service can use two or more features to send and receive data between two device nodes. The root node R is used to manage and optimize the routing table of the entire Mesh network and maintain routing changes caused by device nodes joining the network, leaving the network, and moving device nodes. The dotted circle in Figure 1 indicates the BLE communication range of device node A. User mobile terminals such as mobile phones, tablets, or computers in this communication range can communicate with device node A, or through device node A and the Bluetooth low energy network. Communication with other ordinary device nodes or root nodes.
作为优选的实施方式,根节点R为非功耗敏感型的低功耗蓝牙设备,例如采用AC电源供电的BLE设备,可以称为第一类BLE设备;其他普通设备节点一般为功耗敏感型的低功耗蓝牙设备,如采用电池供电的BLE设备,称为第二类BLE设备。As a preferred implementation, the root node R is a non-power-sensitive Bluetooth low energy device, such as a BLE device powered by AC power, which can be referred to as a first type of BLE device; other common device nodes are generally power-sensitive Low-power Bluetooth devices, such as battery-powered BLE devices, are called Type 2 BLE devices.
第一类BLE设备可以为只有单一的BLE通信功能的设备,也可以为同时拥有BLE功能和其他外部网络,如Wi-Fi或者Enternet等网络通信功能的设备;第二类BLE设备节点通常用于实现单一的BLE通信功能。The first type of BLE device can be a device with only a single BLE communication function, or a device that has both BLE function and other external networks, such as Wi-Fi or Enternet, and other network communication functions. The second type of BLE device node is usually used for Achieve a single BLE communication function.
实施例一Example one
如图2为低功耗蓝牙组网方法的流程示意图,低功耗蓝牙组网方法包括以下步骤:Figure 2 is a flowchart of the Bluetooth low energy networking method. The Bluetooth low energy networking method includes the following steps:
步骤S110、当前节点扫描通信范围内的设备节点。Step S110: The current node scans the device nodes within the communication range.
Mesh网络中所有的设备节点处于广播状态,广播周期可以根据设备节点在路由表中的使用频次、使用时间段和剩余电池电量等信息而定。网络中所有设备节点都可以为中继设备对网络中的数据信息进行转发,用以扩大低功耗蓝牙的使用范围。All the device nodes in the Mesh network are in the broadcast state. The broadcast cycle can be determined according to the frequency, time period and remaining battery power of the device nodes in the routing table. All device nodes in the network can forward data information in the network for the relay device to expand the use range of Bluetooth low energy.
如图1所示,以设备节点A作为当前节点为例,为需要接入蓝牙网络的设 备节点。虚线圆圈为当前节点A的BLE通信范围,此类设备节点会有电源开关或者类似电源开关的机制,此机制可以用来触发新设备节点A,即当前节点A的入网流程。As shown in Fig. 1, taking device node A as the current node as an example, it is a device node that needs to access the Bluetooth network. The dotted circle is the BLE communication range of the current node A. Such device nodes will have a power switch or a similar power switch mechanism. This mechanism can be used to trigger a new device node A, that is, the current node A's network access process.
当用户通过此当前节点A的电源开关或者类似电源开关的机制让当前节点A上电开始工作,当前节点A会检查自身的路由表信息,若此时当前节点A内的路由表信息为空,那么设备节点A在一定时间内进行扫描和广播。在本实施例中,当前节点A可以扫描到周围的设备节点B和设备节点E。When the user powers on the current node A to start working through the power switch of the current node A or a similar power switch mechanism, the current node A will check its own routing table information. If the routing table information in the current node A is empty at this time, Then device node A performs scanning and broadcasting within a certain time. In this embodiment, the current node A can scan the surrounding device node B and device node E.
作为优选的实施方式,若当前节点扫描通信范围内不存在其他设备节点时,切换为广播状态,广播信息包括网络标号、设备类型、电池电量、跳数值等。网络标号用来标识和区别由第一类BLE设备节点组成的Mesh网络;设备类型用来标识和区别该设备节点的设备类型,0表示第一类BLE设备节点,1表示第二类BLE设备节点;电池电量标识用来标识第二类BLE设备节点的电池电量情况,以及是否低于预先设置的可使用的阈值,若第二类BLE设备节点检测到自身的电池电量低于电池电量的可使用的阈值,则该广播包的标志位被置1,否则该广播包的标志位置0;跳数值可以用来区别设备节点为入网设备节点还是未入网设备节点,若跳数值为负数,则表示该设备节点为未入网设备节点,即无法与根节点通信的节点。当用户终端位于当前节点A的通信范围内时,获取到当前节点A的广播信息;根据该广播信息判断出该当前节点A未成功加入相应根节点管理的蓝牙网络,为孤立的设备节点。As a preferred embodiment, if there are no other device nodes within the current node scanning communication range, the mode is switched to a broadcast state, and the broadcast information includes a network label, a device type, a battery level, and a hop value. The network label is used to identify and distinguish the Mesh network composed of the first type of BLE device nodes; the device type is used to identify and distinguish the device type of the device node, 0 is the first type of BLE device node, and 1 is the second type of BLE device node ; The battery level indicator is used to identify the battery level of the second-type BLE device node and whether it is lower than the preset usable threshold. If the second-type BLE device node detects that its own battery level is lower than the available battery level, it can be used. The threshold value of the broadcast packet is set to 1, otherwise the broadcast packet flag is set to 0; the hop value can be used to distinguish whether the device node is a networked device node or a non-networked device node. If the hop value is negative, it indicates that the A device node is a device node that is not connected to the network, that is, a node that cannot communicate with the root node. When the user terminal is located within the communication range of the current node A, broadcast information of the current node A is obtained; based on the broadcast information, it is determined that the current node A has not successfully joined the Bluetooth network managed by the corresponding root node and is an isolated device node.
步骤S120、当前节点从所述通信范围内的设备节点获取路由信息。Step S120: The current node obtains routing information from a device node within the communication range.
已入网的设备节点B和设备节点E一直处于广播状态,因此设备节点A可以从设备节点B和设备节点E获取其各自的路由信息。作为优选的实施方式,设备节点的广播包中包括自身的跳数值。The device node B and the device node E that have already entered the network are always in a broadcast state, so the device node A can obtain their respective routing information from the device node B and the device node E. As a preferred embodiment, the broadcast packet of the device node includes its own hop value.
跳数值可以用来区别设备节点为入网设备节点还是未入网设备节点,对于入网设备节点可以区别该设备节点所处Mesh网络的位置,即与根节点通信时需要发送、转发的次数。以图1所示的Mesh网络为例,如果定义根节点R的跳数值为0,则设备节点B、C和D的跳数值为1,设备节点A、E、F、F、G、H和I的跳数值为2,设备节点K和J的跳数值为3;对于未入网的设备节点,其跳数值可以标记为-1。The hop value can be used to distinguish whether a device node is a networked device node or a non-networked device node. For a networked device node, it can distinguish the position of the mesh network where the device node is located, that is, the number of times it needs to send and forward when communicating with the root node. Taking the Mesh network shown in Figure 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, and the device nodes A, E, F, F, G, H, and The hop value of I is 2 and the hop values of device nodes K and J are 3; for a device node that is not on the network, its hop value can be marked as -1.
作为优选的实施方式,若当前节点扫描通信范围内的其他设备节点均为未入网设备节点,即无法与根节点通信的节点,则切换为广播状态。当用户终端位于当前节点A的通信范围内时,可以根据当前节点A的广播信息判断该当前节点A未成功加入蓝牙网络,为孤立的设备节点。As a preferred embodiment, if all other device nodes in the current node scanning communication range are device nodes that are not connected to the network, that is, nodes that cannot communicate with the root node, it switches to the broadcast state. When the user terminal is located within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node according to the broadcast information of the current node A.
步骤S130、当前节点根据所述设备节点的路由信息生成第一路径,所述第一路径具体为当前节点经过相应设备节点到根节点的路径。Step S130: The current node generates a first path according to the routing information of the device node, where the first path is specifically a path that the current node passes through the corresponding device node to the root node.
当前节点A通过扫描其通信范围内其他设备节点,并获取相应设备节点的路由信息。路由信息可以表示相应设备节点是否可与根节点连通,如可连通,则跳数值为非负数;路由信息还可以表示相应设备节点与根节点之间的距离。在本实施例中,已入网设备节点B和E的路由信息中,跳数值分别为1和2;表示设备节点B和E路由表中包含根节点R的信息,因此当前节点A可以通过设备节点B和E与根节点建立连接。The current node A scans other device nodes in its communication range and obtains routing information of the corresponding device nodes. The routing information can indicate whether the corresponding device node can communicate with the root node. If it can, the hop value is a non-negative number. The routing information can also indicate the distance between the corresponding device node and the root node. In this embodiment, in the routing information of the networked device nodes B and E, the hop values are 1 and 2 respectively; it means that the routing tables of device nodes B and E contain the information of the root node R, so the current node A can pass the device node B and E establish a connection with the root node.
作为优选的实施方式,步骤S130当前节点根据所述设备节点的路由信息生成第一路径,具体包括以下步骤:As a preferred implementation, step S130, the current node generates the first path according to the routing information of the device node, and specifically includes the following steps:
若所述设备节点的跳数值满足接入条件,则当前节点根据所述设备节点的路由信息生成第一路径。If the hop value of the device node meets the access condition, the current node generates a first path according to the routing information of the device node.
作为优选的实施方式,若当前节点A通信范围内节点设备的跳数值为正数, 则表示设备节点B和E路由表中包含根节点R的信息,当前节点A可以通过此类设备节点,如设备节点B和E与根节点建立连接,即可以根据此类设备节点的路由信息生成第一路径,如A—B—R,和A—E—B—R。As a preferred implementation, if the hop value of a node device in the communication range of the current node A is a positive number, it means that the routing table of the device node B and E contains the information of the root node R, and the current node A can pass such a device node, such as Device nodes B and E establish a connection with the root node, that is, a first path such as A-B-R and A-E-B-R can be generated according to the routing information of such device nodes.
作为优选的实施方式,所述设备节点的跳数值满足接入条件,具体为:所述设备节点的跳数值不大于所述通信范围内其余设备节点的跳数值。As a preferred embodiment, the hop value of the device node satisfies the access condition, and specifically, the hop value of the device node is not greater than the hop values of the remaining device nodes in the communication range.
即选取当前节点A通信范围内跳数值最小的节点设备作为当前节点A与根节点R的中继节点;并根据中继节点的路由信息生成第一路径。如前所述,可以根据设备节点B和E的路由信息生成两个可连通至根节点R的路径,如A—B—R,和A—E—B—R;优先选取跳数值最小的节点设备作为当前节点A与根节点R的中继节点,即选择较短的路径作为第一路径A—B—R。That is, the node device with the smallest hop value in the communication range of the current node A is selected as the relay node of the current node A and the root node R; and a first path is generated according to the routing information of the relay node. As mentioned above, two paths that can be connected to the root node R can be generated based on the routing information of device nodes B and E, such as A-B-R and A-E-B-R; the node with the smallest hop value is preferentially selected The device serves as a relay node between the current node A and the root node R, that is, a shorter path is selected as the first path A-B-R.
作为优选的实施方式,如图3所示,步骤S130当前节点根据所述设备节点的路由信息生成第一路径,所述第一路径具体为当前节点经过相应设备节点到根节点的路径之后,还包括以下步骤:As a preferred embodiment, as shown in FIG. 3, in step S130, the current node generates a first path according to the routing information of the device node. The first path is specifically after the current node passes the path from the corresponding device node to the root node, and then It includes the following steps:
步骤S101、若当前节点生成所述第一路径,则根据所述第一路径向所述根节点发送接入通知,以及根节点从当前节点获取接入通知。Step S101: If the current node generates the first path, send an access notification to the root node according to the first path, and the root node obtains an access notification from the current node.
在本实施例中,当前节点A需要经过根节点R的同意才可以接入蓝牙网络。因此生成第一路径后,还需要向根节点发送接入通知。具体为,通过该第一路径,如A—B—R向根节点发送接入通知。In this embodiment, the current node A needs to obtain the consent of the root node R before it can access the Bluetooth network. Therefore, after the first path is generated, an access notification needs to be sent to the root node. Specifically, an access notification is sent to the root node through the first path, such as A-B-R.
当前节点A生成第一路径后,先通过该第一路径向根节点R通知当前节点A将加入到根节点R的Mesh网络中。如果根节点R正确接收到当前节点A的通知,就向当前节点A发送确认字符ACK(Acknowledgment),如果未正确接收到当前节点A的接入通知,就向当前节点A发送NAK(Negative Acknowledgment)以表示否定应答或者非应答。如果当前节点A收到NAK或 者经过预定时间没有收到根节点R的回应,则当前节点A入网失败,当前节点A成为未入网的孤立节点。如果当前节点A收到确认字符ACK,就成功完成通知网络的步骤,接下来通过该第一路径,如A—B—R向根节点发送接入通知。After the current node A generates the first path, it first informs the root node R through the first path that the current node A will join the mesh network of the root node R. If the root node R receives the notification of the current node A correctly, it sends an acknowledgement character ACK (Acknowledgment) to the current node A. If the access notification of the current node A is not received correctly, it sends a NAK (Negative Acknowledgment) to the current node A. To indicate a negative response or non-response. If the current node A receives a NAK or does not receive a response from the root node R within a predetermined time, the current node A fails to enter the network, and the current node A becomes an orphaned node that has not entered the network. If the current node A receives the confirmation character ACK, it successfully completes the step of notifying the network, and then sends an access notification to the root node through the first path, such as A-B-R.
作为优选的实施方式,如果当前节点A收到NAK或者经过预定时间没有收到根节点R的回应,则切换为广播状态。当用户终端位于当前节点A的通信范围内时,可以根据当前节点A的广播信息判断该当前节点A未成功加入蓝牙网络,为孤立的设备节点。As a preferred embodiment, if the current node A receives a NAK or does not receive a response from the root node R after a predetermined time, it switches to the broadcast state. When the user terminal is located within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node according to the broadcast information of the current node A.
步骤S102、若根节点同意所述当前节点的接入通知,则根据所述当前节点发送所述接入通知的路径生成第二路径;所述第二路径具体为根节点经过相应设备节点到所述当前节点的路径。Step S102: If the root node agrees to the access notification of the current node, a second path is generated according to a path that the current node sends the access notification to; the second path is specifically the root node passing through the corresponding device node to the Describe the path of the current node.
根节点R从当前节点A获取到接入通知后,可以根据当前节点A发送接入通知的路径生成第二路径;如当前节点A发送所述接入通知的路径为第一路径A—B—R,那么根节点生成的第二路径为R—B—A,经过了第一路径中相应的设备节点B。After the root node R obtains the access notification from the current node A, it can generate a second path according to the path in which the current node A sends the access notification; for example, the path in which the current node A sends the access notification is the first path A-B- R, then the second path generated by the root node is R-B-A and passes through the corresponding device node B in the first path.
步骤S103、根节点根据所述第二路径向所述当前节点发送授权指令。Step S103: The root node sends an authorization instruction to the current node according to the second path.
如果对当前节点A进行网络授权,即同意当前节点A加入到网络中,则根据第二路径向当前节点A发送授权指令。If network authorization is performed on the current node A, that is, the current node A is agreed to join the network, then an authorization instruction is sent to the current node A according to the second path.
作为优选的实施方式,根节点R对当前节点A进行网络授权后,还需要当前节点A也成功确认加入该网络,才根据所述当前节点发送所述接入通知的路径生成第二路径,即将第二路径R—B—A添加到自身的路由表信息中。As a preferred embodiment, after the root node R performs network authorization on the current node A, the current node A also needs to successfully confirm to join the network, and then a second path is generated according to the path in which the current node sends the access notification. The second path R-B-A is added to its own routing table information.
如果,根节点R从当前节点A获取到接入通知后,不对当前节点A进行网络授权,即不同意当前节点A加入到网络中,那么当前节点A入网失败,当前节点A成为未入网的孤立节点。If the root node R does not grant network authorization to the current node A after receiving the access notification from the current node A, that is, it does not agree that the current node A joins the network, then the current node A fails to enter the network, and the current node A becomes an isolated orphan. node.
步骤S104、若当前节点获取到所述根节点的授权,则保存所述第一路径。Step S104: If the current node obtains the authorization of the root node, save the first path.
当前节点A从根节点R获取到授权,成功确认加入蓝牙网络,则在自身的路由表中保存该第一路径,如A—B—R。The current node A obtains the authorization from the root node R and successfully confirms joining the Bluetooth network, and then saves the first path in its own routing table, such as A-B-R.
在另一实施例中,如图1所示,以设备节点K为当前节点,在从未入网设备加入到网络的流程中,设备节点K可从其通信范围内的设备节点F和G获取到相应的路由信息,包括设备节点F和G关于R的路由表,分别为F—C—R和G—C—R;以及设备节点F和G的跳数值均为2。据前所述,当前节点K生成和保存的第一路径为两条,即其路由表中可建立两条到达根节点R的路径,分别为K—F—C—R和K—G—C—R。相应的,在根节点R中生成、保存的第二路径也为两条,分别为R—C—F—K和R—C—G—K。In another embodiment, as shown in FIG. 1, with device node K as the current node, in the process of joining a device from the network to the network, device node K can obtain it from device nodes F and G within its communication range. The corresponding routing information, including the routing tables of device nodes F and G with respect to R, are F-C-R and G-C-R, respectively; and the hop values of device nodes F and G are both 2. According to the foregoing, there are two first paths generated and saved by the current node K, that is, two paths to the root node R can be established in its routing table, which are K_F_C_R and K_G_C. —R. Correspondingly, there are also two second paths generated and saved in the root node R, which are R-C-F-K and R-C-G-K.
作为优选的实施方式,若步骤S101中根节点判断到当前节点发送接入通知的路径多于一条,根节点根据所述当前节点发送所述接入通知的路径生成第二路径,具体为:根节点分别根据所述当前节点发送接入通知的各路径生成相应的第二路径;所述第二路径的数目多于一条。As a preferred embodiment, if the root node determines in step S101 that there is more than one path for the current node to send an access notification, the root node generates a second path according to the path that the current node sends the access notification, specifically: the root node A corresponding second path is generated according to each path of the access notification sent by the current node, and the number of the second paths is more than one.
当前节点K生成和保存的第一路径为两条分别为K—F—C—R和K—G—C—R,当前节点发送接入通知的路径多于一条,因此根节点R根据第一路径K—F—C—R生成第二路径R—C—F—K,经过相应的设备节点C和F;根据第一路径K—G—C—R生成第二路径R—C—G—K,经过相应的设备节点C和G。The first path generated and saved by the current node K is two K-F-C-R and K-G-C-R. The current node sends more than one path for access notification, so the root node R is based on the first Path K_F_C_R generates a second path R_C_F_K, which passes through the corresponding device nodes C and F; according to the first path K_G_C_R, a second path R_C_G_ K passes through the corresponding device nodes C and G.
步骤S140、当所述第一路径的数目多于一条时,当前节点标记一条第一路径为当前上行路径,标记其余第一路径为备用上行路径。Step S140: When the number of the first paths is more than one, the current node marks one first path as a current uplink path, and marks the remaining first paths as standby uplink paths.
作为优选的实施方式,若当前节点通过所述当前上行路径与根节点通信失败时,通过所述备用上行路径与根节点通信。As a preferred embodiment, if the current node fails to communicate with the root node through the current uplink path, communicate with the root node through the standby uplink path.
当前节点K的第一路径多于一条,因此,在与根节点R通信时,可以选择 通过其中一条路径,即当前上行路径与根节点R通信;而其余的第一路径作为备用上行路径,在当前上行路径出现故障等情况时通过备用上行路径建立当前节点K与根节点R的通信,从而可保证消息的收发成功。The current node K has more than one first path. Therefore, when communicating with the root node R, you can choose to communicate with the root node R through one of the paths, that is, the current uplink path; and the remaining first paths are used as backup uplink paths. When the current uplink path fails, etc., the communication between the current node K and the root node R is established through the backup uplink path, so that the sending and receiving of messages can be guaranteed.
作为优选的实施方式,具体如何分配第一路径为当前上行路径或备用上行路径,是由根节点R决策的,即步骤S140中标记一条第一路径为当前上行路径,具体为:根据从所述根节点获取的标记指令标记相应的第一路径为当前上行路径。As a preferred implementation manner, specifically how to allocate the first path as the current uplink path or the standby uplink path is determined by the root node R, that is, in step S140, marking a first path as the current uplink path is specifically: The marking instruction obtained by the root node marks the corresponding first path as the current uplink path.
本发明实施例提供的低功耗蓝牙组网方法,通过在当前节点与根节点之间有多条路径时,标记一条路径为当前路径,其余为备用路径,因此,在当前节点与根节点通信时,根节点与当前节点通过当前路径通信,在当前路径出现故障等情况时通过备用路径建立根节点与当前节点的通信,从而可保证消息的收发成功率。According to the low-power Bluetooth networking method provided by the embodiment of the present invention, when there are multiple paths between the current node and the root node, one path is marked as the current path, and the rest are standby paths. Therefore, the current node communicates with the root node. At this time, the root node communicates with the current node through the current path, and when the current path fails, etc., the root node establishes communication with the current node through the backup path, so as to ensure the success rate of message transmission and reception.
如图4所示,在本实施例中,前述步骤S102若根节点同意所述当前节点的接入通知,则根据所述当前节点发送所述接入通知的路径生成第二路径之后,还包括以下步骤:As shown in FIG. 4, in this embodiment, if the root node agrees to the access notification of the current node in the foregoing step S102, after generating the second path according to the path that the current node sends the access notification, the method further includes: The following steps:
步骤S141、根节点标记一条第二路径为当前下行路径,其余第二路径为备用下行路径。Step S141: The root node marks a second path as a current downlink path, and the remaining second paths are standby downlink paths.
作为优选的实施方式,步骤S141根节点标记一条第二路径为当前下行路径,其余第二路径为备用下行路径之后,还包括以下步骤:若根节点通过所述当前下行路径与当前节点通信失败时,通过所述备用下行路径与当前节点通信。As a preferred embodiment, in step S141, after the root node marks a second path as the current downlink path and the remaining second paths are standby downlink paths, the method further includes the following steps: if the root node fails to communicate with the current node through the current downlink path, And communicating with the current node through the standby downlink path.
根节点R的第二路径多于一条,因此,在与当前节点A通信时,可以选择通过其中一条路径,即当前下行路径与当前节点A通信;而其余的第二路径作为备用下行路径,在当前下行路径出现故障等情况时建立根节点R与当前节点 A的通信,从而可保证消息的收发成功。There is more than one second path for the root node R. Therefore, when communicating with the current node A, you can choose to communicate with the current node A through one of the paths, that is, the current downlink path; and the remaining second paths are used as backup downlink paths. When the current downlink path fails, communication between the root node R and the current node A is established, so that the sending and receiving of messages can be guaranteed.
作为优选的实施方式,步骤S141根节点标记一条第二路径为当前下行路径,具体为:根节点根据各第二路径中相应设备节点的电量参数和/或使用频次标记相应的第二路径为当前下行路径。因此根节点向当前节点发送的标记指令也是所述根节点根据各第一路径相应设备节点的电量参数和/或使用频次生成的。As a preferred embodiment, in step S141, the root node marks a second path as the current downlink path. Specifically, the root node marks the corresponding second path as the current path according to the power parameter of the corresponding device node in each second path and / or uses the frequency. Downward path. Therefore, the marking instruction sent by the root node to the current node is also generated by the root node according to the power parameter and / or the usage frequency of the corresponding device node of each first path.
设备节点的电量参数可以反映设备节点中电池的剩余电量,设备节点的使用频次可以反映该节点设备在蓝牙网络中作为中继节点转发数据的频次。通过根据各第二路径中相应设备节点的电量参数和/或使用频次选择当前下行路径和备用下行路径,可以均衡多个第二路径的使用频次,使相应的设备节点的电池使用电量达到均衡,从而延长整个网络的使用寿命,提高整个网络的鲁棒性。The power parameter of the device node can reflect the remaining power of the battery in the device node, and the usage frequency of the device node can reflect the frequency of the node device's forwarding data in the Bluetooth network as a relay node. By selecting the current downlink path and the standby downlink path according to the power parameter and / or usage frequency of the corresponding device node in each second path, the frequency of use of multiple second paths can be balanced, so that the battery usage power of the corresponding device node can be balanced, Thereby extending the service life of the entire network and improving the robustness of the entire network.
如图1中的第二路径R—C—F—K和第二路径R—C—G—K中,设备节点F和设备节点G为相应的设备节点,通过这两个设备节点的电量参数和/或使用频次选择当前下行路径和备用下行路径。As shown in the second path R-C-F-K and the second path R-C-G-K in FIG. 1, the device node F and the device node G are corresponding device nodes, and the power parameters of the two device nodes are passed. And / or use the frequency to select the current downlink path and the standby downlink path.
作为优选的实施方式,如图5所示,所述根据各第二路径中相应设备节点的电量参数和/或使用频次标记相应的第二路径为当前下行路径,具体包括以下步骤:As a preferred embodiment, as shown in FIG. 5, the marking the corresponding second path as the current downlink path according to the power parameter of the corresponding device node in each second path and / or using the frequency specifically includes the following steps:
步骤S1411、根节点获取各第二路径中相应设备节点的电量参数。Step S1411, the root node obtains the power parameter of the corresponding device node in each second path.
作为优选的实施方式,低功耗蓝牙设备节点的广播包数据信息包括其电池电量标识,即电量参数。在本实施例中,电量参数具体为电池电量等级(Battery Level,BL),如电池电量等级为4,可以表示该设备节点剩余80%左右的电量;电池电量等级为0,可以表示该设备节点剩余不到10%的电量。As a preferred embodiment, the broadcast packet data information of the Bluetooth low energy device node includes its battery power identifier, that is, the power parameter. In this embodiment, the power parameter is specifically a battery level (BL). For example, if the battery power level is 4, it can indicate that the device node has about 80% of the remaining power; when the battery power level is 0, it can indicate the device node. Less than 10% of power left.
步骤S1412、根节点标记相应设备节点电量参数最优的第二路径为当前下行路径。Step S1412, the root node marks the second path with the best power parameter of the corresponding device node as the current downlink path.
对于根节点R到设备节点K拥有两条第二路径,R—C—F—K和R—C—G—K,同理对于设备节点K也拥有两条第一路径到达根节点R。对于两条第二路径的选择,可根据设备节点F和设备节点G的电池电量等级选定一条路径作为当前下行路径,另一条作为备用下行路径。For the root node R to the device node K, there are two second paths, R-C-F-K and R-C-G-K. Similarly, for the device node K, there are two first paths to the root node R. For the selection of the two second paths, one path may be selected as the current downlink path and the other as the backup downlink path according to the battery power levels of the device node F and the device node G.
在两个中继设备节点F和G的BL>0的情况下,若设备节点F和设备节点G的BL相同,可以选择其中任何一条路径作为当前下行路径,剩余一条作为备用下行路径。In the case where the BLs of the two relay device nodes F and G are greater than 0, if the BL of the device node F and the device node G are the same, any one of the paths can be selected as the current downlink path, and the remaining one can be used as the backup downlink path.
若设备节点F的BL大于设备节点G的BL,则根节点R选择经过设备节点F的第二路径作为当前下行路径,选择经过设备节点G的第二路径作为备用下行路径;即选择R—C—F—K作为当前下行路径,选择R—C—G—K作为备用下行路径。反之,若设备节点F的BL小于设备节点G的BL,则根节点R选择R—C—G—K作为当前下行路径,选择R—C—F—K作为备用下行路径。If the BL of the device node F is greater than the BL of the device node G, the root node R selects the second path through the device node F as the current downlink path, and selects the second path through the device node G as the standby downlink path; that is, R-C is selected —F—K is used as the current downlink path, and R—C—G—K is selected as the standby downlink path. Conversely, if the BL of the device node F is smaller than the BL of the device node G, the root node R selects R-C-G-K as the current downlink path and R-C-F-K as the backup downlink path.
作为优选的实施方式,步骤S1411根节点获取各第二路径中相应设备节点的电量参数之后,还包括以下步骤:As a preferred embodiment, after the root node obtains the power parameter of the corresponding device node in each second path in step S1411, the method further includes the following steps:
步骤S1413、若各第二路径中相应设备节点的电量参数相同,则根节点获取各第二路径中相应设备节点的使用频次。Step S1413: If the power parameter of the corresponding device node in each second path is the same, the root node obtains the frequency of use of the corresponding device node in each second path.
若两个中继设备节点F和G的BL>0,且设备节点F和设备节点G的BL相同,可以进一步通过相应设备节点的使用频次标记相应第二路径为当前下行路径。If the BLs of the two relay device nodes F and G are greater than 0, and the BLs of the device node F and the device node G are the same, the corresponding second path may be further marked as the current downlink path by the frequency of use of the corresponding device node.
设备节点的使用频次可以反映该节点设备在蓝牙网络中作为中继节点转发数据的频次;使用频次可以由各设备节点自己统计,然后由根节点调用,也可以由根节点统计。如果某设备节点的使用频次较高,那么可以减少该第二路径的使用,从而减少该路径占用该设备节点的频次,从而延长该设备节点的寿命。The usage frequency of the device node can reflect the frequency of the node device's forwarding data in the Bluetooth network as a relay node; the usage frequency can be counted by each device node itself, and then called by the root node, or it can be counted by the root node. If the frequency of use of a certain device node is high, then the use of the second path can be reduced, thereby reducing the frequency that the path occupies the device node, thereby extending the life of the device node.
步骤S1414、根节点标记相应设备节点使用频次最低的第二路径为当前下行路径。Step S1414: The root node marks the second path with the lowest frequency used by the corresponding device node as the current downlink path.
选择经过使用频次较低的中继设备节点的第二路径作为根节点R和当前节点K的当前下行路径。如设备节点F的使用频次为10次,设备节点G的使用频次为25次,则标记R—C—F—K作为当前下行路径,选择R—C—G—K作为备用下行路径。A second path through a relay device node that uses a lower frequency is selected as the current downlink path of the root node R and the current node K. If the usage frequency of device node F is 10 times and the usage frequency of device node G is 25 times, R-C-F-K is marked as the current downlink path, and R-C-G-K is selected as the standby downlink path.
步骤S142、根节点根据所述当前下行路径向所述当前节点发送标记指令,以使所述当前节点标记当前上行路径和备用上行路径。Step S142: The root node sends a marking instruction to the current node according to the current downlink path, so that the current node marks the current uplink path and the standby uplink path.
根节点R标记好当前下行路径和备用下行路径后,向当前节点K发送标记指令;以使当前节点将与当前下行路径相应的第一路径标记为当前上行路径,将与备用下行路径相应的第一路径标记为备用上行路径。After the root node R marks the current downlink path and the standby downlink path, it sends a marking instruction to the current node K; so that the current node marks the first path corresponding to the current downlink path as the current uplink path, and the first node corresponding to the standby downlink path. A path is marked as a backup uplink path.
作为优选的实施方式,若第二路径R—C—F—K作为当前下行路径,第二路径R—C—G—K作为备用下行路径,那么标记指令可以为表示将K—F—C—R标记为当前上行路径,将其他第一路径标记为备用上行路径的指令。As a preferred embodiment, if the second path R-C-F-K is used as the current downlink path, and the second path R-C-G-K is used as the standby downlink path, then the marking instruction may be to indicate that K-F-C- R is a command for marking the current uplink path and marking the other first paths as standby uplink paths.
作为优选的实施方式,在本实施例中,步骤S1413根节点获取各第二路径中相应设备节点的使用频次之后,还包括以下步骤:As a preferred implementation, in this embodiment, after the root node obtains the usage frequency of the corresponding device node in each second path in step S1413, the method further includes the following steps:
步骤S1415、若各第二路径中相应设备节点的电量参数相同,且各第二路径中相应设备节点的使用频次相同,则随机或根据预设规则标记一条第二路径为当前下行路径。预设规则可以为标记第一条第二路径为当前下行路径。Step S1415: If the power parameters of the corresponding device nodes in each of the second paths are the same, and the usage frequency of the corresponding device node in each of the second paths is the same, mark a second path as the current downlink path randomly or according to a preset rule. The preset rule may mark the first second path as the current downlink path.
若根节点R到当前节点K之间有多于一条的路径,且这些路径具有相同的跳数,那么根节点R会根据这些到当前节点K经过的中继设备节点的电池电量等级和使用频次,选择一条路由表路径作为当前下行路径,其余作为备用下行路径;并将当前节点K中相应的第一路径分别设为当前上行路径、备用上行路 径。若相应的中继设备节点的电池电量等级不都为零,则选择经过电池电量等级较高的中继设备节点的路径作为根节点R到设备节点K的当前下行路径。若相应的中继设备节点的电池电量等级相等,则选择经过使用频次最低的中继设备节点的路径作为根节点R到设备节点K的当前下行路径;选择经过使用频次较低的中继设备节点的路径作为根节点R到设备节点K的备用下行路径。若各第二路径中相应继设备节点的电池电量等级相同,且使用频次相同,则随机或根据预设规则选取根节点R到设备节点K的当前下行路径和备用下行路径。If there is more than one path between the root node R and the current node K, and these paths have the same number of hops, then the root node R will be based on the battery power level and frequency of use of these relay device nodes that pass to the current node K. , Select one routing table path as the current downlink path, and the rest as standby downlink paths; and set the corresponding first path in the current node K as the current uplink path and the standby uplink path, respectively. If the battery power levels of the corresponding relay device nodes are not all zero, a path passing through the relay device node with a higher battery power level is selected as the current downlink path from the root node R to the device node K. If the battery power levels of the corresponding relay device nodes are equal, the path through the relay device node with the lowest frequency is selected as the current downlink path from the root node R to the device node K; the relay device node with the lower frequency is selected. The path is the backup downlink path from the root node R to the device node K. If the battery power levels of the corresponding relay nodes in each of the second paths are the same and the frequency of use is the same, the current downlink path and the backup downlink path from the root node R to the device node K are selected randomly or according to a preset rule.
作为本发明实施例的进一步改进,当设备节点K向根节点R发送信息时,检测是否有标记当前上行路径和备用上行路径,若有则通过当前上行路径通信,然后将当前上行路径的使用频次加一,并同步使根节点R中相应的当前下行路径的使用频次加一;当根节点R向设备节点K发送信息时,检测是否有标记当前下行路径和备用下行路径,若有则通过当前下行路径通信,然后将当前下行路径的使用频次加一,并同步使设备节点K中相应的当前上行路径的使用频次加一;以保持当前上行路径、当前下行路径使用频次的同步累加,即当前路径的使用频次。As a further improvement of the embodiment of the present invention, when the device node K sends information to the root node R, it is detected whether the current uplink path and the backup uplink path are marked, and if so, communicate through the current uplink path, and then use the current uplink path frequency Increase by one and synchronize the use frequency of the corresponding current downlink path in the root node R by one. When the root node R sends information to the device node K, it is detected whether the current downlink path and the standby downlink path are marked. The downlink path communicates, and then the current frequency of the current downlink path is increased by one, and the corresponding frequency of the current current uplink path in the device node K is increased by one; to keep the current uplink path and the frequency of the current downlink path synchronized and accumulated, that is, the current How often the path is used.
在本发明实施例中,可以根据实际使用情况轮流将各路径置为当前路径,因此备用上行路径、备用下行路径在某些时段为当前上行路径、当前下行路径,因此也执行使用频次的同步累加,即备用路径的使用频次,等于备用下行路径的使用频次。In the embodiment of the present invention, each path may be set as the current path in turn according to the actual usage. Therefore, the standby uplink path and the standby downlink path are the current uplink path and the current downlink path in some periods, so the synchronization accumulation using frequency is also performed. , That is, the frequency of use of the backup path is equal to the frequency of use of the backup downlink path.
在本发明实施例中,根节点R、设备节点K会根据当前路径的使用频次和备用路径的使用频次以及中继设备节点,如设备节点G和F的剩余电池电量等级动态优化当前路径和备用路径的使用频次。因此,在本实施例中,低功耗蓝牙组网方法还包括以下步骤:In the embodiment of the present invention, the root node R and the device node K will dynamically optimize the current path and the backup according to the use frequency of the current path and the use frequency of the backup path and the remaining battery power levels of the relay device nodes such as the device nodes G and F. How often the path is used. Therefore, in this embodiment, the Bluetooth low energy networking method further includes the following steps:
预设时长之后,或者切换条件达成时,根节点标记所述当前下行路径为新的备用下行路径,以及标记相应的备用下行路径为当前下行路径;以及同步改变当前节点相应的备用上行路径、当前上行路径的标记。After a preset time period or when the switching conditions are met, the root node marks the current downlink path as a new standby downlink path, and marks the corresponding standby downlink path as the current downlink path; and changes the corresponding standby uplink path, current Mark of the upstream path.
通过定时切换或者条件满足时切换当前下行路径和备用下行路径,即轮流使用各第二路径,以动态优化当前下行路径、备用下行路径以及相应的当前上行路径、备用上行路径的使用频次,均衡各第二路径中设备节点的电量,从而延长相关设备节点的续航。By regularly switching or switching the current downlink path and the standby downlink path when the conditions are met, that is, the second paths are used in turn to dynamically optimize the frequency of using the current downlink path, the standby downlink path, and the corresponding frequency of the current uplink path, the standby uplink path, and balance each The power of the device node in the second path, thereby extending the battery life of the related device node.
作为优选的实施方式,所述切换条件达成时,标记所述当前下行路径为新的备用下行路径,以及标记相应的备用下行路径为当前下行路径,具体包括以下步骤:As a preferred embodiment, when the switching condition is fulfilled, marking the current downlink path as a new standby downlink path and marking the corresponding standby downlink path as a current downlink path specifically includes the following steps:
步骤S143、根节点根据所述当前下行路径、备用下行路径的使用频次和/或所述当前下行路径、备用下行路径中相应设备节点的电量参数标记所述当前下行路径为新的备用下行路径,以及标记相应的备用下行路径为当前下行路径。Step S143: The root node marks the current downlink path as a new standby downlink path according to the frequency of use of the current downlink path and the standby downlink path and / or a power parameter of a corresponding device node in the current downlink path and the standby downlink path. And mark the corresponding standby downlink path as the current downlink path.
随着蓝牙网络的运行,各路径中的设备节点电量会改变;若当前下行路径中相应设备节点的电量参数差于备用下行路径中相应设备节点的电量参数时,需要重新标记当前下行路径、备用下行路径;即标记此时相应设备节点电量参数最优的第二路径为当前下行路径;以实现动态优化当前下行路径、备用下行路径以及相应的当前上行路径、备用上行路径的使用频次。With the operation of the Bluetooth network, the power of device nodes in each path will change; if the power parameter of the corresponding device node in the current downlink path is worse than the power parameter of the corresponding device node in the standby downlink path, the current downlink path and standby Downlink path; that is, the second path with the best power parameter of the corresponding device node is marked as the current downlink path; in order to dynamically optimize the frequency of use of the current downlink path, standby downlink path, and corresponding current uplink path, standby uplink path.
作为优选的实施方式,步骤S143具体还包括以下步骤:As a preferred embodiment, step S143 further includes the following steps:
步骤S1431、与所述当前节点同步所述当前下行路径的使用频次。Step S1431: Synchronize the use frequency of the current downlink path with the current node.
根节点R与当前节点K之间每通信成功一次,当前下行路径以及相应的当前上行路径的使用频次增加1,根节点R和设备节点K同步记录这一使用频次。For each successful communication between the root node R and the current node K, the frequency of use of the current downlink path and the corresponding current uplink path increases by 1, and the root node R and the device node K record this frequency of use simultaneously.
步骤S1432、若所述当前下行路径、备用下行路径中相应设备节点的电量参 数标记相同,且所述当前节点与所述根节点利用所述当前下行路径通信的频次减去利用相应备用下行路径通信的频次之差大于预设阈值,则标记所述当前下行路径为新的备用下行路径,以及标记所述相应备用下行路径为当前下行路径。Step S1432, if the power parameter parameters of the corresponding equipment nodes in the current downlink path and the standby downlink path are the same, and the frequency at which the current node and the root node use the current downlink path to communicate is subtracted from the communication using the corresponding standby downlink path If the frequency difference is greater than a preset threshold, the current downlink path is marked as a new standby downlink path, and the corresponding standby downlink path is marked as a current downlink path.
如果当前下行路径,即当前路径的使用频次超过了备用下行路径,即备用路径的使用频次预设的阈值次数,例如100次,虽然此时中继设备节点G和F的剩余电池电量的等级相等,为了均衡当前下行路径、备用下行路径的使用频次,需要将当前路径变成新的备用路径,并将相应的一备用路径变成新的当前路径,即标记所述当前下行路径为新的备用下行路径,以及标记所述相应备用下行路径为当前下行路径。If the current downlink path, that is, the frequency of use of the current path exceeds the backup downlink path, that is, the preset number of times of use of the backup path, such as 100 times, although the remaining battery power levels of the relay device nodes G and F are equal at this time In order to balance the usage frequency of the current downlink path and the standby downlink path, it is necessary to change the current path into a new standby path and change a corresponding standby path into a new current path, that is, to mark the current downlink path as a new standby path. A downlink path, and marking the corresponding standby downlink path as a current downlink path.
步骤S1433、向所述当前节点发送新的标记指令,以使所述当前节点重新标记当前上行路径和备用上行路径,在当前节点向根节点发信息时,通过当前上行路径发送。Step S1433: Send a new marking instruction to the current node, so that the current node relabels the current uplink path and the standby uplink path, and when the current node sends information to the root node, send it through the current uplink path.
当前路径和备用路径的地位发生变化,根节点R与当前节点K之间的通信选择新的当前路径进行通信,每通信成功一次新的当前路径的使用频次增加1,根节点R和当前节点K同时记录此当前路径,即新的当前下行路径的使用频次。The status of the current path and the standby path changes. The communication between the root node R and the current node K selects a new current path for communication. After each successful communication, the frequency of use of the new current path increases by 1. The root node R and the current node K At the same time, record the current path, that is, the frequency of use of the new current downlink path.
作为优选的实施方式,步骤S143具体还包括以下步骤:As a preferred embodiment, step S143 further includes the following steps:
步骤S1434、若所述当前下行路径、备用下行路径中相应设备节点的电量参数标记相同,且所述当前节点与所述根节点利用所述当前下行路径通信的频次与利用相应备用下行路径通信的频次相等,则清零所述当前下行路径和备用下行路径的使用频次。Step S1434: If the power parameter flags of the corresponding device nodes in the current downlink path and the standby downlink path are the same, and the frequency at which the current node and the root node use the current downlink path to communicate with those using the corresponding standby downlink path If the frequencies are equal, then the usage frequency of the current downlink path and the standby downlink path is cleared.
当前下行路径、备用下行路径中相应设备节点的电量参数标记相同,且所述当前节点与所述根节点利用所述当前下行路径通信的频次与利用相应备用下行路径通信的频次相等时,表示当前下行路径、备用下行路径的条件相同,可 将已经统计的使用频次清零;以及同步将当前节点侧统计的当前上行路径和备用上行路径的使用频次清零,便于后续当前下行路径、备用下行路径标记的动态优化。When the power parameter parameters of the corresponding equipment nodes in the current downlink path and the standby downlink path are the same, and the frequency at which the current node and the root node communicate with the current downlink path is equal to the frequency with which the corresponding standby downlink path communicates, it indicates that the current The conditions of the downlink path and the standby downlink path are the same, and the usage frequency that has been counted can be cleared; and the usage frequency of the current uplink path and the standby uplink path counted by the current node side are cleared to facilitate subsequent current downlink paths and standby downlink paths. Dynamic optimization of tags.
作为优选的实施方式,步骤S1411根节点获取各第二路径中相应设备节点的电量参数之后,还包括以下步骤:As a preferred embodiment, after the root node obtains the power parameter of the corresponding device node in each second path in step S1411, the method further includes the following steps:
步骤S150、若有设备节点的电量参数低于预设阈值,则向与所述根节点或设备节点连接的用户终端发送低电量通知。Step S150: If a power parameter of a device node is lower than a preset threshold, send a low battery notification to a user terminal connected to the root node or the device node.
由于根节点R可以获取蓝牙网络中各设备节点的电量参数,而且根节点可以通过外部网络,如Wi-Fi或者Enternet等与用户终端通信,另外用户终端也可以与各设备节点建立蓝牙连接,因此当有设备节点的电量参数低于预设阈值时,通过根节点或设备节点向用户终端发送低电量通知,以提示用户更换相关设备节点的电池。The root node R can obtain the power parameters of each device node in the Bluetooth network, and the root node can communicate with the user terminal through an external network, such as Wi-Fi or Enternet. In addition, the user terminal can also establish a Bluetooth connection with each device node, so When the power parameter of a device node is lower than a preset threshold, a low battery notification is sent to the user terminal through the root node or the device node to prompt the user to replace the battery of the related device node.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法,如:It can be known from the description of the foregoing embodiments that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solution of the present invention in essence or a part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk , Optical discs, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention or certain parts of the embodiments, such as:
存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现前述应用于根节点和/或当前节点的低功耗蓝牙组网方法的步骤。A storage medium storing a computer program that, when executed by a processor, implements the steps of the aforementioned Bluetooth low energy networking method applied to a root node and / or a current node.
本发明可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、机顶盒、可编程的消费电子设备、网络PC、小型计算机、 大型计算机、包括以上任何系统或设备的分布式计算环境等等,如实施例二。The invention can be used in many general-purpose or special-purpose computing system environments or configurations. For example: personal computer, server computer, handheld or portable device, tablet device, multi-processor system, microprocessor-based system, set-top box, programmable consumer electronics device, network PC, small computer, mainframe computer, including the above The distributed computing environment of any system or device, etc., as in the second embodiment.
实施例二Example two
如图6所示的电子设备,包括存储器200、处理器300以及存储在存储器200中的程序,所述程序被配置成由处理器300执行,处理器300执行所述程序时实现上述应用于根节点和/或当前节点的低功耗蓝牙组网方法的步骤。The electronic device shown in FIG. 6 includes a memory 200, a processor 300, and a program stored in the memory 200. The program is configured to be executed by the processor 300. When the processor 300 executes the program, the foregoing application to the root device is implemented. The steps of the method for networking the low energy Bluetooth of the node and / or the current node.
前述电子设备可以作为蓝牙网络中的根节点或当前节点,从而将前述低功耗蓝牙组网方法应用于一蓝牙网络。因此,本发明实施例还提供了低功耗蓝牙网络,包括至少一个如根节点,即应用了前述根节点低功耗蓝牙组网方法的电子设备;以及至少一个当前节点,即应用了前述当前节点低功耗蓝牙组网方法的电子设备。The aforementioned electronic device can be used as a root node or a current node in a Bluetooth network, so that the aforementioned low-power Bluetooth networking method is applied to a Bluetooth network. Therefore, an embodiment of the present invention further provides a low-power Bluetooth network, including at least one electronic device, such as a root node, to which the foregoing root node low-power Bluetooth networking method is applied; and at least one current node, that is, to apply the foregoing current Electronic device of node low-power Bluetooth networking method.
本实施例中的电子设备、低功耗蓝牙网络与前述实施例中的方法是基于同一发明构思下的两个方面,在前面已经对方法实施过程作了详细的描述,所以本领域技术人员可根据前述描述清楚地了解本实施中的电子设备、低功耗蓝牙网络的结构及实施过程,为了说明书的简洁,在此就不再赘述。The electronic device in this embodiment, the Bluetooth low energy network, and the method in the foregoing embodiment are based on two aspects under the same inventive concept. The method implementation process has been described in detail above, so those skilled in the art can According to the foregoing description, the structure and implementation process of the electronic device and the Bluetooth low energy network in this implementation are clearly understood. For brevity of the description, the details will not be repeated here.
本发明实施例提供的电子设备、低功耗蓝牙网络,通过在当前节点与根节点之间有多条路径时,标记一条路径为当前路径,其余为备用路径,因此,在当前节点与根节点通信时,根节点与当前节点通过当前路径通信,在当前路径出现故障等情况时通过备用路径建立根节点与当前节点的通信,从而可保证消息的收发成功率。In the electronic device and the Bluetooth low energy network provided by the embodiment of the present invention, when there are multiple paths between the current node and the root node, one path is marked as the current path, and the rest are standby paths. Therefore, the current node and the root node When communicating, the root node communicates with the current node through the current path, and when the current path fails, etc., the communication between the root node and the current node is established through the backup path, thereby ensuring the success rate of message transmission and reception.
上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。The foregoing embodiments are merely preferred embodiments of the present invention, and the scope of protection of the present invention cannot be limited by this. Any non-substantial changes and substitutions made by those skilled in the art on the basis of the present invention belong to the present invention. Claimed scope.

Claims (23)

  1. 低功耗蓝牙组网方法,其特征在于:包括以下步骤:The low-power Bluetooth networking method is characterized in that it includes the following steps:
    扫描通信范围内的设备节点;Scan for device nodes within communication range;
    从所述通信范围内的设备节点获取路由信息;Obtaining routing information from a device node within the communication range;
    根据所述设备节点的路由信息生成第一路径,所述第一路径具体为当前节点经过相应设备节点到根节点的路径;Generating a first path according to the routing information of the device node, where the first path is specifically a path from the current node to the root node through the corresponding device node;
    当所述第一路径的数目多于一条时,标记一条第一路径为当前上行路径,标记其余第一路径为备用上行路径。When the number of the first paths is more than one, a first path is marked as a current uplink path, and the remaining first paths are marked as standby uplink paths.
  2. 如权利要求1所述的低功耗蓝牙组网方法,其特征在于:所述当所述第一路径的数目多于一条时,标记一条第一路径为当前上行路径,标记其余第一路径为备用上行路径之前,还包括以下步骤:The method of claim 1, wherein when the number of the first paths is more than one, marking one first path as a current uplink path and marking the remaining first paths as Before the backup uplink path, the following steps are also included:
    若生成所述第一路径,则根据所述第一路径向所述根节点发送接入通知;If the first path is generated, sending an access notification to the root node according to the first path;
    若获取到所述根节点的授权,则保存所述第一路径。If the authorization of the root node is obtained, the first path is saved.
  3. 如权利要求1所述的低功耗蓝牙组网方法,其特征在于:所述路由信息包括相应设备节点的跳数值;The low-power Bluetooth networking method according to claim 1, wherein the routing information includes a hop value of a corresponding device node;
    所述根据所述设备节点的路由信息生成第一路径,具体包括以下步骤:The generating a first path according to the routing information of the device node specifically includes the following steps:
    若所述设备节点的跳数值满足接入条件,则根据所述设备节点的路由信息生成第一路径。If the hop value of the device node meets the access condition, a first path is generated according to the routing information of the device node.
  4. 如权利要求3所述的低功耗蓝牙组网方法,其特征在于:所述设备节点的跳数值满足接入条件,具体为:The low-power Bluetooth networking method according to claim 3, wherein the hop value of the device node satisfies an access condition, specifically:
    所述设备节点的跳数值不大于所述通信范围内其余设备节点的跳数值。The hop value of the device node is not greater than the hop values of other device nodes in the communication range.
  5. 如权利要求1所述的低功耗蓝牙组网方法,其特征在于:所述标记一条第一路径为当前上行路径,具体为:The low-power Bluetooth networking method according to claim 1, wherein the marking a first path as a current uplink path is specifically:
    根据从所述根节点获取的标记指令标记相应的第一路径为当前上行路径。Mark the corresponding first path as the current uplink path according to the marking instruction obtained from the root node.
  6. 如权利要求5所述的低功耗蓝牙组网方法,其特征在于:所述标记指令具体为所述根节点根据各第一路径相应设备节点的电量参数和/或使用频次生成的。The low-power Bluetooth networking method according to claim 5, wherein the marking instruction is specifically generated by the root node according to a power parameter and / or a usage frequency of a corresponding device node of each first path.
  7. 如权利要求1所述的低功耗蓝牙组网方法,其特征在于:所述标记一条第一路径为当前上行路径,标记其余第一路径为备用上行路径之后,还包括以下步骤:The method of claim 1, wherein after marking a first path as a current uplink path and marking the remaining first paths as standby uplink paths, the method further comprises the following steps:
    若通过所述当前上行路径与根节点通信失败时,通过所述备用上行路径与根节点通信。If communication with the root node fails through the current uplink path, communicate with the root node through the standby uplink path.
  8. 低功耗蓝牙组网方法,其特征在于:包括以下步骤:The low-power Bluetooth networking method is characterized in that it includes the following steps:
    从当前节点获取接入通知,所述接入通知是当前节点根据第一路径发送的;Obtaining an access notification from the current node, where the access notification is sent by the current node according to the first path;
    根据所述当前节点发送所述接入通知的路径生成第二路径;所述第二路径具体为根节点经过相应设备节点到所述当前节点的路径;Generating a second path according to a path that the current node sends the access notification; the second path is specifically a path from a root node to the current node through a corresponding device node;
    标记一条第二路径为当前下行路径,其余第二路径为备用下行路径。One second path is marked as the current downlink path, and the remaining second paths are standby downlink paths.
  9. 如权利要求8所述的低功耗蓝牙组网方法,其特征在于:所述标记一条第二路径为当前下行路径,其余第二路径为备用下行路径之后,还包括以下步骤:The Bluetooth low energy networking method according to claim 8, wherein after marking one second path as a current downlink path and the remaining second paths as standby downlink paths, the method further comprises the following steps:
    若通过所述当前下行路径与当前节点通信失败时,通过所述备用下行路径与当前节点通信。If communication with the current node fails through the current downlink path, communicate with the current node through the standby downlink path.
  10. 如权利要求8所述的低功耗蓝牙组网方法,其特征在于:所述标记一条第二路径为当前下行路径,其余第二路径为备用下行路径之后,还包括以下步骤:预设时长之后,或者切换条件达成时,标记所述当前下行路径为新的备用下行路径,以及标记相应的备用下行路径为当前下行路径。The method of claim 8, wherein after marking a second path as a current downlink path and the remaining second paths as standby downlink paths, the method further comprises the following steps: after the preset duration Or when the handover condition is fulfilled, marking the current downlink path as a new standby downlink path, and marking the corresponding standby downlink path as the current downlink path.
  11. 如权利要求8所述的低功耗蓝牙组网方法,其特征在于:所述标记一条 第二路径为当前下行路径,其余第二路径为备用下行路径之后,还包括以下步骤:The method of claim 8, wherein after marking a second path as a current downlink path and the remaining second paths as standby downlink paths, the method further comprises the following steps:
    根据所述当前下行路径向所述当前节点发送标记指令,以使所述当前节点标记当前上行路径和备用上行路径。Sending a marking instruction to the current node according to the current downlink path, so that the current node marks the current uplink path and the standby uplink path.
  12. 如权利要求11所述的低功耗蓝牙组网方法,其特征在于:所述根据所述当前节点发送所述接入通知的路径生成第二路径,具体包括以下步骤:The method according to claim 11, wherein the step of generating a second path according to a path in which the current node sends the access notification specifically includes the following steps:
    若同意所述当前节点的接入通知,则根据所述当前节点发送所述接入通知的路径生成第二路径;If the access notification of the current node is agreed, generating a second path according to a path in which the current node sends the access notification;
    根据所述第二路径向所述当前节点发送授权指令。Sending an authorization instruction to the current node according to the second path.
  13. 如权利要求8所述的低功耗蓝牙组网方法,其特征在于:所述标记一条第二路径为当前下行路径,具体为:The Bluetooth low energy networking method according to claim 8, wherein the marking a second path as a current downlink path is specifically:
    根据各第二路径中相应设备节点的电量参数和/或使用频次标记相应的第二路径为当前下行路径。Mark the corresponding second path as the current downlink path according to the power parameter of the corresponding device node in each second path and / or use frequency.
  14. 如权利要求13所述的低功耗蓝牙组网方法,其特征在于:所述根据各第二路径中相应设备节点的电量参数和/或使用频次标记相应的第二路径为当前下行路径,具体包括以下步骤:The low-power Bluetooth networking method according to claim 13, characterized in that: the corresponding second path is marked as a current downlink path according to a power parameter of a corresponding device node in each second path and / or a frequency is used, specifically It includes the following steps:
    获取各第二路径中相应设备节点的电量参数;Obtaining power parameters of corresponding device nodes in each second path;
    标记相应设备节点电量参数最优的第二路径为当前下行路径。The second path marked with the optimal power parameter of the corresponding device node is the current downlink path.
  15. 如权利要求14所述的低功耗蓝牙组网方法,其特征在于:所述获取各第二路径中相应设备节点的电量参数之后,还包括以下步骤:The method according to claim 14, wherein after obtaining the power parameter of a corresponding device node in each second path, the method further comprises the following steps:
    若各第二路径中相应设备节点的电量参数相同,则获取各第二路径中相应设备节点的使用频次;If the power parameters of the corresponding device nodes in each second path are the same, obtaining the usage frequency of the corresponding device node in each second path;
    标记相应设备节点使用频次最低的第二路径为当前下行路径。The second path with the lowest frequency used by the corresponding device node is marked as the current downlink path.
  16. 如权利要求10所述的低功耗蓝牙组网方法,其特征在于:所述切换条件达成时,标记所述当前下行路径为新的备用下行路径,以及标记相应的备用下行路径为当前下行路径,具体包括以下步骤:The Bluetooth low energy networking method according to claim 10, characterized in that when the switching condition is fulfilled, marking the current downlink path as a new standby downlink path, and marking the corresponding standby downlink path as the current downlink path , Including the following steps:
    根据所述当前下行路径、备用下行路径的使用频次和/或所述当前下行路径、备用下行路径中相应设备节点的电量参数标记所述当前下行路径为新的备用下行路径,以及标记相应的备用下行路径为当前下行路径。Marking the current downlink path as a new standby downlink path according to the frequency of use of the current downlink path and the standby downlink path and / or power parameters of corresponding device nodes in the current downlink path and the standby downlink path, and marking the corresponding standby The downlink path is the current downlink path.
  17. 如权利要求16所述的低功耗蓝牙组网方法,其特征在于:所述根据所述当前下行路径、备用下行路径的使用频次和/或所述当前下行路径、备用下行路径中相应设备节点的电量参数标记所述当前下行路径为新的备用下行路径,具体包括以下步骤:The Bluetooth low energy networking method according to claim 16, characterized in that: according to the frequency of use of the current downlink path and the standby downlink path and / or corresponding device nodes in the current downlink path and the standby downlink path The power parameter marks the current downlink path as a new standby downlink path, and specifically includes the following steps:
    与所述当前节点同步所述当前下行路径的使用频次;Synchronize the frequency of use of the current downlink path with the current node;
    若所述当前下行路径、备用下行路径中相应设备节点的电量参数标记相同,且所述当前节点与所述根节点利用所述当前下行路径通信的频次减去利用相应备用下行路径通信的频次之差大于预设阈值,则标记所述当前下行路径为新的备用下行路径,以及标记所述相应备用下行路径为当前下行路径;If the power parameter flags of the corresponding device nodes in the current downlink path and the standby downlink path are the same, and the frequency at which the current node and the root node communicate with the current downlink path minus the frequency at which the corresponding standby downlink path communicates If the difference is greater than a preset threshold, marking the current downlink path as a new standby downlink path, and marking the corresponding standby downlink path as a current downlink path;
    向所述当前节点发送新的标记指令。Send a new marking instruction to the current node.
  18. 如权利要求17所述的低功耗蓝牙组网方法,其特征在于:根据所述当前下行路径、备用下行路径的使用频次和/或所述当前下行路径、备用下行路径中相应设备节点的电量参数标记所述当前下行路径为新的备用下行路径,以及标记相应的备用下行路径为当前下行路径,具体还包括以下步骤:The low-power Bluetooth networking method according to claim 17, characterized in that according to the frequency of use of the current downlink path and the standby downlink path and / or the power of corresponding device nodes in the current downlink path and the standby downlink path The parameter marks the current downlink path as a new standby downlink path, and marks the corresponding standby downlink path as the current downlink path, and further includes the following steps:
    若所述当前下行路径、备用下行路径中相应设备节点的电量参数标记相同,且所述当前节点与所述根节点利用所述当前下行路径通信的频次与利用相应备用下行路径通信的频次相等,则清零所述当前下行路径和备用下行路径的使用 频次。If the power parameter flags of the corresponding device nodes in the current downlink path and the standby downlink path are the same, and the frequency with which the current node and the root node communicate using the current downlink path is equal to the frequency with which the corresponding standby downlink path communicates, Then, the usage frequency of the current downlink path and the standby downlink path is cleared.
  19. 如权利要求14所述的低功耗蓝牙组网方法,其特征在于:所述获取各第二路径中相应设备节点的电量参数之后,还包括以下步骤:The method according to claim 14, wherein after obtaining the power parameter of a corresponding device node in each second path, the method further comprises the following steps:
    若有设备节点的电量参数低于预设阈值,则向与所述根节点或设备节点连接的用户终端发送低电量通知。If a power parameter of a device node is lower than a preset threshold, a low power notification is sent to a user terminal connected to the root node or the device node.
  20. 电子设备,其特征在于:包括存储器、处理器以及存储在存储器中的程序,所述程序被配置成由处理器执行,处理器执行所述程序时实现如权利要求1-7中任一项所述的低功耗蓝牙组网方法的步骤。The electronic device is characterized in that it includes a memory, a processor, and a program stored in the memory. The program is configured to be executed by a processor. When the processor executes the program, the device is implemented according to any one of claims 1-7. The steps of the Bluetooth low energy networking method described above.
  21. 电子设备,其特征在于:包括存储器、处理器以及存储在存储器中的程序,所述程序被配置成由处理器执行,处理器执行所述程序时实现如权利要求8-19中任一项所述的低功耗蓝牙组网方法的步骤。An electronic device, comprising: a memory, a processor, and a program stored in the memory, the program is configured to be executed by a processor, and when the processor executes the program, the device is implemented according to any one of claims 8-19 The steps of the Bluetooth low energy networking method described above.
  22. 低功耗蓝牙网络,其特征在于:包括至少一个如权利要求20所述的电子设备、以及至少一个如权利要求21所述的电子设备。The Bluetooth low energy network comprises at least one electronic device according to claim 20 and at least one electronic device according to claim 21.
  23. 存储介质,所述存储介质存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现:A storage medium storing a computer program, which is characterized in that the computer program is implemented when executed by a processor:
    如权利要求1-7中任一项所述的低功耗蓝牙组网方法的步骤;或者The steps of the Bluetooth low energy networking method according to any one of claims 1-7; or
    如权利要求8-19中任一项所述的低功耗蓝牙组网方法的步骤。The steps of the Bluetooth low energy networking method according to any one of claims 8-19.
PCT/CN2018/090931 2018-06-13 2018-06-13 Low-power bluetooth networking method, electronic device, network, and storage medium WO2019237262A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880091377.9A CN112075102B (en) 2018-06-13 2018-06-13 Bluetooth low energy networking method, electronic equipment, network and storage medium
PCT/CN2018/090931 WO2019237262A1 (en) 2018-06-13 2018-06-13 Low-power bluetooth networking method, electronic device, network, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/090931 WO2019237262A1 (en) 2018-06-13 2018-06-13 Low-power bluetooth networking method, electronic device, network, and storage medium

Publications (1)

Publication Number Publication Date
WO2019237262A1 true WO2019237262A1 (en) 2019-12-19

Family

ID=68842330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090931 WO2019237262A1 (en) 2018-06-13 2018-06-13 Low-power bluetooth networking method, electronic device, network, and storage medium

Country Status (2)

Country Link
CN (1) CN112075102B (en)
WO (1) WO2019237262A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950120A (en) * 2021-10-14 2022-01-18 成都康特电子科技股份有限公司 Equipment networking method and device, terminal equipment and readable storage medium
CN115529577A (en) * 2022-07-08 2022-12-27 青岛海尔智能家电科技有限公司 Method, device, equipment and storage medium for data transmission in Bluetooth network

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822643B (en) * 2021-01-14 2021-11-30 深圳市芯中芯科技有限公司 Bluetooth device multi-connection networking method and system based on BLE broadcasting

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020045424A1 (en) * 2000-10-13 2002-04-18 Lg Electronics Inc. Bluetooth private network and communication method thereof
CN101217490A (en) * 2008-01-09 2008-07-09 西南科技大学 A Bluetooth wireless transducer network organizing and routing method
CN102064860A (en) * 2011-01-06 2011-05-18 西安电子科技大学 Information acquisition system based on Bluetooth Ad Hoc network
CN103179635A (en) * 2013-01-11 2013-06-26 南京邮电大学 Bluetooth based networking and communication methods for Anddroid mobile equipment
CN105279940A (en) * 2015-12-01 2016-01-27 广州碧德电子科技有限公司 Monitoring network networking method based on low-power Bluetooth

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8351339B2 (en) * 2002-04-25 2013-01-08 Samsung Electronics Co., Ltd. Method for bluetooth on-demand routing and network formation, and communication method in bluetooth group ad hoc network
CN102056263B (en) * 2011-01-31 2013-04-17 中控科技集团有限公司 Routing method and device as well as sensor equipment based on wireless sensor tree network
CN106685822A (en) * 2015-11-11 2017-05-17 富士通株式会社 Route determination method and device
CN105792312A (en) * 2016-03-02 2016-07-20 山东航天电子技术研究所 Ad-hoc network routing method based on combination of active and passive ways
CN105915451A (en) * 2016-05-19 2016-08-31 东华大学 Multi-sink deployment and fault tolerance method for wireless sensor network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020045424A1 (en) * 2000-10-13 2002-04-18 Lg Electronics Inc. Bluetooth private network and communication method thereof
CN101217490A (en) * 2008-01-09 2008-07-09 西南科技大学 A Bluetooth wireless transducer network organizing and routing method
CN102064860A (en) * 2011-01-06 2011-05-18 西安电子科技大学 Information acquisition system based on Bluetooth Ad Hoc network
CN103179635A (en) * 2013-01-11 2013-06-26 南京邮电大学 Bluetooth based networking and communication methods for Anddroid mobile equipment
CN105279940A (en) * 2015-12-01 2016-01-27 广州碧德电子科技有限公司 Monitoring network networking method based on low-power Bluetooth

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950120A (en) * 2021-10-14 2022-01-18 成都康特电子科技股份有限公司 Equipment networking method and device, terminal equipment and readable storage medium
CN115529577A (en) * 2022-07-08 2022-12-27 青岛海尔智能家电科技有限公司 Method, device, equipment and storage medium for data transmission in Bluetooth network

Also Published As

Publication number Publication date
CN112075102A (en) 2020-12-11
CN112075102B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US8503309B2 (en) Dynamic expelling of child nodes in directed acyclic graphs in a computer network
US8774050B2 (en) Dynamic wake-up time adjustment based on designated paths through a computer network
US10171986B2 (en) Radio relay device and system with waiting time optimization
WO2016184273A1 (en) Relay selection and discovery method, device and system
WO2020029701A1 (en) Method and device for cell handover and rrc re-establishment, storage medium, user equipment
WO2019237262A1 (en) Low-power bluetooth networking method, electronic device, network, and storage medium
US20150236947A1 (en) Routing control apparatus and routing control method
CN108770036B (en) Inter-cluster-head communication method and wireless sensor network routing device
TWI539846B (en) Method to support emergency call through mesh network
WO2018086305A1 (en) Method and apparatus for determining network center node, and device node
CN107852589A (en) The instruction on the scene of neighborhood aware network data link
CN111886843B (en) Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium
Muchtar et al. Energy conservation strategies in Host Centric Networking based MANET: A review
Mortazavi et al. An energy-aware RPL routing protocol for internet of multimedia things
US8804541B2 (en) Method for managing mobile radio resources for package receiving enhancement
Pan et al. A group-less and energy efficient communication scheme based on Wi-Fi direct technology for emergency scenes
Alshareef et al. Mobile ad-hoc network management in the cloud
WO2019237264A1 (en) Low power bluetooth communication method, electronic equipment, network and storage medium
CN106411731B (en) Method and device for auto-negotiation LACP protocol reference system and reference port
CN101951657A (en) Data routing method and sensor node
Pal et al. E-Darwin2: A smartphone based disaster recovery network using WiFi tethering
KR101826761B1 (en) A method for the increase of life time of devices in a multi-hop structured wireless communication system
EP2958270B1 (en) Direct-link quality monitoring method, communications device, and system
EP3737179A1 (en) Data transmission method and device, and computer storage medium
CN106537955A (en) Data transmission method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18922868

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18922868

Country of ref document: EP

Kind code of ref document: A1