WO2019237264A1 - Low power bluetooth communication method, electronic equipment, network and storage medium - Google Patents

Low power bluetooth communication method, electronic equipment, network and storage medium Download PDF

Info

Publication number
WO2019237264A1
WO2019237264A1 PCT/CN2018/090933 CN2018090933W WO2019237264A1 WO 2019237264 A1 WO2019237264 A1 WO 2019237264A1 CN 2018090933 W CN2018090933 W CN 2018090933W WO 2019237264 A1 WO2019237264 A1 WO 2019237264A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
path
type
communication range
root node
Prior art date
Application number
PCT/CN2018/090933
Other languages
French (fr)
Chinese (zh)
Inventor
朱洲
李志晨
刘延飞
潘阳
Original Assignee
卧槽科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 卧槽科技(深圳)有限公司 filed Critical 卧槽科技(深圳)有限公司
Priority to PCT/CN2018/090933 priority Critical patent/WO2019237264A1/en
Priority to CN201880091915.4A priority patent/CN111971984B/en
Publication of WO2019237264A1 publication Critical patent/WO2019237264A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • 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

Definitions

  • the present invention relates to Bluetooth networking technology, and in particular, to a low-power Bluetooth communication method, an electronic device, a network, and a storage medium.
  • Bluetooth Low Energy is a new Bluetooth 4.0 specification introduced by Bluetooth SIG on July 7, 2010. Its most important characteristics are extremely low power consumption and short distance.
  • the traditional Bluetooth networking method uses a piconet (Piconet). Each piconet has one and only one master device, and the others are slave devices. That is, a master device can communicate with one or no more than one Bluetooth device within the Bluetooth communication range. 7 Bluetooth devices communicate.
  • the Mesh Working Group of Bluetooth proposed a BLE-based networking specification.
  • This specification is a Mesh network technology based on the Flooding protocol.
  • For low-power nodes in the Mesh network topology proposed by the specification it can only communicate with There are friend nodes around to communicate, and more node roles are assigned in the use of the entire network.
  • the existing Bluetooth device networking usually adopts a tree networking method, but how to generate and quickly select the path between the ordinary device node and the root node, in order to improve the response speed of the Bluetooth network and ensure the success rate of message sending and receiving still need to be solved.
  • an object of the present invention is to provide a Bluetooth low energy communication method, an electronic device, a network, and a storage medium.
  • the pressure of the root node is to provide a Bluetooth low energy communication method, an electronic device, a network, and a storage medium.
  • the Bluetooth low energy communication method includes the following steps:
  • the first type of path is a path that communicates with a root node through a relay device node within the communication range;
  • the second type of path is a path that communicates with each device node within the communication range.
  • the method further includes the following steps:
  • the failure to communicate with the root node through the first type of path specifically includes: power failure or failure of the root node.
  • the Bluetooth low energy communication method further includes the following steps: if the root node is powered off or faulty, sending a root node disconnection notification to a user terminal within the communication range.
  • the method further includes the following steps:
  • routing information from a device node within the communication range, where the routing information includes a hop value of a corresponding device node.
  • the hop value of the relay device node is not greater than the hop value of each device node in the communication range.
  • generating the first type path and the second type path according to the routing information of the device nodes in the communication range specifically includes the following steps:
  • hop value of any device node is not greater than the hop values of other device nodes in the communication range, generating a first type of path according to the routing information of the device node;
  • a second type of path is generated according to the information of each device node within the communication range.
  • the method further includes the following steps:
  • the first type path and the second type path are saved.
  • the method further includes the following steps:
  • the method further includes the following steps:
  • the method further includes the following steps:
  • the communication between the user terminal and the target node fails to be established through the second type of path, information of the target node is sent to the root node through the first path to establish the root node through the root node. Communication between a user terminal and the target node.
  • the method further includes the following steps:
  • marking a first-type path as a current path and marking the remaining first-type paths as standby paths is specifically:
  • a first type path is marked as a current path, and the remaining first type paths are marked as standby paths.
  • the marking instruction is specifically generated by the root node according to a power parameter and / or a usage frequency of a corresponding device node of each first-type path.
  • An electronic device includes a memory, a processor, and a program stored in the memory.
  • the program is configured to be executed by a processor.
  • the processor executes the program, the steps of the Bluetooth low energy communication method are implemented.
  • the Bluetooth low energy network includes a root node and at least one of the aforementioned electronic devices.
  • a storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the Bluetooth low energy communication method described above are implemented.
  • the embodiment of the present invention has the beneficial effect that, by generating a first-type path that can communicate with the root node and / or a second-type path that communicates with each device node in the communication range in the current node, both It simplifies the paths that need to be stored in the routing table, and facilitates the selection of paths when the current node communicates with the root node or other device nodes, improves the targeting of the path selection, and reduces the pressure on the root node; When the root node fails, the current node can still communicate with some other device nodes through the second type of path to form a local mesh network.
  • FIG. 1 is a schematic structural diagram of a Bluetooth network
  • FIG. 2 is a schematic flowchart of a Bluetooth low energy communication method according to the first embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a Bluetooth low energy communication method according to a second embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
  • Figure 1 shows the structure of the Bluetooth network, which is the topology of the Mesh network.
  • a mesh network composed of low-power Bluetooth devices, that is, BLE devices does not require special pre-configuration when a BLE device node joins the mesh network. All BLE devices can act as relay devices in the mesh network for message forwarding to expand BLE communication. range.
  • device node R is the root node, and device nodes A, B, C, D, E, F, G, H, I, J, and K are ordinary device nodes; each device node has a unique physical Address or other identifying information. Communication between device nodes is based on the GATT service defined by the protocol. This service can use two or more features to send and receive data between two device nodes.
  • the root node R is used to manage and optimize the routing table of the entire Mesh network and maintain routing changes caused by device nodes joining the network, leaving the network, and moving device nodes.
  • the dotted circle in Figure 1 indicates the BLE communication range of device node A.
  • the user mobile terminal of this communication range such as a mobile phone, tablet, or computer, can communicate with device node A, or through device node A and other ordinary devices in the Bluetooth network.
  • the device node or root node R communicates.
  • the root node R is a non-power-sensitive Bluetooth low energy device.
  • a BLE device powered by AC power can be called a first type of BLE device.
  • Other device nodes are generally power-sensitive.
  • Bluetooth low energy devices, such as battery-powered BLE devices, are referred to as Type 2 BLE devices.
  • the first type of BLE device can be a device with only a single BLE communication function, or a device that has both BLE function and other external networks, such as Wi-Fi or Enternet, and other network communication functions.
  • the second type of BLE device node is usually used for Achieve a single BLE communication function.
  • Figure 2 is a schematic flowchart of a Bluetooth low energy communication method.
  • the Bluetooth low energy communication method includes the following steps:
  • Step S110 The current node scans the device nodes within the communication range.
  • All the device nodes in the Mesh network are in the broadcast state.
  • the broadcast period can be determined according to the frequency, time period and battery power of the device nodes in the routing table. All device nodes in the network can forward data information in the network for the relay device to expand the use range of Bluetooth low energy.
  • device node A As the current node as an example, it is a device node that needs to access a Bluetooth network.
  • the dotted circle is the BLE communication range of the current node A.
  • Such device nodes will have a power switch or a similar power switch mechanism. This mechanism can be used to trigger the current node A's network access process.
  • the current node A When the user powers on the current node A to start working through the power switch of the current node A or a similar power switch mechanism, the current node A will check its own routing table information. If the routing table information in the current node A is empty at this time, Then device node A performs scanning and broadcasting within a certain time. In this embodiment, the current node A can scan the surrounding device node B and device node E.
  • the mode is switched to a broadcast state, and the broadcast information includes a network label, a device type, a battery level, and a hop value.
  • the network label is used to identify and distinguish the Mesh network composed of the first type of BLE device nodes;
  • the device type is used to identify and distinguish the device type of the device node, 0 is the first type of BLE device node, and 1 is the second type of BLE device node ;
  • the battery level indicator is used to identify the battery level of the second-type BLE device node and whether it is lower than the preset usable threshold.
  • the second-type BLE device node detects that its own battery level is lower than the available battery level, it can be used.
  • the threshold value of the broadcast packet is set to 1, otherwise the broadcast packet flag is set to 0; the hop value can be used to distinguish whether the device node is a networked device node or a non-networked device node. If the hop value is negative, it indicates that the A device node is a device node that is not connected to the network, that is, a node that cannot communicate with the root node.
  • the user terminal is located within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node according to the broadcast information of the current node A.
  • the current node scans a device node within the communication range, it obtains routing information from the device node within the communication range.
  • the device node B and the device node E that have already entered the network are always in a broadcast state, so the device node A can obtain their respective routing information from the device node B and the device node E.
  • the broadcast packet of the device node includes its own hop value, so the routing information includes the hop value of the corresponding device node.
  • the hop value can be used to distinguish whether a device node is a networked device node or a non-networked device node. For a networked device node, it can distinguish the position of the mesh network where the device node is located, that is, the number of times it needs to send and forward when communicating with the root node.
  • the hop value of the root node R is defined as 0, the hop values of the device nodes B, C, and D are 1, and the device nodes A, E, F, F, G, H, and
  • the hop value of I is 2 and the hop values of device nodes K and J are 3; for a device node that is not on the network, its hop value can be marked as -1.
  • all other device nodes in the current node scanning communication range are device nodes that are not connected to the network, that is, nodes that cannot communicate with the root node, it switches to the broadcast state.
  • the user terminal is within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node based on the broadcast information of the current node A.
  • Step S120 The current node generates a first type path and a second type path according to the routing information of the device node within the communication range.
  • the current node A scans other device nodes in its communication range and obtains routing information of the corresponding device nodes.
  • the routing information can indicate whether the corresponding device node can communicate with the root node. If it can, the hop value is a non-negative number.
  • the routing information can also indicate the distance between the corresponding device node and the root node.
  • the hop values are 1 and 2 respectively; it means that the routing tables of device nodes B and E contain the information of the root node R, so the current node A can pass the device node B and E establish a connection with the root node.
  • the hop value of one or some device nodes in the communication range of the current node A is a positive number, for example, if the hop values of device nodes B and E are 1 and 2, respectively, it means that device node B and E route
  • the table contains the information of the root node R; the current node A can establish a connection with the root node through such device nodes, such as device nodes B and E, that is, two paths can be generated based on the routing information of such device nodes, such as A-B —R and A—E—B—R.
  • the first type of path is a path through which a current node communicates with a root node through a relay device node within the communication range. Therefore, both paths can be used as the first type of path.
  • the hop value of the relay device node is not greater than the hop value of each device node in the communication range, that is, the one or more device nodes with the smallest hop value in the communication range of the current node are the relay device nodes. Therefore, in this embodiment, the device node B is a relay device node.
  • the current node in step S120, the current node generates the first type path and the second type path according to the routing information of the device node within the communication range, and specifically includes the following steps:
  • Step S121 If the hop value of the current node according to a device node in the communication range is not greater than the hop value of other device nodes in the communication range, the current node generates a first type of path according to the device node.
  • the device node is the device node with the smallest hop value in the communication range of the current node, which is the relay device node.
  • the current node generates a first-type path according to the device node, specifically, the current node generates a first-type path according to the routing information of the relay device node.
  • the device node with the smallest hop value is preferentially selected as the relay node of the current node A and the root node R, that is, the shorter path is selected as the first-type path A-B-R.
  • the first type of path generated by the current node A includes A-B-R, but not A-E-B-R.
  • Step S122 The current node generates a second type of path according to information of each device node in the communication range, such as a physical address or identification information.
  • the second type of path is a path through which the current node communicates with each device node within the communication range.
  • the second type of path generated by the current node A includes A-E and A-B.
  • the first type of path generated includes I-D-R, and the second type of path includes I-D, I- H and I-J.
  • the method further includes the following steps:
  • Step S123 The current node sends an access notification to the root node according to the first type of path; and the root node obtains an access notification from the current node.
  • the current node needs to be approved by the root node before it can access the Bluetooth network with the root node as the main manager. Therefore, after the current node generates the first type of path, it needs to send an access notification to the root node. Specifically, the current node sends an access notification to the root node through a first type of path, such as A-B-R.
  • the first node After the current node generates a first-type path, the first node is first notified to the root node through the first-type path that the current node will join the root node's Mesh network. If the root node receives the notification from the current node correctly, it sends an ACK (Acknowledgment) to the current node. If it does not receive the access notification from the current node, it sends a NAK (Negative Acknowledgment) to the current node to indicate a negative response or No answer. If the current node receives a NAK or does not receive a response from the root node after a predetermined time, the current node fails to join the network, and the current node becomes an orphan node that has not entered the network. If the current node receives the confirmation character ACK, it successfully completes the step of notifying the network, and then sends the access notification to the root node through the first type of path, such as A-B-R.
  • A-B-R
  • the current node if it receives a NAK or does not receive a response from the root node after a predetermined time, it switches to the broadcast state.
  • the user terminal When the user terminal is located within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node according to the broadcast information of the current node A.
  • a path corresponding to the first type of path of the root node is generated according to the path of the access notification sent by the current node;
  • the first type of path A-B-R sends an access notification to the root node, and then the root node generates a path R-B-A corresponding to the first type of path; the path is specifically that the root node passes the corresponding device node to the current node.
  • the path of the node is specifically that the root node passes the corresponding device node to the current node.
  • step S120 after the current node generates a first-type path according to the routing information of the device node within the communication range, the current node synchronizes the first-type path to the root node.
  • Step S124 If the current node obtains the authorization of the root node, save the first type path and the second type path.
  • the root node If the root node agrees to perform network authorization on the current node, that is, a new device node to be connected to the network, that is, it agrees that the current node A joins the network, then sends an authorization instruction to the current node according to the previously generated path. After the current node obtains the authorization of the root node, the first type path and the second type path are stored.
  • the root node after the root node grants network authorization to the current node, it also needs to successfully confirm joining the network at present before it will generate a path based on the first type of path that the current node sends an access notification, such as R-B —A is added to its routing table information.
  • the root node does not grant network authorization to the current node after receiving the access notification from the current node, that is, it does not agree that the current node joins the network, the current node fails to join the network, and the device node becomes an orphan node that has not entered the network.
  • the current node obtains the authorization from the root node and successfully confirms joining the Bluetooth network, then saves the first type of path, such as A-B-R, and the second type of paths A-E and A-B in its routing table.
  • the method further includes the following steps:
  • the information is sent to the corresponding device node through the second type of path, so that the device node forwards the information.
  • the root node When the root node stops working due to a power outage or a failure, the root node will lose the ability to manage other device nodes in the entire network, that is, the device nodes cannot communicate through the root node, and the current node and the root node through the first type of path Communication will also be in a failed state.
  • the current node also maintains a second type of path, so the current node and other part of the device nodes can still form a local Mesh network for communication through the second type of path.
  • the device node A sends information to the root node through its first type path A-B-R, and then the root node R sends the information to the user terminal.
  • the device node A first sends the corresponding information to the device node B through its second type path A-B, and then the device node B sends the corresponding information to the device node C through its second type path B-C.
  • the corresponding information is sent, and then the device node C sends the corresponding information to the device node D through its second type path C-D, and the device node D finally sends the information to the user terminal within its communication range.
  • a device node with a hop count of 1 in the first-type path fails to send information to the root node.
  • the device node with a hop count of 1 reports to the current node that the root node is offline. After that, the current node sends a root node disconnection notification to the user terminal within its communication range, so that the user terminal prompts the relevant personnel to take action.
  • the Bluetooth low energy communication method provided by the embodiment of the present invention reduces the need by generating a first type path that can be connected to the root node and / or a second type path that is connected to each device node in the communication range in the current node.
  • the path stored in the routing table also facilitates the selection of the path when the current node communicates with the root node or other device nodes, improves the targeting of the path selection, and reduces the pressure on the root node. When it fails, the current node can still communicate with some other device nodes through the second type of path to form a local mesh network.
  • the Bluetooth low energy communication method shown in FIG. 3 includes the following steps:
  • Step S210 The current node scans the device nodes within the communication range.
  • Step S220 The current node generates a first type path and a second type path according to the routing information of the device node within the communication range.
  • Steps S210 and S220 respectively correspond to S110 and S120 in the first embodiment, and details are not described again.
  • the current node refers to a device node that communicates with a user terminal.
  • the user terminal establishes a connection with a device node somewhere, and the routing information of the device node is the first type path or the second type.
  • the path communicates with the root node or other corresponding device node, and the device node is the current node.
  • User terminal devices can be devices such as mobile phones, tablets, and computers with BLE communication capabilities.
  • Step S220 After the current node generates the first type path and the second type path according to the routing information of the device nodes in the communication range, the following steps are further included:
  • Step S230 The current node acquires information of the target node from a user terminal within the communication range.
  • the user terminal needs to establish communication with the device node D, it first scans the nearby device node A, that is, the current node A. Then the user terminal sends a message that needs to communicate with the device node D, that is, the target node D, to the current node A, and the current node A can know the information of the target node D.
  • Step S240 If the target node of the user terminal is the current node, the current node directly communicates with the user terminal. If not, perform the following steps:
  • Step S250 If the target node is located in the second type of path, the current node establishes communication between the user terminal and the target node through the second type of path.
  • the current node A After the current node A obtains the information of the target node D, it checks whether there is a second type path in the routing table to the target node D. If there is a second-type path A-D in the routing table of the current node A, the current node A sends the information to be sent to the target node D through the second-type path to establish communication between the user terminal and the target node, That is, the path: user terminal-A-D.
  • the current node After the current node obtains the target node information from the user terminal, it first determines whether the target node is in its communication range through its second type of path. If so, it preferentially establishes the communication between the user terminal and the target node through the second path.
  • the path selection speed Faster and shorter paths.
  • the information of the target node is sent to the root node through the first path, so as to The communication between the user terminal and the target node is established through the root node.
  • the failure of the current node to establish communication between the user terminal and the target node through the second type of path may be caused by the current node or the target node being moved. Because the device node will re-enter the network after the move, and update routing information, such as generating new first-type paths and second-type paths. At this time, the target node is not in the communication range of the current node, but can establish communication with the root node through the first type of path.
  • the method further includes the following steps:
  • Step S260 If the target node is not located in the second type of path of the current node, the current node sends the information of the target node to the root node through the first path to establish the user through the root node Communication between the terminal and the target node.
  • the current node when the target node is located in the second type of path, but the current node fails to establish communication between the user terminal and the target node through the second type of path, or the target node is not located in the second type of path During the middle time, the current node establishes communication between the user terminal and the target node through the root node.
  • the current node first sends the information to be sent to the root node R through its first type of path A-B-R, and establishes the communication between the current node and the root node R. Since each device node generates the first node according to the routing information of the device node within the communication range. After the first type of path, the generated first type of path is synchronized to the root node, and the corresponding paths such as R-B-A, R-D are stored in the routing table of the root node.
  • the root node R After the root node R acquires the user terminal from the current node A to communicate with the target node D through the root node R, it sends the corresponding information obtained from the current node A to the target node D through the path R-D; so far the current node A passes The root node R establishes the communication between the user terminal and the target node D.
  • the low-power Bluetooth communication method provided by the present invention can generate a first-type path that can communicate with the root node and / or a second-type path that can communicate with each device node in the communication range in the current node;
  • the second type of path is used to establish communication between the user terminal and the target node through the second type of path.
  • the path selection is faster and the path is shorter.
  • the current node first sends the information to be sent to the root node through its first type of path, and then the root node sends the corresponding information to the target node to establish the communication between the user terminal and the target node through the root node. This facilitates the selection of the path when the current node communicates with the root node or other device nodes, improves the targetedness of the path selection, and reduces the pressure on the root node.
  • step S220 the current node generates multiple first-type paths according to the routing information of the device nodes in the communication range.
  • device node K in the process of adding device node K to the network, device node K can obtain corresponding routing information from device nodes F and G within its communication range, including the device node.
  • the routing tables of F and G on R are F-C-R and G-C-R, respectively; and the hop values of device nodes F and G are both 2. Therefore, there are two first-type paths generated and saved by the current node K, that is, two paths to the root node R can be established in its routing table, which are K-F-C-R and K-G-C-R, respectively. .
  • the Bluetooth low energy communication method further includes the following steps:
  • Step S270 The current node marks one first-type path as the current path, and marks the remaining first-type path as standby paths.
  • the current node fails to communicate with the root node through the current path, communicate with the root node through the standby path.
  • the current node K has more than one first-type path. Therefore, when communicating with the root node R, you can choose one of the paths, that is, the current path to communicate with the root node R. The remaining first-type paths are used as backup paths. When the current path fails, communication between the current node K and the root node R is established, thereby ensuring the success of message transmission and reception.
  • how to allocate the first type of path as the current path or the backup path is determined by the root node R.
  • the current node marks one first type of path as the current path and marks the remaining first type of path as standby.
  • the path is specifically: the current node marks one first-type path as the current path, and marks the remaining first-type path as standby paths according to the marking instruction obtained from the root node.
  • the Bluetooth low energy communication method when there are multiple first-type paths between the current node and the root node, one first-type path is marked as the current path, and the rest are backup paths.
  • a node communicates with the root node, it preferentially communicates with the current node through the current path; when the current path fails, etc., the communication between the root node and the current node is established through the standby path, thereby ensuring the success rate of message transmission and reception.
  • the current node After the current node generates the first type of path according to the routing information of the device node within the communication range, the current node will synchronize the first type of path to the root node, so the root node also has multiple paths corresponding to each of the first type of paths.
  • R-C-F-K and R-C-G-K respectively correspond to the first-type paths K-F-C-R and K-G-C-R.
  • the marking instruction is specifically generated by the root node according to a power parameter and / or a usage frequency of a corresponding device node of each first-type path.
  • the power parameter of the device node can reflect the remaining power of the battery in the device node, and the usage frequency of the device node can reflect the frequency of the node device's forwarding data in the Bluetooth network as a relay node.
  • the device node F and the device node G are corresponding device nodes, and through these two device nodes And / or use frequency to select the current path and backup path.
  • the broadcast packet data information of the Bluetooth low energy device node includes its battery power identifier, that is, the power parameter.
  • the power parameter is specifically a battery level (BL). For example, if the battery power level is 4, it can indicate that the device node has about 80% of the remaining power; if the battery power level is 0, it can indicate the device. Nodes have less than 10% of power remaining.
  • one path may be selected as the current path and the other as the backup path according to the battery power levels of the device nodes F and G.
  • any one of the first type paths may be selected as the current path, and the remaining paths may be used as backup paths.
  • the root node R selects the first type of path passing through the device node F as the current path and the first type of path passing through the device node G as the backup path; that is, selects K-F —C—R is selected as the current path, and K—G—C—R is selected as the backup path. Conversely, if the BL of the device node F is smaller than the BL of the device node G, the root node R selects K-G-C-R as the current path and K-F-C-R as the backup path.
  • the usage frequency of the device node can reflect the frequency of the node device's forwarding data in the Bluetooth network as a relay node; the usage frequency can be counted by each device node itself, and then called by the root node, or it can be counted by the root node.
  • the corresponding first-type path may be further marked as the current path by the frequency of use of the corresponding device node.
  • the current path of the root node R and the current node K in the first type of path that passes through the relay device node with a lower frequency is selected; for example, the frequency of use of the device node F is 10 times, and that of the device node G is If the frequency is 25 times, K-F-C-R is marked as the current path, and K-G-C-R is marked as the backup path.
  • the root node R After the root node R marks the current path and the standby path, it sends a marking instruction to the current node K; so that the current node marks the corresponding first-type path as the current path and the other first-type paths as the standby paths.
  • the use of the first type of path can be reduced, thereby reducing the frequency that the path occupies the device node, thereby extending the life of the device node.
  • the present invention can be implemented by means of software plus a necessary universal hardware platform.
  • the technical solution of the present invention in essence or a part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk , Optical discs, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention or certain parts of the embodiments, such as:
  • a storage medium storing a computer program that, when executed by a processor, implements the steps of the aforementioned Bluetooth low energy communication method.
  • the invention can be used in many general-purpose or special-purpose computing system environments or configurations.
  • personal computer server computer, handheld or portable device, tablet device, multi-processor system, microprocessor-based system, set-top box, programmable consumer electronics device, network PC, small computer, mainframe computer, including the above Distributed computing environment of any system or device, etc., as in the third embodiment.
  • the electronic device shown in FIG. 4 includes a memory 200, a processor 300, and a program stored in the memory 200.
  • the program is configured to be executed by the processor 300, and the processor 300 implements the foregoing low power consumption when executing the program. Steps of the Bluetooth communication method.
  • the electronic device in this embodiment and the method in the foregoing embodiment are based on two aspects under the same inventive concept.
  • the method implementation process has been described in detail previously, so those skilled in the art can clearly understand based on the foregoing description.
  • the structure and implementation process of the electronic device in this implementation are not repeated here for brevity of the description.
  • the electronic device in this embodiment may be applied to a Bluetooth low energy network as shown in FIG. 1, that is, the Bluetooth low energy network includes a root node and at least one of the electronic devices.
  • the electronic device can implement the aforementioned Bluetooth low energy communication method when running on a Bluetooth low energy network. According to the description of the foregoing embodiments, the structure and implementation process of the Bluetooth low energy network can be understood. No longer.
  • the electronic device and the Bluetooth low energy network provided by the embodiment of the present invention generate a first-type path that can communicate with the root node and / or a second-type path that communicates with each device node in the communication range in the current node. It simplifies the paths that need to be stored in the routing table, and facilitates the selection of paths when the current node communicates with the root node or other device nodes, improves the targeting of the path selection, and reduces the pressure on the root node; When the root node fails, the current node can still communicate with some other device nodes through the second type of path to form a local mesh network.

