[LinuxPPS] 2.6.22.1 x86_64 + ntp-4.2.4p3 + gpsclock
Nikos Mouat
nikm at cyberflunk.com
Sat Aug 4 21:49:57 CEST 2007
I did not.. I think I used the 'newapi' version off somewhere. When I use
the version from Documentation/pps I get duplicate symbol errors in
refclock_nmea and refclock_atom as they both include timepps.h which has
the functions in it.. if I change all the functions in that header to
'static', it compiles, but the nmea clock doesn't load and the pps clock
fails..
ntpd exiting on signal 15
ntpd 4.2.4p3 at 1.1502 Sat Aug 4 19:13:56 UTC 2007 (6)
precision = 1.000 usec
Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
Listening on interface #1 eth0, [ip]#123 Enabled
Listening on interface #2 lo, 127.0.0.1#123 Enabled
Listening on interface #3 eth1, [ip]#123 Enabled
kernel time sync status 0040
refclock_nmea: cannot find PPS path "ttyS1" in the system
configuration of 127.127.20.0 failed
refclock: found PPS source #0 "/dev/ttyS1" on "serial1"
refclock_atom: time_pps_kcbind failed: Operation not supported
frequency initialized -148.468 PPM from /var/lib/ntp/drift
synchronized to 131.107.1.10, stratum 1
kernel time sync status change 0001
if I remove --enable-ATOM from the configure script, it compiles fine with
the Documentation/pps timepps.h file, but I still get the error:
refclock_nmea: cannot find PPS path "ttyS1" in the system
adding the following after the time_pps_readlink appears to make it work:
if (!strncmp(path, "ttyS", 4)) {
char res[LENPPS];
snprintf(res, LENPPS, "/dev/%s", path);
strncpy(path, res, LENPPS);
}
it appears to now work.. I guess you can only enable a single pps clock
source with the timepps.h you mention??
ntpq> pe
remote refid st t when poll reach delay offset jitter
==============================================================================
-[.............] .ACTS. 1 u 64 64 17 5.507 5.977 0.170
+[.............] .CDMA. 1 u 1 64 37 5.206 -0.860 0.152
+[.............] .PPS. 1 u 62 64 17 6.962 -0.819 3.037
LOCAL(0) .LOCL. 10 l 63 64 17 0.000 0.000 0.001
ULINK_M320(1) .WWVB. 0 l - 64 1 0.000 -15.745 1.144
*GPS_NMEA(0) .GPS. 0 l 58 64 17 0.000 -1.178 0.156
ntpq> cl
assID=0 status=0000 clk_okay, last_clk_okay,
device="NMEA GPS Clock",
timecode="$GPRMC,194118,A,4729.4792,N,12203.6858,W,000.1,259.0,040807,017.8,E,A*06",
poll=4, noreply=0, badformat=0, baddata=0, fudgetime1=0.000, stratum=0,
refid=GPS, flags=0
ntpq>
thanks.
-nm
On Sat, 4 Aug 2007, Rodolfo Giometti wrote:
>> ntpd[31018]: refclock_nmea: time_pps_create failed: Connection refused
>
> That sounds strange... did you compile NTPD using the header file
> Documentation/pps/timepps.h?
More information about the LinuxPPS
mailing list