gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get time


From: Tom Isaacson
Subject: Re: Can't get time
Date: Fri, 3 Apr 2020 09:00:35 +1300

This is a custom build so we only have gpsd and gpsd-api. The source is a u-blox Neo-6M right now but we need it to work with other (similar) sources in the future. We've got ntpd from Busybox but that's not configured to pick this up yet.

The debug I captured is:
# gpsd -nNr -D4 /dev/ttyS3 -F /var/run/gpsd.sock
gpsd:PROG: control socket opened at /var/run/gpsd.sock
gpsd:INFO: launching (Version 3.20.1~dev)
gpsd:INFO: listening on port 2947
gpsd:PROG: NTP: shmat(0,0,0) succeeded, segment 0
gpsd:PROG: NTP: shmat(32769,0,0) succeeded, segment 1
gpsd:PROG: NTP: shmat(65538,0,0) succeeded, segment 2
gpsd:PROG: NTP: shmat(98307,0,0) succeeded, segment 3
gpsd:PROG: NTP: shmat(131076,0,0) succeeded, segment 4
gpsd:PROG: NTP: shmat(163845,0,0) succeeded, segment 5
gpsd:PROG: NTP: shmat(196614,0,0) succeeded, segment 6
gpsd:PROG: NTP: shmat(229383,0,0) succeeded, segment 7
gpsd:PROG: shmget(0x47505344, 24464, 0666) for SHM export succeeded
gpsd:PROG: shmat() for SHM export succeeded, segment 262152
gpsd:INFO: stashing device /dev/ttyS3 at slot 0
gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook
gpsd:INFO: SER: opening GPS data source type 2 at '/dev/ttyS3'
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: GREIS: Writing command '%dm%dm', checksum: 51
gpsd:PROG: GREIS: Writing command '%vendor%print,/par/rcv/vendor', checksum: 0A
gpsd:PROG: writing oncore control type Cj
gpsd:PROG: Probing "Garmin USB binary" driver...
gpsd:PROG: Probe not found "Garmin USB binary" driver...
gpsd:PROG: Probing "GeoStar" driver...
gpsd:PROG: Sent GeoStar packet id 0xc1
gpsd:PROG: Probe not found "GeoStar" driver...
gpsd:PROG: Probing "Trimble TSIP" driver...
gpsd:INFO: SER: speed 9600, 8O1
gpsd:PROG: GREIS: Writing command '%dm%dm', checksum: 51
gpsd:PROG: GREIS: Writing command '%vendor%print,/par/rcv/vendor', checksum: 0A
gpsd:PROG: writing oncore control type Cj
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: GREIS: Writing command '%dm%dm', checksum: 51
gpsd:PROG: GREIS: Writing command '%vendor%print,/par/rcv/vendor', checksum: 0A
gpsd:PROG: writing oncore control type Cj
gpsd:PROG: Probe not found "Trimble TSIP" driver...
gpsd:PROG: Probing "iSync" driver...
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: GREIS: Writing command '%dm%dm', checksum: 51
gpsd:PROG: GREIS: Writing command '%vendor%print,/par/rcv/vendor', checksum: 0A
gpsd:PROG: writing oncore control type Cj
gpsd:INFO: SER: speed 9600, 8N1
gpsd:PROG: GREIS: Writing command '%dm%dm', checksum: 51
gpsd:PROG: GREIS: Writing command '%vendor%print,/par/rcv/vendor', checksum: 0A
gpsd:PROG: writing oncore control type Cj
gpsd:PROG: Probe not found "iSync" driver...
gpsd:PROG: no probe matched...
gpsd:INFO: gpsd_activate(2): activated GPS (fd 6)
gpsd:PROG: PPS:/dev/ttyS3 chrony socket /var/run/chrony.ttyS3.sock doesn't exist
gpsd:WARN: KPPS:/dev/ttyS3 no HAVE_SYS_TIMEPPS_H, PPS accuracy will suffer
gpsd:PROG: PPS:/dev/ttyS3 thread launched
gpsd:INFO: PPS:/dev/ttyS3 ntpshm_link_activate: 1
gpsd:INFO: device /dev/ttyS3 activated
gpsd:INFO: running with effective group ID 7
gpsd:INFO: running with effective user ID 99
gpsd:INFO: startup at 2020-04-01T21:30:22.000Z (1585776622)
gpsd:PROG: switching to match packet type 1: $GPRMC,213022.00,A,***,*,***,*,0.378,,010420,,,A*6C\x0d\x0a
gpsd:PROG: switch_driver(NMEA0183) called...
gpsd:PROG: selecting NMEA0183 driver...
gpsd:INFO: /dev/ttyS3 identified as type NMEA0183, 0 sec @ 9600bps
gpsd:PROG: => Probing for Garmin NMEA
gpsd:PROG: GPRMC starts a reporting cycle. lasttag 0
gpsd:PROG: NTP: ntpshm_put(/dev/ttyS3,-20)  1585776622.000000000 @  1585776622.551426247
gpsd:PROG: => Probing for SiRF
gpsd:PROG: => Probing for FV-18
gpsd:PROG: => Probing for Trimble Copernicus
gpsd:PROG: xxGSA sets mode 3
gpsd:PROG: xxGSA: mask 0x200000000c00
gpsd:PROG: => Probing for Evermore
gpsd:PROG: xPGSV: part 1 of 3, last_gsv_talker '0'  last_gsv_sigid 0
gpsd:PROG: xPGSV: new part 1, last_gsv_talker '0', zeroing
gpsd:PROG: xxGSV: Partial satellite data (1 of 3).
gpsd:PROG: => Probing for GPSClock
gpsd:PROG: xPGSV: part 2 of 3, last_gsv_talker '0x50'  last_gsv_sigid 0
gpsd:PROG: xxGSV: Partial satellite data (2 of 3).
gpsd:PROG: => Probing for Ashtech
gpsd:PROG: xPGSV: part 3 of 3, last_gsv_talker '0x50'  last_gsv_sigid 0
gpsd:INFO: PRN=  2 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN=  5 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN=  6 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 12 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 18 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 25 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 29 az=*** ael*** (***, ***, ***)
gpsd:INFO: Sats used (7):
gpsd:PROG: => Probing for UBX
gpsd:PROG: => GPS: UBX class: 06, id: 00, len: 0, crc: 0618
gpsd:PROG: => Probing for MediaTek
gpsd:PROG: GPRMC starts a reporting cycle. lasttag 23
gpsd:PROG: tagged GLL as a cycle ender. 0x800000
gpsd:PROG: NTP: ntpshm_put(/dev/ttyS3,-20)  1585776623.000000000 @  1585776623.552413620
gpsd:PROG: => Probing for Javad GREIS
gpsd:PROG: xxGSA sets mode 3
gpsd:PROG: xxGSA: mask 0x200000000c00
gpsd:PROG: xPGSV: part 1 of 3, last_gsv_talker '0'  last_gsv_sigid 0
gpsd:PROG: xPGSV: new part 1, last_gsv_talker '0', zeroing
gpsd:PROG: xxGSV: Partial satellite data (1 of 3).
gpsd:PROG: xPGSV: part 2 of 3, last_gsv_talker '0x50'  last_gsv_sigid 0
gpsd:PROG: xxGSV: Partial satellite data (2 of 3).
gpsd:PROG: xPGSV: part 3 of 3, last_gsv_talker '0x50'  last_gsv_sigid 0
gpsd:INFO: PRN=  2 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN=  5 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN=  6 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 12 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 18 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 25 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 29 az=*** ael*** (***, ***, ***)
gpsd:INFO: Sats used (7):
gpsd:PROG: GPGLL ends a reporting cycle.
gpsd:PROG: GPRMC starts a reporting cycle. lasttag 23
gpsd:PROG: NTP: ntpshm_put(/dev/ttyS3,-20)  1585776624.000000000 @  1585776624.539130920
gpsd:PROG: xxGSA sets mode 3
gpsd:PROG: xxGSA: mask 0x200000000c00
gpsd:PROG: xPGSV: part 1 of 3, last_gsv_talker '0'  last_gsv_sigid 0
gpsd:PROG: xPGSV: new part 1, last_gsv_talker '0', zeroing
gpsd:PROG: xxGSV: Partial satellite data (1 of 3).
gpsd:PROG: xPGSV: part 2 of 3, last_gsv_talker '0x50'  last_gsv_sigid 0
gpsd:PROG: xxGSV: Partial satellite data (2 of 3).
gpsd:PROG: xPGSV: part 3 of 3, last_gsv_talker '0x50'  last_gsv_sigid 0
gpsd:INFO: PRN=  2 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN=  5 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN=  6 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 12 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 18 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 25 az=*** ael*** (***, ***, ***)
gpsd:INFO: PRN= 29 az=*** ael*** (***, ***, ***)
gpsd:INFO: Sats used (7):

