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 Reply Children
No Data
Related