[ntp:questions] Re: NMEA refclock - PPS not working

dave morgan morgad at eclipse.co.uk
Mon May 15 17:12:02 UTC 2006


On Mon, 15 May 2006 17:00:26 +0100, dave morgan <morgad at eclipse.co.uk>
wrote:

[snip]
>
>
>After you have been running a couple of days, and
>things have stabilized, try this -
>
>----start----
>#!/bin/bash
>for clockstatsfile in /var/log/ntpstats/clockstats.*
>do
>  echo -n ${clockstatsfile##*.}
>  cut -d, -f 8 <$clockstatsfile | sort -n | uniq -c | tr  [:cntrl:] " "
>  echo " "
>done
>----end----
>
>should give an output like (wrapped by my mailer)
>
>20060507  3 03  32 04   97 05  287 06  464 07  284 08  148 09  25 10
>20060508  1 03  23 04  120 05  344 06  470 07  252 08  114 09  15 10
>20060509  8 00**33 04  117 05  359 06  457 07  217 08  126 09  22 10
>20060510  1 00** 1 03   11 04  112 05  361 06  404 07  308 08  123 09 
> 19 10
>20060511 10 04  88 05  321 06  435 07  322 08  136 09   28 10
>20060512 11 04  84 05  332 06  469 07  294 08  118 09   32 10
>20060513  1 03  11 04   77 05  289 06  450 07  318 08  157 09  36 10
>20060514  9 04  88 05  357 06  443 07  291 08  121 09   31 10
>20060515  5 04  34 05  238 06  255 07  206 08  109 09   24 10
>
>Hopefully there should not be any 00 entries(**) otherwise you might
>need a better antenna position (if <3 sats the GPS rx gives *NO* output)
>

this code is based on the assumption that the lines in your clockstats
files look like -

53870 61442.466 127.127.20.0 $GPGGA,170402,5037.5850,N,00324.4875,
W,1,07,1.2,4.0,M,51.0,M,,*56

Dave
-- 
http://www.morgad.no-ip.info/index.html    gpg:0x64B5E037 
Distributed Proofreaders: http://www.pgdp.net
The NTP server pool http://www.pool.ntp.org
http://stellar-attraction.com/



More information about the questions mailing list