[ntp:questions] no PPS on WinNT ntpd, okay on freebsd.

Mark C. Stephens marks at non-stop.com.au
Sun Feb 12 19:04:49 UTC 2012


Hi All,


No PPS on Winnt but works okay on freebsd with exactly the same config:

FreeBSD:

[root at NTP ~]# ntpd -!
ntpd 4.2.7p256 at 1.2483-o Fri Feb 10 06:35:57 UTC 2012 (3)

[root at NTP ~]# ntpq -c v
ntpq 4.2.7p256 at 1.2483-o Fri Feb 10 06:36:34 UTC 2012 (3)

[root at NTP ~]# ntpq -p -c kern -c "rv &2"
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+GPS_PALISADE(2) .GPS.            0 l   10   16  377    0.000    0.033   0.002
oGPS_NMEA(0)     .GPS.            0 l    9   16  377    0.000    0.008   0.002
-admin.non-stop. .GPS.            1 u   21   64  237    1.094   -6.926  10.433
+<removed> .ATOM.           1 u   46   64  377   66.471    5.689   0.601
+<removed> .ATOM.           1 u   49   64  377   25.135    3.258   1.420
-<removed> 210.9.192.50     2 u   64   64  377   50.759    7.454   1.439
associd=0 status=041d leap_none, sync_uhf_radio, 1 event, kern,
pll offset:            0.006421
pll frequency:         111.172
maximum error:         0.006
estimated error:       2e-06
kernel status:         pll ppsfreq ppstime ppssignal nano
pll time constant:     4
precision:             1e-06
frequency tolerance:   495.911
pps frequency:         111.172
pps stability:         0.0228271
pps jitter:            0.004
calibration interval   256
calibration cycles:    155
jitter exceeded:       406
stability exceeded:    7
calibration errors:    21
associd=44214 status=973a conf, reach, sel_pps.peer, 3 events, sys_peer,
srcadr=GPS_NMEA(0), srcport=123, dstadr=127.0.0.1, dstport=123, leap=00,
stratum=0, precision=-20, rootdelay=0.000, rootdisp=0.000, refid=GPS,
reftime=d2e28627.ffffa410  Mon, Feb 13 2012  5:40:39.999,
rec=d2e28628.f01b868c  Mon, Feb 13 2012  5:40:40.937, reach=377,
unreach=0, hmode=3, pmode=4, hpoll=4, ppoll=4, headway=0, flash=00 ok,
keyid=0, ttl=0, offset=0.008, delay=0.000, dispersion=0.233,
jitter=0.002,
filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
filtoffset=    0.01    0.01    0.01    0.01    0.00    0.00    0.01    0.01,
filtdisp=      0.00    0.24    0.48    0.72    0.96    1.20    1.44    1.68

[root at NTP ~]# cat /etc/ntp.conf
#
keys /etc/ntp/keys
trustedkey 1
requestkey 1
controlkey 1

saveconfigdir /etc/ntpd

# palisade on cuau2
server 127.127.29.2 minpoll 4 maxpoll 4

# GPS NMEA
server 127.127.20.0 mode 24 minpoll 4
fudge 127.127.20.0 flag1 1 flag2 0 flag3 1 time2 -0.480

#Inhouse
server 192.168.5.8 iburst

# I have been asked not to make these servers public therefore removed.
server <removed> iburst
server <removed> iburst
server <removed> iburst

logconfig =allall
driftfile       /var/db/ntpd.drift
enable stats
statsdir /var/ntp
statistics loopstats peerstats clockstats

WinNT
C:\Documents and Settings\Administrator>ntpd -!
ntpd 4.2.7p253-o Jan 26 7:02:17.87 (UTC-00:00) 2012  (1)

C:\Documents and Settings\Administrator>ntpq -c v
ntpq 4.2.7p253-o Jan 26 7:05:41.72 (UTC-00:00) 2012  (1)

C:\Documents and Settings\Administrator>ntpq -p -c "cv &1" -c "rv &1"
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*GPS_NMEA(1)     .GPS.            0 l    1   16  377    0.000    1.944   3.911
+ntp             .GPS.            1 u   25   64    7    0.446   -8.292   8.909
-<removed> .ATOM.           1 u   25   64    7   43.171   -3.888   9.870
 <removed> 223.252.32.9     2 u   26   64    7   55.234   -1.147   3.613
+<removed> .ATOM.           1 u   24   64    7   34.574   -3.847   7.299
associd=43932 status=0011 1 event, clk_no_reply,
device="NMEA GPS Clock", timecode="$GPZDA,184729,12,02,2012,+00,00",
poll=10, noreply=1, badformat=0, baddata=0, fudgetime2=-480.000,
stratum=0, refid=GPS, flags=5
associd=43932 status=964a conf, reach, sel_sys.peer, 4 events, sys_peer,
srcadr=GPS_NMEA(1), srcport=123, dstadr=127.0.0.1, dstport=123, leap=00,
stratum=0, precision=-9, rootdelay=0.000, rootdisp=0.000, refid=GPS,
reftime=d2e287bf.848f588f  Mon, Feb 13 2012  5:47:27.517,
rec=d2e287bf.f49de23e  Mon, Feb 13 2012  5:47:27.955, reach=377,
unreach=0, hmode=3, pmode=4, hpoll=4, ppoll=4, headway=0, flash=00 ok,
keyid=0, ttl=149, offset=1.944, delay=0.000, dispersion=0.275,
jitter=3.911,
filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
filtoffset=    1.94    2.31    3.73    4.94    5.51    6.82    7.07    7.60,
filtdisp=      0.02    0.32    0.56    0.74    1.00    1.26    1.46    1.71

keys "C:\Program Files\NTP\etc\ntp.key"
trustedkey 1 100 101 
requestkey 100 
controlkey 101 

server 127.127.20.1 mode 24 minpoll 4
fudge 127.127.20.1 flag1 1 flag2 0 flag3 1 time2 -0.480

server ntp.non-stop.com.au iburst
# I have been asked not to make these servers public therefore removed.
server <removed> iburst
server <removed> iburst
server <removed> iburst

driftfile "D:\NTP\ntp.drift"
logconfig =clockevents +syncevents +sysevents +clockstatus +syncstatus +sysstatus +clockinfo +syncinfo +sysinfo +clockall +syncall +sysall
enable stats
statsdir D:\ntp\stats
statistics loopstats peerstats clockstats


PPSAPI okay:
time_pps_create(5) got winhandle 00000624
getenv(PPSAPI_DLLS) gives c:\serialpps\serialpps-ppsapi-provider\x86\serialpps-ppsapi-provider.dll
loaded PPSAPI provider serialpps.sys, serial.sys with CD timestamping added caps 0x3011 provider 00B6F790
serialpps prov_time_pps_create(00000624) returned 0

Running debug version only stuff I can see are:

13 Feb 05:52:10 ntpd-d[4436]: refclock_params: time_pps_kcbind: Unknown error: 45
And then
GPS_NMEA(1) gpsread: 31 '$GPZDA,185307,12,02,2012,+00,00'
GPS_NMEA(1) processing 31 bytes, timecode '$GPZDA,185307,12,02,2012,+00,00'
GPS_NMEA(1) effective timecode: 2012-02-12 18:53:07
GPS_NMEA(1) using '$GPZDA,185307,12,02,2012,+00,00'
GPS_NMEA(1) PPS_RELATE_NONE

And so on.
I have run SerialPortLEDs and there is a healthy 1PPS flash on DCD.

And also, Palisade driver is not working in NT version..



Cheers,
Mark



More information about the questions mailing list