[go: up one dir, main page]

CN115529577A - Method, device, equipment and storage medium for data transmission in Bluetooth network - Google Patents

Method, device, equipment and storage medium for data transmission in Bluetooth network Download PDF

Info

Publication number
CN115529577A
CN115529577A CN202210799824.4A CN202210799824A CN115529577A CN 115529577 A CN115529577 A CN 115529577A CN 202210799824 A CN202210799824 A CN 202210799824A CN 115529577 A CN115529577 A CN 115529577A
Authority
CN
China
Prior art keywords
node
forwarding
hop
bluetooth network
nodes
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.)
Granted
Application number
CN202210799824.4A
Other languages
Chinese (zh)
Other versions
CN115529577B (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.)
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Original Assignee
Qingdao Haier Intelligent Home Appliance Technology 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 Qingdao Haier Intelligent Home Appliance Technology Co Ltd filed Critical Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority to CN202210799824.4A priority Critical patent/CN115529577B/en
Publication of CN115529577A publication Critical patent/CN115529577A/en
Application granted granted Critical
Publication of CN115529577B publication Critical patent/CN115529577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • 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 application relates to the technical field of smart home, and discloses a method, a device, equipment and a storage medium for data transmission in a Bluetooth network. The Bluetooth network comprises: the method comprises the following steps that a plurality of nodes consisting of devices which are distributed with networks and distribution network devices which are communicated with each node, wherein the method comprises the following steps: determining a node as a first forwarding node from the Bluetooth network; determining a 1-hop node corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determining one node as a second forwarding node; and forming a routing path comprising the first forwarding node and the second forwarding node, and carrying out data transmission in the Bluetooth network through the routing path. Therefore, the number of forwarding nodes is effectively reduced, redundant message forwarding is effectively avoided, the probability of channel collision is reduced, and node resources are saved.

Description

用于蓝牙网络中数据传输的方法、装置、设备及存储介质Method, device, device and storage medium for data transmission in bluetooth network

技术领域technical field

本申请涉及智慧家居技术领域,例如涉及用于蓝牙网络中数据传输的方法、装置、设备及存储介质。The present application relates to the field of smart home technology, for example, to a method, device, device and storage medium for data transmission in a Bluetooth network.

背景技术Background technique

蓝牙mesh是基于低功耗蓝牙协议的一种组网技术,解决多对多数据传输问题。网络内的已配网的设备称为节点,节点具有转发功能,可以将收到的数据通过广播的方式转发给其它节点,这样,就增加了节点的通信范围,通过这种方法,节点可以和其广播能力范围之外的节点进行通信。Bluetooth mesh is a networking technology based on the low-power Bluetooth protocol, which solves the problem of many-to-many data transmission. The network-configured devices in the network are called nodes. Nodes have forwarding function and can forward the received data to other nodes by broadcasting. In this way, the communication range of nodes is increased. In this way, nodes can communicate with communicate with nodes outside of its broadcast capabilities.

目前,蓝牙mesh采用管理型泛洪算法来进行消息转发,并对泛洪进行了约束。其中,第一种约束可包括:节点将收到的数据进行缓存,再有数据到来时,与缓存的数据进行比较,如果有相同数据,则不再进行转发。如果没有相同数据,则转发该数据,同时缓存该数据。这种方法受限于缓存区大小,缓存区太大则占用节点资源,缓存区太小则不能有效防止数据冗余转发。第二中约束包括:在数据包中设定一个存活时间TTL(Timetolive)值,每次节点接收并转发该数据,TTL值减1,当TTL为0时,节点将停止转发该数据包,对于这种方式,通常为了数据的可达率,这个TTL值一般会被设置的很大,因此,这种方式也只能有限的减少冗余数据。Currently, Bluetooth mesh uses a managed flooding algorithm to forward messages, and restricts flooding. Among them, the first constraint may include: the node caches the received data, and compares it with the cached data when the data arrives, and does not forward it again if there is the same data. If there is no same data, forward the data and cache the data at the same time. This method is limited by the size of the cache area. If the cache area is too large, it will occupy node resources. If the cache area is too small, it will not be able to effectively prevent redundant data forwarding. The second constraint includes: setting a survival time TTL (Timetolive) value in the data packet, each time the node receives and forwards the data, the TTL value is reduced by 1, when the TTL is 0, the node will stop forwarding the data packet, for In this method, the TTL value is generally set to a large value for data availability, so this method can only reduce redundant data to a limited extent.

可见,蓝牙网络中存在大量的冗余消息,而这些冗余消息占用物理信道,增加节点功耗。It can be seen that there are a large number of redundant messages in the Bluetooth network, and these redundant messages occupy physical channels and increase the power consumption of nodes.

发明内容Contents of the invention

为了对披露的实施例的一些方面有基本的理解,下面给出了简单的概括。所述概括不是泛泛评述,也不是要确定关键/重要组成元素或描绘这些实施例的保护范围,而是作为后面的详细说明的序言。In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is presented below. The summary is not intended to be an extensive overview nor to identify key/important elements or to delineate the scope of these embodiments, but rather serves as a prelude to the detailed description that follows.

本公开实施例提供了一种用于蓝牙网络中数据传输的方法、装置、设备和存储介质,以解决蓝牙网络中冗余消息过多的技术问题。所述蓝牙网络中包括:多个由已配网的设备组成的节点,以及,与每个节点进行通讯的配网设备。Embodiments of the present disclosure provide a method, device, device and storage medium for data transmission in a Bluetooth network, so as to solve the technical problem of too many redundant messages in the Bluetooth network. The bluetooth network includes: a plurality of nodes composed of network-distributed devices, and a network-distributed device that communicates with each node.

在一些实施例中,所述方法包括:In some embodiments, the method includes:

从所述蓝牙网络中,确定一个节点为第一转发节点;From the Bluetooth network, determine a node as the first forwarding node;

根据保存的节点信息以及对应的1跳节点信息,确定所述第一转发节点对应的1跳节点,并从中确定一个节点为第二转发节点;According to the saved node information and the corresponding 1-hop node information, determine the 1-hop node corresponding to the first forwarding node, and determine a node as the second forwarding node;

形成一条包括所述第一转发节点和所述第二转发节点的路由路径,并通过所述路由路径进行所述蓝牙网络中的数据传输。forming a routing path including the first forwarding node and the second forwarding node, and performing data transmission in the Bluetooth network through the routing path.

在一些实施例中,所述装置包括:In some embodiments, the device includes:

第一确定模块,被配置为从所述蓝牙网络中,确定一个节点为第一转发节点;The first determining module is configured to determine a node from the Bluetooth network as the first forwarding node;

第二确定模块,被配置为根据保存的节点信息以及对应的1跳节点信息,确定所述第一转发节点对应的1跳节点中,并从中确定一个节点为第二转发节点;The second determination module is configured to determine one of the 1-hop nodes corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determine one node as the second forwarding node;

路径传输模块,被配置为形成一条包括所述第一转发节点和所述第二转发节点的路由路径,并通过所述路由路径进行所述蓝牙网络中的数据传输。The path transmission module is configured to form a routing path including the first forwarding node and the second forwarding node, and perform data transmission in the Bluetooth network through the routing path.

在一些实施例中,所述用于蓝牙网络中数据传输的装置,包括处理器和存储有程序指令的存储器,所述处理器被配置为在执行所述程序指令时,执行上述用于蓝牙网络中数据传输方法。In some embodiments, the device for data transmission in a Bluetooth network includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned Bluetooth network when executing the program instructions. data transfer method.

在一些实施例中,所述配网设备,包括上述用于蓝牙网络中数据传输的装置。In some embodiments, the network distribution device includes the above-mentioned device for data transmission in a Bluetooth network.

在一些实施例中,所述存储介质,存储有程序指令,所述程序指令在运行时,执行上述用于蓝牙网络中数据传输的方法。In some embodiments, the storage medium stores program instructions, and when the program instructions are run, execute the above-mentioned method for data transmission in the Bluetooth network.

本公开实施例提供的用于蓝牙网络中数据传输的方法、装置和设备,可以实现以下技术效果:The method, device and equipment for data transmission in the Bluetooth network provided by the embodiments of the present disclosure can achieve the following technical effects:

保存了节点信息以及对应的1跳节点信息,这样,可选择每个节点的1跳节点,并由节点以及对应的1跳节点,形成路由路径进行蓝牙网络中的数据传输,从而,有效减少了转发节点数量,不仅有效避免了冗余的消息转发,也降低信道冲突的概率,节约节点资源。The node information and the corresponding 1-hop node information are saved, so that the 1-hop node of each node can be selected, and the node and the corresponding 1-hop node form a routing path for data transmission in the Bluetooth network, thereby effectively reducing The number of forwarding nodes not only effectively avoids redundant message forwarding, but also reduces the probability of channel conflicts and saves node resources.

以上的总体描述和下文中的描述仅是示例性和解释性的,不用于限制本申请。The foregoing general description and the following description are exemplary and explanatory only and are not intended to limit the application.

附图说明Description of drawings

一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件示为类似的元件,附图不构成比例限制,并且其中:One or more embodiments are exemplified by the corresponding drawings, and these exemplifications and drawings do not constitute a limitation to the embodiments, and elements with the same reference numerals in the drawings are shown as similar elements, The drawings are not limited to scale and in which:

图1是本公开实施例提供的一种蓝牙网络构示意图;FIG. 1 is a schematic diagram of a bluetooth network structure provided by an embodiment of the present disclosure;

图2是本公开实施例提供的一种用于蓝牙网络中数据传输方法的流程示意图;FIG. 2 is a schematic flowchart of a data transmission method in a Bluetooth network provided by an embodiment of the present disclosure;

图3是本公开实施例提供的一种用于蓝牙网络中数据传输方法的流程示意图;Fig. 3 is a schematic flowchart of a data transmission method in a Bluetooth network provided by an embodiment of the present disclosure;

图4-1、4-2是本公开实施例提供的一种节点选择的示意图;Figures 4-1 and 4-2 are schematic diagrams of a node selection provided by an embodiment of the present disclosure;

图5是本公开实施例提供的一种用于蓝牙网络中数据传输装置的结构示意图;FIG. 5 is a schematic structural diagram of a data transmission device used in a Bluetooth network provided by an embodiment of the present disclosure;

图6是本公开实施例提供的一种用于蓝牙网络中数据传输装置的结构示意图。Fig. 6 is a schematic structural diagram of a device for data transmission in a Bluetooth network provided by an embodiment of the present disclosure.

具体实施方式detailed description

为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。In order to understand the characteristics and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and description, and are not intended to limit the embodiments of the present disclosure. In the following technical description, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawings.

本公开实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开实施例的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。The terms "first", "second" and the like in the description and claims of the embodiments of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances so as to facilitate the embodiments of the disclosed embodiments described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion.

除非另有说明,术语“多个”表示两个或两个以上。Unless stated otherwise, the term "plurality" means two or more.

本公开实施例中,字符“/”表示前后对象是一种“或”的关系。例如,A/B表示:A或B。In the embodiments of the present disclosure, the character "/" indicates that the preceding and following objects are an "or" relationship. For example, A/B means: A or B.

术语“和/或”是一种描述对象的关联关系,表示可以存在三种关系。例如,A和/或B,表示:A或B,或,A和B这三种关系。The term "and/or" is an associative relationship describing objects, indicating that there can be three relationships. For example, A and/or B means: A or B, or, A and B, these three relationships.

本公开实施例中,蓝牙网络中,由已配网的设备组成的每个节点都可维护自己的1跳节点表,从而,蓝牙网络中的配网设备可保存节点信息以及对应的1跳节点信息,这样,进行数据传输时,可选择每个节点的1跳节点,并由节点以及对应的1跳节点,形成路由路径进行蓝牙网络中的数据传输,从而,有效减少了转发节点数量,不仅有效避免了冗余的消息转发,也降低信道冲突的概率,节约节点资源。另外,还可建立冗余线路,这样,可保证了路由路径中转发节点出现故障时,蓝牙网络仍然可以正常数据传输即通信。In the embodiment of the present disclosure, in the Bluetooth network, each node composed of network-distributed devices can maintain its own 1-hop node table, so that the network distribution devices in the Bluetooth network can save node information and corresponding 1-hop nodes In this way, when performing data transmission, the 1-hop node of each node can be selected, and the node and the corresponding 1-hop node form a routing path for data transmission in the Bluetooth network, thereby effectively reducing the number of forwarding nodes, not only It effectively avoids redundant message forwarding, reduces the probability of channel conflicts, and saves node resources. In addition, redundant lines can also be established, so that when the forwarding node in the routing path fails, the Bluetooth network can still perform normal data transmission, that is, communication.

图1是本公开实施例提供的一种蓝牙网络的结构示意图。如图1所示,蓝牙网络包括:多个由已配网的设备组成的节点100,以及,与每个节点进行通讯的配网设备200。Fig. 1 is a schematic structural diagram of a Bluetooth network provided by an embodiment of the present disclosure. As shown in FIG. 1 , the Bluetooth network includes: a plurality of nodes 100 composed of network-configured devices, and a network-distribution device 200 communicating with each node.

例如,智慧家居中包括:空调、冰箱、电视、门锁、洗衣机等等。这些设备可基于蓝牙Bluetooth技术进行配网,在配网过程中,配网设备200可向待配网设备发送资源调配数据(Provisioning Data),这样,待配网设备返回配置完成(Provisioning Complete)给配置设备200,从而,该待配网设备配网完成,成为已配网设备,即成为智慧家居蓝牙网络中的一个节点。For example, smart homes include: air conditioners, refrigerators, TVs, door locks, washing machines, and more. These devices can perform network distribution based on Bluetooth technology. During the network distribution process, the network distribution device 200 can send provisioning data (Provisioning Data) to the network-to-be-provisioned device. The device 200 is configured, so that the device to be network-distributed is completed and becomes a network-distributed device, that is, a node in the smart home Bluetooth network.

