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
  • Hi Tai, yes the project works as expected. No issues at all. I recommend you to check the following link and start playing with it. You will need at least 2 devices for start. One central with the firmware given in the following link and  one peripheral with NUS service.

    github.com/.../nrf52-ble-app-uart-c-multilink.

    The central device "understands" peripheral devices that run the NUS service so it will filter out all other BLE devices i.e. headphones etc. Now, if you want to communicate with certain NUS peripherals you will need to find the device IDs of those peripherals and create a list of them in the central firmware. 

Children
Related