Historic archive of defunct list thumbgps-devel@lists.bufferbloat.net
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: thumbgps-devel@lists.bufferbloat.net
Subject: [Thumbgps-devel] Fwd: [gpsd-dev] PPS over USB
Date: Tue, 1 May 2012 15:16:57 -0700	[thread overview]
Message-ID: <CAA93jw6sjLx_8nLBoXSjDEGagd1kDsRBFYQ2gYiOD5Lrzz33uw@mail.gmail.com> (raw)
In-Reply-To: <20120501151435.4a6a5373.gem@rellim.com>

[-- Attachment #1: Type: text/plain, Size: 2670 bytes --]

---------- Forwarded message ----------
From: Gary E. Miller <gem@rellim.com>
Date: Tue, May 1, 2012 at 3:14 PM
Subject: [gpsd-dev] PPS over USB
To: gpsd-dev@nongnu.org


Yo All!

As some of you may know, esr has been helping the bufferbloat project
with some gpsd issues.  Their goal is to get good time from a USB
connected GPS.

Esr negotiated with Navisys to special build three units of a ublox 6
and a pl2303 with PPS conencted to USB.  They call them a GR-601 and I
just received the samples.  The preliminary results are pretty good if a
clock stable to about 1 milliSec is your goal.

A preliminary result from a dual core laptop.

# ntpq -p
    remote           refid      st t when poll reach   delay   offset
jitter
==============================================================================
-backup          .SOC1.           1 u   45   64  377    0.233 -0.006   0.067
+fuzzy           .GPS1.           1 u   47   64  377    0.241 -0.047   0.071
+SHM(0)          .GPS.            0 l   10   16  377    0.000 -2.995   1.656
*SHM(1)          .GPS1.           0 l    9   16  377    0.000  0.317   0.428


backup and fuzzy each have a PPS clock directly connected over serial.
The jitter on backup is about 2 microSec and fuzzy about 0.5 microSec.
And they tend to agree over ntp to about 20 microSec or better.

All the NTP servers are adjacent to each other and connected over GigE.
The jitter over the GigE seems to be about 100 microSec or better.

SHM(0) is NMEA time over USB.  SHM(1) is PPS time over USB.

As you can see the NMEA/USB short term jitter is about 2 milliSec and
the PPS/USB time is about 0.5 milliSec jitter.  Long term NMEA/USB drift
is quite a bit larger, maybe 100 milliSec or more.

So the jitter of PPS over USB is about 50x worse than PPS over GigE, but
I think for the purposes at hand pretty good.  Of course I expect the
results to be worse when run on a single core router.

The important part of the ntp.conf:

   # for gpsd
   server 127.127.28.0 minpoll 4 maxpoll 4
   fudge 127.127.28.0 time1 0.142  refid GPS

   # for PPS and gpsd
   server 127.127.28.1 prefer  minpoll 4 maxpoll 4
   fudge 127.127.28.1 time1 0.001500 refid GPS1

I start the daemons this way:

   ntpd -p /var/run/ntpd.pid -N -u ntp:ntp -g
   gpsd -n /dev/ttyUSB0

Any questions or suggestions?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
       gem@rellim.com  Tel:+1(541)382-8588


-- 
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

       reply	other threads:[~2012-05-01 22:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20120501151435.4a6a5373.gem@rellim.com>
2012-05-01 22:16 ` Dave Taht [this message]
2012-05-02  1:40 ` [Thumbgps-devel] " Dave Taht
2012-05-02  3:07   ` Jim Thompson
2012-05-02  3:33   ` Eric S. Raymond
2012-05-02  7:58     ` Hal Murray
2012-05-06 21:28       ` Eric S. Raymond
2012-05-02 11:09     ` tz
     [not found]       ` <20120502131310.7dd7f799.gem@rellim.com>
2012-05-02 20:33         ` tz
2012-05-02 21:19         ` Hal Murray
2012-05-02 21:43           ` tz
2012-05-02 13:40     ` Ron Frazier (NTP)
     [not found]       ` <20120502124227.28ef9fa6.gem@rellim.com>
2012-05-03  4:07         ` Ron Frazier (NTP)
2012-05-06 22:09       ` Eric S. Raymond
     [not found] ` <4FA43068.2080606@wildgooses.com>
     [not found]   ` <20120504160455.4514ac26.gem@rellim.com>
     [not found]     ` <20120506214138.GB14699@thyrsus.com>
     [not found]       ` <4FA6F396.70307@tmsw.no>
     [not found]         ` <4FA7BDF1.7030708@wildgooses.com>
     [not found]           ` <4FA7CFB2.9080807@tmsw.no>
     [not found]             ` <4FA7E197.9010902@wildgooses.com>
     [not found]               ` <20120507205843.GA21259@thyrsus.com>
2012-05-07 21:14                 ` Dave Taht
2012-05-07 21:52                   ` Eric S. Raymond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA93jw6sjLx_8nLBoXSjDEGagd1kDsRBFYQ2gYiOD5Lrzz33uw@mail.gmail.com \
    --to=dave.taht@gmail.com \
    --cc=thumbgps-devel@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox