Publishing for Bluetooth Asia 2018 developer session: mesh session. This repo is for GenericOnOff server side firmware.
EULA
PLEASE READ MESH_DEMO_TUTORIAL_EULA.TXT BEFORE START DEVELOPMENT.
Overview
This sample demonstrates Bluetooth Mesh functionality on micro:bit, www.microbit.org. It doesn't need provisioning because all the credential material (DevKey, NetKey, AppKey, Key Index, IVI and Unicast address) is pre-configured. This sample work as a GenericOnOff server:
- Pressing Button B on micro:bit will subscribe to the group address from 0xC000 to 0xC003 and back to 0xC000 again like round robin;
Requirements
micro:bit board
Building and Running
0. Download source code, it's zip file, the link is on this page, Download repository
.
1. Following below link to set the development environment up on your Windows computer. http://docs.zephyrproject.org/getting_started/installation_win.html Please make sure git checkout this commit, commit: 60b01f3f5489975098657caa514133c89a472d19 , the detail is here, https://github.com/zephyrproject-rtos/zephyr/commit/60b01f3f5489975098657caa514133c89a472d19
2. copy zip file into ./zephyr/samples/
in the Zephyr tree.
3. unzip the file by "Extract Here".
3. access into the extracted folder and rename prj_bbc_microbit.txt
to prj_bbc_microbit.conf
4. if adopting Windows Command Prompt, use it to access into the unzip folder and type following commands on the console:
mkdir build & cd build
cmake -GNinja -DBOARD=bbc_microbit ..
ninja
if adopting MSYS2, use it to access into the unzip folder and type following commands on the console:
mkdir build & cd build
cmake -GNinja -DBOARD=bbc_microbit ..
ninja
5. connect micro:bit with your computer by USB cable, the board will be enumerated as a massive storage device;
6. drag the hex file (which is in ./zephyr/sample/[unzip folder]/build/zephyr/zephyr.hex
) into
Microbit massive storage device to flash the firmware;
7. micro:bit is ready to work as a GenericOnOff server.
History
1. final version before Bluetooth Asia 2018.
2018-05-16, by krenbluetoothsig [Wed, 16 May 2018 03:43:25 +0000] rev 4
1. final version before Bluetooth Asia 2018.
1. CHG: add MESH_DEMO_TUTORIAL_EULA.txt
2018-05-07, by krenbluetoothsig [Mon, 07 May 2018 23:58:09 +0000] rev 3
1. CHG: add MESH_DEMO_TUTORIAL_EULA.txt
server; 1. CHG: sync with homepage on Mbed.
2018-05-02, by krenbluetoothsig [Wed, 02 May 2018 13:35:43 +0000] rev 2
server; 1. CHG: sync with homepage on Mbed.
server; 1. CHG: README is ready. ; 2. still wait for EULA.
2018-05-02, by krenbluetoothsig [Wed, 02 May 2018 13:10:04 +0000] rev 1
server; 1. CHG: README is ready. ; 2. still wait for EULA.
server; 1. NEW: project created.
2018-05-02, by krenbluetoothsig [Wed, 02 May 2018 05:14:13 +0000] rev 0
server; 1. NEW: project created.