[ntp:questions] PPS not recognized in NTP

Victor Andres victor at cymonline.com
Thu Jul 5 09:54:12 UTC 2012


Hello everybody.
I'm trying to configure a PPS signal with NTP in my Linux device (Open 
Embedded) with kernel 3.2.

I receive the PPS in a GPIO (and the GPS data in a serial connection, 
/dev/ttyO2).
I've compiled the PPS-CORE and PPS-GPIO as modules that read the PPS over 
the GPIO.
When I load this pps-gpio module, I can access to PPS signal in /dev/pps0 
and even the test mode show messages in dmesg.
With ppstest:

ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1341476843.816540743, sequence: 7090 - clear  0.000000000, 
sequence: 0
source 0 - assert 1341476844.816540743, sequence: 7091 - clear  0.000000000, 
sequence: 0
....

Once I'm sure the PPS signals are arriving correctly to system, I start to 
configure NTP.
In /etc/ntp.conf, I add the sentencies to use driver 22 ATOM - PPS
server 127.127.22.0
fudge 127.127.22.0 refid pps

but I can't to see the peer listing ntpq -p, and if I run NTP -D1 I can see 
that it can not reconize it as a valid clock type 22:
...
 5 Jul 08:27:48 ntpd[1168]: refclock_newpeer: clock type 22 invalid
 5 Jul 08:27:48 ntpd[1168]: 127.127.22.0 interface 127.0.0.1 -> (none)
...
I've compiled NTP 4.2.6p5 with --enable-ATOM

What could be the problem? perhaps the pps signal configuration?

Thanks! 



More information about the questions mailing list