ryanbinns / ttwatch

Linux TomTom GPS Watch Utilities
MIT License
205 stars 66 forks source link

can't sync local time? #146

Closed katakombi closed 6 years ago

katakombi commented 6 years ago

thanks for ttwatch which seems to work just fine in general with my tom tom watch. However, I can't seem to sync local time. When I run

./ttwatch --get-time
UTC time:   2010-01-01 05:45:57
Local time: 2018-02-03 15:41:23 (UTC+70929.9)

./ttwatch --set-time
Watch has wrong UTC time. Use GPS to correct this.

Then I update the GPS fix

./ttwatch --update-gps
Writing file to watch...
GPSQuickFix data updated

but still no success

./ttwatch --set-time
Watch has wrong UTC time. Use GPS to correct this.

This is my device

./ttwatch -v
Product ID:       0xec030000
BLE Version:      28
Firmware Version: 1.8.52
Watch Name:       
Serial Number:    HE4304G01110

Maybe I am misinterpreting the --set-time option, but isn't it supposed to set the clock's time absolutely?

scubajorgen commented 6 years ago

When you normally use the watch for GPS tracking it synchronizes to the satellite time (which is one of the most accurate time bases around...). That's what meant by 'Use GPS to correct this'. Apparently you have factory reset the watch, since its time is set to 2010... Go outside, lock on the GPS and try again. Your watch will be synchronized. What ttwatch does is set a fixed offset, e.g. to 3600 seconds for UTC+1, corresponding to your PC time. In order to do so, your watch time must be more or less synced, which it apparently is not now...

katakombi commented 6 years ago

Hmm, thanks for the explanation. But then it is unclear to me what

./ttwatch --update-gps

does? I knew that I wouldn't get a GPS fix at home where I was running these commands, and I assumed that option would replace the GPS fix. If not, what else does it do?

ryanbinns commented 6 years ago

When you use --update-gps it only updates the GPS satellite orbit information so that the watch can get a faster fix. It doesn't actually give the watch a GPS fix. When the watch gets a GPS fix, the watch updates it's GPS offset and it's internal time so that the visible time remains identical. When you sync time on the watch it updates the GPS offset so that the visible time is correct. It does not change the watch's internal time at all - that is always set to UTC time via the GPS satellites. I hope this makes sense.

katakombi commented 6 years ago

Thanks for your clarification, I guess I've got it now :)