Method, device, equipment and storage medium for data transmission in Bluetooth network
By storing node information and 1-hop node information in the Bluetooth network, selecting routing paths and establishing redundant lines, the problem of excessive redundant messages in Bluetooth mesh networks is solved, achieving resource conservation and improved communication reliability.
Patent Information
- Application Number
- CN202210799824.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-07-08
AI Technical Summary
Bluetooth mesh networks suffer from excessive redundant messages, which occupy physical channels and increase node power consumption.
By storing node information and corresponding 1-hop node information in the Bluetooth network, a 1-hop node is selected to form a routing path for data transmission, reducing the number of forwarding nodes and establishing redundant lines to ensure the reliability of network communication.
It effectively reduces redundant message forwarding, lowers the probability of channel collisions, saves node resources, and improves communication success rate.
Smart Images

Figure CN115529577B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, for example, to methods, devices, equipment and storage media for data transmission in a Bluetooth network. Background Art
[0002] Bluetooth mesh is a networking technology based on the low-power Bluetooth protocol that solves the problem of many-to-many data transmission. The devices in the network that have been configured are called nodes. Nodes have a forwarding function and can forward received data to other nodes by broadcasting. In this way, the communication range of the nodes is increased. In this way, nodes can communicate with nodes outside their broadcast capability range.
[0003] At present, Bluetooth mesh uses a managed flooding algorithm to forward messages and imposes constraints on flooding. Among them, the first constraint may include: the node caches the received data, and when data arrives, it compares it with the cached data. If there is the same data, it will no longer be forwarded. If there is no identical data, the data is forwarded and cached at the same time. This method is limited by the size of the buffer area. If the buffer area is too large, it will occupy node resources. If the buffer area is too small, it cannot 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 this method, usually for the data accessibility rate, this TTL value is generally set very large. Therefore, this method can only reduce redundant data to a limited extent.
[0004] 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 node power consumption. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The disclosed embodiments provide a method, apparatus, device and storage medium for data transmission in a Bluetooth network to solve the technical problem of excessive redundant messages in a Bluetooth network. The Bluetooth network includes: a plurality of nodes composed of network-configured devices, and a network-configuration device that communicates with each node.
[0007] In some embodiments, the method comprises:
[0008] Determine a node from the Bluetooth network as a first forwarding node;
[0009] Determine the 1-hop node corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determine a node as the second forwarding node;
[0010] A routing path including the first forwarding node and the second forwarding node is formed, and data transmission in the Bluetooth network is performed through the routing path.
[0011] In some embodiments, the apparatus comprises:
[0012] A first determination module is configured to determine a node as a first forwarding node from the Bluetooth network;
[0013] A second determination module is configured to determine, according to the stored node information and the corresponding 1-hop node information, the 1-hop nodes corresponding to the first forwarding node, and determine a node therefrom as a second forwarding node;
[0014] 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.
[0015] In some embodiments, the apparatus 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 method for data transmission in a Bluetooth network when executing the program instructions.
[0016] In some embodiments, the network configuration device includes the above-mentioned device for data transmission in a Bluetooth network.
[0017] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the method for data transmission in a Bluetooth network is executed.
[0018] The method, apparatus and device for data transmission in a Bluetooth network provided by the embodiments of the present disclosure can achieve the following technical effects:
[0019] The node information and the corresponding 1-hop node information are saved. In this way, 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, which not only effectively avoids redundant message forwarding, but also reduces the probability of channel conflict and saves node resources.
[0020] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0022] Figure 1 is a schematic diagram of a Bluetooth network structure provided by an embodiment of the present disclosure;
[0023] Figure 2 It is a flowchart of a method for data transmission in a Bluetooth network provided by an embodiment of the present disclosure;
[0024] Figure 3 It is a flowchart of a method for data transmission in a Bluetooth network provided by an embodiment of the present disclosure;
[0025] Figure 4-1 , 4-2 is a schematic diagram of node selection provided by an embodiment of the present disclosure;
[0026] Figure 5 is a structural diagram of a data transmission device in a Bluetooth network provided by an embodiment of the present disclosure;
[0027] Figure 6 It is a structural schematic diagram of a data transmission device in a Bluetooth network provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0029] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0030] Unless otherwise stated, the term "plurality" means two or more.
[0031] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0032] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0033] In the disclosed embodiment, in the Bluetooth network, each node composed of network-connected devices can maintain its own 1-hop node table, so that the network-connected devices in the Bluetooth network can save node information and corresponding 1-hop node information. In this way, when data transmission is performed, 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 avoiding redundant message forwarding, but also reducing the probability of channel conflicts and saving node resources. In addition, redundant lines can also be established, so that when a forwarding node in the routing path fails, the Bluetooth network can still transmit data or communicate normally.
[0034] Figure 1 Schematic diagram of a Bluetooth network structure provided by an embodiment of the present disclosure. Figure 1 As shown, the Bluetooth network includes: a plurality of nodes 100 consisting of network-connected devices, and a network-connected device 200 communicating with each node.
[0035] For example, a smart home includes: air conditioners, refrigerators, televisions, door locks, washing machines, etc. These devices can be networked based on Bluetooth technology. During the network configuration process, the network configuration device 200 can send resource allocation data (Provisioning Data) to the network device to be configured, so that the network device to be configured returns the configuration completion (Provisioning Complete) to the configuration device 200, so that the network configuration of the network device to be configured is completed and becomes a configured device, that is, a node in the smart home Bluetooth network.
[0036] After the equipment is networked, nodes can use Mesh Message broadcast messages to communicate with each other. The format of Mesh Message broadcast messages is shown in the following table:
[0037] length Broadcast Type content 0xXX Mesh Message Network layer PDU (Protocol Data Unit)
[0038] The network layer PDU format is:
[0039]
[0040]
[0041] Among them, the survival time (Timetolive, TTL) indicates the number of message forwarding hops. Each time the message is forwarded, the TTL value decreases by 1. If the maximum value is 127, the maximum number of forwarding times is 126. SRC indicates the element address of the node. The node has one or more elements. The address of the main element is issued by the distribution network device, and the addresses of the remaining elements are accumulated in sequence. DST is the target address. The multicast address of the target address defines the following fixed addresses:
[0042] Address value Fixed multicast address name 0xFF00—0xFFFB reserve 0xFFFC All agent nodes 0xFFFD All friend nodes 0xFFFE All relay nodes 0xFFFF All nodes
[0043] From the destination address table, we can see that 0xFF00-0xFFFB are reserved addresses and are not used. TransportPDU is the data carried by the broadcast packet.
[0044] In the disclosed embodiment, after the device is networked, 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 networked successfully, each node needs to obtain and save the node information and the corresponding 1-hop node information.
[0045] Take one of the nodes as the current node as an example. The current node that completes the network configuration broadcasts and sends a command packet to obtain a 1-hop node. Since a 1-hop node does not need to be forwarded, the TTL in the command packet to obtain a 1-hop node can be the forwarding hop number "0". In addition, 0xFF00-0xFFFB in the destination address table are reserved addresses and are not used. Therefore, an address can be selected from them to represent the command to obtain a 1-hop node. For example, 0xFFFB is selected. Therefore, the network layer PDU format of the command packet to obtain a 1-hop node is:
[0046] IVI NID CTL TTL SEQ SRC DST TransportPDU NetMIC - - - 0 - Source Address 0xFFFB Transport layer PDU -
[0047] That is, the destination address DST is an address value in the reserved address value of the broadcast message, and the survival time TTL is the forwarding hop number "0".
[0048] In this way, after the current node broadcasts and sends the Get 1-hop Node command packet, it can receive the 1-hop node command return packet sent by the neighboring node, that is, the node that can be reached by 1 hop, wherein in the 1-hop node command return packet, SRC is set to the main element address of the current node (the node that receives the Get 1-hop Node command packet), and DST is set to the main element address of the current node (the node that sends the Get 1-hop Node command packet). Thus, the current node can determine the corresponding 1-hop node information according to the received 1-hop node command return packet, thereby saving the node information and the corresponding 1-hop node information, and in some embodiments, a 1-hop node table can be formed.
[0049] In a Bluetooth network, each node that completes network configuration saves the corresponding 1-hop node information, such as a 1-hop node table, and can send the corresponding 1-hop node information to the network configuration device, so that the network configuration device can obtain and save each node information in the Bluetooth network and its corresponding 1-hop node information.
[0050] Thus, the configuration device can select a corresponding routing path for data transmission in the Bluetooth network according to the stored node information and the corresponding 1-hop node information.
[0051] Figure 2 FIG. 1 is a flow chart of a method for transmitting data in a Bluetooth network provided by an embodiment of the present disclosure. Figure 2 As shown, the process of data transmission in a Bluetooth network may include:
[0052] Step 201: Determine a node as a first forwarding node from the Bluetooth network.
[0053] In a Bluetooth network, there are multiple nodes composed of networked devices. A node can be randomly determined as the starting first forwarding node, or a node can be determined as the first forwarding node based on distance location information. Alternatively, in some embodiments, the node with the most 1-hop nodes is determined based on the saved node information and the corresponding 1-hop node information; and the node with the most 1-hop nodes is determined 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 network configuration device. Therefore, the node with the most 1-hop nodes can be obtained based on 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.
[0054] Step 202: Determine the 1-hop node corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determine a node as the second forwarding node.
[0055] According to the stored 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.
[0056] Step 203: 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.
[0057] 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 data transmission in the Bluetooth network is performed through the routing path.
[0058] 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 as the third forwarding node from the 1-hop nodes corresponding to the determined forwarding nodes 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 when the 1-hop node of the first forwarding node cannot cover all nodes in the Bluetooth network.
[0059] 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. Another node can still be determined as the third forwarding node from the 1-hop node corresponding to the first forwarding node, or the 1-hop node corresponding to the second forwarding node can be determined based on the saved node information and the corresponding 1-hop node information, and one node can be determined as the third forwarding node.
[0060] Of course, 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 nodes in the Bluetooth network, it is necessary to continue to determine a node as the fourth forwarding node from the 1-hop nodes corresponding to the first forwarding node, the second forwarding node or the third forwarding node according to the saved node information and the corresponding 1-hop node information, and so on, until all nodes in the Bluetooth network are covered, thereby forming a routing path by all the determined forwarding nodes, and data transmission in the Bluetooth network can be performed through the routing path.
[0061] It can be seen that in the embodiment of the present disclosure, when the device performs Bluetooth networking and becomes a node in the Bluetooth network, it is necessary to obtain the corresponding 1-hop node information by sending a set format of Get 1-hop Node Command Packet, and report it to the networking device. In this way, the networking device maintains the node information in the entire Bluetooth network and its corresponding 1-hop node information, 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 to transmit data in the Bluetooth network, thereby effectively reducing 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.
[0062] In some embodiments, if a forwarding node in the formed routing path fails to send, 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, and data transmission in the Bluetooth network is performed through the redundant line, wherein the redundant line has at least one or more forwarding nodes different from the routing path.
[0063] Similarly, a redundant line 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 a bypass node, that is, the bypass node is not included in the redundant line. Then, each time the corresponding forwarding node is determined based on the saved node information and the corresponding 1-hop node information, the node may not be selected as the forwarding node.
[0064] The operation flow is summarized into a specific embodiment below to illustrate the data transmission process in a Bluetooth network provided by the embodiment of the present invention.
[0065] In this embodiment, 9 devices have been successfully networked, 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 network configuration device. Thus, the node information and the corresponding 1-hop node information saved by the network configuration device can be shown in Table 1, that is, the 1-hop node table maintained by the network configuration device is:
[0066] Node Information 1-hop node information a b、d b a, c, e c b、f d a, e, g e b, d, f, h f c, e, i g d、h h e, g, i i f、h
[0067] Table 1
[0068] Figure 3 It is a flowchart of a data transmission method in a Bluetooth network provided by an embodiment of the present disclosure. Figure 4-1 , Figure 4-2 FIG. 1 is a schematic diagram of a node selection provided by an embodiment of the present disclosure. Figure 3 , 4-1 ,4-2,The data transmission process in the Bluetooth network includes:
[0069] Step 301: According to Table 1, the node e with the most one-hop nodes is determined as the first forwarding node.
[0070] Step 302: According to the one-hop node information corresponding to the node e, the node d is determined as the second forwarding node.
[0071] The one-hop nodes corresponding to the node e are nodes b, d, f, and h respectively, and the node d can be determined as the second forwarding node.
[0072] Step 303: Determine node f as the third forwarding node.
[0073] The 1-hop nodes corresponding to node d are nodes a and g. Thus, Figure 4-1 As shown, the covered nodes include: e, b, d, f, h, a, g, but there is still node i that is not covered, and node f needs to be determined as the third forwarding node.
[0074] Step 304: Form a routing path including nodes d, e, and f.
[0075] Step 305: Select node b as the forwarding node.
[0076] Step 306: According to Table 1, select node a as a forwarding node from the 1-hop nodes corresponding to node b.
[0077] Step 307: According to Table 1, select node c as a forwarding node from the 1-hop nodes corresponding to node b.
[0078] like Figure 4-2 As shown, the 1-hop nodes corresponding to node b and node a respectively cannot cover all nodes in the Bluetooth network. Therefore, node c is continuously selected as the forwarding node.
[0079] Step 308: According to Table 1, select node d as a forwarding node from the 1-hop nodes corresponding to node a.
[0080] Step 309: According to Table 1, select node f as a forwarding node from the 1-hop nodes corresponding to node c.
[0081] Step 310: According to Table 1, select node g as a forwarding node from the 1-hop nodes corresponding to node d.
[0082] like Figure 4-2 As shown, 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 nodes in the Bluetooth network. Therefore, node g needs to be selected as the forwarding node from the 1-hop nodes corresponding to node d.
[0083] Step 311: Form redundant circuits including a, b, c, d, f, and g.
[0084] Among them, step 301 to step 304 and step 305 to step 311 can be performed simultaneously.
[0085] Step 312: Perform data transmission in the Bluetooth network through the routing path, and when the routing path cannot perform data transmission, perform data transmission in the Bluetooth network through a redundant line.
[0086] 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. In addition, the redundant line avoids node e, so that if node e fails, the Bluetooth network can transmit data through the redundant line, which improves the success rate of Bluetooth network communication.
[0087] Of course, in some other embodiments, other nodes may be avoided, such as node a, node c, etc., to form redundant lines, which are not listed in detail.
[0088] It can be seen that in this embodiment, the 1-hop node table maintained by the distribution network device can select the 1-hop node of each node, and the node and the corresponding 1-hop node can form a routing path and a redundant line. In this way, data transmission in the Bluetooth network is performed through the routing path or the redundant line, thereby effectively reducing the number of forwarding nodes, which not only effectively avoids redundant message forwarding, but also reduces the probability of channel conflicts, saves node resources, and at the same time, improves the success rate of Bluetooth network communication.
[0089] According to the above process for data transmission in a Bluetooth network, a device for data transmission in a Bluetooth network can be constructed.
[0090] Figure 5 1 is a schematic diagram of a structure of a data transmission device in a Bluetooth network provided by an embodiment of the present disclosure. Figure 5 As shown, the device includes: a first determination module 510, a second determination module 520 and a path transmission module 530.
[0091] The first determining module 510 is configured to determine a node as a first forwarding node from the Bluetooth network.
[0092] The second determination module 520 is configured to determine the 1-hop node corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determine a node therefrom as the second forwarding node.
[0093] 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.
[0094] In some embodiments, the network acquisition module 410 is specifically configured to obtain the current indoor temperature and humidity values uploaded by the household appliance bound to the drying device in the smart home system; or, to obtain the current temperature and humidity values of the location of the drying device from the weather forecast database, and determine them as the current indoor temperature and humidity values of the room where the drying device is located.
[0095] In some embodiments, it also includes: an acquisition and saving module, which is configured to acquire 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 determined according to the received 1-hop node command return packet after the current node that completes the network configuration broadcasts and sends an acquisition 1-hop node command packet.
[0096] The command packet for obtaining a 1-hop node is a broadcast message of the "Mesh Message" type, wherein the format of the network layer protocol data unit PDU includes:
[0097]
[0098] The destination address DST is an address value in the reserved address value of the broadcast message, and the survival time TTL is the forwarding hop number "0".
[0099] In some embodiments, the path transmission module 530 is also configured to determine a node as a third forwarding node from the 1-hop nodes corresponding to the determined forwarding nodes when the 1-hop node corresponding to the determined forwarding nodes cannot cover all nodes in the Bluetooth network, until the 1-hop nodes corresponding to all determined forwarding nodes cover all nodes in the Bluetooth network; forming a routing path including the first forwarding node, the second forwarding node and the third forwarding node.
[0100] In some embodiments, it also includes: a redundant transmission module, which is configured to form a redundant line and transmit data in the Bluetooth network through the redundant line, wherein at least one or more forwarding nodes in the redundant line and the routing path are different.
[0101] 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 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 avoiding redundant message forwarding, but also reducing the probability of channel conflicts, saving node resources, and forming redundant lines for data transmission in the Bluetooth network, ensuring that when a sending node in the routing path fails, the Bluetooth network can still communicate normally, thereby improving the success rate of Bluetooth network communication.
[0102] The present disclosure provides a device for data transmission in a Bluetooth network, the structure of which is as follows: Figure 6 As shown, including:
[0103] The processor 1000 and the memory 1001 may also include a communication interface 1002 and a bus 1003. The processor 1000, the communication interface 1002, and the memory 1001 may communicate with each other through the bus 1003. The communication interface 1002 may be used for information transmission. The processor 1000 may call the logic instructions in the memory 1001 to execute the method for data transmission in the Bluetooth network of the above embodiment.
[0104] In addition, the logic instructions in the above-mentioned memory 1001 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0105] The memory 1001 is a computer-readable storage medium that 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 a Bluetooth network in the above method embodiment.
[0106] 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 required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 1001 may include a high-speed random access memory and may also include a non-volatile memory.
[0107] An embodiment of the present disclosure provides a device for data transmission in a Bluetooth network, comprising: a processor and a memory storing program instructions, wherein the processor is configured to execute a method for data transmission in a Bluetooth network when executing the program instructions.
[0108] An embodiment of the present disclosure provides a network distribution device, including the above-mentioned device for data transmission in a Bluetooth network.
[0109] An embodiment of the present disclosure provides a storage medium storing program instructions, wherein the program instructions, when executed, execute the above-mentioned method for data transmission in a Bluetooth network.
[0110] An embodiment of the present disclosure provides a computer program product, which includes a computer program stored on a storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above-mentioned method for data transmission in a Bluetooth network.
[0111] The above-mentioned storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0112] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0113] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, individual components and functions are optional, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of the present disclosure includes the entire scope of the claims, and all available equivalents of the claims. When used in this application, although the terms "first", "second", etc. may be used in this application to describe each element, 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, the first element can be called the second element, and similarly, the second element can be called the first element, as long as all occurrences of the "first element" are renamed consistently and all occurrences of the "second element" are renamed consistently. The first element and the second element are both elements, but may not be the same element. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates, the singular forms "a", "an" and "the" are intended to include the plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0114] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0115] 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 schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0116] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for data transmission in a Bluetooth network, characterized in that: The Bluetooth network includes: a plurality of nodes composed of network-connected devices, and a network-connected device communicating with each node. The method includes: Obtaining 1-hop node information sent by each node in the Bluetooth network, and saving the node information and the corresponding 1-hop node information, wherein the 1-hop node information is determined according to the received 1-hop node command return packet after the current node that completes the network configuration broadcasts and sends the 1-hop node acquisition command packet; determining a node as the first forwarding node from the Bluetooth network; the determining a node as the first forwarding node comprises: determining the node with the most 1-hop nodes according to the saved node information and the corresponding 1-hop node information; determining the node with the most 1-hop nodes as the first forwarding node; 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; if the 1-hop node of the first forwarding node can cover all nodes in the Bluetooth network, 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 the case that the 1-hop node corresponding to the determined forwarding node cannot cover all nodes in the Bluetooth network, determine a node as the third forwarding node from the 1-hop node corresponding to the determined forwarding node; if the determined forwarding node can 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; if all the determined forwarding nodes cannot cover all nodes in the Bluetooth network, it is necessary to continue to determine a node as the fourth forwarding node from the 1-hop nodes corresponding to the first forwarding node, the second forwarding node or the third forwarding node according to the saved node information and the corresponding 1-hop node information, and so on, until all nodes in the Bluetooth network are covered, 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; A redundant line is formed, and data transmission in the Bluetooth network is performed through the redundant line, wherein at least one or more forwarding nodes in the redundant line and the routing path are different.
2. The method according to claim 1, characterized in that The obtain 1-hop node command packet is a broadcast message of the "MeshMessage" type, wherein in the format of the network layer protocol data unit PDU, the destination address DST is an address value in the reserved address value of the broadcast message, and the survival time TTL is the forwarding hop number "0".
3. A device for data transmission in a Bluetooth network, characterized in that: The Bluetooth network includes: a plurality of nodes consisting of networked devices, and a network adapter for communicating with each node, the device including: The acquisition and saving module is configured to acquire 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 determined according to the received 1-hop node command return packet after the current node that completes the network configuration broadcasts and sends the 1-hop node acquisition command packet; A first determination module is configured to determine a node as a first forwarding node from the Bluetooth network; the determining a node as the first forwarding node comprises: determining the node 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; A second determination module is configured to determine the 1-hop node corresponding to the first forwarding node according to the stored node information and the corresponding 1-hop node information, and determine a node as the second forwarding node; A path transmission module is configured to form a routing path including the first forwarding node and the second forwarding node if the 1-hop node of the first forwarding node can cover all nodes in the Bluetooth network, and perform data transmission in the Bluetooth network through the routing path; in the case where the 1-hop node corresponding to the determined forwarding node cannot cover all nodes in the Bluetooth network, determine a node as a third forwarding node from the 1-hop nodes corresponding to the determined forwarding node; if the determined forwarding node can 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; if all determined forwarding nodes cannot cover all nodes in the Bluetooth network, it is necessary to continue to determine a node as a fourth forwarding node from the 1-hop nodes corresponding to the first forwarding node, the second forwarding node or the third forwarding node according to the saved node information and the corresponding 1-hop node information, and so on, until all nodes in the Bluetooth network are covered, a routing path is formed by all determined forwarding nodes, and data transmission in the Bluetooth network can be performed through the routing path; The redundant transmission module is configured to form a redundant line and transmit data in the Bluetooth network through the redundant line, wherein at least one or more forwarding nodes in the redundant line and the routing path are different.
4. A device for data transmission in a Bluetooth network, the device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to perform the method for data transmission in a Bluetooth network as claimed in claim 1 or 2 when executing the program instructions.
5. A network distribution device, characterized in that: include: A device for data transmission in a Bluetooth network as claimed in claim 3 or 4.
6. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for data transmission in a Bluetooth network as claimed in claim 1 or 2 is executed.
Citation Information
Patent Citations
Method for constructing mobile ad hoc network based on mixed communication mode
CN106550321A
Method of bluetooth routing according to request and network formation and communication method of bluetooth group network
CN1453963A
Low-power bluetooth networking method, electronic device, network, and storage medium
WO2019237262A1
