It’s been a year since the release of Bluetooth® mesh. During this period, a number of products have been released which support Bluetooth mesh — from embedded chips/modules to smart lighting bulbs to BlueZ.

BlueZ is the official Linux Bluetooth protocol stack. It can be deployed on a Linux platform and provides support for the core Bluetooth layers and protocols.

BlueZ for Bluetooth Mesh

BlueZ started to support Bluetooth® mesh in its BlueZ v5.47 release and has seen some improvements in subsequent releases, BlueZ v5.48 and BlueZ v5.49. These releases come with Bluetooth mesh support in the form of a new meshctl tool. Using this tool, it’s possible to provision Bluetooth mesh devices through the GATT Provisioning Bearer (PB-GATT) and configure them using the GATT Proxy protocol.

Now, you can deploy Bluetooth mesh devices on Linux platforms, which may be from different Linux distributors, then run meshctl tool to provision and configure a Bluetooth mesh product. This provides a new option, letting you use the Linux board as a provisioner and configuration client to establish or build up a mesh network. Meanwhile, with the help of meshctl tool, you can learn the Bluetooth mesh provisioning and model configuration process. Both of which are the first step you confront when you start developing Bluetooth mesh products, prototypes, or demos.

BlueZ on Raspberry Pi3

Earlier this year, I went through the process of deploying BlueZ v5.49 on my Raspberry Pi3 board. I spent two weeks looking for solutions on the internet and sharing challenges I encountered with Linux experts to make it happen.

As a Developer Relations Manager for the Bluetooth Special Interest Group (SIG), I have a responsibility to share my knowledge and experience, shorten your learning curve, and help accelerate the learning process. So, I summarized the issues, collected the corresponding information, itemized them by a reasonable working flow, verified with my team, and drafted a step-by-step guide that helps you set up BlueZ. This step-by-step guide outlines:

  • Prerequisites before getting started
  • How to configure the Raspberry Pi3 board
  • How to install dependencies for BlueZ v5.49
  • How to get BlueZ’s source code
  • How to compile and install BlueZ on Pi3
  • How to recompile the kernel to make the meshctl tool
  • How to install the recompiled kernel
  • How to verify kernel installation

After following this step-by-step guide, you will get a test and development environment on your Pi3 board and can use it to build an amazing Bluetooth® mesh network.

Check back for future step-by-step guides, including an overview on how to use the meshctl tool.

If you’re interested in learning more about developing with Bluetooth, check out our other developer resources.

FEATURED DOWNLOAD

Bluetooth Mesh Developer Study Guide

The Bluetooth Mesh Developer Study Guide is a self-study educational resource which covers both the theory and practice of Bluetooth mesh device firmware development.

INSTANT DOWNLOAD

Why Wireless Control Networks Are Taking Over Commercial Lighting

Commercial connected lighting systems have long held the promise of providing building managers with…

Revealed: New Trends Driving the Future of Bluetooth® Technology

Watch Chuck Sabin, Senior Director, Market Development for the Bluetooth Special Interest Group (SIG),…

The Bluetooth SIG and the DALI Alliance Remove a Big Barrier for Realizing IoT Lighting Potential

In May 2020, the Bluetooth Special Interest Group (SIG) and the DALI Alliance announced…

Wireless Connectivity Options for IoT Applications - Commercial Lighting

Industry 4.0 is no longer a thing of the future. The term describes the…

Why Lighting Professionals Prefer Bluetooth Commercial Connected Lighting Over Wired Alternatives

Bluetooth® mesh continues to prove itself as the most effective and user-friendly technology for…

Bluetooth Mesh at Scale - A Case Study

This session includes a detailed overview of the largest Bluetooth mesh lighting control installation…

Smart Warehouse Lighting Retrofit

150,000 sq.ft warehouse with a primitive lighting system is retrofitted to a most modern…

Connected lighting success rests on interoperability and market clarity

HENRY WONG of the Bluetooth SIG brings attention to connected lighting barriers in commercial…

Bluetooth mesh integrated in LED fixtures serves 22-story Minnesota office building

EMC, Silvair, and McWong have partnered to retrofit a 470,317-sq. ft office building with…

Maximised Energy Savings With Smart Lighting

Lighting can account for up to a third of a commercial building’s energy consumption.…

2021 Bluetooth Market Update

Supported by updated forecasts from ABI Research and insights from several other analyst firms, the Bluetooth Market Update highlights the latest Bluetooth trends and forecasts.

Qualified Bluetooth Mesh - Unlocking the Value of the Building

Facilities managers are growing increasingly conscious that the buildings they manage need to be…

The Largest Bluetooth Mesh Lighting Control Installation in the World!

The project itself consisted of 3,685 Bluetooth mesh McWong TruBlu lighting controllers (installed in…

Designing and Developing Bluetooth® Internet Gateways

Design and implement your own Bluetooth® Internet Gateway (BIG) working prototype and see for yourself how BIGs allow applications to exchange data with Bluetooth devices from anywhere in the world.

Understanding Reliability in Bluetooth® Technology

Download this detailed discussion of the issues and factors that impact the reliability of…

Bluetooth Mesh Networking Highlights and Features

This white paper provides an overview of the Bluetooth Mesh Profile and highlights some…

Building a Sensor-Driven Lighting Control System Based on Bluetooth® Mesh

A technical examination of which Bluetooth mesh models to use in different types of…

What is Bluetooth Mesh? | Tech Chats - with Cypress Semiconductor

Chris Anderson chats with Michael Shen of Cypress Semiconductor about Bluetooth mesh, covering a…

How to Deploy BlueZ on a Raspberry Pi Board as a Bluetooth Mesh Provisioner

This step-by-step study guide will teach you: How to rebuild the kernel on a…

2020 Bluetooth Market Update

Supported by updated forecasts from ABI Research and insights from several other analyst firms, the Bluetooth Market Update highlights the latest Bluetooth trends and forecasts.

The Bluetooth LE Security Study Guide

Learn about fundamental security concepts, the security features of Bluetooth Low Energy, and gain some hands-on experience using those features in device code.

2019 Bluetooth Market Update

Supported by updated forecasts from ABI Research and insights from several other analyst firms, the Bluetooth Market Update highlights the latest Bluetooth trends and forecasts.

Lighting as a Platform

See how connected lighting systems are being used as a platform to enable advanced building services like wayfinding, asset tracking, and space utilization to improve the ROI of smart building investments.

Build a Smarter Building with Blue

See how Bluetooth increases reliability, reduces costs, and enhances your smart building ROI.

Overview – Bluetooth Mesh Networking

A quick overview outlining how Bluetooth mesh uniquely meets the reliability, scalability, and security requirements of commerical and industrial markets.