设备配网完成后,节点之间可使用《Mesh Message》类型的广播报文,进行通讯,其中,《Mesh Message》类型的广播报文,格式如下表所示:After the device network configuration is completed, the nodes can use the "Mesh Message" type of broadcast message to communicate. Among them, the format of the "Mesh Message" type of broadcast message is shown in the following table:

长度length 广播类型broadcast type 内容content 0xXX0xXX 《Mesh Message》《Mesh Message》 网络层PDU(Protocol Data Unit)Network layer PDU (Protocol Data Unit)

其中网络层PDU格式:Among them, the network layer PDU format:

Figure BDA0003737073370000041
Figure BDA0003737073370000041

Figure BDA0003737073370000051
Figure BDA0003737073370000051

其中,生存时间(Timetolive,TTL)表示消息转发跳数,消息每被转发一次,TTL值减1,若最大值为127,则最大转发次数为126次。SRC表示节点的元素地址,节点有一个或多个元素,其中由配网设备给主元素下发地址,其余元素地址依次累加。DST为目标地址,目标地址的组播地址定义了以下固定地址:Among them, Time to Live (TTL) represents the number of message forwarding hops. Every time a message is forwarded, the TTL value is reduced by 1. If the maximum value is 127, the maximum number of forwarding times is 126. SRC represents the element address of the node, and the node has one or more elements, among which the network distribution device sends the address to the main element, and the addresses of the other elements are accumulated sequentially. DST is the destination address, and the multicast address of the destination address defines the following fixed addresses:

地址值address value 固定组播地址名称Fixed multicast address name 0xFF00—0xFFFB0xFF00—0xFFFB 保留reserve 0xFFFC0xFFFC 所有代理节点all proxy nodes 0xFFFD0xFFFD 所有朋友节点all friend nodes 0xFFFE0xFFFE 所有中继节点all relay nodes 0xFFFF0xFFFF 所有节点all nodes

从目的地址表可以看到0xFF00——0xFFFB为保留地址,未被使用。TransportPDU为广播包携带的数据。It can be seen from the destination address table that 0xFF00-0xFFFB are reserved addresses and are not used. TransportPDU is the data carried by the broadcast packet.

本公开实施例中,设备配网完成后,节点还需获取并保存节点信息以及对应的1跳节点信息。即蓝牙网络中,设备都配网成功后,每个节点都需获取并保存节点信息以及对应的1跳节点信息。In the embodiment of the present disclosure, after the device network configuration is completed, the node needs to obtain and save the node information and the corresponding 1-hop node information. That is, in the Bluetooth network, after the devices are successfully configured, each node needs to obtain and save the node information and the corresponding 1-hop node information.

以其中一个节点作为当前节点为例进行描述,完成配网的当前节点广播发送获取1跳节点命令包,由于1跳节点不需要转发,因此,获取1跳节点命令包中的TTL可为转发跳数“0”。并且,目的地址表中0xFF00——0xFFFB为保留地址,未被使用,因此,可以从这里面挑选出一个地址来代表获取1跳节点命令。例如:选定为0xFFFB。从而,获取1跳节点命令包的网络层PDU格式为:Taking one of the nodes as the current node as an example, the current node that has completed the distribution network broadcasts and sends the command packet to obtain the 1-hop node. Since the 1-hop node does not need to be forwarded, the TTL in the command packet to obtain the 1-hop node can be forwarded. Count "0". Moreover, 0xFF00-0xFFFB in the destination address table are reserved addresses and are not used. Therefore, an address can be selected from here to represent the command to obtain a 1-hop node. For example: 0xFFFB is selected. Therefore, the format of the network layer PDU to obtain the 1-hop node command packet is:

IVIIVI NIDNIDs CTLCTL TTLTTL SEQSEQ SRCSRC DSTDST TransportPDUTransportPDU NetMICNetMIC -- -- -- 00 -- 源地址source address 0xFFFB0xFFFB 传输层PDUtransport layer PDU --

即目的地址DST为广播报文的保留地址值中的一个地址值,存活时间TTL为转发跳数“0”。That is, the destination address DST is an address value in the reserved address values of the broadcast message, and the time-to-live TTL is the forwarding hop count "0".

这样,当前节点广播发送获取1跳节点命令包后,可接收到邻居的节点,即1跳可到达的节点发送的1跳节点命令返回包,其中,1跳节点命令返回包中,SRC设置为本节点(接收获取1跳节点命令包的节点)主元素地址,DST设置为当前节点(发送获取1跳节点命令包的节点)主元素地址。从而,当前节点即可根据接收的1跳节点命令返回包,确定对应的1跳节点信息,从而,保存了节点信息以及对应的1跳节点信息,在一些实施例中,可形成一个1跳节点表。In this way, after the current node broadcasts and obtains the 1-hop node command packet, it can receive the 1-hop node command return packet sent by the neighbor node, that is, the 1-hop reachable node. In the 1-hop node command return packet, the SRC is set to The main element address of this node (the node that receives the 1-hop node command packet) and DST is set to the current node (the node that sends the 1-hop node command packet) main element address. Therefore, the current node can return the packet according to the received 1-hop node command, and determine the corresponding 1-hop node information, thereby saving the node information and the corresponding 1-hop node information. In some embodiments, a 1-hop node can be formed surface.

在蓝牙网络中,完成配网的每个节点都保存了对应的1跳节点信息,例如:1跳节点表,并可将对应的1跳节点信息发送给配网设备,从而,配网设备可获取并保存蓝牙网络中每个节点信息及其对应的1跳节点信息。In the Bluetooth network, each node that completes the distribution network saves the corresponding 1-hop node information, such as: 1-hop node table, and can send the corresponding 1-hop node information to the distribution network device, so that the distribution network device can Obtain and save the information of each node in the Bluetooth network and its corresponding 1-hop node information.

从而,配置设备可根据保存的节点信息以及对应的1跳节点信息,选择对应的路由路径进行蓝牙网络中的数据传输。Therefore, the configuration device can select a corresponding routing path for data transmission in the Bluetooth network according to the saved node information and the corresponding 1-hop node information.

图2是本公开实施例提供的一种用于蓝牙网络中数据传输方法的流程示意图。如图2所示,蓝牙网络中数据传输的过程可包括:Fig. 2 is a schematic flowchart of a data transmission method in a Bluetooth network provided by an embodiment of the present disclosure. As shown in Figure 2, the process of data transmission in the Bluetooth network may include:

步骤201:从蓝牙网络中,确定一个节点为第一转发节点。Step 201: From the Bluetooth network, determine a node as the first forwarding node.

蓝牙网络中,有多个由已配网的设备组成的节点,可随机确定一个节点为起始的第一转发节点,或者,根据距离位置信息,确定一个节点为第一转发节点。或者,在一些实施例中,根据保存的节点信息以及对应的1跳节点信息,确定1跳节点最多的节点;并将1跳节点最多的节点确定为第一转发节点。在蓝牙组网完成后,配网设备中已经保存了节点信息以及对应的1跳节点信息,因此,可根据保存的节点信息以及对应的1跳节点信息,得到1跳节点最多的节点;从而,将1跳节点最多的节点确定为第一转发节点。In the bluetooth network, there are multiple nodes composed of network-configured devices, and one node can be randomly determined as the first forwarding node, or one node can be determined as the first forwarding node according to the distance position information. Or, in some embodiments, according to the stored node information and corresponding 1-hop node information, determine the node with the most 1-hop nodes; and determine the node with the most 1-hop nodes as the first forwarding node. After the Bluetooth networking is completed, the node information and the corresponding 1-hop node information have been saved in the distribution network device. Therefore, the node with the most 1-hop nodes can be obtained according to the saved node information and the corresponding 1-hop node information; thus, The node with the most 1-hop nodes is determined as the first forwarding node.

步骤202:根据保存的节点信息以及对应的1跳节点信息,确定第一转发节点对应的1跳节点,并从中确定一个节点为第二转发节点。Step 202: According to the saved node information and the corresponding 1-hop node information, determine the 1-hop node corresponding to the first forwarding node, and determine one node as the second forwarding node.

根据保存的节点信息以及对应的1跳节点信息,可确定第一转发节点对应的1跳节点,然后,从中,确定一个节点为第二转发节点。According to the saved node information and the corresponding 1-hop node information, the 1-hop node corresponding to the first forwarding node can be determined, and then, a node is determined as the second forwarding node.

步骤203:形成一条包括第一转发节点和第二转发节点的路由路径,并通过路由路径进行蓝牙网络中的数据传输。Step 203: Form a routing path including the first forwarding node and the second forwarding node, and perform data transmission in the Bluetooth network through the routing path.

路由路径需覆盖蓝牙网络中所有节点,因此,若第一转发节点的1跳节点能覆盖蓝牙网络中所有节点时,即可形成一条包括第一转发节点和第二转发节点的路由路径,并通过路由路径进行蓝牙网络中的数据传输。The routing path needs to cover all nodes in the Bluetooth network. Therefore, if the 1-hop node of the first forwarding node can cover all nodes in the Bluetooth network, a routing path including the first forwarding node and the second forwarding node can be formed, and pass Routing paths carry out data transmission in the Bluetooth network.

而在一些实施例中,在确定的转发节点对应的1跳节点不能覆盖蓝牙网络中所有节点的情况下,从确定的转发节点对应的1跳节点中,确定一个节点为第三转发节点,直至所有确定的转发节点对应的1跳节点覆盖蓝牙网络中所有节点;形成一条包括第一转发节点、第二转发节点和第三转发节点的路由路径在第一转发节点的1跳节点不能覆盖蓝牙网络中所有节点的情况下。In some embodiments, when the 1-hop node corresponding to the determined forwarding node cannot cover all nodes in the Bluetooth network, a node is determined to be the third forwarding node from the 1-hop node corresponding to the determined forwarding node until The 1-hop nodes corresponding to all determined forwarding nodes cover all nodes in the Bluetooth network; form a routing path including the first forwarding node, the second forwarding node and the third forwarding node, and the 1-hop node of the first forwarding node cannot cover the Bluetooth network In the case of all nodes in .

即第一转发节点对应的1跳节点,以及第二转发节点对应的1跳节点不能覆盖蓝牙网络中所有节点,可仍然从第一转发节点对应的1跳节点中,确定另一个节点为第三转发节点,或,根据保存的节点信息以及对应的1跳节点信息,确定第二转发节点对应的1跳节点,并从中确定一个节点为第三转发节点。That is, the 1-hop node corresponding to the first forwarding node and the 1-hop node corresponding to the second forwarding node cannot cover all nodes in the Bluetooth network, and another node can still be determined as the third node from the 1-hop node corresponding to the first forwarding node. The forwarding node, or, according to the saved node information and the corresponding 1-hop node information, determine the 1-hop node corresponding to the second forwarding node, and determine one node as the third forwarding node.

当然,若确定的转发节点能覆盖蓝牙网络中所有节点,则形成一条包括第一转发节点、第二转发节点和第三转发节点的路由路径。若确定的所有转发节点不能覆盖蓝牙网络中所有节点,则需继续根据保存的节点信息以及对应的1跳节点信息,从第一转发节点、第二转发节点或第三转发节点对应的1跳节点中,确定一个节点为第四转发节点,以此类推,直至蓝牙网络中所有节点被覆盖,从而,由所有确定的转发节点形成路由路径,并可通过路由路径进行蓝牙网络中的数据传输。Certainly, if the determined forwarding node can cover all nodes in the Bluetooth network, a routing path including the first forwarding node, the second forwarding node and the third forwarding node is formed. If all the determined forwarding nodes cannot cover all the nodes in the Bluetooth network, it is necessary to continue from the first forwarding node, the second forwarding node or the third forwarding node to the corresponding one-hop node according to the saved node information and the corresponding one-hop node information Among them, a node is determined to be the fourth forwarding node, and so on until all nodes in the Bluetooth network are covered, thus, a routing path is formed by all the determined forwarding nodes, and data transmission in the Bluetooth network can be performed through the routing path.

可见,本公开实施例中,设备进行蓝牙配网,并成为蓝牙网络中的节点时,需通过发送设定格式的获取1跳节点命令包,得到对应的1跳节点信息,并上报给配网设备,这样,配网设备维护整个蓝牙网络中的节点信息及其对应的1跳节点信息,从而,可选择每个节点的1跳节点,并由节点以及对应的1跳节点,形成路由路径进行蓝牙网络中的数据传输,从而,有效减少了转发节点数量,不仅有效避免了冗余的消息转发,也降低信道冲突的概率,节约节点资源。It can be seen that in the embodiment of the present disclosure, when the device performs Bluetooth distribution network and becomes a node in the Bluetooth network, it needs to obtain the corresponding 1-hop node information by sending a command packet with a set format to obtain the corresponding 1-hop node information, and report it to the distribution network In this way, the distribution network equipment maintains the node information and its corresponding 1-hop node information in the entire Bluetooth network, so that the 1-hop node of each node can be selected, and the routing path is formed by the node and the corresponding 1-hop node. The data transmission in the Bluetooth network thus effectively reduces the number of forwarding nodes, which not only effectively avoids redundant message forwarding, but also reduces the probability of channel conflicts and saves node resources.

在一些实施例中,若形成的路由路径中有一个转发节点发送故障,则蓝牙网络可能会出现通信故障,因此,为提高蓝牙网络通信的成功率,还可建立冗余线路,即形成一条冗余线路,并通过冗余线路进行蓝牙网络中的数据传输,其中,冗余线路与路由路径之中至少有一个或多个转发节点不同。In some embodiments, if there is a forwarding node transmission failure in the formed routing path, a communication failure may occur in the Bluetooth network. Therefore, in order to improve the success rate of Bluetooth network communication, a redundant line can also be established, that is, a redundant line is formed. redundant lines, and perform data transmission in the Bluetooth network through the redundant lines, wherein at least one or more forwarding nodes in the redundant lines are different from the routing path.

同样,可根据保存的节点信息以及对应的1跳节点信息,形成冗余线路,例如:可将路由路径一个转发节点作为避开节点,即冗余线路中不包括该避开节点,则每次根据保存的节点信息以及对应的1跳节点信息,确定对应的转发节点时都可不选择该节点作为转发节点。Similarly, redundant lines can be formed based on the saved node information and the corresponding 1-hop node information. For example, a forwarding node in the routing path can be used as an avoiding node, that is, the avoiding node is not included in the redundant line, and each time According to the stored node information and the corresponding 1-hop node information, the node may not be selected as the forwarding node when determining the corresponding forwarding node.

下面将操作流程集合到具体实施例中,举例说明本发明实施例提供的用于蓝牙网络中数据传输过程。In the following, the operation process is integrated into a specific embodiment to illustrate the data transmission process used in the Bluetooth network provided by the embodiment of the present invention.

本实施例中,9个设备已配网成功了,即蓝牙网络中包括了a、b、c、d、e、f、g、h、i这9个节点。这些节点只能横向或者竖向按1格距离通信,那么,每个节点发送如上格式的获取1跳节点命令包后,即可根据接收到的1跳节点命令返回包得到对应的1跳节点信息,并将对应的1跳节点信息发送给配网设备,从而,配网设备保存节点信息以及对应的1跳节点信息可如表1所示,即配网设备维护的1跳节点表为:In this embodiment, 9 devices have been configured successfully, that is, the Bluetooth network includes 9 nodes a, b, c, d, e, f, g, h, and i. These nodes can only communicate horizontally or vertically at a distance of 1 grid. Then, after each node sends the get 1-hop node command packet in the above format, it can obtain the corresponding 1-hop node information according to the received 1-hop node command return packet. , and send the corresponding 1-hop node information to the distribution network device, so that the distribution network device saves the node information and the corresponding 1-hop node information as shown in Table 1, that is, the 1-hop node table maintained by the distribution network device is:

节点信息node information 1跳节点信息1 hop node information aa b、db.d bb a、c、ea,c,e cc b、fb, f dd a、e、ga,e,g ee b、d、f、hb, d, f, h ff c、e、ic, e, i gg d、hd, h hh e、g、ie, g, i ii f、hf, h

表1Table 1

图3是本公开实施例提供的一种用于蓝牙网络中数据传输方法的流程示意图。图4-1、图4-2是本公开实施例提供的一种节点选择的示意图。结合图3、4-1、4-2,蓝牙网络中数据传输过程包括:Fig. 3 is a schematic flowchart of a data transmission method in a Bluetooth network provided by an embodiment of the present disclosure. Fig. 4-1 and Fig. 4-2 are schematic diagrams of node selection provided by an embodiment of the present disclosure. Combined with Figures 3, 4-1, and 4-2, the data transmission process in the Bluetooth network includes:

步骤301:根据表1,将1跳节点最多的节点e,确定为第一转发节点。Step 301: According to Table 1, determine the node e with the most 1-hop nodes as the first forwarding node.

步骤302:根据与节点e对应的1跳节点信息,将节点d确定为第二转发节点。Step 302: Determine node d as the second forwarding node according to the 1-hop node information corresponding to node e.

节点e对应的1跳节点,分别为节点b、d、f、h,可将节点d确定为第二转发节点。The 1-hop nodes corresponding to node e are nodes b, d, f, and h respectively, and node d may be determined as the second forwarding node.

步骤303:将节点f确定为第三转发节点。Step 303: Determine node f as the third forwarding node.

节点d对应的1跳节点为节点a和g,这样,如图4-1所示,可覆盖的节点包括:e、b、d、f、h、a、g,但是,还有节点i没有被覆盖,还需将节点f确定为第三转发节点。The 1-hop nodes corresponding to node d are nodes a and g, so, as shown in Figure 4-1, the covered nodes include: e, b, d, f, h, a, g, but there is no node i is covered, it is also necessary to determine node f as the third forwarding node.

步骤304:形成包括节点d、e、f的路由路径。Step 304: Form a routing path including nodes d, e, f.

步骤305:选择节点b为转发节点。Step 305: Select node b as the forwarding node.

步骤306:根据表1,从节点b对应的1跳节点中,选择节点a为转发节点。Step 306: According to Table 1, from the 1-hop nodes corresponding to node b, select node a as the forwarding node.

步骤307:根据表1,从节点b对应的1跳节点中,选择节点c为转发节点。Step 307: According to Table 1, from the 1-hop nodes corresponding to node b, select node c as the forwarding node.

如图4-2所示,节点b和节点a分别对应的1跳节点,不能覆盖蓝牙网络中所有节点,因此,继续选择节点c为转发节点。As shown in Figure 4-2, the 1-hop nodes corresponding to node b and node a respectively cannot cover all nodes in the Bluetooth network. Therefore, continue to select node c as the forwarding node.

步骤308:根据表1,从节点a对应的1跳节点中,选择节点d为转发节点。Step 308: According to Table 1, from the 1-hop nodes corresponding to node a, select node d as the forwarding node.

步骤309:根据表1,从节点c对应的1跳节点中,选择节点f为转发节点。Step 309: According to Table 1, from the 1-hop nodes corresponding to node c, select node f as the forwarding node.

步骤310:根据表1,从节点d对应的1跳节点中,选择节点g为转发节点。Step 310: According to Table 1, from the 1-hop nodes corresponding to node d, select node g as the forwarding node.

如图4-2所示,确定的转发节点a、b、c、d、f对应的1跳节点中,还不包括节点h,即确定的转发节点对应的1跳节点不能覆盖蓝牙网络中所有节点,因此,还需从节点d对应的1跳节点中,选择节点g为转发节点。As shown in Figure 4-2, the 1-hop nodes corresponding to the determined forwarding nodes a, b, c, d, and f do not include node h, that is, the 1-hop nodes corresponding to the determined forwarding nodes cannot cover all the nodes in the Bluetooth network. Therefore, it is also necessary to select node g as the forwarding node from the 1-hop nodes corresponding to node d.

步骤311:形成包括a、b、c、d、f、g的冗余线路。Step 311: Form redundant lines including a, b, c, d, f, g.

其中,步骤301-步骤304,与步骤305-步骤311可同步进行。Wherein, step 301-step 304 and step 305-step 311 can be performed synchronously.

步骤312:通过路由路径进行蓝牙网络中的数据传输,以及在路由路径不能进行数据传输的情况下,通过冗余线路进行蓝牙网络中的数据传输。Step 312: Perform data transmission in the Bluetooth network through the routing path, and perform data transmission in the Bluetooth network through redundant lines in the case that the routing path cannot perform data transmission.

路由路径包括了较少的节点,可有效减少了转发节点数量,避免了冗余的消息转发,也降低信道冲突的概率,节约节点资源。并且,冗余线路中避开了节点e,这样,若节点e出现故障了,蓝牙网络可通过冗余线路进行数据传输,提高了蓝牙网络通信的成功率。The routing path includes fewer nodes, which can effectively reduce the number of forwarding nodes, avoid redundant message forwarding, reduce the probability of channel conflicts, and save node resources. Moreover, the node e is avoided in the redundant line, so that if the node e fails, the Bluetooth network can transmit data through the redundant line, which improves the success rate of the Bluetooth network communication.

