Problem migrating from legacy to ntpsec
Jim Pennino
penninojim at yahoo.com
Sat Sep 14 15:05:36 UTC 2024
On Thursday, September 12, 2024 at 02:39:06 PM PDT, James Browning via users <users at ntpsec.org> wrote:
> On 09/06/2024 9:07 AM PDT Jim Pennino via users <users at ntpsec.org> wrote:
> I have a precision time and frequency device that provides, among other things, a serial port outputting NMEA data and pps with a specified accuracy of +/- 1 ns.
>
> This has been working just fine for many years.
>
> After an upgrade to Ubuntu 24.04.1 I found legacy ntp had been replaced by ntpsec-1.2.2 and the reference clock no longer works. The output of ntpq -pn is:
>
> xNMEA(0) .PPS. 0 l - 16 377 0.0000 -96.9056 0.5170
> +192.168.0.100 .PPS. 1 u 24 1024 377 0.1328 -0.8315 0.7548
> *192.168.0.101 .PPS. 1 u 332 1024 377 0.1171 -0.8703 0.8439
> +192.168.0.21 .PPS. 1 u 137 1024 377 0.1565 1.5477 0.7258
>
> The relevant lines from ntp.conf are:
>
> server 127.127.20.0 mode 16 minpoll 4 iburst
> fudge 127.127.20.0 time1 -0.0007 flag1 1 flag2 0 flag3 1 refid PPS
>
> In going through the documentation I found that it says the 127.127.x.y is replaced by a new symbol notation but is still recognized, so that should not be an issue. I did not find anything else that needs to be changed other than the location of the statistics files which I process to provide graphic status, but I may have missed something.
>
> So, can anyone tell me what I need to do here to get it working again with ntpsec?
I would suggest squashing the contents of the fudge line into the server line contradicting what I write below, changing the mode to 0x10f and adding 'baud 9600'.
If been saying some randomish things about this at https://gitlab.com/NTPsec/ntpsec/-/issues/826
If reasonable I would like a couple seconds of serial output from the gpsdo(?).
> Also, is it a true statement that all I have to do to change to the new naming scheme is to change 127.127.20.0 to nmea?
No, it is not a true statement, and if you were to change back to classic ntpd at some point, it would be a minor obstacle. As it would be if changing to a copy of NTPsec built for strict compatibility.
_______________________________________________
I have been away for a week and in that time unattended updates upgraded the kernel twice as well as a lot of packages.
I had changed the config to use separate nmea and pps refclocks just before the updates, which still had all sorts of issues, and after the updates all the symptoms have changed.
refclock nmea flag1 0 baud 9600 minpoll 4 time1 0.000
refclock pps minpoll 4 flag2 0 time1 0.000
ntpq now reports:
xNMEA(0) .GPS. 0 l 9 16 377 0.0000 -96.4123 0.5949
xPPS(0) .PPS. 0 l 8 16 377 0.0000 0.4051 0.0235
+192.168.0.100 .PPS. 1 u 58 128 377 0.1102 0.6766 0.6207
*192.168.0.101 .PPS. 1 u 131 128 377 0.1251 -0.2381 0.8949
Adjusting time1 appears to do nothing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/users/attachments/20240914/f36085a0/attachment.htm>
More information about the users
mailing list