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

Nordic mesh design.

Hi All,

I need to design mesh network using nrf51822, i referred so many posts in forum, i am thinking Mesh network not yet implemented!!!!!!!!!!!!! (i am not sure). If it is their please guide me how to work on that and also share some sample source code. I am new to this concept.

I downloaded nRF51-ble-bcast-mesh-master from github, here some file are missing are Ble.h, nrf_soc.h and app_error.h. can any one help me on this.

  • Hi there,

    The files you're missing are part of the nRF5 SDK. If you're in the master branch, you need the nRF51 SDK v7.2 (zip-file). The Readme in the repository guides you through initial setup:

    Getting started

    The framework supports both nRF51 SDK 6.x.x and nRF51 SDK 7.x.x. Since the structure of the SDK changed between these versions, you have to clone the repo differently based on which version you utilize.

    If you’re using 6.x.x, clone the repository into < SDK6-folder >/nRF51822/boards/PCA10001/S110/< Project-folder >.

    The SDK 7.x.x projects utilizes the non-pack version of the SDK, available at Nordic Semiconductor’s developer portal. Clone this repo into < SDK7-folder >/examples/< Project-folder >.

    This will ensure that all references to the SDK are correctly placed, so that you don’t have to change all references to the SDK in the project files. If you still want to clone the repo into a different folder than suggested, you need to change the location of all the files under the Lib group in Keil uVision, in addition to the include paths under the menu Target options → C/C++ → Include Paths.

    The nRF51-ble-bcast-mesh is a flooding mesh, which allows you to share a set of data values across any number of nRF51-devices, as long as they are close enough to each other to form a network. The Readme explains the basics of the framework, and links to some more detailed descriptions in the /docs/ folder. There are also examples available under nRF51/examples, displaying simple usage.

  • Hi Trond,

    Thanks for reply,

    Can you guide me how to test this code, in LED_MESH application. Any testing procedure or document to test, can you share me the things.

    Please help me on this.

  • Hi, if you have a devkit (with marking PCA10028 or PCA10001), you can test functionality with button presses. The main-file in the example has a GPIOTE_IRQHandler() function which will be called when you press a button on your devkit (if it's compiled in - note the #ifdef's surrounding it). You should be able to control the leds on your dongles and kits. If you only have dongles, you can do the same thing with a BLE-enabled smart phone, connecting to the advertisements with the nordic-app, and interacting with the GATT server

  • Hi Trond, Thank for reply, I did same what you suggested. i complied the mesh led code and programmed into pca10001 EV kit (same two boards) along with softdevice s110_nrf51822_7.0.0_softdevice. If i press button on one board LED may ON other board(I don't Know flow of application). But for me LEDs are ON in same board and No LEDs are ON on other boards. if i press button on other board no state changes in LEDs on both the boards. Is any thing mistake i did please help me it is truly urgent or please share document for testing.

    I am waiting for your fast reply........!

Related