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

Bluetooth Mesh Ushers in a New Era of Reliable, Cost- Effective Development

Bluetooth® Mesh was specifically created to fulfill the demands of commercial and industrial environments,…

A New Bluetooth Standard Improves Personal Health Device Interoperability for Better Remote Patient Monitoring

The Bluetooth Special Interest Group (SIG) recently published a set of specifications that standardizes…

Smart Lighting Control Brightens the Future of Bluetooth Illumination

Smart lighting is a key component of smart commercial buildings and the connected home.…

Synthesize and Transmit Audio Using LE Audio

The application is assembled as a sound-generating device, the synthesizer, and a receiving headphone.…

Walkthrough Bluetooth Mesh 1.1 and Bluetooth® Networked Lighting Control (NLC)

If you are interested in the new features introduced in the Bluetooth® Mesh or…

Unveiling the Truth: Debunking Bluetooth’s Biggest Myth

Bluetooth Low Energy was designed to considerably reduce power consumption and cost while maintaining…

The Importance of Standardizing Wireless Lighting Controlワイヤレス照明制御における標準規格の重要性

Lighting control systems are deployed in offices, retail, healthcare, factories, and other commercial facilities…

Six Bluetooth Mesh Feature Enhancements to Get Excited About

The new Bluetooth mesh feature enhancements offer more robust security, improved network efficiency, reduced…

What’s New with the Latest Bluetooth Mesh Specification

In the evolving landscape of IoT, Bluetooth mesh topology has emerged as an important…

Bluetooth® Mesh Feature Enhancements Summary

This paper summarizes the recent Bluetooth® Mesh feature enhancements and provides references to other…

Bluetooth® Mesh Subnet Bridging - Technical Overview

This paper examines subnet bridging, a new feature introduced in the Bluetooth® Mesh protocol…

The Latest in HADM with Bluetooth LE

HADM, or high accuracy distance measurement using Bluetooth does exactly what it says –…

Mr. Beacon Podcast: Snapdragon Sound with Mike Canevaro

This episode of the Mr. Beacon Podcast explores the revolutionary world of Bluetooth audio.…

Bringing Wireless Controls To The Epicentre Of Connectivity

This year, the time came for the lighting infrastructure at the Bluetooth SIG headquarters…

Smart Lighting And Controls Halve Energy Consumption At Campus Pitzemburg

Campus Pitzemburg has cut its energy usage by 50% thanks to smart controlled energy…

Sylvania Lets Efficiency And Control Fly High At FLYINGGROUP Antwerp

FLYINGGROUP Antwerp was looking for a solution for their meeting rooms that were more…

The Bluetooth® Low Energy Primer

Are you new to Bluetooth Low Energy? Learn about its constituent parts, features, and how it works.

Smart Solutions Using Network Lighting Infrastructures

An intelligent network lighting control infrastructure helps business owners and staff know more about…

Bluetooth® Technology for Linux Developers

Learn how to use the interprocess communication system D-Bus and the BlueZ APIs to create Bluetooth applications for Linux computers.

Bluetooth Range and Reliability: Myth vs Fact

As Bluetooth is becoming more and more ubiquitous in smart homes, buildings, and factories,…

The Role of Lighting in Smart Buildings

Undoubtedly, everyone is aware of two types of lighting, i.e., wired and wireless. It…

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.

Designing and Developing Bluetooth® Internet Gateways

Learn about Bluetooth internet gateways, how to make them secure and scalable, and design and implement your own working prototype gateway and web application for use with either Bluetooth LE Peripherals or with Bluetooth mesh networks.

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.

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.

 Get Help