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

How to send sensor data from multiple peripheral devices simultaneously to one central device

Hi,

I have created a system with nRF52840 (peripheral) that collects data from an accelerometer and gyroscope sensors and sends those data through ble_uart to a smartphone  device (central) for visual inspection (graph).

The system works fine but now I want to move a step further and send sensor data from multiple peripherals simultaneously to the same smartphone device so that I can display data from all devices in the same graph

The possible configurations I can think of, are the following.

  • 1st possible Configuration
    • Collect the data from multiple peripheral devices simultaneously and
    • display those data on  smartphone app
  • 2nd Possible Configuration
    • Collect the data from multiple peripheral devices simultaneously and
    • send them to an nRF52840 central device that assemblies all that data into packets and then
    •  send those packets to a smartphone device and display them  

                                   

The problem is that, I don't know if and how multiple peripherals can be connected all together at the same time

to a central (either configuration 1 or 2) in order to receive data from all devices simultaneously.

Do you know if there is some example or tutorial that does that, so I can use it as basis ?

Thank you for your time

Best regards

Parents Reply
  • Thanks for your suggestion,  ! Following the reply from  in this thread, I also downloaded and successfully complied ble_app_uart_multilink central device. Here is my plan:

    1. Having a board (e.g., nRF52840) acts as both central & peripheral mode so that it can receive data from 2 peripheral devices (e.g., nRF52832) and it can also send data to an IOS application.
    2. For 2 peripheral devices, I have one with NUS server, and the other one with custom BLE service. In this scenario do you think I should update the latter using NUS server as well? Or I can keep it with the custom BLE service, and I still can let it communicate with the central device?

    Any thoughts? I would much appreciate it. Thanks.

Children
Related