Re: [chrony-users] Not getting time from gpsd

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Is there anything in /var/log/chrony/refclock.

Make sure that you have
logdir /var/log/chrony
log refclock ....
(the dots are for other things you might want to log. Measurements would be
the next one I would choose.)

restart chrony and then look in /var/log/chrony/refclock to see what, if
anything, is there.


William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology |____ unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1 ____|____ and Gravity ______|_ www.theory.physics.ubc.ca/

On Sat, 6 Aug 2016, Chris Greenman wrote:


Same thing.  Already tried it.


On Aug 6, 2016 6:35 AM, "Steve Horton" <stevejhorton@xxxxxxxxx> wrote:

      I'd look closer at the SOCK option under the refclock section.
      https://chrony.tuxfamily.org/manual.html#refclock-directive

      On Aug 6, 2016 12:00 AM, "Chris Greenman" <chris.m.greenman@xxxxxxxxx> wrote:
      >
      > Hello,
      >     I'm having an issue with getting time from gpsd.
      >
      > My setup is:
      > Raspberry Pi 3 running Jessie Lite
      > USB U-Blox gps
      >
      > gpsd is receiving NMEA from the GPS, cgps also shows time and position properly. 
      >
      > My chrony.conf is:
      >>
      >> server 0.us.pool.ntp.org
      >> server 1.us.pool.ntp.org
      >> server 2.us.pool.ntp.org
      >> server 3.us.pool.ntp.org
      >> driftfile /var/lib/chrony/drift
      >> allow
      >> refclock SHM 0 refid GPS precision 1e-1 offset 0.9999 delay 0.2
      >> makestep 1 -1
      >>
      > Chronyc sources shows this:
      >>
      >> $ chronyc sources
      >> 210 Number of sources = 5
      >> MS Name/IP address         Stratum Poll Reach LastRx Last sample
      >> ===============================================================================
      >> #? GPS                           0   4     0   10y     +0ns[   +0ns] +/-    0ns
      >> ^+ time-c.nist.gov               1   9   375   110    -23ms[  -22ms] +/-   47ms
      >> ^* pool-96-248-122-64.cmdnnj     1  10   377    56  +9749us[  +11ms] +/-   18ms
      >> ^- 104.156.99.226                2   9   377   367    +15ms[  +17ms] +/-  107ms
      >> ^- 4.53.160.75
      >>
      > This system is going to be used on a boat and might not have internet.  I can tell that both
      programs are accessing the shared memory using ipcs -m:
      >
      >> ------ Shared Memory Segments --------
      >> key        shmid      owner      perms      bytes      nattch     status      
      >> 0x4e545030 0          root       600        80         2                       
      >> 0x4e545031 32769      root       600        80         1
      >>
      > Any idea why chrony isn't getting time from the GPS?
      >
      > Thanks




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/