This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using Mesh SDK with nRF5_SDK15.0

Hello,

We have developed a GATT based application based on nRF5_SDK_15.0 (Bluetooth LE without mesh). We want to add mesh functionality in this code as you described in this ticket:

https://devzone.nordicsemi.com/f/nordic-q-a/43167/nrf5-to-mesh-upgrade

To achieve this I'm following this guide: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v3.1.0%2Fmd_doc_getting_started_how_to_nordicSDK.html

I have copied the mesh, models, external and examples folders into SDK 15 project and added paths to the projects. Next it says:

Add the following preprocessor symbols to the nRF5 SDK example's project file:

NRF52_SERIES
NRF_MESH_LOG_ENABLE=NRF_LOG_USES_RTT (because the logging in the mesh stack relies on RTT)
CONFIG_APP_IN_CORE

I'm not sure in which files to add these symbols. Same goes for following piece of code:

#include "nrf_sdh_soc.h"

#define MESH_SOC_OBSERVER_PRIO 0

static void mesh_soc_evt_handler(uint32_t evt_id, void * p_context)
{
nrf_mesh_on_sd_evt(evt_id);
}

NRF_SDH_SOC_OBSERVER(m_mesh_soc_observer, MESH_SOC_OBSERVER_PRIO, mesh_soc_evt_handler, NULL);

Can you please share some more details/documentation how to achieve this? My end goal is to add mesh functionality to already developed GATT application and utilize the (developed) code as it is (if possible). What is more easier, adding SDK15 code to mesh or adding mesh to SDK15?  

Parents
  • Hi,

    To add the preprocessor symbols, do this:

    In SES, right click on your project in the left pane -> "Edit Options" -> In the upper-left corner change it from "Debug" to "Common" -> In the left pane under "Code" press "Preprocessor" -> "Preprocessor Definitions", press the "..." button on the right -> Add the symbols here.

    As for the piece of code you mentioned, add it to your main.c file.

    What is more easier, adding SDK15 code to mesh or adding mesh to SDK15?  

    This depends on the complexity of your application and what you need to add. Haven't tested this myself so I'm not sure but I think it might be easier to add SDK15 code to a mesh example.

  • Hi Mttrinh, thanks for the reply.

    What practical advantages should we expect from a mesh enable but SDK15 based application. Does this mean the data will travel over mesh network but the the nodes will be accessed (through mobile app) like they were previously doing without mesh? Does it mean we will be able to access the same UUIDs as we were doing before but with longer distances because of mesh?

Reply
  • Hi Mttrinh, thanks for the reply.

    What practical advantages should we expect from a mesh enable but SDK15 based application. Does this mean the data will travel over mesh network but the the nodes will be accessed (through mobile app) like they were previously doing without mesh? Does it mean we will be able to access the same UUIDs as we were doing before but with longer distances because of mesh?

Children
No Data
Related