KBA_BT_0506: Minimalistic OnOff client for testing Bluetooth Mesh on custom board
06/154/2019 | 07:27 PM
Introduction
This program offers a way to do some simple mesh testing on custom hardware with no access to prints, LCD, or external inputs like buttons. This is a lightweight version of the soc-btmesh-switch sample application where files and instruction for serial printing, LCD printing and GPIO functionalities are taken out. Can be used for testing bt-mesh functionality without hardware dependencies.
The program offers the switch functionality issuing commands to turn the light On and Off every 2 seconds.
Implementation
In Simplicity Studio, select your radio board, select the latest Bluetooth Mesh SDK and create soc-btmesh-empty example project for your device.
Copy and replace the attached files (main.c and soc-bt-mesh-empty.isc) into your project.
Open the recently copied soc-bt-mesh-empty.isc file and generate. Compile and flash to your radio board.
Testing
Select another radio board with a WSTK as shown in the figure below. This device will act as the light node. Flash the soc-btmesh-light sample application from Simplicity Studio.
Provision both devices and create a network.
Make sure that the light nodes in the network subscribe to the address that the switch publishes to.
You will observe the light node get commands to turn On and Off every 2 seconds.
KBA_BT_0506: Minimalistic OnOff client for testing Bluetooth Mesh on custom board
Introduction
This program offers a way to do some simple mesh testing on custom hardware with no access to prints, LCD, or external inputs like buttons. This is a lightweight version of the soc-btmesh-switch sample application where files and instruction for serial printing, LCD printing and GPIO functionalities are taken out. Can be used for testing bt-mesh functionality without hardware dependencies.
The program offers the switch functionality issuing commands to turn the light On and Off every 2 seconds.
Implementation
In Simplicity Studio, select your radio board, select the latest Bluetooth Mesh SDK and create soc-btmesh-empty example project for your device.
Copy and replace the attached files (main.c and soc-bt-mesh-empty.isc) into your project.
Open the recently copied soc-bt-mesh-empty.isc file and generate. Compile and flash to your radio board.
Testing
Select another radio board with a WSTK as shown in the figure below. This device will act as the light node. Flash the soc-btmesh-light sample application from Simplicity Studio.
Provision both devices and create a network.
Make sure that the light nodes in the network subscribe to the address that the switch publishes to.
You will observe the light node get commands to turn On and Off every 2 seconds.