When the Bluetooth® 5.0 specification launched in 2016, it provided significantly higher data rates than previous standards and paved the way for the introduction of a number of Bluetooth Low Energy (BLE) networking features, particularly those with an emphasis on the emerging requirements of Internet of Things (IoT) applications. Just a year later, on July 31, 2017, the Bluetooth mesh Device Properties 1.0 was launched, enabling the provisioning of Bluetooth-based many-to-many communications. The mesh specification allows for up to 32,767 (215) nodes, making it well-suited for deployment in a wide range of IoT and smart home applications in which there are large numbers of individual devices that need to be connected.
Bluetooth mesh for Smart Home Applications
For smart home and home automation applications, Bluetooth mesh networking opened up the opportunity for many new products. A good example is the rise of Bluetooth-controlled light bulbs that are now available to buy. Consumers can start with just a few or replace all of the bulbs in their home, and the Bluetooth mesh will take care of provisioning them into a particular group or groups of lights (such as the hallway, dining room, kitchen, bedroom, etc.). Another attribute that allows Bluetooth mesh to be successfully adopted in home automation applications is that Bluetooth mesh works on top of the BLE protocol. This enables Bluetooth mesh to be backward compliant with Bluetooth 4.0 and ensures consumers can incorporate legacy devices into a mesh network.
Bluetooth Mesh Star Topology
Rather than restricting communications through a single network hub or star topology, mesh networking allows messages to be sent and relayed through multiple nodes. Mesh networking also enables addressing and controlling multiple devices in a network simultaneously. The Bluetooth mesh approach extends the network’s physical range beyond Bluetooth distance limitations, adds network resilience through redundancy, and offers the ability to significantly scale deployment. The mesh can continue to extend the operating range, overcoming the range limitations encountered with a traditional Bluetooth device. Also, the very nature of messages relayed across the network “fabric” means there is no single point-of-failure, which gives it a self-healing capability.
Mesh Nodes and Flooding Technique
Within Bluetooth, mesh nodes are categorized into four distinct types: Relay, low power, friend, and proxy (Figure 1):
Figure 1: An example Bluetooth mesh network including all node types: Relay, low power, friend, and proxy. (Source: Cypress)
- Relay nodes: These need to always be awake and therefore consume more power. Relay nodes function to receive and forward message packets across the network. In our lighting example, relay nodes will be mains powered, so it is unlikely they would have energy supply concerns.
- Low-power nodes: These nodes are usually battery powered and are typically in a power-saving sleep mode for the majority of the time.
- Friend nodes: Low-power nodes are always associated with a friend node, which stores and forwards messages according to an agreed schedule. An ambient light sensor used to control outside lights at dusk and dawn is an example of a low-power node.
- Proxy nodes: These nodes enable non-BLE-compliant devices to connect into the mesh through the use of the Bluetooth Generic Attribute (GATT) profile interface.
The mesh operates using a broadcast-to-all or “flooding” technique to send messages to every node within the network until the message reaches its destination. A message can target an individual node, a node group, or all nodes. For instance, a group address can be used to turn on all the lights in the dining room, with each light receiving the command with virtually no latency. A publish and subscribe technique links different node types within a mesh network. For example, the group of lights in the dining room “subscribe” to the on/off commands “published” by the light switch(es) located in the room.
Cypress EZ-BT™ Mesh Evaluation Kit (CYBT-213043-MESH)
Embarking on the design of a new Bluetooth mesh-based product can be daunting for even the most seasoned engineer. The Bluetooth Special Interest Group (SIG) helps by publishing a list of suppliers of modules and system-on-chips (SoCs) that have passed the Bluetooth Qualification Process, but beyond that, the engineer will have a host of questions relating to component specifications, software stacks, development tools, and reference designs. In that context, Cypress stands out as a supplier that has the answers and provides all the critical elements to enable completion of a Bluetooth mesh design.
The Cypress EZ-BT™ Mesh Evaluation Kit (CYBT-213043-MESH) is an excellent example of a complete evaluation platform designed to implement and assess Bluetooth SIG Mesh functionality (Figure 2). The kit consists of four separate evaluation boards, each comprising a Cypress CYW20819-based CYBT-213043-02 module, a thermistor, light sensor, and PIR motion sensor. The CYW20819 is an ultra-low-power, dual-mode Bluetooth 5.0 SoC certified to the Bluetooth mesh 1.0 specification. The evaluation platform is ideally suited for designs that require a Bluetooth Low Energy (BLE) mesh capability, such as sensor nodes, lighting, and smart home applications.
Cypress provides a comprehensive list of devices, reference designs, and helper applications for implementing all node types, making it possible to speed the prototyping, development, and testing of Bluetooth mesh products as quickly and cost-effectively as possible. Cypress’ fully certified modules and SoCs, firmware, and development kits remove the complexity of working with the underlying protocols of the mesh stack specification, leaving the development team to concentrate on bringing the end product to market in the shortest time possible. An example is the range of Microsoft Windows, Android, and Apple iOS helper applications that provide prebuilt source code examples to further speed development of mobile applications that interact with the Cypress mesh product lineup (Figure 3).
Added to that, Mouser’s state-of-the-art global distribution and same-day shipping capabilities mean that Cypress products can typically be on the engineer’s bench the day after ordering.