[ntp:questions] Garmin LVC 18x jitter problem
michael at moria.de
Wed Jul 10 21:15:07 UTC 2019
I use a Garmin LVC 18x with a Raspberry Pi, process NMEA with gpsd
(SHM driver) and acess PPS by GPIO (kernel PPS driver). gpsd allows
monitoring and passing PPS right into ntpd avoids gpsd conversion of PPS.
Sometimes this works, but then there are times where both clocks are
thrown out as falsetickers. I believe that's due to the strange jitter
behaviour of the NMEA data. If I understood the clock selection right,
then basically the measured jitter forms an interval around the offset
and the intersection interval is the root dispersion. Should the NMEA
clock have no intersection with the used PPS clock, it is a falseticker,
but since PPS depends on it, PPS is so as well.
I graphed offset and jitter from two days peerstats where I was locked
on PPS (tos mindist 0.1) and the system ran stable without the need
to adjust the crystal frequency at constant environment temperature.
The first day was mostly fine, but in the middle of the second day, the
GPS jittered really bad and there are many occasions where the jitter
interval did not intersect with 0. The ntpd jitter estimation works as
expected for a normal distribution, but the distribution is clearly
Using the tos mindist extends the intersection interval, but that
effects the root dispersion. That's correct if it is needed to have an
intersection between different clocks of low jitter, but in my case the
problem is a wrong (too low) jitter estimation of a clock I only need
as PPS reference.
Is there any way to specify the precision manually, like fudge minjitter?
Clearly the jitter suffices to keep the PPS clock running and I would
like to have PPS determine the root dispersion, because the PPS clock
has a jitter of 4 us.
This problem seems to have come up a number of times in the past, but
I never saw the root dispersion impact of tos mindist mentioned and I
suspect in a number of cases configuring a minimal jitter would have
been a better solution.
More information about the questions