Re: [chrony-users] Multi-PPS+RTC Setup Questions

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]




On 9/29/20 7:16 PM, Hal Murray wrote:

Just a note, at least in my case, the PPS outputs are not variable at 30us,
they are fixed at a 30us offset from each  other,

Many GPS systems have an option to correct for the length of the antenna
cable.  It's worth checking on that.

Both set to 50ns, sadly - and my cable is't a few km long :)

An oscilliscope is the right tool for that sort of difference.

Yea, I need to go pick one up for this, at this point, I think.

Another thing to investigate is the other edge of the clock.  Some PPS pulses
are 100 or even 500 ms long.  Many are short 10-50 usec.  Triggering on the
wrong edge of a short pulse could get you numbers like like a 30 usec offset.

UBX lets you set it - currently (and default) 100ms (and both ppscheck, which polls DCD, seems to think that it is the configured length).

On Linux, you can see that with command line hacking.   The PPS timing is
available via
   cat /sys/class/pps/pps0/assert
   cat /sys/class/pps/pps0/clear
You will get something like:
   1601420619.999999124#1112896
The number after the # is a sequence number.  The number before is the time -
seconds and nanoseconds.

ntpd disables the edge it isn't using.  I don't know what chrony does.  You
may have to disable chrony and reboot the system.  (or write the code to turn
it back on)

It appears chrony, if started after ldattach, does the same.

I thing gpsd sets up the PPS devices.  If nobody does, you need something like:
   ldattach 18 /dev/ttyS0 &
I think gpsd tries to dance around a possible extra/missing inversion by
assuming the pulse is narrow and using the edge that arrives first.

That's likely a rathole, but it doesn't take a lot of time/effort to explore.

Yep, I think at this point I've poked everything possible, all the way through to kernel patching, and no dice. Hence my agreement that its time for a scope (and nagging u-blox, cause, like, wtf).

Thanks,
Matt

--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject. For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/