Bring Your Own Laptop: Bluetooth mesh for developers
This class will start by exploring the concepts, technicalities and uses of Bluetooth mesh networking. Attendees will then be led through a series of practical coding exercises which will provide hands-on experience of implementing the firmware for Bluetooth mesh products.
In this session, you will learn:
- Concepts and terminology a developer needs to know when working with Bluetooth mesh technology
- How to use the Zephyr SDK to develop firmware for Bluetooth mesh devices
- About the generic onoff client and server models and their implementation in code
- About the generic level client and server models and their implementation in code
PLEASE READ THE PRE-REQUISITES! YOU WILL NOT BE ABLE TO PARTICIPATE IN THE WORKSHOP WITHOUT THE PRE-REQUISITES!
This session is best for developers with some experience in network development who plan to or want to start Bluetooth mesh application development
1. A laptop running Windows or Linux or a Macbook.
2. A micro:USB cable which can be used with your laptop. i.e. it should have a micro USB plug at one end, for connecting to a BBC micro:bit and whatever USB plug your laptop accepts at the other.
Perhaps like this:
Or with USB type C for your laptop, like this:
Your laptop needs the following installed on it:
1. The Zephyr SDK. See www.zephyrproject.org/
2. A text editor
Setting up the Zephyr SDK
Zephyr can be used in a Windows, Mac OS or Linux environment. Follow the relevant instructions at the Zephyr web site to set up the Zephyr SDK on your machine.
IMPORTANT: you must use version 1.12.0 of the Zephyr SDK. This may not be the latest release but it's what this course is based on. As part of your set up procedure therefore, the full zephyr repository must be cloned and then version 1.12.0 checked out like this:
git clone https://github.com/zephyrproject-rtos/zephyr.git
There are choices in how you set up your Zephyr environment and we leave this to you to decide.
Checking the Zephyr SDK
cd to the samples\hello_world\ folder inside the folder which contains your zephyr SDK and execute the following commands:
If your SDK is installed properly, you should get results very similar to these:
The cmake-policies(7) manual explains that the OLD behaviors of all
Call Stack (most recent call first):
-- Found PythonInterp: C:/Users/Martin/AppData/Local/Programs/Python/Python35/python.exe (found suitable version "3.5.1", minimum required is 3.4")
-- Generating zephyr/include/generated/generated_dts_board.h
Seating is limited; developer kits are provided on a first-come-first-served basis, and to only those that have installed the necessary applications (see equipment requirements above).
Please arrive 5-10 minutes prior to the start of the session to secure your seat.