kmartinez / dgpstracker2

4 stars 1 forks source link

Writing Incoming data to the SD card #10

Open sua-dev opened 1 year ago

sua-dev commented 1 year ago

Currently, any incoming messages sent back from the rover to the base can only be seen on the REPL. It would be ideal for making use of the SD card slot into the base and writing any incoming data with a timestamp at the beginning of the line. This can be used with either the RTC or GPS info.

sua-dev commented 1 year ago

UPDATE - Now using ThingPlus SAMD51 instead of pyboard v1.1 This was later transferred to have the data written on the board's internal Flash. Filesystem code was written to have a method of adding timestamps along with the useful data such Longitude/Latitude/Quality-Fix written on the board's filesystem under incoming_data.txt. Currently, it's a template version utilising a button to force the device into read-only mode. This will be modified later to run immediately once the boards run on cold boot. The goal, for now, is to make sure that the format is correct and potentially have this very same format appear on the OLED display in a later issue.

sua-dev commented 1 year ago

Tasks to focus on at the moment for this formatting process:

sua-dev commented 1 year ago

UPDATE General Operation works writing to the filesystem with updating date/time functions. Bug spotted - when the RTC loses power - the original formatted time gets reset. Need to look into why this happens and whether this bug can be fixed via hardcoded data or GPS timing data.