This year, the Bluetooth Special Interest Group (SIG) hosted a session on Bluetooth® Mesh Provisioning and Interoperability at Bluetooth Asia 2019. Developers who attended the session were able to use their smartphones to provision and control a micro:bit board running a Zephyr solution.

For those developers who were not able to attend, this follow-up article shows you step by step how to build the firmware for micro:bit. 

Set Up the Dev Environment

To set up the development environment on your computer, perform the following steps.

  1. Set Up a Development System
  2. Get the Source code
  3. Install Python Dependencies
  4. Set Up a Toolchain
  5. Build and Run an Application

Build the Firmware

To build the firmware, do the following.

  • Open exe (Windows) or Terminal (macOS), navigate to the main project directory
  • Type below command, switch to tag v1.14.0.

git checkout -b branch_v1.14 v1.14.0

  • Download source code here
  • Unzip source code file in the folder ./zephyr/samples/ like below

  • Depending on your computer OS, then:

# On Linux/macOS

cd samples/BluetoothAsia2019/Bluetooth_Mesh_Provisioning_Sample

mkdir build && cd build

# On Windows

cd samplesBluetoothAsia2019Bluetooth_Mesh_Provisioning_Sample

mkdir build & cd build

cmake -GNinja -DBOARD=bbc_microbit ..

ninja

The main build products are in samples/BluetoothAsia2019/Bluetooth_Mesh_Provisioning_Sample/build/zephyr. The final application binary in HEX format is named zephyr.hex by default.

Flash Firmware

For the flash firmware, follow the steps below.

  • Connect the micro:bit to your laptop by USB cable
  • Use one serial terminal software; use Tera Term or Putty on Windows or use this guide on macOS or Linux. The serial port setting is: 115200, 8-N-1
  • Copy zephyr.hex and paste it in the volume of the micro:bit on your computer
  • Information prints on the serial console

  • If you can see above screenshot, it means the build and flash firmware was successful. The Device Name varies, as it depends on the micro:bit factory unique identifier.

To learn more about developing with Bluetooth® mesh and other Bluetooth technologies, visit the Bluetooth SIG resources page.

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

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…

Is Remote IOP Testing Here To Stay?

Like many organizations around the world, the Bluetooth Special Interest Group (SIG) has made…

Bluetooth® Talks: Bluetooth Technology for Lighting

In this webinar UL and the Bluetooth Special Interest Group (SIG) explore: Market trends…

Bluetooth 5.2新機能のポイントを10分で解説!(日本語字幕)

この動画では2020年1月に発表されたBluetoothバージョン5.2新機能の概要を中心に話します。Enhanced Attributeプロトコル(EATT)、LE Power Control (LEPC)、Isochronous (アイソクロナス)チャネルなど、これらの各機能について詳しく説明します。最後に、アイソクロナスチャネルを利用した「LE Audio」と呼ばれる次世代のBluetoothオーディオについて日本語翻訳付きで解説します。

HubSense Effortlessly Turns An Existing Installation Into An Intelligent New Light Management System

When the antiquated lighting system in an office building in Kolding, Denmark, was no…

Intelligent Light solutions for the Albrecht Dürer Exhibition

Today, we are living in a world where smart is the new normal, and…

Bluetooth Mesh for Building Automation Demo

Discover how you can extend Bluetooth connectivity with TI Bluetooth Mesh in this demo. …

The Bluetooth Internet Gateway Study Guide

According to the ABI report Installed Base of IoT Devices by Connectivity Technology, published…

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…

Energy and Cost Savings at Pioneer Markets in Mariposa and Waterford, California

Pioneer market is a family owned grocery business operating in Mariposa, California and Waterford,…

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…

Multi-vendor Bluetooth Mesh SSL projects benefit warehouse and factory settings

Yamaha warehouse and Crystal bottled water facility leverage Bluetooth Mesh to slash energy use…

Bluetooth mesh models: The building blocks for interoperable products

Bluetooth® technology is a wireless standard with agreed, formal specifications that support global interoperability…

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.