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

Sending 30000 bytes to Android Phone every 30 seconds while UART is receiving data every 40ms

Hi all,

I am working on a project where the requirement is a sensor collecting data and sending to the NRF52832 via UART. Every 40ms, the NRF52832 will receive 40 bytes of data. I need to store 30 seconds worth of data in RAM (about 30000 bytes) then transfer everything via BLE to a mobile app. While it is transferring this data, UART still needs to work and collect 40 bytes every 40ms.

What I have done previously was to send the data out via BLE immediately at every 40ms and this works fine. However, the app developer ask that I only send the data over only every 30s. I am now stuck with how I can collect 30000 bytes first and still have UART working while doing the BLE transfer. I don't really have an idea of what kind of modifications I will need to make to the BLE_UART example code.

Anyone can help? Thanks in advance.

Parents
  • i was wondering if you ever got a solution to work. I am trying to do something similar to this but instead of UART to mobile app, i am trying to send sensor data from UART to UART in a similar fashion. If u have a working code it would be a huge help.

Reply
  • i was wondering if you ever got a solution to work. I am trying to do something similar to this but instead of UART to mobile app, i am trying to send sensor data from UART to UART in a similar fashion. If u have a working code it would be a huge help.

Children