This example demonstrates how nRF5 SDK for Mesh v4.0.0 and nRF5 SDK examples v16.0.0 can be used together at the same time on a nRF52832 board. It is built around two examples and has three parts:
- The mesh part of this example implements
- the light switch client example
- and the beaconing example from the nRF5 SDK for Mesh.
- The BLE part of the example implements the Eddystone Beacon Application example from the nRF5 SDK.
As the result of running this example, you'll be able to use a mesh network in which this example can replace the light switch client example.
- Install IDE Segger Embedded Studio
- Download nRF5 SDK examples v16.0.0 and extract the zip file into the directory you want to use to work with the SDK.
- Download nRF5 SDK for Mesh v4.0.0 and extract the zip file in the directory you want to use to work with the SDK. It's recommended to extract the content to the same folder as the SDK downloaded to the previous step.
You can copy the content of this repository to <InstallFolder>/examples/ble_peripheral
- Copy this repository folder into the
examples/ble_peripheral
folder at your nRF5 SDK installation path. - Open the Segger Embedded Studio project at
/pca10040/s132/ses/ble_app_proximity_pca10040_s132.emProject
. - Add MESH_ROOT to your Segger Embedded Studio global macro list:
- From the SES menu bar, click Tools > Options....
- In the left column, click Building.
- In right column, double click Global macros.
- Add your mesh root directory in a new line:
MESH_ROOT=<path to your mesh installation>
.
- Ensure that the flash is completely erased before programming this example. Otherwise Flash Data Storage module will not work correctly.
- Program the light switch example devices with the following exception:
- Replace the light switch client with
/pca10040/s132/ses/Output/Release/Exe/ble_app_proximity_pca10040_s132.hex
.
- Replace the light switch client with
With this application the board broadcasts three kinds of beacon (nRF Beacon, iBeacon and Eddystone URL Beacon) while partecipating in a mesh network. The user can also connect to the board and change the Eddystone Beacon via the Eddystone Configuration Service.
You can test Bluetooth Mesh functionalities with two other boards that implement the Provisioner and Server role.
You can test beacons and BLE GATT with nRF Connect and then you can see the three kinds of beacon transmitted as shown in the images below.
If you click 'Connect' you can see the Eddystone Configuration Service.
For more information please see Presentazione.pdf and Relazione.pdf in Italian. The English Report.pdf is under translation.