Abstract

Disclosed by the present invention are a low power Bluetooth communication method, electronic device, network and storage medium, the method comprising: scanning device nodes in a communication range; generating a first type path and a second type path according to routing information of the device nodes in the communication range, the first type path being a path for communicating with a root node by means of a relay device node in the communication range, and the second type path being a path for communicating with each device node in the communication range. By means of generating, in the current node, a first type path which may communicate with the root node and/or the second type path which may communicate with each device node in the communication range, not only are paths that need to be saved in a routing table is simplified, but also path selection when the current node communicates with the root node or other device nodes is facilitated, which increases the targeted nature of path selection and reduces the pressure on the root node; Moreover, when the root node fails, the current node can still communicate with other device nodes by means of a local Mesh network formed by a second type path.

Description

低功耗蓝牙通信方法、电子设备、网络和存储介质Bluetooth low energy communication method, electronic device, network and storage medium 技术领域Technical field
本发明涉及蓝牙组网技术,尤其涉及低功耗蓝牙通信方法、电子设备、网络和存储介质。The present invention relates to Bluetooth networking technology, and in particular, to a low-power Bluetooth communication method, an electronic device, a network, and a storage medium.
背景技术Background technique
低功耗蓝牙(Bluetooth Low Energy,BLE)是Bluetooth SIG于2010年7月7日推出的新的蓝牙4.0规范。其最重要的特性是功耗极低,距离短。传统蓝牙组网连接方式采用微微网(Piconet)形式,每个微微网中有且仅有一个主设备,其他皆为从设备,即一个主设备在蓝牙通信范围内可与1个或不多于7个的蓝牙设备通讯。Bluetooth Low Energy (BLE) is a new Bluetooth 4.0 specification introduced by Bluetooth SIG on July 7, 2010. Its most important characteristics are extremely low power consumption and short distance. The traditional Bluetooth networking method uses a piconet (Piconet). Each piconet has one and only one master device, and the others are slave devices. That is, a master device can communicate with one or no more than one Bluetooth device within the Bluetooth communication range. 7 Bluetooth devices communicate.
2017年7月蓝牙的Mesh工作组提出了基于BLE的组网规范,该规范是基于Flooding协议的Mesh网络技术,对于低功耗节点在该规范所提出的Mesh网络拓扑结构中,其只能与周围存在的朋友节点进行通信,在整个网络的使用中分配了较多的节点角色。In July 2017, the Mesh Working Group of Bluetooth proposed a BLE-based networking specification. This specification is a Mesh network technology based on the Flooding protocol. For low-power nodes in the Mesh network topology proposed by the specification, it can only communicate with There are friend nodes around to communicate, and more node roles are assigned in the use of the entire network.
现有的蓝牙设备组网通常采用树形组网方法,但是普通设备节点与根节点之间的路径如何生成和快速选择,以提高蓝牙网络的反应速度以及保证消息的收发成功率仍是需要解决的技术问题。The existing Bluetooth device networking usually adopts a tree networking method, but how to generate and quickly select the path between the ordinary device node and the root node, in order to improve the response speed of the Bluetooth network and ensure the success rate of message sending and receiving still need to be solved. Technical issues.
发明内容Summary of the Invention
为了克服现有技术的不足,本发明的目的在于提供低功耗蓝牙通信方法、电子设备、网络和存储介质,精简了需要保存在路由表中的路径,提高了路径选择的针对性,降低了根节点的压力。In order to overcome the shortcomings of the prior art, an object of the present invention is to provide a Bluetooth low energy communication method, an electronic device, a network, and a storage medium. The pressure of the root node.
本发明的目的采用以下技术方案实现:The objective of the present invention is achieved by the following technical solutions:
低功耗蓝牙通信方法,包括以下步骤:The Bluetooth low energy communication method includes the following steps:
扫描通信范围内的设备节点;Scan for device nodes within communication range;
根据通信范围内设备节点的路由信息生成第一类路径和第二类路径;Generating the first type path and the second type path according to the routing information of the device nodes in the communication range;
所述第一类路径为经过所述通信范围内的中继设备节点与根节点连通的路径;The first type of path is a path that communicates with a root node through a relay device node within the communication range;
所述第二类路径为与所述通信范围内的各设备节点连通的路径。The second type of path is a path that communicates with each device node within the communication range.
进一步地,所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:Further, after generating the first type path and the second type path according to the routing information of the device nodes within the communication range, the method further includes the following steps:
若通过所述第一类路径与根节点通信失败,则通过所述第二类路径向通信范围内相应的设备节点发送信息,以使所述设备节点转发所述信息。If the communication with the root node fails through the first type of path, information is sent to the corresponding device node in the communication range through the second type of path, so that the device node forwards the information.
进一步地,通过所述第一类路径与根节点通信失败,具体包括:所述根节点停电或故障。Further, the failure to communicate with the root node through the first type of path specifically includes: power failure or failure of the root node.
进一步地,所述低功耗蓝牙通信方法还包括以下步骤:若所述根节点停电或故障,则向所述通信范围内的用户终端发送根节点掉线通知。Further, the Bluetooth low energy communication method further includes the following steps: if the root node is powered off or faulty, sending a root node disconnection notification to a user terminal within the communication range.
进一步地,所述扫描通信范围内的设备节点之后,还包括以下步骤:Further, after scanning the device nodes within the communication range, the method further includes the following steps:
从所述通信范围内的设备节点获取路由信息,所述路由信息包括相应设备节点的跳数值。Obtaining routing information from a device node within the communication range, where the routing information includes a hop value of a corresponding device node.
进一步地,所述中继设备节点的跳数值不大于所述通信范围内各设备节点的跳数值。Further, the hop value of the relay device node is not greater than the hop value of each device node in the communication range.
进一步地,所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径,具体包括以下步骤:Further, generating the first type path and the second type path according to the routing information of the device nodes in the communication range specifically includes the following steps:
若有设备节点的跳数值不大于所述通信范围内其余设备节点的跳数值,则根据所述设备节点的路由信息生成第一类路径;以及If the hop value of any device node is not greater than the hop values of other device nodes in the communication range, generating a first type of path according to the routing information of the device node; and
根据所述通信范围内各设备节点的信息生成第二类路径。A second type of path is generated according to the information of each device node within the communication range.
进一步地,所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:Further, after generating the first type path and the second type path according to the routing information of the device nodes within the communication range, the method further includes the following steps:
根据所述第一类路径向所述根节点发送接入通知;Sending an access notification to the root node according to the first type of path;
若获取到所述根节点的授权,则保存所述第一类路径和第二类路径。If the authorization of the root node is obtained, the first type path and the second type path are saved.
进一步地,所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:Further, after generating the first type path and the second type path according to the routing information of the device nodes within the communication range, the method further includes the following steps:
从所述通信范围内的用户终端获取目标节点的信息;Acquiring information of a target node from a user terminal within the communication range;
若所述目标节点位于所述第二类路径中,则通过所述第二类路径建立所述用户终端与所述目标节点的通信。If the target node is located in the second type of path, communication between the user terminal and the target node is established through the second type of path.
进一步地,所述从所述通信范围内的用户终端获取目标节点的信息之后,还包括以下步骤:Further, after acquiring the information of the target node from the user terminal within the communication range, the method further includes the following steps:
若所述目标节点不位于所述第二类路径中,则通过第一路径将所述目标节点的信息发送至所述根节点,以通过所述根节点建立所述用户终端与所述目标节点的通信。If the target node is not in the second type of path, sending the information of the target node to the root node through the first path to establish the user terminal and the target node through the root node Communication.
进一步地,所述从所述通信范围内的用户终端获取目标节点的信息之后,还包括以下步骤:Further, after acquiring the information of the target node from the user terminal within the communication range, the method further includes the following steps:
若通过所述第二类路径建立所述用户终端与所述目标节点的通信失败,则通过第一路径将所述目标节点的信息发送至所述根节点,以通过所述根节点建立所述用户终端与所述目标节点的通信。If the communication between the user terminal and the target node fails to be established through the second type of path, information of the target node is sent to the root node through the first path to establish the root node through the root node. Communication between a user terminal and the target node.
进一步地,所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:Further, after generating the first type path and the second type path according to the routing information of the device nodes within the communication range, the method further includes the following steps:
将所述第一类路径同步至根节点。Synchronize the first type of path to the root node.
进一步地,若所述根据通信范围内设备节点的路由信息生成的第一类路径有多条,则所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:Further, if there are multiple first-type paths generated according to the routing information of the device nodes in the communication range, after generating the first-type paths and the second-type paths according to the routing information of the device nodes in the communication range, It includes the following steps:
标记一条第一类路径为当前路径,标记其余第一类路径为备用路径。Mark one first-type path as the current path and mark the remaining first-type paths as backup paths.
进一步地,所述标记一条第一类路径为当前路径,标记其余第一类路径为备用路径,具体为:Further, the marking a first-type path as a current path and marking the remaining first-type paths as standby paths is specifically:
根据从所述根节点获取的标记指令标记一条第一类路径为当前路径,标记其余第一类路径为备用路径。According to the marking instruction obtained from the root node, a first type path is marked as a current path, and the remaining first type paths are marked as standby paths.
进一步地,所述标记指令具体为所述根节点根据各第一类路径相应设备节点的电量参数和/或使用频次生成的。Further, the marking instruction is specifically generated by the root node according to a power parameter and / or a usage frequency of a corresponding device node of each first-type path.
电子设备,包括存储器、处理器以及存储在存储器中的程序,所述程序被配置成由处理器执行,处理器执行所述程序时实现上述的低功耗蓝牙通信方法的步骤。An electronic device includes a memory, a processor, and a program stored in the memory. The program is configured to be executed by a processor. When the processor executes the program, the steps of the Bluetooth low energy communication method are implemented.
低功耗蓝牙网络,包括根节点和至少一个上述的电子设备。The Bluetooth low energy network includes a root node and at least one of the aforementioned electronic devices.
存储介质,所述存储介质存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现上述的低功耗蓝牙通信方法的步骤。A storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the Bluetooth low energy communication method described above are implemented.
相比现有技术,本发明实施例的有益效果在于:通过在当前节点中生成可与根节点连通的第一类路径和/或与通信范围内的各设备节点连通的第二类路径,既精简了需要保存在路由表中的路径,又为当前节点与根节点或其他设备节点之间进行通信时路径的选择提供了便利,提高了路径选择的针对性,降低了根节点的压力;而且当根节点失效时,当前节点仍可与其他部分设备节点通过第二类路径构成局部Mesh网络进行通信。Compared with the prior art, the embodiment of the present invention has the beneficial effect that, by generating a first-type path that can communicate with the root node and / or a second-type path that communicates with each device node in the communication range in the current node, both It simplifies the paths that need to be stored in the routing table, and facilitates the selection of paths when the current node communicates with the root node or other device nodes, improves the targeting of the path selection, and reduces the pressure on the root node; When the root node fails, the current node can still communicate with some other device nodes through the second type of path to form a local mesh network.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为蓝牙网络的结构示意图;FIG. 1 is a schematic structural diagram of a Bluetooth network;
图2为本发明实施例一的低功耗蓝牙通信方法的流程示意图;2 is a schematic flowchart of a Bluetooth low energy communication method according to the first embodiment of the present invention;
图3为本发明实施例二的低功耗蓝牙通信方法的流程示意图;3 is a schematic flowchart of a Bluetooth low energy communication method according to a second embodiment of the present invention;
图4为本发明实施例三的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
具体实施方式detailed description
下面,结合附图以及具体实施方式,对本发明做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例。In the following, the present invention is further described with reference to the drawings and specific embodiments. It should be noted that, under the premise of no conflict, the embodiments described below or technical features can be arbitrarily combined to form a new embodiment. .
如图1所示为蓝牙网络的结构示意图,为Mesh网络拓扑结构。由低功耗蓝牙设备,即BLE设备组成的Mesh网络,在BLE设备节点加入Mesh网络时无需特别预配置,所有BLE设备在Mesh网络中可以充当中继设备进行消息转发,用以扩大BLE的通信范围。Figure 1 shows the structure of the Bluetooth network, which is the topology of the Mesh network. A mesh network composed of low-power Bluetooth devices, that is, BLE devices, does not require special pre-configuration when a BLE device node joins the mesh network. All BLE devices can act as relay devices in the mesh network for message forwarding to expand BLE communication. range.
在图1中,设备节点R为根节点,设备节点A、B、C、D、E、F、G、H、I、J和K为普通的设备节点;各设备节点之间以独一无二的物理地址或者其他身份识别信息进行区分。设备节点之间的通讯基于协议定义的GATT服务,该服务可以采用两个或者多个特征进行两个设备节点之间的数据收发。根节点R用于管理和优化整个Mesh网络的路由表以及维护设备节点加入网络、离开网络和设备节点移动引起的路由变化。在图1中虚线圆圈表示设备节点A的BLE通信范围,该通信范围的用户移动终端,如手机、平板或电脑等可以和设备节点A通信,也可以通过设备节点A和蓝牙网络中的其他普通设备节点或根节点R通信。In Figure 1, device node R is the root node, and device nodes A, B, C, D, E, F, G, H, I, J, and K are ordinary device nodes; each device node has a unique physical Address or other identifying information. Communication between device nodes is based on the GATT service defined by the protocol. This service can use two or more features to send and receive data between two device nodes. The root node R is used to manage and optimize the routing table of the entire Mesh network and maintain routing changes caused by device nodes joining the network, leaving the network, and moving device nodes. The dotted circle in Figure 1 indicates the BLE communication range of device node A. The user mobile terminal of this communication range, such as a mobile phone, tablet, or computer, can communicate with device node A, or through device node A and other ordinary devices in the Bluetooth network. The device node or root node R communicates.
作为优选的实施方式,根节点R为非功耗敏感型的低功耗蓝牙设备,例如采用AC电源供电的BLE设备,可以称为第一类BLE设备;其他设备节点一般 为功耗敏感型的低功耗蓝牙设备,如采用电池供电的BLE设备,称为第二类BLE设备。As a preferred embodiment, the root node R is a non-power-sensitive Bluetooth low energy device. For example, a BLE device powered by AC power can be called a first type of BLE device. Other device nodes are generally power-sensitive. Bluetooth low energy devices, such as battery-powered BLE devices, are referred to as Type 2 BLE devices.
第一类BLE设备可以为只有单一的BLE通信功能的设备,也可以为同时拥有BLE功能和其他外部网络,如Wi-Fi或者Enternet等网络通信功能的设备;第二类BLE设备节点通常用于实现单一的BLE通信功能。The first type of BLE device can be a device with only a single BLE communication function, or a device that has both BLE function and other external networks, such as Wi-Fi or Enternet, and other network communication functions. The second type of BLE device node is usually used for Achieve a single BLE communication function.
实施例一Example one
如图2为低功耗蓝牙通信方法的流程示意图。Figure 2 is a schematic flowchart of a Bluetooth low energy communication method.
低功耗蓝牙通信方法包括以下步骤:The Bluetooth low energy communication method includes the following steps:
步骤S110、当前节点扫描通信范围内的设备节点。Step S110: The current node scans the device nodes within the communication range.
Mesh网络中所有的设备节点处于广播状态,广播周期可以根据设备节点在路由表中的使用频次、使用时间段和电池电量等信息而定。网络中所有设备节点都可以为中继设备对网络中的数据信息进行转发,用以扩大低功耗蓝牙的使用范围。All the device nodes in the Mesh network are in the broadcast state. The broadcast period can be determined according to the frequency, time period and battery power of the device nodes in the routing table. All device nodes in the network can forward data information in the network for the relay device to expand the use range of Bluetooth low energy.
如图1所示,以设备节点A作为当前节点为例,为需要接入蓝牙网络的设备节点。虚线圆圈为当前节点A的BLE通信范围,此类设备节点会有电源开关或者类似电源开关的机制,此机制可以用来触发当前节点A的入网流程。As shown in FIG. 1, taking device node A as the current node as an example, it is a device node that needs to access a Bluetooth network. The dotted circle is the BLE communication range of the current node A. Such device nodes will have a power switch or a similar power switch mechanism. This mechanism can be used to trigger the current node A's network access process.
当用户通过此当前节点A的电源开关或者类似电源开关的机制让当前节点A上电开始工作,当前节点A会检查自身的路由表信息,若此时当前节点A内的路由表信息为空,那么设备节点A在一定时间内进行扫描和广播。在本实施例中,当前节点A可以扫描到周围的设备节点B和设备节点E。When the user powers on the current node A to start working through the power switch of the current node A or a similar power switch mechanism, the current node A will check its own routing table information. If the routing table information in the current node A is empty at this time, Then device node A performs scanning and broadcasting within a certain time. In this embodiment, the current node A can scan the surrounding device node B and device node E.
作为优选的实施方式,若当前节点扫描通信范围内不存在其他设备节点时,切换为广播状态,广播信息包括网络标号、设备类型、电池电量、跳数值等。网络标号用来标识和区别由第一类BLE设备节点组成的Mesh网络;设备类型 用来标识和区别该设备节点的设备类型,0表示第一类BLE设备节点,1表示第二类BLE设备节点;电池电量标识用来标识第二类BLE设备节点的电池电量情况,以及是否低于预先设置的可使用的阈值,若第二类BLE设备节点检测到自身的电池电量低于电池电量的可使用的阈值,则该广播包的标志位被置1,否则该广播包的标志位置0;跳数值可以用来区别设备节点为入网设备节点还是未入网设备节点,若跳数值为负数,则表示该设备节点为未入网设备节点,即无法与根节点通信的节点。当用户终端位于当前节点A的通信范围内时,可以根据当前节点A的广播信息判断该当前节点A未成功加入蓝牙网络,为孤立的设备节点。As a preferred embodiment, if there are no other device nodes within the current node scanning communication range, the mode is switched to a broadcast state, and the broadcast information includes a network label, a device type, a battery level, and a hop value. The network label is used to identify and distinguish the Mesh network composed of the first type of BLE device nodes; the device type is used to identify and distinguish the device type of the device node, 0 is the first type of BLE device node, and 1 is the second type of BLE device node ; The battery level indicator is used to identify the battery level of the second-type BLE device node and whether it is lower than the preset usable threshold. If the second-type BLE device node detects that its own battery level is lower than the available battery level, it can be used. The threshold value of the broadcast packet is set to 1, otherwise the broadcast packet flag is set to 0; the hop value can be used to distinguish whether the device node is a networked device node or a non-networked device node. If the hop value is negative, it indicates that the A device node is a device node that is not connected to the network, that is, a node that cannot communicate with the root node. When the user terminal is located within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node according to the broadcast information of the current node A.
作为优选的实施方式,当前节点扫描通信范围内的设备节点之后,从所述通信范围内的设备节点获取路由信息。As a preferred embodiment, after the current node scans a device node within the communication range, it obtains routing information from the device node within the communication range.
已入网的设备节点B和设备节点E一直处于广播状态,因此设备节点A可以从设备节点B和设备节点E获取其各自的路由信息。The device node B and the device node E that have already entered the network are always in a broadcast state, so the device node A can obtain their respective routing information from the device node B and the device node E.
作为优选的实施方式,设备节点的广播包中包括自身的跳数值,因此,所述路由信息包括相应设备节点的跳数值。As a preferred embodiment, the broadcast packet of the device node includes its own hop value, so the routing information includes the hop value of the corresponding device node.
跳数值可以用来区别设备节点为入网设备节点还是未入网设备节点,对于入网设备节点可以区别该设备节点所处Mesh网络的位置,即与根节点通信时需要发送、转发的次数。以图1所示的Mesh网络为例,如果定义根节点R的跳数值为0,则设备节点B、C和D的跳数值为1,设备节点A、E、F、F、G、H和I的跳数值为2,设备节点K和J的跳数值为3;对于未入网的设备节点,其跳数值可以标记为-1。The hop value can be used to distinguish whether a device node is a networked device node or a non-networked device node. For a networked device node, it can distinguish the position of the mesh network where the device node is located, that is, the number of times it needs to send and forward when communicating with the root node. Taking the Mesh network shown in Figure 1 as an example, if the hop value of the root node R is defined as 0, the hop values of the device nodes B, C, and D are 1, and the device nodes A, E, F, F, G, H, and The hop value of I is 2 and the hop values of device nodes K and J are 3; for a device node that is not on the network, its hop value can be marked as -1.
作为优选的实施方式,若当前节点扫描通信范围内的其他设备节点均为未入网设备节点,即无法与根节点通信的节点,则切换为广播状态。当用户终端 位于当前节点A的通信范围内时,可以根据当前节点A的广播信息判断该当前节点A未成功加入蓝牙网络,为孤立的设备节点。As a preferred embodiment, if all other device nodes in the current node scanning communication range are device nodes that are not connected to the network, that is, nodes that cannot communicate with the root node, it switches to the broadcast state. When the user terminal is within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node based on the broadcast information of the current node A.
步骤S120、当前节点根据通信范围内设备节点的路由信息生成第一类路径和第二类路径。Step S120: The current node generates a first type path and a second type path according to the routing information of the device node within the communication range.
当前节点A通过扫描其通信范围内其他设备节点,并获取相应设备节点的路由信息。路由信息可以表示相应设备节点是否可与根节点连通,如可连通,则跳数值为非负数;路由信息还可以表示相应设备节点与根节点之间的距离。在本实施例中,已入网设备节点B和E的路由信息中,跳数值分别为1和2;表示设备节点B和E路由表中包含根节点R的信息,因此当前节点A可以通过设备节点B和E与根节点建立连接。The current node A scans other device nodes in its communication range and obtains routing information of the corresponding device nodes. The routing information can indicate whether the corresponding device node can communicate with the root node. If it can, the hop value is a non-negative number. The routing information can also indicate the distance between the corresponding device node and the root node. In this embodiment, in the routing information of the networked device nodes B and E, the hop values are 1 and 2 respectively; it means that the routing tables of device nodes B and E contain the information of the root node R, so the current node A can pass the device node B and E establish a connection with the root node.
作为优选的实施方式,若当前节点A通信范围内某个或某些设备节点的跳数值为正数,如设备节点B和E的跳数值分别为1和2,则表示设备节点B和E路由表中包含根节点R的信息;当前节点A可以通过此类设备节点,如设备节点B和E与根节点建立连接,即可以根据此类设备节点的路由信息生成两条路径,如A—B—R和A—E—B—R。As a preferred embodiment, if the hop value of one or some device nodes in the communication range of the current node A is a positive number, for example, if the hop values of device nodes B and E are 1 and 2, respectively, it means that device node B and E route The table contains the information of the root node R; the current node A can establish a connection with the root node through such device nodes, such as device nodes B and E, that is, two paths can be generated based on the routing information of such device nodes, such as A-B —R and A—E—B—R.
第一类路径为当前节点经过所述通信范围内的中继设备节点与根节点连通的路径。因此,这两条路径均可作为第一类路径。The first type of path is a path through which a current node communicates with a root node through a relay device node within the communication range. Therefore, both paths can be used as the first type of path.
作为优选的实施方式,所述中继设备节点的跳数值不大于所述通信范围内各设备节点的跳数值,即当前节点通信范围跳数值最小的一个或多个设备节点为中继设备节点。因此在本实施例中,设备节点B为中继设备节点。As a preferred embodiment, the hop value of the relay device node is not greater than the hop value of each device node in the communication range, that is, the one or more device nodes with the smallest hop value in the communication range of the current node are the relay device nodes. Therefore, in this embodiment, the device node B is a relay device node.
作为优选的实施方式,步骤S120当前节点根据通信范围内设备节点的路由信息生成第一类路径和第二类路径,具体包括以下步骤:As a preferred embodiment, in step S120, the current node generates the first type path and the second type path according to the routing information of the device node within the communication range, and specifically includes the following steps:
步骤S121、若当前节点根据通信范围内有设备节点的跳数值不大于所述通 信范围内其余设备节点的跳数值,则当前节点根据该设备节点生成第一类路径。Step S121: If the hop value of the current node according to a device node in the communication range is not greater than the hop value of other device nodes in the communication range, the current node generates a first type of path according to the device node.
若当前节点根据通信范围内某一设备节点的跳数值不大于通信范围内其余设备节点的跳数值,那么该设备节点就是当前节点通信范围跳数值最小的设备节点,即为中继设备节点。当前节点根据该设备节点生成第一类路径,具体为当前节点根据该中继设备节点的路由信息生成第一类路径。If the hop value of the current node according to a certain device node in the communication range is not greater than the hop value of the other device nodes in the communication range, then the device node is the device node with the smallest hop value in the communication range of the current node, which is the relay device node. The current node generates a first-type path according to the device node, specifically, the current node generates a first-type path according to the routing information of the relay device node.
在本实施例中,优先选取跳数值最小的设备节点作为当前节点A与根节点R的中继节点,即选择较短的路径作为第一类路径A—B—R。当前节点A生成的第一类路径包括A—B—R,而不包括A—E—B—R。In this embodiment, the device node with the smallest hop value is preferentially selected as the relay node of the current node A and the root node R, that is, the shorter path is selected as the first-type path A-B-R. The first type of path generated by the current node A includes A-B-R, but not A-E-B-R.
步骤S122、当前节点根据所述通信范围内各设备节点的信息,如物理地址或身份识别信息,生成第二类路径。第二类路径为当前节点与所述通信范围内的各设备节点连通的路径。在本实施例中,当前节点A生成的第二类路径包括A—E,以及A—B。Step S122: The current node generates a second type of path according to information of each device node in the communication range, such as a physical address or identification information. The second type of path is a path through which the current node communicates with each device node within the communication range. In this embodiment, the second type of path generated by the current node A includes A-E and A-B.
再以设备节点I作为当前节点为例,若其通信范围内有设备节点D、H、J,其生成的第一类路径包括I—D—R,第二类路径包括I—D、I—H以及I—J。Take device node I as the current node as an example. If there are device nodes D, H, and J in the communication range, the first type of path generated includes I-D-R, and the second type of path includes I-D, I- H and I-J.
作为优选的实施方式,步骤S121生成第一类路径之后,还包括以下步骤:As a preferred embodiment, after generating the first type of path in step S121, the method further includes the following steps:
步骤S123、当前节点根据所述第一类路径向所述根节点发送接入通知;以及根节点从当前节点获取接入通知。Step S123: The current node sends an access notification to the root node according to the first type of path; and the root node obtains an access notification from the current node.
在本实施例中,当前节点需要经过根节点的同意才可以接入以根节点为主要管理者的蓝牙网络。因此在当前节点生成第一类路径之后,还需要向根节点发送接入通知。具体为,当前节点通过第一类路径,如A—B—R向根节点发送接入通知。In this embodiment, the current node needs to be approved by the root node before it can access the Bluetooth network with the root node as the main manager. Therefore, after the current node generates the first type of path, it needs to send an access notification to the root node. Specifically, the current node sends an access notification to the root node through a first type of path, such as A-B-R.
当前节点生成第一类路径后,先通过第一类路径向根节点通知当前节点将加入到根节点的Mesh网络中。如果根节点正确接收到当前节点的通知,就向当 前节点发送确认字符ACK(Acknowledgment),如果未正确接收到当前节点的接入通知,就向当前节点发送NAK(Negative Acknowledgment)以表示否定应答或者非应答。如果当前节点收到NAK或者经过预定时间没有收到根节点的回应,则当前节点入网失败,当前节点成为未入网的孤立节点。如果当前节点收到确认字符ACK,就成功完成通知网络的步骤,接下来通过第一类路径,如A—B—R向根节点发送接入通知。After the current node generates a first-type path, the first node is first notified to the root node through the first-type path that the current node will join the root node's Mesh network. If the root node receives the notification from the current node correctly, it sends an ACK (Acknowledgment) to the current node. If it does not receive the access notification from the current node, it sends a NAK (Negative Acknowledgment) to the current node to indicate a negative response or No answer. If the current node receives a NAK or does not receive a response from the root node after a predetermined time, the current node fails to join the network, and the current node becomes an orphan node that has not entered the network. If the current node receives the confirmation character ACK, it successfully completes the step of notifying the network, and then sends the access notification to the root node through the first type of path, such as A-B-R.
作为优选的实施方式,如果当前节点收到NAK或者经过预定时间没有收到根节点的回应,则切换为广播状态。当用户终端位于当前节点A的通信范围内时,可以根据当前节点A的广播信息判断该当前节点A未成功加入蓝牙网络,为孤立的设备节点。As a preferred embodiment, if the current node receives a NAK or does not receive a response from the root node after a predetermined time, it switches to the broadcast state. When the user terminal is located within the communication range of the current node A, it can be judged that the current node A has not successfully joined the Bluetooth network and is an isolated device node according to the broadcast information of the current node A.
如果根节点同意所述当前节点的接入通知,则根据所述当前节点发送所述接入通知的路径生成根节点端与所述当前节点的第一类路径相应的路径;如当前节点A通过第一类路径A—B—R向根节点发送接入通知,那么根节点生成与该第一类路径相应的路径R—B—A;该路径具体为根节点经过相应设备节点到所述当前节点的路径。If the root node agrees to the access notification of the current node, a path corresponding to the first type of path of the root node is generated according to the path of the access notification sent by the current node; The first type of path A-B-R sends an access notification to the root node, and then the root node generates a path R-B-A corresponding to the first type of path; the path is specifically that the root node passes the corresponding device node to the current node. The path of the node.
因此,步骤S120当前节点根据通信范围内设备节点的路由信息生成第一类路径之后,当前节点会将所述第一类路径同步至根节点。Therefore, in step S120, after the current node generates a first-type path according to the routing information of the device node within the communication range, the current node synchronizes the first-type path to the root node.
步骤S124、若当前节点获取到所述根节点的授权,则保存所述第一类路径和第二类路径。Step S124: If the current node obtains the authorization of the root node, save the first type path and the second type path.
如果根节点同意对当前节点,即要入网的新设备节点进行网络授权,即同意当前节点A加入到网络中,则根据前述生成的路径向当前节点发送授权指令。当前节点获取到根节点的授权后,存储第一类路径和第二类路径。If the root node agrees to perform network authorization on the current node, that is, a new device node to be connected to the network, that is, it agrees that the current node A joins the network, then sends an authorization instruction to the current node according to the previously generated path. After the current node obtains the authorization of the root node, the first type path and the second type path are stored.
作为优选的实施方式,根节点对当前节点进行网络授权后,还需要当前也 成功确认加入该网络,才将根据所述当前节点发送接入通知的第一类路径生成的路径,如R—B—A添加到自身的路由表信息中。As a preferred embodiment, after the root node grants network authorization to the current node, it also needs to successfully confirm joining the network at present before it will generate a path based on the first type of path that the current node sends an access notification, such as R-B —A is added to its routing table information.
如果根节点从当前节点获取到接入通知后,不对当前节点进行网络授权,即不同意当前节点加入到网络中,那么当前节点入网失败,该设备节点成为未入网的孤立节点。If the root node does not grant network authorization to the current node after receiving the access notification from the current node, that is, it does not agree that the current node joins the network, the current node fails to join the network, and the device node becomes an orphan node that has not entered the network.
当前节点从根节点获取到授权,成功确认加入蓝牙网络,则在自身的路由表中保存该第一类路径,如A—B—R,以及保存第二类路径A—E和A—B。The current node obtains the authorization from the root node and successfully confirms joining the Bluetooth network, then saves the first type of path, such as A-B-R, and the second type of paths A-E and A-B in its routing table.
作为优选的实施方式,步骤S120当前节点根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:As a preferred embodiment, after the current node generates the first type path and the second type path according to the routing information of the device nodes in the communication range in step S120, the method further includes the following steps:
若当前节点通过所述第一类路径与根节点通信失败,则通过所述第二类路径向相应的设备节点发送信息,以使所述设备节点转发所述信息。If the current node fails to communicate with the root node through the first type of path, the information is sent to the corresponding device node through the second type of path, so that the device node forwards the information.
当根节点因为停电或者出现故障问题停止工作,则根节点会失去对整个网络中其他设备节点的管理能力,即各个设备节点之间不能通过根节点通信,当前节点通过第一类路径与根节点通信也会是失败状态。而当前节点还保存有第二类路径,因此当前节点与其他部分设备节点之间仍可通过第二类路径构成局部Mesh网络进行通信。When the root node stops working due to a power outage or a failure, the root node will lose the ability to manage other device nodes in the entire network, that is, the device nodes cannot communicate through the root node, and the current node and the root node through the first type of path Communication will also be in a failed state. The current node also maintains a second type of path, so the current node and other part of the device nodes can still form a local Mesh network for communication through the second type of path.
如图1所示,当根节点R正常工作时,设备节点A通过其第一类路径A—B—R向根节点发送信息,然后由根节点R将该信息发送给用户终端。而当根节点R停电或故障时,设备节点A首先通过其第二类路径A—B向设备节点B发送相应的信息,然后由设备节点B通过其第二类路径B—C向设备节点C发送相应的信息,之后由设备节点C通过其第二类路径C—D向设备节点D发送相应的信息,最终由设备节点D将该信息发送给其通信范围内的用户终端。As shown in FIG. 1, when the root node R works normally, the device node A sends information to the root node through its first type path A-B-R, and then the root node R sends the information to the user terminal. When the root node R fails or fails, the device node A first sends the corresponding information to the device node B through its second type path A-B, and then the device node B sends the corresponding information to the device node C through its second type path B-C. The corresponding information is sent, and then the device node C sends the corresponding information to the device node D through its second type path C-D, and the device node D finally sends the information to the user terminal within its communication range.
在本实施例中,若所述根节点停电或故障,则当前节点通过第一类路径与 根节点通信时,第一类路径中跳数为1的设备节点向根节点发送信息时失败,该跳数为1的设备节点向当前节点反馈根节点掉线。之后该当前节点向其通信范围内的用户终端发送根节点掉线通知,以使用户终端提示相关人员作出处理。In this embodiment, if the root node is powered off or faulty, when the current node communicates with the root node through a first-type path, a device node with a hop count of 1 in the first-type path fails to send information to the root node. The device node with a hop count of 1 reports to the current node that the root node is offline. After that, the current node sends a root node disconnection notification to the user terminal within its communication range, so that the user terminal prompts the relevant personnel to take action.
本发明实施例提供的低功耗蓝牙通信方法通过在当前节点中生成可与根节点连通的第一类路径和/或与通信范围内的各设备节点连通的第二类路径,既精简了需要保存在路由表中的路径,又为当前节点与根节点或其他设备节点之间进行通信时路径的选择提供了便利,提高了路径选择的针对性,降低了根节点的压力;而且当根节点失效时,当前节点仍可与其他部分设备节点通过第二类路径构成局部Mesh网络进行通信。The Bluetooth low energy communication method provided by the embodiment of the present invention reduces the need by generating a first type path that can be connected to the root node and / or a second type path that is connected to each device node in the communication range in the current node. The path stored in the routing table also facilitates the selection of the path when the current node communicates with the root node or other device nodes, improves the targeting of the path selection, and reduces the pressure on the root node. When it fails, the current node can still communicate with some other device nodes through the second type of path to form a local mesh network.
实施例二Example two
如图3所示的低功耗蓝牙通信方法,包括以下步骤:The Bluetooth low energy communication method shown in FIG. 3 includes the following steps:
步骤S210、当前节点扫描通信范围内的设备节点。Step S210: The current node scans the device nodes within the communication range.
步骤S220、当前节点根据通信范围内设备节点的路由信息生成第一类路径和第二类路径。Step S220: The current node generates a first type path and a second type path according to the routing information of the device node within the communication range.
步骤S210、S220,分别对应实施例一中的S110、S120,不再赘述。Steps S210 and S220 respectively correspond to S110 and S120 in the first embodiment, and details are not described again.
在本实施例中,当前节点指的是与用户终端进行通信的设备节点,如用户终端与某处的一设备节点建立连接,通过该设备节点的路由信息,即第一类路径或第二类路径与根节点或其他相应的设备节点通信,该设备节点即为当前节点。用户终端设备可以为具有BLE通信功能的手机、平板和电脑等设备。In this embodiment, the current node refers to a device node that communicates with a user terminal. For example, the user terminal establishes a connection with a device node somewhere, and the routing information of the device node is the first type path or the second type. The path communicates with the root node or other corresponding device node, and the device node is the current node. User terminal devices can be devices such as mobile phones, tablets, and computers with BLE communication capabilities.
步骤S220当前节点根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:Step S220 After the current node generates the first type path and the second type path according to the routing information of the device nodes in the communication range, the following steps are further included:
步骤S230、当前节点从所述通信范围内的用户终端获取目标节点的信息。Step S230: The current node acquires information of the target node from a user terminal within the communication range.
如图1所示,当前节点A的蓝牙通信范围内有一用户终端,该用户终端需 要与设备节点D建立通信时,先扫描到其附近的设备节点A,即当前节点A。然后用户终端将需要与设备节点D,即目标节点D通信的消息发送至当前节点A,当前节点A即可知目标节点D信息。As shown in FIG. 1, there is a user terminal within the Bluetooth communication range of the current node A. When the user terminal needs to establish communication with the device node D, it first scans the nearby device node A, that is, the current node A. Then the user terminal sends a message that needs to communicate with the device node D, that is, the target node D, to the current node A, and the current node A can know the information of the target node D.
步骤S240、若用户终端的目标节点为当前节点,则当前节点直接和用户终端进行通信。若不是,则执行以下步骤:Step S240: If the target node of the user terminal is the current node, the current node directly communicates with the user terminal. If not, perform the following steps:
步骤S250、若所述目标节点位于所述第二类路径中,则当前节点通过所述第二类路径建立所述用户终端与所述目标节点的通信。Step S250: If the target node is located in the second type of path, the current node establishes communication between the user terminal and the target node through the second type of path.
当前节点A获取到目标节点D的信息后,检查自身路由表中是否有到达目标节点D的第二类路径。如果当前节点A的路由表中有第二类路径A—D,则当前节点A通过该第二类路径将需要发送的信息发送至目标节点D,以建立用户终端与所述目标节点的通信,即路径:用户终端—A—D。After the current node A obtains the information of the target node D, it checks whether there is a second type path in the routing table to the target node D. If there is a second-type path A-D in the routing table of the current node A, the current node A sends the information to be sent to the target node D through the second-type path to establish communication between the user terminal and the target node, That is, the path: user terminal-A-D.
当前节点从用户终端获取到目标节点的信息后,先通过其第二类路径判断目标节点是否位于其通信范围,若是,则优先通过该第二路径建立用户终端与目标节点的通信,路径选择速度更快,而且路径更短。After the current node obtains the target node information from the user terminal, it first determines whether the target node is in its communication range through its second type of path. If so, it preferentially establishes the communication between the user terminal and the target node through the second path. The path selection speed Faster and shorter paths.
作为优选的实施方式,若当前节点通过所述第二类路径建立所述用户终端与所述目标节点的通信失败,则通过第一路径将所述目标节点的信息发送至所述根节点,以通过所述根节点建立所述用户终端与所述目标节点的通信。As a preferred embodiment, if the current node fails to establish communication between the user terminal and the target node through the second type of path, the information of the target node is sent to the root node through the first path, so as to The communication between the user terminal and the target node is established through the root node.
当前节点通过所述第二类路径建立所述用户终端与所述目标节点的通信失败,可能是因为当前节点或目标节点被移动造成的。由于设备节点在移动后会重新进行入网流程,更新路由信息,如生成新的第一类路径和第二类路径。此时目标节点不在当前节点的通信范围内,但是可以通过第一类路径与根节点建立通信。The failure of the current node to establish communication between the user terminal and the target node through the second type of path may be caused by the current node or the target node being moved. Because the device node will re-enter the network after the move, and update routing information, such as generating new first-type paths and second-type paths. At this time, the target node is not in the communication range of the current node, but can establish communication with the root node through the first type of path.
作为优选的实施方式,步骤S220当前节点根据通信范围内设备节点的路由 信息生成第一类路径和第二类路径之后,还包括以下步骤:As a preferred embodiment, after the current node generates the first type path and the second type path according to the routing information of the device nodes in the communication range in step S220, the method further includes the following steps:
步骤S260、若所述目标节点不位于当前节点的第二类路径中,则当前节点通过第一路径将所述目标节点的信息发送至所述根节点,以通过所述根节点建立所述用户终端与所述目标节点的通信。Step S260: If the target node is not located in the second type of path of the current node, the current node sends the information of the target node to the root node through the first path to establish the user through the root node Communication between the terminal and the target node.
即当所述目标节点位于所述第二类路径中,但当前节点通过所述第二类路径建立所述用户终端与所述目标节点的通信失败,或者目标节点不位于所述第二类路径中时,当前节点通过所述根节点建立所述用户终端与所述目标节点的通信。That is, when the target node is located in the second type of path, but the current node fails to establish communication between the user terminal and the target node through the second type of path, or the target node is not located in the second type of path During the middle time, the current node establishes communication between the user terminal and the target node through the root node.
当前节点先通过其第一类路径A—B—R将需要发送的信息发送至根节点R,建立当前节点与根节点R的通信;由于各设备节点根据通信范围内设备节点的路由信息生成第一类路径之后,会将生成的第一类路径同步至根节点,在根节点的路由表中保存相应的路径如R—B—A、R—D。根节点R从当前节点A获取到用户终端要通过根节点R与目标节点D通信后,将从当前节点A获取的相应的信息通过路径R—D发送至目标节点D;至此当前节点A通过所述根节点R建立了用户终端与目标节点D的通信。The current node first sends the information to be sent to the root node R through its first type of path A-B-R, and establishes the communication between the current node and the root node R. Since each device node generates the first node according to the routing information of the device node within the communication range. After the first type of path, the generated first type of path is synchronized to the root node, and the corresponding paths such as R-B-A, R-D are stored in the routing table of the root node. After the root node R acquires the user terminal from the current node A to communicate with the target node D through the root node R, it sends the corresponding information obtained from the current node A to the target node D through the path R-D; so far the current node A passes The root node R establishes the communication between the user terminal and the target node D.
本发明实力提供的低功耗蓝牙通信方法,通过在当前节点中生成可与根节点连通的第一类路径和/或与通信范围内的各设备节点连通的第二类路径;在目标节点位于第二类路径中时通过第二类路径建立所述用户终端与所述目标节点的通信,路径选择速度更快,而且路径更短;当第二类路径失效或者目标节点不位于第二类路径中时,当前节点先通过其第一类路径将需要发送的信息发送至根节点,然后由根节点将相应的信息发送至目标节点从而通过根节点建立用户终端与目标节点的通信。从而实现了为当前节点与根节点或其他设备节点之间进行通信时路径的选择提供了便利,提高了路径选择的针对性,降低了根节 点的压力。The low-power Bluetooth communication method provided by the present invention can generate a first-type path that can communicate with the root node and / or a second-type path that can communicate with each device node in the communication range in the current node; The second type of path is used to establish communication between the user terminal and the target node through the second type of path. The path selection is faster and the path is shorter. When the second type of path fails or the target node is not located in the second type of path During intermediate time, the current node first sends the information to be sent to the root node through its first type of path, and then the root node sends the corresponding information to the target node to establish the communication between the user terminal and the target node through the root node. This facilitates the selection of the path when the current node communicates with the root node or other device nodes, improves the targetedness of the path selection, and reduces the pressure on the root node.
在一实施例中,步骤S220当前节点根据通信范围内设备节点的路由信息生成第一类路径有多条。In an embodiment, in step S220, the current node generates multiple first-type paths according to the routing information of the device nodes in the communication range.
如图1所示,以设备节点K为当前节点,在设备节点K加入到网络的流程中,设备节点K可从其通信范围内的设备节点F和G获取到相应的路由信息,包括设备节点F和G关于R的路由表,分别为F—C—R和G—C—R;以及设备节点F和G的跳数值均为2。因此,当前节点K生成和保存的第一类路径为两条,即其路由表中可建立两条到达根节点R的路径,分别为K—F—C—R和K—G—C—R。As shown in Figure 1, with device node K as the current node, in the process of adding device node K to the network, device node K can obtain corresponding routing information from device nodes F and G within its communication range, including the device node. The routing tables of F and G on R are F-C-R and G-C-R, respectively; and the hop values of device nodes F and G are both 2. Therefore, there are two first-type paths generated and saved by the current node K, that is, two paths to the root node R can be established in its routing table, which are K-F-C-R and K-G-C-R, respectively. .
作为本发明实施例的进一步改进,若步骤S220当前节点根据通信范围内设备节点的路由信息生成多条第一类路径,则低功耗蓝牙通信方法还包括以下步骤:As a further improvement of the embodiment of the present invention, if the current node generates multiple first-type paths according to the routing information of the device nodes in the communication range in step S220, the Bluetooth low energy communication method further includes the following steps:
步骤S270、当前节点标记一条第一类路径为当前路径,标记其余第一类路径为备用路径。Step S270: The current node marks one first-type path as the current path, and marks the remaining first-type path as standby paths.
作为优选的实施方式,若当前节点通过当前路径与根节点通信失败时,通过所述备用路径与根节点通信。As a preferred embodiment, if the current node fails to communicate with the root node through the current path, communicate with the root node through the standby path.
当前节点K的第一类路径多于一条,因此,在与根节点R通信时,可以选择通过其中一条路径,即当前路径与根节点R通信;而其余的第一类路径作为备用路径,在当前路径出现故障等情况时建立当前节点K与根节点R的通信,从而可保证消息的收发成功。The current node K has more than one first-type path. Therefore, when communicating with the root node R, you can choose one of the paths, that is, the current path to communicate with the root node R. The remaining first-type paths are used as backup paths. When the current path fails, communication between the current node K and the root node R is established, thereby ensuring the success of message transmission and reception.
作为优选的实施方式,具体如何分配第一类路径为当前路径或备用路径,是由根节点R决策的,步骤S270当前节点标记一条第一类路径为当前路径,标记其余第一类路径为备用路径,具体为:当前节点根据从所述根节点获取的标 记指令标记一条第一类路径为当前路径,标记其余第一类路径为备用路径。As a preferred embodiment, how to allocate the first type of path as the current path or the backup path is determined by the root node R. In step S270, the current node marks one first type of path as the current path and marks the remaining first type of path as standby. The path is specifically: the current node marks one first-type path as the current path, and marks the remaining first-type path as standby paths according to the marking instruction obtained from the root node.
本发明实施例提供的低功耗蓝牙通信方法,通过在当前节点与根节点之间有多条第一类路径时,标记一条第一类路径为当前路径,其余为备用路径;因此,在当前节点与根节点通信时,优先通过当前路径与当前节点通信;在当前路径出现故障等情况时通过备用路径建立根节点与当前节点的通信,从而可保证消息的收发成功率。According to the Bluetooth low energy communication method provided by the embodiment of the present invention, when there are multiple first-type paths between the current node and the root node, one first-type path is marked as the current path, and the rest are backup paths. When a node communicates with the root node, it preferentially communicates with the current node through the current path; when the current path fails, etc., the communication between the root node and the current node is established through the standby path, thereby ensuring the success rate of message transmission and reception.
当前节点根据通信范围内设备节点的路由信息生成第一类路径之后,当前节点会将所述第一类路径同步至根节点,因此根节点也具有多条与各第一类路径相应的路径,如R—C—F—K和R—C—G—K,分别对应于第一类路径K—F—C—R和K—G—C—R。After the current node generates the first type of path according to the routing information of the device node within the communication range, the current node will synchronize the first type of path to the root node, so the root node also has multiple paths corresponding to each of the first type of paths. For example, R-C-F-K and R-C-G-K respectively correspond to the first-type paths K-F-C-R and K-G-C-R.
作为优选的实施方式,标记指令具体为所述根节点根据各第一类路径相应设备节点的电量参数和/或使用频次生成的。As a preferred implementation manner, the marking instruction is specifically generated by the root node according to a power parameter and / or a usage frequency of a corresponding device node of each first-type path.
设备节点的电量参数可以反映设备节点中电池的剩余电量,设备节点的使用频次可以反映该节点设备在蓝牙网络中作为中继节点转发数据的频次。通过根据各第一类路径中相应设备节点的电量参数和/或使用频次选择当前路径和备用路径,可以均衡多个第一类路径的使用频次,使相应的设备节点的电池使用电量达到均衡,从而延长整个网络的使用寿命,提高整个网络的鲁棒性。The power parameter of the device node can reflect the remaining power of the battery in the device node, and the usage frequency of the device node can reflect the frequency of the node device's forwarding data in the Bluetooth network as a relay node. By selecting the current path and the backup path according to the power parameter and / or the use frequency of the corresponding device node in each first type of path, the frequency of use of multiple first type paths can be balanced, and the battery power of the corresponding device nodes can be balanced, Thereby extending the service life of the entire network and improving the robustness of the entire network.
如图1中设备节点K的两条第一类路径K—F—C—R和K—G—C—R中,设备节点F和设备节点G为相应的设备节点,通过这两个设备节点的电量参数和/或使用频次选择当前路径和备用路径。As shown in the two first-type paths K_F_C_R and K_G_C_R of the device node K in FIG. 1, the device node F and the device node G are corresponding device nodes, and through these two device nodes And / or use frequency to select the current path and backup path.
作为优选的实施方式,低功耗蓝牙设备节点的广播包数据信息包括其电池电量标识,即电量参数。在本实施例中,电量参数具体为电池电量等级(Battery Level,BL),如电池电量等级为4,可以表示该设备节点剩余80%左右的电量; 如电池电量等级为0,可以表示该设备节点剩余不到10%的电量。As a preferred embodiment, the broadcast packet data information of the Bluetooth low energy device node includes its battery power identifier, that is, the power parameter. In this embodiment, the power parameter is specifically a battery level (BL). For example, if the battery power level is 4, it can indicate that the device node has about 80% of the remaining power; if the battery power level is 0, it can indicate the device. Nodes have less than 10% of power remaining.
对于两条第一类路径,可根据设备节点F和设备节点G的电池电量等级选定一条路径作为当前路径,另一条作为备用路径。For the two first-type paths, one path may be selected as the current path and the other as the backup path according to the battery power levels of the device nodes F and G.
在两个中继设备节点F和G的BL>0的情况下,若设备节点F和设备节点G的BL相同,可以选择其中任何一条第一类路径为当前路径,剩余的作为备用路径。In the case where BL of two relay device nodes F and G is greater than 0, if the BL of device node F and device node G are the same, any one of the first type paths may be selected as the current path, and the remaining paths may be used as backup paths.
若设备节点F的BL大于设备节点G的BL,则根节点R选择经过设备节点F的第一类路径作为当前路径,选择经过设备节点G的第一类路径作为备用路径;即选择K—F—C—R作为当前路径,选择K—G—C—R作为备用路径。反之,若设备节点F的BL小于设备节点G的BL,则根节点R选择K—G—C—R作为当前路径,选择K—F—C—R作为备用路径。If the BL of the device node F is greater than the BL of the device node G, the root node R selects the first type of path passing through the device node F as the current path and the first type of path passing through the device node G as the backup path; that is, selects K-F —C—R is selected as the current path, and K—G—C—R is selected as the backup path. Conversely, if the BL of the device node F is smaller than the BL of the device node G, the root node R selects K-G-C-R as the current path and K-F-C-R as the backup path.
设备节点的使用频次可以反映该节点设备在蓝牙网络中作为中继节点转发数据的频次;使用频次可以由各设备节点自己统计,然后由根节点调用,也可以由根节点统计。The usage frequency of the device node can reflect the frequency of the node device's forwarding data in the Bluetooth network as a relay node; the usage frequency can be counted by each device node itself, and then called by the root node, or it can be counted by the root node.
若两个中继设备节点F和G的BL>0,且设备节点F和设备节点G的BL相同,可以进一步通过相应设备节点的使用频次标记相应的第一类路径为当前路径。If BL of two relay device nodes F and G is greater than 0, and BL of device node F and device node G are the same, the corresponding first-type path may be further marked as the current path by the frequency of use of the corresponding device node.
作为优选的实施方式,选择经过使用频次较低的中继设备节点的第一类路径中作为根节点R和当前节点K的当前路径;如设备节点F的使用频次为10次,设备节点G的使用频次为25次,则标记K—F—C—R作为当前路径,K—G—C—R作为备用路径。As a preferred implementation, the current path of the root node R and the current node K in the first type of path that passes through the relay device node with a lower frequency is selected; for example, the frequency of use of the device node F is 10 times, and that of the device node G is If the frequency is 25 times, K-F-C-R is marked as the current path, and K-G-C-R is marked as the backup path.
根节点R标记好当前路径和备用路径后,向当前节点K发送标记指令;以使当前节点将与相应的第一类路径标记为当前路径,将其他的第一类路径标记 为备用路径。After the root node R marks the current path and the standby path, it sends a marking instruction to the current node K; so that the current node marks the corresponding first-type path as the current path and the other first-type paths as the standby paths.
从而实现了如果某设备节点的使用频次较高,那么可以减少该第一类路径的使用,从而减少该路径占用该设备节点的频次,从而延长该设备节点的寿命的效果。Therefore, if the frequency of use of a certain device node is high, the use of the first type of path can be reduced, thereby reducing the frequency that the path occupies the device node, thereby extending the life of the device node.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法,如:It can be known from the description of the foregoing embodiments that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solution of the present invention in essence or a part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk , Optical discs, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention or certain parts of the embodiments, such as:
存储介质,所述存储介质存储有计算机程序,所述计算机程序被处理器执行时实现前述低功耗蓝牙通信方法的步骤。A storage medium storing a computer program that, when executed by a processor, implements the steps of the aforementioned Bluetooth low energy communication method.
本发明可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、机顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等,如实施例三。The invention can be used in many general-purpose or special-purpose computing system environments or configurations. For example: personal computer, server computer, handheld or portable device, tablet device, multi-processor system, microprocessor-based system, set-top box, programmable consumer electronics device, network PC, small computer, mainframe computer, including the above Distributed computing environment of any system or device, etc., as in the third embodiment.
实施例三Example three
如图4所示的电子设备,包括存储器200、处理器300以及存储在存储器200中的程序,所述程序被配置成由处理器300执行,处理器300执行所述程序时实现上述低功耗蓝牙通信方法的步骤。The electronic device shown in FIG. 4 includes a memory 200, a processor 300, and a program stored in the memory 200. The program is configured to be executed by the processor 300, and the processor 300 implements the foregoing low power consumption when executing the program. Steps of the Bluetooth communication method.
本实施例中的电子设备与前述实施例中的方法是基于同一发明构思下的两个方面,在前面已经对方法实施过程作了详细的描述,所以本领域技术人员可根据前述描述清楚地了解本实施中的电子设备的结构及实施过程,为了说明书 的简洁,在此就不再赘述。The electronic device in this embodiment and the method in the foregoing embodiment are based on two aspects under the same inventive concept. The method implementation process has been described in detail previously, so those skilled in the art can clearly understand based on the foregoing description. The structure and implementation process of the electronic device in this implementation are not repeated here for brevity of the description.
本实施例中的电子设备可以应用于如图1所示的低功耗蓝牙网络,即低功耗蓝牙网络包括根节点和至少一个该电子设备。该电子设备在低功耗蓝牙网络中运行时可以实现前述低功耗蓝牙通信方法,根据前述实施例的描述可以理解该低功耗蓝牙网络的结构及实施过程,为了说明书的简洁,在此就不再赘述。The electronic device in this embodiment may be applied to a Bluetooth low energy network as shown in FIG. 1, that is, the Bluetooth low energy network includes a root node and at least one of the electronic devices. The electronic device can implement the aforementioned Bluetooth low energy communication method when running on a Bluetooth low energy network. According to the description of the foregoing embodiments, the structure and implementation process of the Bluetooth low energy network can be understood. No longer.
本发明实施例提供的电子设备、低功耗蓝牙网络,通过在当前节点中生成可与根节点连通的第一类路径和/或与通信范围内的各设备节点连通的第二类路径,既精简了需要保存在路由表中的路径,又为当前节点与根节点或其他设备节点之间进行通信时路径的选择提供了便利,提高了路径选择的针对性,降低了根节点的压力;而且当根节点失效时,当前节点仍可与其他部分设备节点通过第二类路径构成局部Mesh网络进行通信。The electronic device and the Bluetooth low energy network provided by the embodiment of the present invention generate a first-type path that can communicate with the root node and / or a second-type path that communicates with each device node in the communication range in the current node. It simplifies the paths that need to be stored in the routing table, and facilitates the selection of paths when the current node communicates with the root node or other device nodes, improves the targeting of the path selection, and reduces the pressure on the root node; When the root node fails, the current node can still communicate with some other device nodes through the second type of path to form a local mesh network.
上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。The foregoing embodiments are merely preferred embodiments of the present invention, and the scope of protection of the present invention cannot be limited by this. Any non-substantial changes and substitutions made by those skilled in the art on the basis of the present invention belong to the present invention. Claimed scope.

