gpsd-users
[Top][All Lists]
Advanced

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

Re: NTP via tcp NMEA feed


From: Nick Taylor
Subject: Re: NTP via tcp NMEA feed
Date: Tue, 18 Oct 2022 09:24:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

Yo Gary
Any idea what $GPHWBIAS is?
Got an answer for this?

Sorry no idea - is that in all my sample feeds? I thought maybe just from the Huawei...

Thanks.  The side-by-side let me track it down to ntpshm_link_activate()
gpsd/timehint.c

Here is the code:

     /* don't talk to NTP when we're:
      *   reading from a file
      *   reading from a pipe
      *   reading from a remote gpsd
      *   running inside the test harness (PTY)
      *   over TCP or UDP
      */
     if (SOURCE_BLOCKDEV == session->sourcetype ||
         SOURCE_GPSD == session->sourcetype ||
         SOURCE_PIPE == session->sourcetype ||
         SOURCE_PTY == session->sourcetype ||
         SOURCE_TCP == session->sourcetype ||
         SOURCE_UDP == session->sourcetype) {
         return;
     }

I'll need to think  about it, but I think if I remove the SOURCE_GPSD
line, that may do the trick.  Any gpsd feed should be sorta real-time,
and if the NTP is setup correctly, bad time should be ignored.

You can try removing that line to see if it works for you.

Will do - for NMEA feed over tcp is source definitely gpsd (not tcp)?? (I'm sure you have your facts right - just checking...)

TIA

Nick



reply via email to

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