[ntp:questions] Fwd: Re: NetBSD GPS/PPS using 4.2.6p3

A C agcarver+ntp at acarver.net
Sun Aug 21 20:10:01 UTC 2011


On 8/20/2011 17:41, David Lord wrote:

> My config for NetBSD-5.1 on i386:
>
> # GPS Sure serial tty00 /dev/gps2
> server 127.127.20.2 mode 18 prefer
> fudge 127.127.20.2 time2 0.350 refid GPSb
>
> server 127.127.22.2
> fudge 127.127.22.2 flag2 0 flag3 1 refid PPSb
>
> The Sure output is at a higher baud rate than default hence the
> use of 'mode 18'.
> offset
> *GPS_NMEA(2) GPSb 0 377 -80.444 6.309
> oPPS(2) PPSb 0 377 -0.013 0.004
>
>
> Offset is normally lower than above but peaks at 25-30us when
> system is under heavy load.


I've reconfigured like yours and tried it, too (with the addition of a
minpoll to speed up the GPS):

server          127.127.20.1  minpoll 4 mode 1 prefer
fudge           127.127.20.1  time2 0.245 refid GPS

server          127.127.22.1
fudge           127.127.22.1  flag2 0 flag3 1 refid PPS


But this is what ntpq gives me after a bit:


      remote           refid      st t when poll reach   delay   offset
  jitter
==============================================================================
*169.229.70.183  169.229.128.214  3 u   46   64  177   36.840   -5.794
  0.280
+204.9.54.119    .CDMA.           1 u   38   64  177   73.723   -1.932
  1.302
+127.127.20.1    .GPS.            0 l    -   16  377    0.000  -13.713
  7.456
  127.127.22.1    .PPS.            0 l    -   64    0    0.000    0.000
   0.000


And the log files:
21 Aug 01:34:44 ntpd[7159]: 169.229.70.183 8011 81 mobilize assoc 2677
21 Aug 01:34:44 ntpd[7159]: 204.9.54.119 8011 81 mobilize assoc 2678
21 Aug 01:34:44 ntpd[7159]: GPS_NMEA(1) serial /dev/gps1 open at 4800 bps
21 Aug 01:34:44 ntpd[7159]: GPS_NMEA(1) 8011 81 mobilize assoc 2679
21 Aug 01:34:44 ntpd[7159]: PPS(1) 8011 81 mobilize assoc 2680
21 Aug 01:34:44 ntpd[7159]: 0.0.0.0 c016 06 restart
21 Aug 01:34:45 ntpd[7159]: 0.0.0.0 c012 02 freq_set kernel -74.006 PPM
21 Aug 01:34:45 ntpd[7159]: 169.229.70.183 8024 84 reachable
21 Aug 01:34:47 ntpd[7159]: 204.9.54.119 8024 84 reachable
21 Aug 01:34:47 ntpd[7159]: GPS_NMEA(1) 8024 84 reachable
21 Aug 01:37:58 ntpd[7159]: 169.229.70.183 963a 8a sys_peer
21 Aug 01:37:58 ntpd[7159]: 0.0.0.0 c615 05 clock_sync
21 Aug 01:38:00 ntpd[7159]: PPS(1) 802b 8b clock_event clk_no_reply
21 Aug 01:42:06 ntpd[7159]: ntpd exiting on signal 2


No reply from the PPS clock at all.



More information about the questions mailing list