Copyright (C) 2018 Intel
The code samples located here are written to support Intel's "Innovative Applications with Bluetooth® Mesh" challenge at Junction 2018.
Intel provides an experimental branch of bluez stack for the Junction participants and anyone else interested in the leading edge of Bluetooth Mesh development.
The samples are meant to give ideas for developers. They shall not be considered fully completed, production ready projects.
Happy Hacking!
We can host 8 teams. Each team will get a NUC with Linux and 4 reel boards.
NUC:
- linux
- meshd
- python sample
- SDKs to build/flash Reel Board and build meshd, if needed
Reel Board:
- Zephyr OS
- BT mesh app with capabilities to send / receive text messages, blink led and read temperature
We have our own WiFi where you join (jnct-ble5-mesh
). You should use ssh to connect to the NUC. For example ssh team1
Login
ssh team1
Start the meshd
by hand on foreground
cd $HOME/Junction2018/mesh
./meshd -nd
Test the python sample app. It will launch an interactive shell which you can use to talk with the reel boards.
cd $HOME/Junction2018_Support/python_samples
./example-models-console
In the shell, use the following commands to communicate with your mesh network
Message to single board (address is 0x0001)
model 0 0x0000 0xfbf105 0x0001 0 Hacker1
Message to single all boards (group address is 0xc123)
model 0 0x0000 0xfbf105 0xc123 0 Hacker1
You are free to choose to which direction you want to go with your project. Below are few ideas.
- Using the sample python as a baseline, create backend which provides REST api and communicated with the meshd via D-Bus Python API. In addition, create a front end app for data visualization and device discovery and control.
- Extend the Zephyr BT mesh app to add support for more sensors (accelerometer, proximity, etc)
git clone https://github.com/intel/Junction2018.git
cd Junction2018
./bootstrap-configure --disable-android --disable-systemd --disable-midi --disable-obex --disable-avrcp --disable-cups --disable-network --disable-a2dp --disable-hid --disable-hog
Also
git clone https://git.kernel.org/pub/scm/libs/ell/ell.git
git reset --hard 0.13
make && make install
If you are on Ubuntu you may need to fix mesh/dbus.c
by hand.