Claims (18)

  1. 低功耗蓝牙通信方法,其特征在于:包括以下步骤:The Bluetooth low energy communication method is characterized by including the following steps:
    扫描通信范围内的设备节点;Scan for device nodes within communication range;
    根据通信范围内设备节点的路由信息生成第一类路径和第二类路径;Generating the first type path and the second type path according to the routing information of the device nodes in the communication range;
    所述第一类路径为经过所述通信范围内的中继设备节点与根节点连通的路径;The first type of path is a path that communicates with a root node through a relay device node within the communication range;
    所述第二类路径为与所述通信范围内的各设备节点连通的路径。The second type of path is a path that communicates with each device node within the communication range.
  2. 如权利要求1所述的低功耗蓝牙通信方法,其特征在于:所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 1, wherein after generating the first type path and the second type path according to the routing information of the device nodes in the communication range, the method further comprises the following steps:
    若通过所述第一类路径与根节点通信失败,则通过所述第二类路径向通信范围内相应的设备节点发送信息,以使所述设备节点转发所述信息。If the communication with the root node fails through the first type of path, information is sent to the corresponding device node in the communication range through the second type of path, so that the device node forwards the information.
  3. 如权利要求2所述的低功耗蓝牙通信方法,其特征在于:通过所述第一类路径与根节点通信失败,具体包括:所述根节点停电或故障。The Bluetooth low energy communication method according to claim 2, wherein the failure to communicate with the root node through the first type of path specifically comprises: a power outage or failure of the root node.
  4. 如权利要求3所述的低功耗蓝牙通信方法,其特征在于:还包括以下步骤:若所述根节点停电或故障,则向所述通信范围内的用户终端发送根节点掉线通知。The Bluetooth low energy communication method according to claim 3, further comprising the step of: if the root node is powered off or faulty, sending a root node disconnection notification to a user terminal within the communication range.
  5. 如权利要求1所述的低功耗蓝牙通信方法,其特征在于:所述扫描通信范围内的设备节点之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 1, further comprising the following steps after the device nodes in the communication range are scanned:
    从所述通信范围内的设备节点获取路由信息,所述路由信息包括相应设备节点的跳数值。Obtaining routing information from a device node within the communication range, where the routing information includes a hop value of a corresponding device node.
  6. 如权利要求5所述的低功耗蓝牙通信方法,其特征在于:所述中继设备节点的跳数值不大于所述通信范围内各设备节点的跳数值。The method of claim 5, wherein the hop value of the relay device node is not greater than the hop value of each device node in the communication range.
  7. 如权利要求6所述的低功耗蓝牙通信方法,其特征在于:所述根据通信 范围内设备节点的路由信息生成第一类路径和第二类路径,具体包括以下步骤:The Bluetooth low energy communication method according to claim 6, wherein the generating the first type path and the second type path according to the routing information of the device nodes within the communication range, specifically comprising the following steps:
    若有设备节点的跳数值不大于所述通信范围内其余设备节点的跳数值,则根据所述设备节点的路由信息生成第一类路径;以及If the hop value of any device node is not greater than the hop values of other device nodes in the communication range, generating a first type of path according to the routing information of the device node; and
    根据所述通信范围内各设备节点的信息生成第二类路径。A second type of path is generated according to the information of each device node within the communication range.
  8. 如权利要求7所述的低功耗蓝牙通信方法,其特征在于:所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 7, wherein after generating the first type path and the second type path according to the routing information of the device nodes in the communication range, the method further comprises the following steps:
    根据所述第一类路径向所述根节点发送接入通知;Sending an access notification to the root node according to the first type of path;
    若获取到所述根节点的授权,则保存所述第一类路径和第二类路径。If the authorization of the root node is obtained, the first type path and the second type path are saved.
  9. 如权利要求1所述的低功耗蓝牙通信方法,其特征在于:所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 1, wherein after generating the first type path and the second type path according to the routing information of the device nodes in the communication range, the method further comprises the following steps:
    从所述通信范围内的用户终端获取目标节点的信息;Acquiring information of a target node from a user terminal within the communication range;
    若所述目标节点位于所述第二类路径中,则通过所述第二类路径建立所述用户终端与所述目标节点的通信。If the target node is located in the second type of path, communication between the user terminal and the target node is established through the second type of path.
  10. 如权利要求9所述的低功耗蓝牙通信方法,其特征在于:所述从所述通信范围内的用户终端获取目标节点的信息之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 9, wherein after acquiring the information of the target node from the user terminal within the communication range, the method further comprises the following steps:
    若所述目标节点不位于所述第二类路径中,则通过第一路径将所述目标节点的信息发送至所述根节点,以通过所述根节点建立所述用户终端与所述目标节点的通信。If the target node is not in the second type of path, sending the information of the target node to the root node through the first path to establish the user terminal and the target node through the root node Communication.
  11. 如权利要求10所述的低功耗蓝牙通信方法,其特征在于:所述从所述通信范围内的用户终端获取目标节点的信息之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 10, wherein after acquiring the information of the target node from the user terminal within the communication range, the method further comprises the following steps:
    若通过所述第二类路径建立所述用户终端与所述目标节点的通信失败,则 通过第一路径将所述目标节点的信息发送至所述根节点,以通过所述根节点建立所述用户终端与所述目标节点的通信。If the communication between the user terminal and the target node fails to be established through the second type of path, information of the target node is sent to the root node through the first path to establish the root node through the root node. Communication between a user terminal and the target node.
  12. 如权利要求11所述的低功耗蓝牙通信方法,其特征在于:所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 11, wherein after generating the first type path and the second type path according to the routing information of the device nodes in the communication range, the method further comprises the following steps:
    将所述第一类路径同步至根节点。Synchronize the first type of path to the root node.
  13. 如权利要求12所述的低功耗蓝牙通信方法,其特征在于:若所述根据通信范围内设备节点的路由信息生成的第一类路径有多条,则所述根据通信范围内设备节点的路由信息生成第一类路径和第二类路径之后,还包括以下步骤:The Bluetooth low energy communication method according to claim 12, wherein if there are multiple first-type paths generated based on the routing information of the device nodes within the communication range, After the routing information generates the first type path and the second type path, the following steps are further included:
    标记一条第一类路径为当前路径,标记其余第一类路径为备用路径。Mark one first-type path as the current path and mark the remaining first-type paths as backup paths.
  14. 如权利要求13所述的低功耗蓝牙通信方法,其特征在于:所述标记一条第一类路径为当前路径,标记其余第一类路径为备用路径,具体为:The Bluetooth low energy communication method according to claim 13, wherein the marking a first-type path as a current path and marking the remaining first-type paths as standby paths are specifically:
    根据从所述根节点获取的标记指令标记一条第一类路径为当前路径,标记其余第一类路径为备用路径。According to the marking instruction obtained from the root node, a first type path is marked as a current path, and the remaining first type paths are marked as standby paths.
  15. 如权利要求14所述的低功耗蓝牙通信方法,其特征在于:所述标记指令具体为所述根节点根据各第一类路径相应设备节点的电量参数和/或使用频次生成的。The Bluetooth low energy communication method according to claim 14, wherein the marking instruction is specifically generated by the root node according to a power parameter and / or a usage frequency of a corresponding device node of each first type of path.
  16. 电子设备,其特征在于:包括存储器、处理器以及存储在存储器中的程序,所述程序被配置成由处理器执行,处理器执行所述程序时实现如权利要求1-15中任一项所述的低功耗蓝牙通信方法的步骤。The electronic device is characterized in that it includes a memory, a processor, and a program stored in the memory, the program is configured to be executed by a processor, and the processor implements the program according to any one of claims 1-15 when the processor executes the program. The steps of the Bluetooth low energy communication method are described.
  17. 低功耗蓝牙网络,其特征在于:包括根节点和至少一个如权利要求16所述的电子设备。The Bluetooth low energy network includes a root node and at least one electronic device according to claim 16.
  18. 存储介质,所述存储介质存储有计算机程序,其特征在于:所述计算机 程序被处理器执行时实现如权利要求1-15中任一项所述的低功耗蓝牙通信方法的步骤。A storage medium storing a computer program, characterized in that when the computer program is executed by a processor, the steps of the Bluetooth low energy communication method according to any one of claims 1-15 are implemented.
PCT/CN2018/090933 2018-06-13 2018-06-13 Low power bluetooth communication method, electronic equipment, network and storage medium WO2019237264A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/090933 WO2019237264A1 (en) 2018-06-13 2018-06-13 Low power bluetooth communication method, electronic equipment, network and storage medium
CN201880091915.4A CN111971984B (en) 2018-06-13 2018-06-13 Low-power consumption Bluetooth communication method, electronic device, network and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/090933 WO2019237264A1 (en) 2018-06-13 2018-06-13 Low power bluetooth communication method, electronic equipment, network and storage medium

Publications (1)

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

Family

ID=68842400

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090933 WO2019237264A1 (en) 2018-06-13 2018-06-13 Low power bluetooth communication method, electronic equipment, network and storage medium

Country Status (2)

Country Link
CN (1) CN111971984B (en)
WO (1) WO2019237264A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024021735A1 (en) * 2022-07-26 2024-02-01 哲库科技(上海)有限公司 Bluetooth multimedia packet transmission method and apparatus, device, system, and storage medium

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604212A (en) * 2016-12-21 2017-04-26 深圳市北电仪表有限公司 Mesh networking method based on BLE attribute and GATT
US9654906B2 (en) * 2014-06-12 2017-05-16 Samsung Electronics Co., Ltd Method for processing data based on bluetooth protocol and electronic device thereof
CN107592605A (en) * 2017-09-14 2018-01-16 上海肖克利信息科技股份有限公司 Ad hoc network method and system based on low-power consumption bluetooth

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179635A (en) * 2013-01-11 2013-06-26 南京邮电大学 Bluetooth based networking and communication methods for Anddroid mobile equipment
US9900827B2 (en) * 2015-12-10 2018-02-20 Lg Electronics Inc. Method and apparatus for transmitting and receiving data in wireless communication system
WO2018081583A1 (en) * 2016-10-27 2018-05-03 Infinitekey, Inc. System and method for authenticating and authorizing devices
CN106550321A (en) * 2017-01-10 2017-03-29 湖南科技职业学院 A kind of construction method of the mobile ad hoc network based on Hybrid communication model
CN108156231B (en) * 2017-12-21 2020-11-03 北京摩拜科技有限公司 Method for communication between fault vehicle and server, vehicle and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9654906B2 (en) * 2014-06-12 2017-05-16 Samsung Electronics Co., Ltd Method for processing data based on bluetooth protocol and electronic device thereof
CN106604212A (en) * 2016-12-21 2017-04-26 深圳市北电仪表有限公司 Mesh networking method based on BLE attribute and GATT
CN107592605A (en) * 2017-09-14 2018-01-16 上海肖克利信息科技股份有限公司 Ad hoc network method and system based on low-power consumption bluetooth

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024021735A1 (en) * 2022-07-26 2024-02-01 哲库科技(上海)有限公司 Bluetooth multimedia packet transmission method and apparatus, device, system, and storage medium

