[Ovmsdev] Time variable

Stephen Casner casner at acm.org
Thu Nov 7 07:41:40 HKT 2019


Tamás,

This looks like the GPS sensor did not handle the rollover of the
10-bit week-number field in April, 2019.  So the timestamps are off by
1024 * 7 * 24 * 60 * 60 seconds.  Here is the US government alert about
this problem:

https://www.us-cert.gov/sites/default/files/documents/Memorandum_on_GPS_2019.pdf

This problem was recently discovered for the Garmin GPS 18x LVC
sensors in the Tesla Roadster 2.5 (but not in the earlier 1.5 version
like I have, which has the older GPS 18 LVC sensor):

https://teslamotorsclub.com/tmc/threads/caution-annual-service-car-power-down-gps-issue.163328/

There is a firmware update to fix this for the GPS 18x LVC.  Perhaps
there is one for the GPS sensor in the Mitsubishi as well.

                                                        -- Steve

On Wed, 6 Nov 2019, Tamás Kovács wrote:

> I have a problem with utc time, the time is correct but the date is not
> valid. I use 3.2.005-99-g88cfeef9 version with modification of Mitsubishi
> i-MiEV.
>
> OVMS# me li utc
> m.time.utc                               953756768Sec
> I (900675) housekeeping: 2000-03-22 21:27:06 CET (RAM: 8b=82812-86452 32b=27308)
> I (981115) webserver: HTTP POST /api/execute
> I (981115) webcommand: HttpCommandStream[0x3fa32958]: 1984428 bytes
> free, executing: time
> OVMS# time
> Time Zone:  CET-1CEST,M3.5.0,M10.5.0/3
> UTC Time:   2000-03-22 20:28:27 UTC
> Local Time: 2000-03-22 21:28:27 CET
> Provider:   gsm-nmea
>
> PROVIDER             STRATUM  UPDATE TIME
> *gsm-nmea                  2       0 Wed Mar 22 20:28:27 2000
>
>
> --
> Üdvözlettel:
> Kovács Tamás


More information about the OvmsDev mailing list