SWRA648 May   2019 CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652R , CC2652R7 , CC2652RB , CC2652RSIP

 

  1.   Bluetooth Low Energy Tree Structure Network
    1.     Trademarks
    2. 1 Introduction
    3. 2 Bluetooth Low Energy Basic Knowledge
    4. 3 Three Kinds of Bluetooth Low Energy Network Structure
      1. 3.1 Star Network
      2. 3.2 Mesh
      3. 3.3 Tree Structure Network
    5. 4 Bluetooth Low Energy Tree Structure Network Analysis
      1. 4.1 Role Analysis in Bluetooth Low Energy Tree Structure
      2. 4.2 Tree Structure Network Establishment Analysis
    6. 5 Bluetooth Low Energy Tree Structure Network Realization
      1. 5.1 Tree Structure Establishment
      2. 5.2 Role Differentiation in Tree Structure Network
      3. 5.3 Data Transmission in Tree Structure Network
    7. 6 Bluetooth Low Energy tree Structure Network Test
    8. 7 References

Role Analysis in Bluetooth Low Energy Tree Structure

There are three basic roles in the Bluetooth Low Energy tree structure: grandpa node, father node and child node. The purpose of the Bluetooth Low Energy tree structure is that the grandpa node (could be a gateway to cloud) can exchange messages with all other nodes.

In the Bluetooth Core Specification, Bluetooth Low Energy devices can support write, read and notify functions through the Generic Attribute Layer (GATT layer). To implement bi-directional communication between the grandpa node to all its children nodes, use GATT write and GATT notify. For more information, see the BLE5-Stack User's Guide). In this example:

  • The grandpa node sends data to its children: GATT write
  • Child nodes send data to their ancestors: GATT notify
  • The grandpa node receives data from the child nodes: GATT write + GATT notify

To reduce network complexity, the only APIs used are GATT write and GATT notify. When the grandpa node has any data to send to the child nodes, it uses the GATT write command to send the data to the relevant father node. The father node uses the GATT write command to forward the data to one of the child nodes. When child or father nodes need to send data to the grandpa node, they use GATT notify to send the data. If the grandpa node needs to get or poll some information from a father or child node, it also uses the GATT write command to request the node to send the data. The child nodes will use GATT notify to reply to the grandpa node. For more details, see Figure 4.

tree-structure-read-function.pngFigure 4. GATT Write + GATT Notify Accomplish Bluetooth Low Energy Tree Structure Read Function