[ntp:questions] NMEA Driver works only intermittently

Frank Hage fhage at oberon.rap.ucar.edu
Mon Sep 8 17:00:58 UTC 2003


I'm a bit stuck with my NTP - NMEA setup under Debian Linux.  The driver
does work well sometimes, but stops working intermittently. I'm stumped.
Any help appreciated.

The log reports in normal mode when it is not working:
ntpd[5049]: clock GPS_NMEA(0) event 'clk_fault' (0x03)


I'm Using a Garmin GPS 16 under Debian Linux 3.0 (2.4.18 kernel)
ntpp version: ntpd 4.1.2 at 1.892 Tue Aug 26 10:32:03 MDT 2003 (1)

Here's the -d -d -d output:

>From /var/log/ntpd:

...
8 Sep 10:50:24 ntpd[5049]: select(): nfound=-1, error: Interrupted system call
8 Sep 10:50:24 ntpd[5049]: clock GPS_NMEA(0) event 'clk_fault' (0x03)
...


On Stderr:

...
input_handler: if=1 fd=5 length 12 from 7f000001 127.0.0.1
receive: at 75 127.0.0.1<-127.0.0.1 restrict 00
in process_control()
opcode 1, found command handler
read_status: ID 0
sendpkt(fd=5 dst=127.0.0.1, src=127.0.0.1, ttl=-6, len=16)
input_handler: if=1 fd=5 length 12 from 7f000001 127.0.0.1
receive: at 75 127.0.0.1<-127.0.0.1 restrict 00
in process_control()
opcode 2, found command handler
sendpkt(fd=5 dst=127.0.0.1, src=127.0.0.1, ttl=-6, len=464)
sendpkt(fd=5 dst=127.0.0.1, src=127.0.0.1, ttl=-6, len=152)
refclock_gtlin: fd 9 time 3272028642.852101 timecode 60
$GPRMC,165043,V,4720.5622,N,06041.7866,E,,,080903,008.1,E*61
nmea: gpsread 60 $GPRMC,165043,V,4720.5622,N,06041.7866,E,,,080903,008.1,E*61
nmea: timecode 60 $GPRMC,165043,V,4720.5622,N,06041.7866,E,,,080903,008.1,E*61
refclock_receive: at 75 127.127.20.0
clock GPS_NMEA(0) event 'clk_fault' (0x03)
clock GPS_NMEA(0) event 'clk_okay' (0x00)
refclock_gtlin: fd 9 time 3272028642.968712 timecode 55
$GPGGA,165043,4720.5622,N,06041.7866,E,0,00,,,M,,M,,*56
nmea: gpsread 55 $GPGGA,165043,4720.5622,N,06041.7866,E,0,00,,,M,,M,,*56
refclock_gtlin: fd 9 time 3272028643.035334 timecode 28
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
nmea: gpsread 28 $GPGSA,A,1,,,,,,,,,,,,,,,*1E
refclock_gtlin: fd 9 time 3272028643.185247 timecode 68
$GPGSV,3,3,12,24,26,177,00,26,00,222,00,28,18,109,00,30,00,295,00*79
nmea: gpsread 68
$GPGSV,3,3,12,24,26,177,00,26,00,222,00,28,18,109,00,30,00,295,00*79
refclock_gtlin: fd 9 time 3272028643.218573 timecode 18 $PGRME,,M,,M,,M*00
nmea: gpsread 18 $PGRME,,M,,M,,M*00
refclock_gtlin: fd 9 time 3272028643.285215 timecode 27
$PGRMB,0.0,200,,,,K,,N,W*28
nmea: gpsread 27 $PGRMB,0.0,200,,,,K,,N,W*28
refclock_gtlin: fd 9 time 3272028643.323273 timecode 16 $PGRMM,WGS 84*06
nmea: gpsread 16 $PGRMM,WGS 84*06
input_handler: if=1 fd=5 length 12 from 7f000001 127.0.0.1
receive: at 76 127.0.0.1<-127.0.0.1 restrict 00
in process_control()
opcode 1, found command handler
read_status: ID 0
sendpkt(fd=5 dst=127.0.0.1, src=127.0.0.1, ttl=-6, len=16)
input_handler: if=1 fd=5 length 12 from 7f000001 127.0.0.1
receive: at 76 127.0.0.1<-127.0.0.1 restrict 00
in process_control()
opcode 2, found command handler
sendpkt(fd=5 dst=127.0.0.1, src=127.0.0.1, ttl=-6, len=464)
sendpkt(fd=5 dst=127.0.0.1, src=127.0.0.1, ttl=-6, len=152)
refclock_gtlin: fd 9 time 3272028643.849926 timecode 60
$GPRMC,165044,V,4720.5622,N,06041.7866,E,,,080903,008.1,E*66
nmea: gpsread 60 $GPRMC,165044,V,4720.5622,N,06041.7866,E,,,080903,008.1,E*66
nmea: timecode 60 $GPRMC,165044,V,4720.5622,N,06041.7866,E,,,080903,008.1,E*66
...


-- 
Frank Hage  fhage at ucar.edu
National Center for Atmospheric Research




More information about the questions mailing list