当然,其他一些实施例中,也可选择避开其他的节点,例如:节点a、节点c等等,来形成冗余线路,具体就不一一例举了。Certainly, in some other embodiments, other nodes may also be chosen to be avoided, such as node a, node c, etc., to form redundant lines, and specific examples will not be given one by one.

可见,本实施例中,配网设备维护的1跳节点表,这样,可选择每个节点的1跳节点,并由节点以及对应的1跳节点,形成路由路径以及冗余线路,这样,通过路由路径或冗余线路进行蓝牙网络中的数据传输,从而,有效减少了转发节点数量,不仅有效避免了冗余的消息转发,也降低信道冲突的概率,节约节点资源,同时,还提高了蓝牙网络通信的成功率。It can be seen that in this embodiment, the 1-hop node table maintained by the distribution network equipment, in this way, the 1-hop node of each node can be selected, and the routing path and the redundant line are formed by the node and the corresponding 1-hop node. In this way, through Routing paths or redundant lines carry out data transmission in the Bluetooth network, thereby effectively reducing the number of forwarding nodes, not only effectively avoiding redundant message forwarding, but also reducing the probability of channel conflicts, saving node resources, and improving Bluetooth The success rate of network communication.

根据上述用于蓝牙网络中数据传输的过程,可构建一种用于蓝牙网络中数据传输的装置。According to the above process for data transmission in the Bluetooth network, a device for data transmission in the Bluetooth network can be constructed.

图5是本公开实施例提供的一种用于蓝牙网络中数据传输装置的结构示意图。如图5所示,该装置包括:第一确定模块510、第二确定模块520和路径传输模块530。Fig. 5 is a schematic structural diagram of a data transmission device in a Bluetooth network provided by an embodiment of the present disclosure. As shown in FIG. 5 , the device includes: a first determination module 510 , a second determination module 520 and a path transmission module 530 .

第一确定模块510,被配置为从蓝牙网络中,确定一个节点为第一转发节点。The first determining module 510 is configured to determine a node from the Bluetooth network as the first forwarding node.

第二确定模块520,被配置为根据保存的节点信息以及对应的1跳节点信息,确定第一转发节点对应的1跳节点,并从中确定一个节点为第二转发节点。The second determining module 520 is configured to determine a 1-hop node corresponding to the first forwarding node according to the stored node information and corresponding 1-hop node information, and determine one node as the second forwarding node.

路径传输模块530,被配置为形成一条包括第一转发节点和第二转发节点的路由路径,并通过路由路径进行蓝牙网络中的数据传输。The path transmission module 530 is configured to form a routing path including the first forwarding node and the second forwarding node, and perform data transmission in the Bluetooth network through the routing path.

在一些实施例中,网络获取模块410,具体被配置为获取智慧家居系统中与干衣设备绑定的家电设备上传的当前室内温湿度值;或,从天气预报数据库中,获取干衣设备所在位置的当前温湿度值,并确定为干衣设备所在室内的当前室内温湿度值。In some embodiments, the network acquisition module 410 is specifically configured to acquire the current indoor temperature and humidity value uploaded by the household appliances bound to the drying equipment in the smart home system; or, from the weather forecast database, acquire the location of the drying equipment The current temperature and humidity value of the location is determined as the current indoor temperature and humidity value of the room where the drying equipment is located.

在一些实施例中,还包括:获取保存模块,被配置为获取蓝牙网络中每个节点发送的1跳节点信息,并保存节点信息以及对应的1跳节点信息,其中,1跳节点信息是完成配网的当前节点广播发送获取1跳节点命令包后,根据接收到的1跳节点命令返回包确定的。In some embodiments, it also includes: an obtaining and saving module configured to obtain the 1-hop node information sent by each node in the Bluetooth network, and save the node information and the corresponding 1-hop node information, wherein the 1-hop node information is completed After the current node of the distribution network broadcasts and obtains the 1-hop node command packet, it is determined according to the received 1-hop node command return packet.

其中,获取1跳节点命令包为《Mesh Message》类型的广播报文,其中,网络层协议数据单元PDU的格式包括:Among them, the acquisition of the 1-hop node command packet is a broadcast message of the "Mesh Message" type, wherein the format of the network layer protocol data unit PDU includes:

Figure BDA0003737073370000101
Figure BDA0003737073370000101

其中,目的地址DST为广播报文的保留地址值中的一个地址值,存活时间TTL为转发跳数“0”。Wherein, the destination address DST is an address value in the reserved address values of the broadcast message, and the time-to-live TTL is the forwarding hop count "0".

在一些实施例中,路径传输模块530,还被配置为在确定的转发节点对应的1跳节点不能覆盖蓝牙网络中所有节点的情况下,从确定的转发节点对应的1跳节点中,确定一个节点为第三转发节点,直至所有确定的转发节点对应的1跳节点覆盖蓝牙网络中所有节点;形成一条包括第一转发节点、第二转发节点和第三转发节点的路由路径。In some embodiments, the path transmission module 530 is further configured to determine one of the 1-hop nodes corresponding to the determined forwarding node when the 1-hop node corresponding to the determined forwarding node cannot cover all nodes in the Bluetooth network. The node is the third forwarding node until the 1-hop nodes corresponding to all determined forwarding nodes cover all nodes in the Bluetooth network; a routing path including the first forwarding node, the second forwarding node and the third forwarding node is formed.

在一些实施例中,还包括:冗余传输模块,被配置为形成一条冗余线路,并通过冗余线路进行蓝牙网络中的数据传输,其中,冗余线路与路由路径之中至少有一个或多个转发节点不同。In some embodiments, it also includes: a redundant transmission module configured to form a redundant line, and perform data transmission in the Bluetooth network through the redundant line, wherein at least one of the redundant line and the routing path or Multiple forwarding nodes are different.

可见,本实施例中,用于蓝牙网络中数据传输的装置可根据保存的节点信息以及对应的1跳节点信息,选择每个节点的1跳节点,并由节点以及对应的1跳节点,形成路由路径进行蓝牙网络中的数据传输,从而,有效减少了转发节点数量,不仅有效避免了冗余的消息转发,也降低信道冲突的概率,节约节点资源,还可形成冗余线路进行蓝牙网络中的数据传输,保证了路由路径中发节点出现故障时,蓝牙网络仍然可以正常通信,提高了蓝牙网络通讯成功率。It can be seen that in this embodiment, the device for data transmission in the Bluetooth network can select the 1-hop node of each node according to the saved node information and the corresponding 1-hop node information, and form the node and the corresponding 1-hop node. The routing path is used for data transmission in the Bluetooth network, thereby effectively reducing the number of forwarding nodes, not only effectively avoiding redundant message forwarding, but also reducing the probability of channel conflicts, saving node resources, and forming redundant lines for Bluetooth network transmission. The data transmission ensures that when the sending node in the routing path fails, the Bluetooth network can still communicate normally, which improves the success rate of Bluetooth network communication.

