Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Receive data from multiple sensor nodes via ble. I am a beginner and i want easy solution or example code. Thank you.

Hi everyone. I am a beginner i really need help regarding an issue. I have two nrf52832 modules, on each of them i have a sensor from which i read some values. All i want is that whenever they read values greater than a set threshold, they should send a signal to a third node (nrf52832 module) and that third node should be able to detect/distinguish that from which sensor node it has received the signal. Depending on from which node it has received the signal, it will perform corresponding actuation. Please suggest some sdk example to refer to or if i can get some reference code or documentation, etc to follow. Thank you.
Also please suggest me what will be the correct approach, whether i should use the nrf mesh or i can do it by modifying the simple ble example. Please give some reference material/code/examples.
I am using segger embedded studio. I am mainly concerned about receiving signals from different sensor nodes and distinguishing between them.

Parents Reply
  • Hi

    Based on your requirements it sounds like the ble_app_multilink_central and the ble_app_blinky examples should be a good place to start. 

    The central example can connect to multiple blinky peripherals, and they will each be able to send a 1 byte button status from the peripheral to the central. 

    By default this is connected to a physical button on the kit, but you can change the code in the blinky peripheral to have it respond to your sensor data instead (sending a simulated button press when the sensor data reaches the limit you have set). 

    On the central side each device will be associated with a unique connection handle, and you can use this to distinguish between them. 

    Best regards
    Torbjørn

Children
No Data
Related