On Fri, Apr 3, 2020 at 7:07 AM Gary E. Miller <address@hidden> wrote:
Yo Tom!

On Thu, 2 Apr 2020 16:35:11 +1300
Tom Isaacson <address@hidden> wrote:

> I'm having a strange problem with gpsd. We're connecting to a standard
> NMEA0183 serial source which is sending GPGSV, GPGLL, GPRMC, GPVTG,
> GPGGA, and GPGSA. The fix works fine but when I run gpsd-api the
> fields gps_data.online and gps_data.fix.time are always 0. When I run
> gpsd with debug I can see NTP sharing the time:
> gpsd:PROG: NTP: ntpshm_put(/dev/ttyS3,-20)  1585777648.000000000
> @1585777648.569568831
>
> So why aren't we seeing time being set?

>From the ONE line of debug you sent, it look like gpsd is doing what it
should.  So the question is: how is your ntpd configured, and what does
your ntpmon say?

It would also be nice if you provided a lot of information on your
configuration.  Like what GPS is used.  What versions of gpsd and NTPsec.
What config file contents for ntp.cinf.  what command line to start gpsd
and ntpd.  What does ntpshmmon show.   What does ntpmon show.  etc.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin


--

Tom Isaacson

6 Apollo Drive, Rosedale Auckland 0632


PO Box 300622, Albany 

Auckland 0752

New Zealand

www.teknique.com

Principal Software Engineer

E

address@hidden

P

+64 9 282 3132

M

+64 21 362021



reply via email to

[Prev in Thread] Current Thread [Next in Thread]