本公开实施例提供了一种用于蓝牙网络中数据传输的装置,其结构如图6所示,包括:An embodiment of the present disclosure provides a device for data transmission in a Bluetooth network, the structure of which is shown in Figure 6, including:

处理器(processor)1000和存储器(memory)1001,还可以包括通信接口(Communication Interface)1002和总线1003。其中,处理器1000、通信接口1002、存储器1001可以通过总线1003完成相互间的通信。通信接口1002可以用于信息传输。处理器1000可以调用存储器1001中的逻辑指令,以执行上述实施例的用于蓝牙网络中数据传输的方法。A processor (processor) 1000 and a memory (memory) 1001 may also include a communication interface (Communication Interface) 1002 and a bus 1003 . Wherein, the processor 1000 , the communication interface 1002 , and the memory 1001 can communicate with each other through the bus 1003 . Communication interface 1002 may be used for information transfer. The processor 1000 can invoke logic instructions in the memory 1001 to execute the method for data transmission in the Bluetooth network of the above-mentioned embodiments.

此外,上述的存储器1001中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the above logic instructions in the memory 1001 may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as an independent product.

存储器1001作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器1000通过运行存储在存储器1001中的程序指令/模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的用于蓝牙网络中数据传输的方法。The memory 1001, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 1000 executes functional applications and data processing by running the program instructions/modules stored in the memory 1001, that is, implements the method for data transmission in the Bluetooth network in the above method embodiments.

存储器1001可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器1001可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 1001 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal device, and the like. In addition, the memory 1001 may include a high-speed random access memory, and may also include a non-volatile memory.

本公开实施例提供了一种用于蓝牙网络中数据传输装置,包括:处理器和存储有程序指令的存储器,处理器被配置为在执行程序指令时,执行用于蓝牙网络中数据传输方法。An embodiment of the present disclosure provides a data transmission device in a Bluetooth network, including: a processor and a memory storing program instructions, and the processor is configured to execute a data transmission method in a Bluetooth network when executing the program instructions.

本公开实施例提供了一种配网设备,包括上述用于蓝牙网络中数据传输装置。An embodiment of the present disclosure provides a network distribution device, including the above-mentioned data transmission device in a Bluetooth network.

本公开实施例提供了一种存储介质,存储有程序指令,所述程序指令在运行时,执行如上述用于蓝牙网络中数据传输的方法。An embodiment of the present disclosure provides a storage medium, which stores program instructions, and when the program instructions are run, execute the above-mentioned method for data transmission in a Bluetooth network.

本公开实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述用于蓝牙网络中数据传输方法。An embodiment of the present disclosure provides a computer program product, the computer program product includes a computer program stored on a storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes The above is used for the data transmission method in the bluetooth network.

上述的存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The above-mentioned storage medium may be a transitory computer-readable storage medium, or a non-transitory computer-readable storage medium.

