nRF5 SDK for Mesh v3.2.0
SDK Proximity coexistence example

This example demonstrates how nRF5 SDK for Mesh and nRF5 SDK examples can be used together at the same time. It is built around two examples and has two 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.

Before you start testing this coexistence example, see the following pages:


Setup

You can find the source code of the SDK Proximity coexistence example in the following nRF5 SDK for Mesh folder: <InstallFolder>/examples/sdk_coexist/ble_app_proximity_coexist

The source code of the light switch client example is located at the following path: <InstallFolder>/examples/light_switch/client


Testing the example

  1. Copy the ble_app_proximity_coexist folder into the examples/ble_peripheral folder at your nRF5 SDK installation path.
  2. Open the Segger Embedded Studio project at ble_app_proximity_coexist/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 as described in the Light switch example, with the following exception:
    • Replace the light switch client with examples/ble_peripheral/ble_app_proximity_coexist/pca10040/s132/ses/Output/Release/Exe/ble_app_proximity_pca10040_s132.hex.

You can now run the two coexisting examples in parallel or in sequence:


Documentation feedback | Developer Zone | Subscribe | Updated