[Ovmsdev] System date set?
Geir Øyvind Vælidalo
geir at validalo.net
Sat Feb 24 21:19:29 HKT 2018
Sounds like a plan. I can get time from the car too, but the resolution is several seconds, so I think we need to have some sort of priority here. Maybe SNTP first, then GPS, cellular and finally “car”?
Sendt fra min iPhone
> 24. feb. 2018 kl. 04:36 skrev Mark Webb-Johnson <mark at webb-johnson.net>:
> I don’t think so.
> There are various sources for date/time. GPS. Cellular. SNTP. Need to ensure that they are not all fighting.
> Another module to do this? Have components tell it their opinion of the time, then it centrally decides and updates system clock if necessary
> Also store last clock in RTC ram so during a crash/reboot it can recover the last know time?
> Regards, Mark
>> On 24 Feb 2018, at 9:44 AM, Stephen Casner <casner at acm.org> wrote:
>> Does the sytem date get set anywhere (presumably from GPS)?
>> This question occurred to me as I'm working on a side project using
>> the DEVKIT-C module which won't have access to GPS so I added the code
>> to set the data using SNTP.
>> -- Steve
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
More information about the OvmsDev