Description
Hi @PaulZC,
Do you have any thoughts on how reliable the .getDateValid and .getTimeValid() functions are for knowing whether the datetime from the u-blox is accurate?
In a recent test, I was attempting to use the date and time from a SparkFun u-blox SAM-M8Q receiver to synchronize the Artemis' real-time clock and calculate the observed drift. The code snippet I was using is here.
The RTC would sync only when the condition: if (gnss.getDateValid() && gnss.getTimeValid())
was met. However, it seems after a day or so, the RTC datetime was incorrectly synced to December 8, 2012. The variable I used to track the drift was only an int
so I suspect the value you see is from multiple rollovers.
unixtime | drift |
---|---|
1610557200 | 0 |
1610560800 | -1 |
1610571600 | 0 |
1610582400 | -1 |
1610593200 | -1 |
1610604000 | -1 |
1610614800 | -1 |
1610625600 | -1 |
1610636400 | 0 |
1610647200 | 24960 |
1355000400 | -24961 |
Can the u-blox receiver become confused and think it has a valid date and time when in fact it does not? I'll start reading more into the Interface Description about this but I was curious if this was an issue you'd run into in the past.
Cheers,
Adam