本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solutions of the embodiments of the present disclosure can be embodied in the form of software products, which are stored in a storage medium and include one or more instructions to make a computer device (which can be a personal computer, a server, or a network equipment, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage medium can be a non-transitory storage medium, including: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc. A medium that can store program code, or a transitory storage medium.

以上描述和附图充分地示出了本公开的实施例,以使本领域的技术人员能够实践它们。其他实施例可以包括结构的、逻辑的、电气的、过程的以及其他的改变。实施例仅代表可能的变化。除非明确要求,否则单独的部件和功能是可选的,并且操作的顺序可以变化。一些实施例的部分和特征可以被包括在或替换其他实施例的部分和特征。本公开实施例的范围包括权利要求书的整个范围,以及权利要求书的所有可获得的等同物。当用于本申请中时,虽然术语“第一”、“第二”等可能会在本申请中使用以描述各元件,但这些元件不应受到这些术语的限制。这些术语仅用于将一个元件与另一个元件区别开。比如,在不改变描述的含义的情况下,第一元件可以叫做第二元件,并且同样第,第二元件可以叫做第一元件,只要所有出现的“第一元件”一致重命名并且所有出现的“第二元件”一致重命名即可。第一元件和第二元件都是元件,但可以不是相同的元件。而且,本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。在没有更多限制的情况下,由语句“包括一个…”限定的要素,并不排除在包括所述要素的过程、方法或者设备中还存在另外的相同要素。本文中,每个实施例重点说明的可以是与其他实施例的不同之处,各个实施例之间相同相似部分可以互相参见。对于实施例公开的方法、产品等而言,如果其与实施例公开的方法部分相对应,那么相关之处可以参见方法部分的描述。The above description and drawings sufficiently illustrate the embodiments of the present disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, procedural, and other changes. The examples merely represent possible variations. Individual components and functions are optional unless explicitly required, and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for those of other embodiments. The scope of embodiments of the present disclosure includes the full scope of the claims, and all available equivalents of the claims. When used in the present application, although the terms 'first', 'second', etc. may be used in the present application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, without changing the meaning of the description, a first element could be called a second element, and likewise, a second element could be called a first element, as long as all occurrences of "first element" are renamed consistently and all occurrences of "Second component" can be renamed consistently. The first element and the second element are both elements, but may not be the same element. Also, the terms used in the present application are used to describe the embodiments only and are not used to limit the claims. As used in the examples and description of the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well unless the context clearly indicates otherwise . Similarly, the term "and/or" as used in this application is meant to include any and all possible combinations of one or more of the associated listed ones. Additionally, when used in this application, the term "comprise" and its variants "comprises" and/or comprising (comprising) etc. refer to stated features, integers, steps, operations, elements, and/or The presence of a component does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groupings of these. Without further limitations, an element defined by the statement "comprising a ..." does not exclude the presence of additional identical elements in the process, method or apparatus comprising said element. Herein, what each embodiment focuses on may be the difference from other embodiments, and the same and similar parts of the various embodiments may refer to each other. For the method, product, etc. disclosed in the embodiment, if it corresponds to the method part disclosed in the embodiment, then the relevant part can refer to the description of the method part.

本领域技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,可以取决于技术方案的特定应用和设计约束条件。所述技术人员可以对每个特定的应用来使用不同方法以实现所描述的功能,但是这种实现不应认为超出本公开实施例的范围。所述技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software may depend on the specific application and design constraints of the technical solution. Said artisans may implement the described functions using different methods for each particular application, but such implementation should not be regarded as exceeding the scope of the disclosed embodiments. The skilled person can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

本文所披露的实施例中,所揭露的方法、产品(包括但不限于装置、设备等),可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例。另外,在本公开实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units may only be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined Or it can be integrated into another system, or some features can be ignored, or not implemented. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

附图中的流程图和框图显示了根据本公开实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。在附图中的流程图和框图所对应的描述中,不同的方框所对应的操作或步骤也可以以不同于描述中所披露的顺序发生,有时不同的操作或步骤之间不存在特定的顺序。例如,两个连续的操作或步骤实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks may also occur in a different order than disclosed in the description, and sometimes there is no specific agreement between different operations or steps. order. For example, two consecutive operations or steps may, in fact, be performed substantially concurrently, or they may sometimes be performed in the reverse order, depending upon the functionality involved. Each block in the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by dedicated hardware implemented in combination with computer instructions.

Claims (10)

1. A method for data transmission in a bluetooth network, the bluetooth network comprising: the method comprises the following steps that a plurality of nodes consisting of devices which are distributed with networks and distribution network devices which are communicated with each node, wherein the method comprises the following steps:
determining a node as a first forwarding node from the Bluetooth network;
determining a 1-hop node corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determining one node as a second forwarding node;
and forming a routing path comprising the first forwarding node and the second forwarding node, and carrying out data transmission in the Bluetooth network through the routing path.
2. The method of claim 1, wherein prior to determining that a node is a first forwarding node, further comprising:
and acquiring 1-hop node information sent by each node in the Bluetooth network, and storing the node information and the corresponding 1-hop node information, wherein the 1-hop node information is determined according to a received 1-hop node command return packet after the current node of the distribution network broadcasts and sends the acquired 1-hop node command packet.
3. The method of claim 2, wherein the get 1-hop node command packet is a Mesh Message type broadcast packet, and wherein a format of a network layer Protocol Data Unit (PDU) comprises:
Figure FDA0003737073360000011
wherein, the destination address DST is one address value in the reserved address values of the broadcast message, and the survival time TTL is the forwarding hop count of 0.
4. The method of claim 1, wherein determining that one node is a first forwarding node comprises:
determining the nodes with the most 1-hop nodes according to the stored node information and the corresponding 1-hop node information;
and determining the node with the most 1-hop nodes as the first forwarding node.
5. The method of claim 1, wherein forming a routing path that includes the first forwarding node and the second forwarding node comprises:
under the condition that the 1-hop nodes corresponding to the determined forwarding nodes can not cover all the nodes in the Bluetooth network, determining one node as a third forwarding node from the 1-hop nodes corresponding to the determined forwarding nodes until all the nodes in the Bluetooth network are covered by the 1-hop nodes corresponding to all the determined forwarding nodes;
forming a routing path including the first forwarding node, the second forwarding node, and the third forwarding node.
6. The method of any one of claims 1-5, further comprising:
and forming a redundant line, and performing data transmission in the Bluetooth network through the redundant line, wherein the redundant line is different from at least one or more forwarding nodes in the routing path.
7. An apparatus for data transmission in a bluetooth network, the bluetooth network comprising: a plurality of nodes comprising devices for which a network has been distributed, and a network distributor in communication with each node, the apparatus comprising:
a first determining module configured to determine a node as a first forwarding node from the bluetooth network;
the second determining module is configured to determine a 1-hop node corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determine one node as a second forwarding node;
a path transmission module configured to form a routing path including the first forwarding node and the second forwarding node, and perform data transmission in the bluetooth network through the routing path.
8. An apparatus for data transmission in a bluetooth network, the apparatus comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method for data transmission in a bluetooth network according to any one of claims 1 to 6 when executing the program instructions.
9. A network distribution device, comprising: an arrangement according to claim 7 or 8 for data transmission in a bluetooth network.
10. A storage medium storing program instructions which, when executed, perform a method for data transmission in a bluetooth network according to any one of claims 1 to 6.
CN202210799824.4A 2022-07-08 2022-07-08 Method, device, equipment and storage medium for data transmission in Bluetooth network Active CN115529577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210799824.4A CN115529577B (en) 2022-07-08 2022-07-08 Method, device, equipment and storage medium for data transmission in Bluetooth network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210799824.4A CN115529577B (en) 2022-07-08 2022-07-08 Method, device, equipment and storage medium for data transmission in Bluetooth network

Publications (2)

Publication Number Publication Date
CN115529577A true CN115529577A (en) 2022-12-27
CN115529577B CN115529577B (en) 2024-11-19

Family

ID=84696479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210799824.4A Active CN115529577B (en) 2022-07-08 2022-07-08 Method, device, equipment and storage medium for data transmission in Bluetooth network

Country Status (1)

Country Link
CN (1) CN115529577B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1453963A (en) * 2002-04-25 2003-11-05 三星电子株式会社 Method of bluetooth routing according to request and network formation and communication method of bluetooth group network
CN106550321A (en) * 2017-01-10 2017-03-29 湖南科技职业学院 A kind of construction method of the mobile ad hoc network based on Hybrid communication model
WO2019237262A1 (en) * 2018-06-13 2019-12-19 卧槽科技(深圳)有限公司 Low-power bluetooth networking method, electronic device, network, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1453963A (en) * 2002-04-25 2003-11-05 三星电子株式会社 Method of bluetooth routing according to request and network formation and communication method of bluetooth group network
CN106550321A (en) * 2017-01-10 2017-03-29 湖南科技职业学院 A kind of construction method of the mobile ad hoc network based on Hybrid communication model
WO2019237262A1 (en) * 2018-06-13 2019-12-19 卧槽科技(深圳)有限公司 Low-power bluetooth networking method, electronic device, network, and storage medium

Also Published As

Publication number Publication date
CN115529577B (en) 2024-11-19

Similar Documents

Publication Publication Date Title
EP2652905B1 (en) Increased communication opportunities with low-contact nodes in a computer network
US9071533B2 (en) Multicast group assignment using probabilistic approximations
CN112073920B (en) Networking method of wireless grid network node and network node equipment
US9712433B2 (en) Maintaining and communicating nodal neighboring information
US20130250811A1 (en) Dynamic division of routing domains in reactive routing networks
US7310761B2 (en) Apparatus and method for retransmitting data packets in mobile ad hoc network environment
US10904097B2 (en) Concurrent network reformation for low-power and lossy networks
EP2399370B1 (en) Maximum transmission unit, MTU, size discovery method for data-link layers
WO2008083395A2 (en) Unknown destination traffic repetition
US10440631B1 (en) Payload type aware routing in wireless mesh networks
CN109788444B (en) Node networking method applied to high-density multi-hop network
CN112534782A (en) Independent redundant path discovery for bluetooth networks
CN113170005A (en) Method and apparatus for supporting selective forwarding of messages in a network of communicatively coupled communication devices
CN106900174B (en) Data transmission method, device and system for wireless local area network mesh network
CN105187311A (en) Message forwarding method and message forwarding device
CN112004216B (en) Method for forwarding and processing Bluetooth Mesh relay node
TWI849175B (en) Directed forwarding information sharing between devices in a mesh network
CN105072586A (en) Management method for forwarding of broadcast message in embedded wireless ad hoc network
CN114845287A (en) Low-voltage acquisition system based on Bluetooth mesh and clustering ad hoc network method
CN112995043B (en) Information processing method and device in wireless mesh network and electronic equipment
CN115529577A (en) Method, device, equipment and storage medium for data transmission in Bluetooth network
Singh et al. Non-root-based hybrid wireless mesh protocol for wireless mesh networks
CN104796345A (en) Message transmission control method and equipment
Chen et al. Shortcut anycast tree routing in MANETs
WO2019127204A1 (en) Data transmission method and device

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