[ntp:questions] clockvar output from PPS

David Lord snews at lordynet.org
Tue Feb 21 15:59:09 UTC 2012


Alby VA wrote:
> David:
> 
>  With your Sure GPS showing "PPS Clock Discipline", what does your
> ntp.conf file look like? I ask, because if I list == server
> 127.127.22.0 ==
> I don't get anything (even though I did the soldering per
> http://www.satsignal.eu/ntp/Sure-GPS.htm

Check your wiring again as the wire should go through
a hole in the pcb so it could be you don't have a PPS
signal. I just followed David Taylors guide and had no
problem.

# $NetBSD: ntp.conf, v2.0.1 2006/07/21 9:54:01 dml Exp $
#
restrict default limited kod nomodify notrap nopeer
# other restrict lines removed
restrict 127.0.0.1
restrict -6 ::1
#
pidfile    /var/run/ntpd.pid
driftfile  /var/db/ntp/ntpd.drift
leapfile   /var/db/ntp/leap-seconds.list
keys       /etc/ntp/ntp.keys
logfile    /var/log/ntp/ntp.log
logconfig +allsync +allclock
#
keysdir  /etc/ntp/keys
statsdir /var/log/ntp/stats
#
statistics loopstats peerstats sysstats
filegen loopstats file loopstats type day link enable
filegen peerstats file peerstats type day link enable
filegen sysstats file sysstats type day link enable
#
trustedkey 1 2 3 4 5
requestkey 1
controlkey 1
#
tos             minsane 3
tos             orphan 10
tos             mindist 0.5
#
# GPS Sure serial tty00 /dev/gps2
server 127.127.20.2 mode 18 minpoll 4  maxpoll 4 prefer
fudge  127.127.20.2 time2 0.350 refid GPSb
#
server 127.127.22.2  minpoll 4  maxpoll 4
fudge  127.127.22.2  flag2 0  flag3 1  refid PPSb
#
# local peer
peer    xxxxxxxxxxxxx.lordynet.org   minpoll  6  maxpoll  9  iburst
peer    xxxxxxxxxxxxx.lordynet.org   minpoll  6  maxpoll  9  iburst
#
# local servers
server  xxxxxxxxxxxxx.lordynet.org   minpoll  6  maxpoll  9  iburst
server  xxxxxxxxxxxxx.lordynet.org   minpoll  6  maxpoll  9  iburst
#
## remote servers
server  ntp1.lordynet.org            minpoll  7  maxpoll 10  iburst
server  ntp0.lordynet.org.uk         minpoll  7  maxpoll 10  iburst
#



> But when I list == server 127.127.20.0 == is works just fine.  I also
> have
> a link of ln -s /dev/cuau0 /dev/pps0 and ln -s /dev/cuau0 /dev/gps0
> Is that similar to your setup?
> 
> Thanks,
> 
> NOTES:
> ======
> godzilla# ntpq -c clockvar
> assID=0 status=0000 clk_okay, last_clk_okay,
> device="NMEA GPS Clock",
> timecode="$GPGGA,144531.000,3903.1142,N,07729.1024,W,
> 1,6,1.52,111.2,M,-33.4,M,,*61",
> poll=3053, noreply=0, badformat=0, baddata=0, fudgetime1=0.000,
> stratum=0, refid=GPS, flags=5
> godzilla#
> 
> 
> 
> 
> 
> 
> 
> On Feb 20, 6:59 am, David Lord <sn... at lordynet.org> wrote:
>> This is from my system with Sure GPS.
>>
>> Seems to be similar to yours. I don't have a clue as to stratum and
>> refid as this is first time I've used ntpq clockvar.
>>
>> associd=0 status=00f1 , 15 events, clk_no_reply,
>> device="PPS Clock Discipline", timecode=, poll=96503, noreply=300,
>> badformat=o, baddata=0, fudgetime1=0.000, stratum=16,refid=80.80.83.98,
>> flags=4
>>
>> associd=0 status=0119 leap_none, sync_pps, 1 event, leap_armed,
>> version="ntpd 4.2.... at 1.2349-o Tue Dec 27 09:47:55 UTC 2011 (1)",
>> processor="i386", system="NetBSD/5.1_STABLE", leap=00, stratum=1,
>> precision=-18, rootdelay=0.000, rootdisp=0.315, refid=PPSb,
>> reftime=d2ecad51.c7c9dc25  Mon, Feb 20 2012 11:30:25.780,
>> clock=d2ecad57.2e21ead2  Mon, Feb 20 2012 11:30:31.180, peer=65276, tc=4,
>> mintc=3, offset=0.000, frequency=-35.663, sys_jitter=0.004,
>> clk_jitter=0.003, clk_wander=0.006, tai=34, leapsec=201207010000,
>> expire=201212280000
>>
>> David
> 



More information about the questions mailing list