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

Data streaming from multiple sensors (BLE + UART + TWI)

Hi, I want to use BLE for following situation and I wonder if it is achievable. I have a 3 boards with nrf51822. Two of these boards have mpu6050 sensors connected to nrf51822 via TWI (I2C). These two boards work as BLE peripheral and server. Third board is BLE central and client device. What I want to do is:

  1. read data via I2C from sensors on each peripheral
  2. send data from both peripherals to central via BLE.
  3. send collected data from central via UART (to computer). Generally central works as USB BLE dongle.

The problem might be because i want to send packet of no more than 20 bytes (I know that max 20 bytes per notification is possible) with frequency min 30 Hz (50 Hz is recommended).

Here are my questions:

  1. Is it possible to read 20 bytes from TWI and send it via BLE (peripheral) with mentioned frequency? I'm asking because I read that BLE generally "blocks" uC during his work. But in my situation I first read data and next I send it via BLE so i believe it is not problem.
  2. Is it possible by central to read data from 2 pheripherials via BLE and send it via UART with mentioned frequency ?
  3. How many such peripherals central can handle?
Parents Reply Children
No Data
Related