Also Published As

Publication number Publication date
CN111971984A (en) 2020-11-20
CN111971984B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US10051441B2 (en) Changing topology of wireless peer-to-peer group
KR100804831B1 (en) Method of creating and managing session between wireless universal serial bus host and wireless universal serial device and wireless universal serial bus host and wireless universal serial device
US10075831B2 (en) Method and apparatus for transmitting and receiving data in mesh network using Bluetooth
TWI444075B (en) Discovery channel and discovery beacon for peer-to-peer devices in wireless communications network
TWI571166B (en) Selection of synchronization stations in a peer-to-peer network environment
US11711711B2 (en) Method for configuring measurement gap, access network device and terminal
US10171986B2 (en) Radio relay device and system with waiting time optimization
CN104980987A (en) Method, apparatus, and computer program product for seamless switching of communication connection
CN108770036B (en) Inter-cluster-head communication method and wireless sensor network routing device
WO2019237263A1 (en) Low-energy bluetooth network maintenance method, electronic device, bluetooth network, and medium
TWI539846B (en) Method to support emergency call through mesh network
JP2013192010A (en) Radio communication apparatus
JP2014147040A (en) Access point and radio communication control method
CN107852589A (en) The instruction on the scene of neighborhood aware network data link
WO2018102964A1 (en) Information transmission method and device
JP5431584B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
WO2016008218A1 (en) Wireless ad hoc network, center node, dynamic selection method and storage medium
WO2019237262A1 (en) Low-power bluetooth networking method, electronic device, network, and storage medium
WO2019237264A1 (en) Low power bluetooth communication method, electronic equipment, network and storage medium
WO2016110084A1 (en) Method, device and system for precision time protocol time synchronization in aggregation network
CN106537955B (en) Data transmission method and device
TWI533732B (en) Synchronization of devices in a peer-to-peer network environment
CN106304241B (en) Data transmission method, repeater and gateway
CN106357532B (en) Message response method and device
JP6251210B2 (en) Terminal device, communication session establishment method, and program

Legal Events

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

Ref document number: 18922560

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18922560

Country of ref document: EP

Kind code of ref document: A1