Thank you Clarkman for your help.
I'll paste your answer here to close the ticket.
Easily accomplished!
Add RUT955 GPS to list of time servers chronyd will use.
- Login to RUT955, enable GPS
- Set GPS clock sync interval to 5 minutes (minimum available)
- Enable NTP server
- Test ntpdate 192.168.1.1
- Add Teltonika to /etc/chrony.conf
- Restart chronyd
- Verify chronic added to sources
- Test
- Now for details.
A) Here is GPS page configured:
B) Here's NTP config:
-
Confirm time zone
-
Enable ntp
-
Enable NTP server
-
Select GPS synchronization
-
Set GPS time update interval to “Every 5 minutes”
Click Save
C) Now login on sensor and test whether time server on Teltonika is working:
Sensor (eMMC:1p2):~ $ ntpdate 192.168.1.1
7 Oct 23:37:30 ntpdate[26265]: adjust time server 192.168.1.1 offset -0.153500 sec
It is.
D) Now edit /etc/chrony.conf and add the Teltonika:
Sensor (eMMC:1p2):~ $ head -2 /etc/chrony.conf
server 192.168.1.1
server 10.111.0.61
Note that I put it first, before any of the internet ones. That is because it is on the local LAN and can be reached regardless of internet connection state. Also, it reports itself as a stratum 0 server.
E) Next restart chronyd so it will read /etc/chrony.conf and apply the changes:
Sensor (eMMC:1p2):~ $ /etc/init.d/chronyd restart
F) And confirm that chronyc reports it:
Sensor (eMMC:1p2):~ $ chronyc sources
210 Number of sources = 4 MS Name/IP address Stratum Poll Reach LastRx Last sample ===============================================================================
#- GPSD 0 4 377 15 +36ms[ +36ms] +/- 100ms
#* KPPS 0 4 341 17 -6992ns[-9743ns] +/- 944ns
^x Teltonika-RUT955.com.lan 1 7 377 125 +191ms[ +191ms] +/- 2931us
^? 10.111.0.61 0 8 0 10y +0ns[ +0ns] +/- 0ns