[LinuxPPS] ntpd
Folkert van Heusden
folkert at vanheusden.com
Thu Aug 3 17:49:22 CEST 2006
> Each time you read "/proc/pps/07/*" you get the same output? No
> changes? If so this means that your GPS antenna is stopped PPS pulse
> generation.
Yes, same output.
And the GPS *does* still emit pulses. I verified that in minicom.
Also:
Aug 3 17:45:51 keetweej kernel: [43018276.440000] drivers/pps/pps.c: New message from PID 24176 (flags 0)
Aug 3 17:45:51 keetweej kernel: [43018276.440000] drivers/pps/pps.c: PPS_FETCH: source 7
Aug 3 17:45:52 keetweej kernel: [43018277.440000] drivers/pps/pps.c: New message from PID 24176 (flags 0)
Aug 3 17:45:52 keetweej kernel: [43018277.440000] drivers/pps/pps.c: PPS_FETCH: source 7
Aug 3 17:45:53 keetweej kernel: [43018278.440000] drivers/pps/pps.c: New message from PID 24176 (flags 0)
Aug 3 17:45:53 keetweej kernel: [43018278.440000] drivers/pps/pps.c: PPS_FETCH: source 7
but:
keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/*/* ; sleep 3 ; cat /proc/pps/*/*
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
1154619906.415000 #16895
1154619906.200409000 #16891
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
0.0 #0
1154619906.415000 #16895
1154619906.200409000 #16891
> > /proc/pps/X/*
> > where X < 7 are all 0 and stay 0
> > so I changed ntpd to:
> > time_pps_findsource(7, path, 40, id, 40);
> Good choice! Verify that PPS source #7 is connect with the right
> serial port.
That is kind of hard to do:
keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/sources
id mode echo name path
---- ------ ---- ---------------- ----------------
00 1133 no pps_8250_0 /dev/ttyS0
01 1133 no pps_8250_1 /dev/ttyS1
...
06 1133 no pps_8250_0 /dev/ttyS0
07 1133 no pps_8250_1 /dev/ttyS1
now which is what?
> > IMPORTANT:
> > if I have time_pps_findsource(1, path, 40, id, 40);, /proc/pps/01/assert and clear STAY 0!!
> I don't understand what do you mean. Why you should use PPS source #1
> when your device is connected with #7?
both id 01 and 07 say ttyS1 so I tried them both, just to be sure
Folkert van Heusden
--
www.vanheusden.com/multitail - multitail is tail on steroids. multiple
windows, filtering, coloring, anything you can think of
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
More information about the LinuxPPS
mailing list