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

Using nRF52-DK, Is there an example of a Star topology?

Hi,

We bought 3 nRF52-DKs (based on nRF52832 and PCA10040 V1.2.1). We compiled, built, and flashed the systems with several provided examples from nRF5_SDK_14.1.0_1dda907 including ble_central, ble_peripheral, and IoT examples like udp and coap. For the IoT examples we used Raspberry PI as a gateway to our cloud.

Now we would like to create a "star" network where one nRF52-DK is running ble_peripheral, another running IoT udp Client that is connected to cloud via the Raspberry PI, and another running IoT udp Server. I was trying to find and example on your website and I could not. Is there an example like this? Like below,

nRF52-DK peripheral -> nRF52-DK IoT udp client -> Raspberry PI->Cloud->nRF52-DK IoT udp Server

Or is there an example where one nRF52-DK is running ble_peripheral and another running IoT udp Client ? Like below,

  nRF52-DK peripheral -> nRF52-DK IoT udp client 

Any help/suggestions would be very much appreciated.

Thanks, Asha

  • Okey, so now I understand your question as "How to modify \examples\iot\udp\ipv6\client example from Nordic that it will connect to certain BLE devices (e.g. HRM), collect data/manage them and on the other side communicate with the cloud over IPv6 (which is working for me as such right now?" And I believe the answer is "Well this is just and example from Nordic and you need to write all application level by yourself. And yes, collecting some data or doing whatever else over BLE is application from IoT gateway point of view. Luckily there are tons of examples in nRF5 SDK so mearging/inspiring should be a big problem."

    Is my understanding correct now?

  • (however kind warning: understanding of TCP/IP and COAP and other higher-level networking stuff won't help you at all, this is imply about BLE stack and API to its GATT and GAP layers, so potentially lot of new things and space for frustration...)

  • Hi,

    Thank you for finally understanding my question.

    So you are confirming that the \examples\iot\udp\ipv6\client example will work with connecting BLE devices but I have to add the code to "scan" for devices and then "connect" ??

    Correct? Thanks, Asha

  • Oh there are lot of things to change and add! If I understand the code correctly it only solves "upstream" part so you need to find how BLE stack is initialized, add more roles/slots to handle more connections in parallel, initialize GAP and GATT layers to handle them, separate events between "IoT" and your "app" part, manage scanning and connecting and GATT Service discovery (assuming nRF5 DK acts as GAP Peripheral towards RPi but as GAP Central + GATT Client towards "sensors") and all the app layer protocols on top of it (e.g. HRM if you really care about this one).

  • Hi,

    I understand about the complexity and that is why I had asked if there is an example code?? If not, I can understand. Thanks, Asha

Related