Saving data to SD card when internet connection is down, and upload later

Hello,

I am trying to build an Arduino powered GNSS logger, with additional sensor data, which sends the data to a webserver over a cellular connection (NB-IoT/LTE-M). One aspect of this is that it may occasionally move out of cellular coverage, making it unable to upload the data. Therefore, I want to:

  1. Always check whether uploaded data has been received by the webserver.
  2. If it hasn't, save the data to an SD card.
  3. Continue logging data locally on the SD card while also checking for the connection to get back.
  4. When connection to the webserver has been re-established, send all of the data that hasn't been successfully transmitted to the webserver. Start over from point 1.

This way, I can still remotely log the exact movements in areas without cellular coverage, as soon as the tracker gets back into coverage. This is just the best solution that I could come up with, I'm open to other solutions as well. I'm not very experienced with Arduino, and I have no engineering background. I need advice on how to achieve this. Which libraries do you recommend? Are there any problems with simultaneously reading GNSS receiver, checking internet connection via the modem, and writing data to SD card? Anything else I should think about?

Thank you.

Divide the project into smallwe parts.
Server communication, SD reading and writing.
Server link status
Etc

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.