Skip to content

Implementing nRF5 "iBeacon" and "Eddystone" example in nRF for Mesh "Light Switch" example

Notifications You must be signed in to change notification settings

MatteoOrlandini/nRF52832-Beacon-Mesh

Repository files navigation

Beacon Mesh Application

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:

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.


Prerequisites

You can copy the content of this repository to <InstallFolder>/examples/ble_peripheral


Testing the firmware

  1. Copy this repository folder into the examples/ble_peripheral folder at your nRF5 SDK installation path.
  2. Open the Segger Embedded Studio project at /pca10040/s132/ses/ble_app_proximity_pca10040_s132.emProject.
  3. Add MESH_ROOT to your Segger Embedded Studio global macro list:
    1. From the SES menu bar, click Tools > Options....
    2. In the left column, click Building.
    3. In right column, double click Global macros.
    4. Add your mesh root directory in a new line: MESH_ROOT=<path to your mesh installation>.
  4. Ensure that the flash is completely erased before programming this example. Otherwise Flash Data Storage module will not work correctly.
  5. 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.

Results

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.


Extra

For more information please see Presentazione.pdf and Relazione.pdf in Italian. The English Report.pdf is under translation.

Releases

No releases published

Packages

No packages published