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

How to send message from two slave to one master in nRF52

I hope to send a message from two slave to one master using nRF52 through bluetooth.

I send a message from a slave to a master with ble_app_uart_c and ble_app_uart. And I also connected two slave and one master with ble_app_multilink_central and peripheral. But I can't combine and apply that two case.

So please tell me how to send a message in multilink code, or how to use ble_app_uart as multilink.

I also found some information on internet, but I can't understand with them.

  • Hi Karl, 

    thank you for your reply. It's been a long way but I hope we could end it soon. 

    I will test the code and get back to you with my results.

  • I concur, this road has been long.

    I look forward to hearing your results!

    @kishorsherolla I do not think I ever understood your exact need, but perhaps this could be useful for you as well?

    Best regards,
    Karl

  • Hi 

    I am trying same thing here with nRF52840-DK Boards.

    Code attached above is built and connecting to other peripheral board as well. Thank you for sharing it.

    My Question is that To connect let say 4 to 5 peripheral sensor to one central device which method will be more efficient, Bluetooth mesh or by adding here in same example number of sensor.   

  • Hello Vipul2988,

    Vipul2988 said:
    Code attached above is built and connecting to other peripheral board as well. Thank you for sharing it.

    No problem at all, I am happy to hear that it is working!

    Vipul2988 said:
    My Question is that To connect let say 4 to 5 peripheral sensor to one central device which method will be more efficient, Bluetooth mesh or by adding here in same example number of sensor.   

    That depends a little on what you mean by efficient - do you mean in terms of latency or power consumption, etc?
    In general, for 4-5 sensors, the answer is very likely to use the multilink example. The Bluetooth mesh protocol requires the radio to be listening almost constantly, and thus its power consumption is a lot higher than that of BLE linked devices. Furthermore, the throughput through the mesh network is also a lot less than through BLE connections.
    If you elaborate on your requirements and constraints I can be more specific, but for 4-5 peripheral sensor devices sending data to a central the BLE connections will most likely be your best option.

    Best regards,
    Karl

  • Hi ,

    Thank you for your quick response.

    Efficient in terms of Latency I am talking about, though our application is not critical in which we want all sensor reading within 500ms to 1 second.

    also you provided good information for power efficiency point of view as well, that really helps.

    In addition, we have already BLE application is running in nRF52840 Customized board with internal Sensor data values, We want to expand the capability of our application/Device via adding external BLE compatible sensors. 

    I got my answer but want to know more if you have any PRONS and CONS related to our application using mesh vs. Multilink BLE connection. 

Related