No subject


Thu Mar 31 02:57:08 CEST 2011


functioning as expected. The problem that I=92m having is that I=92m not
sure how to =93hook=94 up the PPS signal to the NTPD daemon. From all the
NTPD configuration documentation I=92ve read, I believe that I=92m proper=
ly
referencing the correct NMEAD/PPS device =93127.127.20.0=93 in the ntd.co=
nf
file. I=92ve list the following details below:



1.       NTPD command used to build NTPD

2.       The output from NTPQ

3.       The output from NTPTIME (note that there=92s no PPSIGNAL bit set=
)

4.       NTP configuration file

5.       NTPD log output.



Any idea what I=92m missing here?



Any help you can provide would be greatly appreciated !!



-Ralph





NTPD Build options:

-----------------------------

./configure --without-ntpsnmpd --disable-all-clocks
--disable-parse-clocks --enable-NMEA --enable-LOCAL-CLOCK



NTPQ output:

----------------------

     remote           refid      st t when poll reach   delay   offset
jitter

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D

*GPS_NMEA(0)     .GPS.            1 l    9   16  377    0.000    0.224
0.164

Mon Dec  6 08:10:02 GMT 2010





NTPTIME output:

----------------------

ntp_gettime() returns code 0 (OK)

  time d0a718da.ecc4b000  Mon, Dec  6 2010  8:10:02.924, (.924876),

  maximum error 5185 us, estimated error 226 us

ntp_adjtime() returns code 0 (OK)

  modes 0x0 (),

  offset 216.000 us, frequency 7.567 ppm, interval 1 s,

  maximum error 5185 us, estimated error 226 us,

  status 0x1 (PLL),

  time constant 4, precision 1.000 us, tolerance 500 ppm,





NTP CONF output:

----------------------

#

# NTP configuration file (ntp.conf)

#

server 127.127.20.0 mode 1 minpoll 4    # PPS from GPS2

fudge 127.127.20.0 time1 0.126 flag1 1 flag2 0 flag3 1 stratum 1 refid GP=
S



#

# Access control stuff

#

restrict default noserve        # default deny

restrict 127.0.0.1                      # allow local host

restrict 128.4.0.0 mask 255.255.0.0 # allow DCnet clients

restrict 128.175.0.0 mask 255.255.0.0 # allow UDel clients

restrict 140.173.0.0 mask 255.255.0.0 # allow DARTnet/CAIRN clients



broadcastclient         # broadcast client





#

# Miscellaneous stuff

#

statsdir /var/log/ntp/server

filegen loopstats file loopstats type day enable

driftfile /var/log/ntp/server/drift

logfile /var/log/ntp/server/messages





Output from NTPD:

root at EDU1-A19:/root>  /usr/bin/ntpd -Adng -c /etc/server.ntp.conf

ntpd 4.2.6p3 at 1.2290 Tue Mar 29 22:46:51 UTC 2011 (1)

6 Dec 08:33:09 ntpd[7309]: proto: precision =3D 1.000 usec

event at 0 0.0.0.0 c01d 0d kern kernel time sync enabled

Finished Parsing!!

6 Dec 08:33:09 ntpd[7309]: ntp_io: estimated max descriptors: 1024,
initial socket boundary: 16

6 Dec 08:33:09 ntpd[7309]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 12=
3

6 Dec 08:33:09 ntpd[7309]: Listen and drop on 1 v6wildcard :: UDP 123

6 Dec 08:33:09 ntpd[7309]: Listen normally on 2 lo 127.0.0.1 UDP 123

restrict: op 1 addr 127.0.0.1 mask 255.255.255.255 mflags 00003000 flags
00000001

6 Dec 08:33:09 ntpd[7309]: Listen normally on 3 eth0 10.10.11.189 UDP 123

restrict: op 1 addr 10.10.11.189 mask 255.255.255.255 mflags 00003000
flags 00000001

6 Dec 08:33:09 ntpd[7309]: Listen normally on 4 lo ::1 UDP 123

restrict: op 1 addr ::1 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
mflags 00003000 flags 00000001

6 Dec 08:33:09 ntpd[7309]: Listen normally on 5 eth0
fe80::827f:2cff:fe31:d600 UDP 123

restrict: op 1 addr fe80::827f:2cff:fe31:d600 mask
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mflags 00003000 flags 00000001

6 Dec 08:33:09 ntpd[7309]: peers refreshed

6 Dec 08:33:09 ntpd[7309]: Listening on routing socket on fd #22 for
interface updates

restrict: op 1 addr 0.0.0.0 mask 0.0.0.0 mflags 00000000 flags 00000002

restrict: op 1 addr :: mask 0.0.0.0 mflags 00000000 flags 00000002

restrict: op 1 addr 127.0.0.1 mask 255.255.255.255 mflags 00000000 flags
00000000

restrict: op 1 addr 128.4.0.0 mask 255.255.0.0 mflags 00000000 flags
00000000

restrict: op 1 addr 128.175.0.0 mask 255.255.0.0 mflags 00000000 flags
00000000

restrict: op 1 addr 140.173.0.0 mask 255.255.0.0 mflags 00000000 flags
00000000

6 Dec 08:33:09 ntpd[7309]: io_setbclient: Opened broadcast client on
interface #3 eth0

io_setbclient: Opened broadcast clients

peer_clear: at 0 next 1 associd 25578 refid INIT

6 Dec 08:33:09 ntpd[7309]: refclock_open /dev/gps0: No such file or
directory

Connection from 127.0.0.1 at Mon Dec  6 08:33:09 2010

6 Dec 08:33:09 ntpd[7309]: GPS_NMEA(0) serial /dev/gps0 open at 4800 bps

event at 0 GPS_NMEA(0) 8011 81 mobilize assoc 25578

newpeer: 127.0.0.1->127.127.20.0 mode 3 vers 4 poll 4 4 flags 0x9 0x1
ttl 1 key 00000000

event at 0 0.0.0.0 c016 06 restart

event at 0 0.0.0.0 c012 02 freq_set kernel 7.554 PPM

refclock_transmit: at 1 127.127.20.0

event at 1 GPS_NMEA(0) 802b 8b clock_event clk_no_reply

nmea: gpsread 70
$GPRMC,083311,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*6A

nmea: timecode 70
$GPRMC,083311,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*6A

nmea: gpsread 70
$GPRMC,083312,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*69

nmea: timecode 70
$GPRMC,083312,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*69

nmea: gpsread 70
$GPRMC,083313,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*68

nmea: timecode 70
$GPRMC,083313,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*68

nmea: gpsread 70
$GPRMC,083314,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*6F

nmea: timecode 70
$GPRMC,083314,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*6F

nmea: gpsread 70
$GPRMC,083315,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*6E

nmea: timecode 70
$GPRMC,083315,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*6E

nmea: gpsread 70
$GPRMC,083316,A,3426.7827,N,11838.4318,W,000.0,218.8,061210,013.7,E*6D





Ralph Alvarez

Member of Technical Staff

Wind River Systems

895 Dove Street #315

Newport Beach, CA 92660

Phone: 949-851-4689 Fax: 949-851-4677

Email: ralvarez at windriver.com <mailto:ralvarez at windriver.com>




More information about the LinuxPPS mailing list