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

Suggestions for datalogging to flash application flow?

Hi,

I'm working on a datalogger application with a couple of sensors with sample rates of 32 Hz, 25 Hz and 0.1 Hz on the nRF52840. The goal is to sample these sensors and send the data over BLE to a mobile app. However, in case BLE connection is not available (phone not around) the device should keep logging measurements to QSPI flash (same as nRF52840 DK) for atleast 24 hours. On connection, it should unload the measurements from flash.

I have the sensor drivers more or less working (I2C, SPI) but wanted to ask for advice how to structure the application in terms of accomplishing this saving to flash and unloading measurements while taking new samples. Tasking is not my strongest area, so if anyone would have suggestions on how to achieve these goals, I'd be grateful. So far I've been scraping by with BLE NUS and App Scheduler but have yet to integrate QSPI.

So far I have been developing on nRF5 SDK v17.0.2, s140,  nRF52840 DK.
I also did a short spike on Zephyr on NCS v.1.4.99 with some of the sensors working and basic BLE. 

Would there be any libraries in nRF5 SDK or nRF Connect SDK/Zephyr that could help me prototype this quickly?

Thanks,
Harri

Parents Reply Children
No Data
Related