From MAILER-DAEMON Tue May 01 02:37:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SP6ie-00009k-CA
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 02:37:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38059)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SP6ic-00009e-34
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 02:37:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SP6ia-0007AK-D3
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 02:37:49 -0400
Received: from mail.recluse.de ([217.196.146.213]:49691)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SP6ia-00079R-6Z
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 02:37:48 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 34C0126F5D;
	Tue,  1 May 2012 08:37:46 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 8hfW7HNl4xzO; Tue,  1 May 2012 08:37:40 +0200 (CEST)
Received: from think.bzed.org (188-195-124-69-dynip.superkabel.de
	[188.195.124.69])
	by mail.recluse.de (Postfix) with ESMTPSA id 7C59C26F59;
	Tue,  1 May 2012 08:37:40 +0200 (CEST)
Message-ID: <4F9F84B4.3060503@bzed.de>
Date: Tue, 01 May 2012 08:37:40 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.3) Gecko/20120329 Icedove/10.0.3
MIME-Version: 1.0
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
References: <1SOsHu-273jDE0@fwd07.aul.t-online.de> <4F9EFD9E.9040408@bzed.de>
	<CAGHP0pKNZWzmjZrrJRCSNOC+iqQ=mT0p01YrRoJ0LoWfd6raxg@mail.gmail.com>
	<4F9F0132.7040305@bzed.de>
	<CAGHP0pLd4JV6N08GudAAiFT_tzcUVEnmzonfO3=be8B1JrW-uA@mail.gmail.com>
	<1SOyx1-0pNwdk0@fwd07.aul.t-online.de>
In-Reply-To: <1SOyx1-0pNwdk0@fwd07.aul.t-online.de>
X-Enigmail-Version: 1.4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Build of gpsd fails
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2012 06:37:51 -0000

Hi,


> the errors should be gone, if you disable nmea2000.
> 
> scons nmea2000=false

imho this should either be default so people on !linux machines don't run into
it, or there needs to be a check for those header files.


Cheers,

Bernd
-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Tue May 01 03:26:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SP7U0-0005Uu-Gz
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 03:26:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57240)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SP7Tx-0005Ui-Gn
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 03:26:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SP7Tv-0000vC-My
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 03:26:45 -0400
Received: from mx1.2b3w.ch ([92.42.186.250]:47716)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SP7Tv-0000rT-GI
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 03:26:43 -0400
Received: from mx1.2b3w.ch (localhost [127.0.0.1])
	by mx1.2b3w.ch (Postfix) with ESMTP id 19333C345F
	for <gpsd-dev@nongnu.org>; Tue,  1 May 2012 09:26:35 +0200 (CEST)
Received: from [10.23.1.109] (gateway-2.swissqual.com [195.137.175.3])
	by mx1.2b3w.ch (Postfix) with ESMTPSA id EBABFC3458
	for <gpsd-dev@nongnu.org>; Tue,  1 May 2012 09:26:34 +0200 (CEST)
Message-ID: <4F9F9028.4090800@ewanet.ch>
Date: Tue, 01 May 2012 09:26:32 +0200
From: Beat Bolli <bbolli@ewanet.ch>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
	rv:12.0) Gecko/20120420 Thunderbird/12.0
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <1SOsHu-273jDE0@fwd07.aul.t-online.de> <4F9EFD9E.9040408@bzed.de>
	<CAGHP0pKNZWzmjZrrJRCSNOC+iqQ=mT0p01YrRoJ0LoWfd6raxg@mail.gmail.com>
	<4F9F0132.7040305@bzed.de>
	<CAGHP0pLd4JV6N08GudAAiFT_tzcUVEnmzonfO3=be8B1JrW-uA@mail.gmail.com>
	<1SOyx1-0pNwdk0@fwd07.aul.t-online.de> <4F9F84B4.3060503@bzed.de>
In-Reply-To: <4F9F84B4.3060503@bzed.de>
X-Enigmail-Version: 1.4.1
OpenPGP: url=http://drbeat.li/pubkey.asc
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig86BDE1470E82BF6BADC5D4D6"
X-Virus-Scanned: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 92.42.186.250
Subject: Re: [gpsd-dev] Build of gpsd fails
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2012 07:26:47 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig86BDE1470E82BF6BADC5D4D6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 2012-05-01 08:37, Bernd Zeimetz wrote:
> Hi,
>=20
>=20
>> the errors should be gone, if you disable nmea2000.
>>
>> scons nmea2000=3Dfalse
>=20
> imho this should either be default so people on !linux machines don't r=
un into
> it, or there needs to be a check for those header files.

IMO driver_nmea2000.c also needs an #include <time.h> to make
clock_gettime() and its associated constants known.

Regards,
Beat
--=20
mail: echo '<bNbolOli@ewaSPnetAM.ch>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F  D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E
http: www.drbeat.li

"It takes love over gold, and mind over matter" -- Dire Straits


--------------enig86BDE1470E82BF6BADC5D4D6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+fkCkACgkQMEuTz1BqkDomwQCgr7OHL/UMNrDSa3Ls/x9XAv0Y
lncAoP7jNB2reHFVwJ3Jj3+xzdrDDVtC
=dF6h
-----END PGP SIGNATURE-----

--------------enig86BDE1470E82BF6BADC5D4D6--


From MAILER-DAEMON Tue May 01 17:37:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPKli-0004Ni-RR
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 17:37:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50813)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPKlg-0004Ei-3V
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 17:37:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPKle-00029J-If
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 17:37:55 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:49879 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPKle-000295-FI
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 17:37:54 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id D37A14043E; Tue,  1 May 2012 17:37:51 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org, Dave Fecak <dave@fecak.com>
Message-Id: <20120501213751.D37A14043E@snark.thyrsus.com>
Date: Tue,  1 May 2012 17:37:51 -0400 (EDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] Have patience, I lost some mail
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2012 21:37:57 -0000

Have patience, I lost some mail due to a mishap on my trip to
Michigan.  I'll be looking through the gpsd-dev and gpsd-user
archives; if you sent me anything individually since last Wednesday,
please resend.
--
						>>esr>>


From MAILER-DAEMON Tue May 01 18:14:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPLLL-0003WM-QM
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 18:14:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54056)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPLLJ-0003Vr-C1
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 18:14:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPLLG-0008Qt-IT
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 18:14:44 -0400
Received: from catbert.rellim.com ([204.17.205.1]:34284)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPLLG-0008QY-0w
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 18:14:42 -0400
Received: from localhost (root@spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q41MEdUQ004146
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO)
	for <gpsd-dev@nongnu.org>; Tue, 1 May 2012 15:14:39 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q41MEdUQ004146
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1335910480; bh=qP0VvLrWyvc10em04BrSC8xMSGVWSy6ROQ2fNFYGfPk=;
	h=Date:From:To:Subject:Message-ID:Mime-Version:Content-Type;
	b=EUHP/695BxbCA1PJg657vks9PHVDdmEWZOz3gaO1vQPYGkh/Pl9YKG0I48mQO60fY
	tcGgoxaq9HSEADfashNdw==
Date: Tue, 1 May 2012 15:14:35 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd-dev@nongnu.org
Message-ID: <20120501151435.4a6a5373.gem@rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/MzUzHSk5m2wETI4HGrCpG4I";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Subject: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2012 22:14:46 -0000

--Sig_/MzUzHSk5m2wETI4HGrCpG4I
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
-backup          .SOC1.           1 u   45   64  377    0.233 -0.006   0.06=
7=20
+fuzzy           .GPS1.           1 u   47   64  377    0.241 -0.047   0.07=
1=20
+SHM(0)          .GPS.            0 l   10   16  377    0.000 -2.995   1.65=
6=20
*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

--Sig_/MzUzHSk5m2wETI4HGrCpG4I
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEUEARECAAYFAk+gYE4ACgkQBmnRqz71OvNmNwCghBuC0X801bNXJwyptAH1UZIm
lMgAmI/C14LhWGqt52LPI78xscKxSvY=
=xITH
-----END PGP SIGNATURE-----

--Sig_/MzUzHSk5m2wETI4HGrCpG4I--


From MAILER-DAEMON Tue May 01 18:24:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPLUd-0001lJ-UO
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 18:24:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44470)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPLUb-0001lB-7g
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 18:24:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPLUZ-0003Ke-9b
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 18:24:20 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:50229 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPLUZ-0003I7-5g
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 18:24:19 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id BE49C4043E; Tue,  1 May 2012 18:24:16 -0400 (EDT)
Date: Tue, 1 May 2012 18:24:16 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: christian Gagneraud <chris@techworks.ie>
Message-ID: <20120501222416.GA10188@thyrsus.com>
References: <20120428202028.10446.42151.stgit@pluton.site>
	<4F9EF736.7030602@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F9EF736.7030602@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 0/2] Attitude structure fixes
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2012 22:24:22 -0000

christian Gagneraud <chris@techworks.ie>:
> Please ignore these emails, I sent an updated patch set yesterday.
> I don't know when you received these emails, but I just did. I think
> our mail server had big problems this week end.
> 
> Sorry for the noise.

And I got a bit confused because I'm trying to catch up rapidly following
a road trip.  I'm going to flush the patches I have frpom you in my mailbox;
please check git head and resend whatever is still required.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 01 19:09:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPMCC-0000ry-Gt
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 19:09:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51965)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPMC9-0000qv-Pv
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 19:09:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPMC7-0002v2-Pz
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 19:09:21 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:50493 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPMC7-0002rl-M5
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 19:09:19 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 90EFB4043E; Tue,  1 May 2012 19:09:17 -0400 (EDT)
Date: Tue, 1 May 2012 19:09:17 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120501230917.GE10188@thyrsus.com>
References: <20120320121724.GA11523@thyrsus.com>
	<20120320104542.0eaf179c.gem@rellim.com>
	<20120501151027.44487e16.gem@rellim.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120501151027.44487e16.gem@rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel] Progress on Plain Jane
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2012 23:09:23 -0000

Gary E. Miller <gem@rellim.com>:
> 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.

That's excellent news.  0.5msec jitter is as good as we could have
expected and exactly what one would predict from a max error of 1msec
due to polling interval. The long-term NMEA/USB drift is consistent
with previous observations by Hal Murray and myself.

Do you consider the GR-601 with this mod to be ready for production?
Should we give Navisys the green light on GPSD compatibility?  I see
no reason not to at this point, but you're doing the testing so you
make the call.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 01 19:33:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPMZQ-0005WZ-4a
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 19:33:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46712)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPMZN-0005WF-0o
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 19:33:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPMZI-0002PU-OZ
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 19:33:20 -0400
Received: from catbert.rellim.com ([204.17.205.1]:44686)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPMZI-0002PA-4d
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 19:33:16 -0400
Received: from localhost (root@spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q41NX6XT007497
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Tue, 1 May 2012 16:33:07 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q41NX6XT007497
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1335915187; bh=coUt+zTJwH9dvroyuar9q6x95WP+HnFEjiJw7Kvy7CI=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=IiIPx74SctMY3b1KdIdqCPHkmnczDw8YPsI/yTqtMLo/WPuPr0/tuhQC5vGXHtK9l
	jPLbY49o9oqpBamD1m9aQ==
Date: Tue, 1 May 2012 16:33:02 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: esr@thyrsus.com
Message-ID: <20120501163302.575890f8.gem@rellim.com>
In-Reply-To: <20120501230917.GE10188@thyrsus.com>
References: <20120320121724.GA11523@thyrsus.com>
	<20120320104542.0eaf179c.gem@rellim.com>
	<20120501151027.44487e16.gem@rellim.com>
	<20120501230917.GE10188@thyrsus.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/zC0.YWW.sxOO_nW3dosyd3o";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel] Progress on Plain Jane
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 01 May 2012 23:33:23 -0000

--Sig_/zC0.YWW.sxOO_nW3dosyd3o
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Eric!

On Tue, 1 May 2012 19:09:17 -0400
"Eric S. Raymond" <esr@thyrsus.com> wrote:

> Gary E. Miller <gem@rellim.com>:
> > 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.
> >=20
> > 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.
>=20
> That's excellent news.  0.5msec jitter is as good as we could have
> expected and exactly what one would predict from a max error of 1msec
> due to polling interval. The long-term NMEA/USB drift is consistent
> with previous observations by Hal Murray and myself.

Nice when theory and practice agree.  I wonder if there is a USB 2.0
equivalent of the PL2303 which would give us a 125 microSec poll?

Might be worth asking navisys about that.

> Do you consider the GR-601 with this mod to be ready for production?
> Should we give Navisys the green light on GPSD compatibility?  I see
> no reason not to at this point, but you're doing the testing so you
> make the call.

So far so good.  I'd like to play with them a few days first.  Shoot
me your mailing list and I'll snail mail you one so you can see for
yourself.


BTW, when I email the list I am often rejected, so if you do not see
it from the thumbgps lkist shortly please forward a copy.

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

--Sig_/zC0.YWW.sxOO_nW3dosyd3o
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+gcrIACgkQBmnRqz71OvNxegCg09t0UzE4pI98nLuV1QmVNrjn
2PcAoK9q2BEYUC8uPkto8qhOW/I6hZB9
=Bw0h
-----END PGP SIGNATURE-----

--Sig_/zC0.YWW.sxOO_nW3dosyd3o--


From MAILER-DAEMON Tue May 01 21:32:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPOQZ-00081n-KW
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 21:32:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38414)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPOQW-00081H-TL
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 21:32:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPOQU-0005Ts-Pg
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 21:32:20 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:51327 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPOQU-0005Tg-Lh
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 21:32:18 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 039774043E; Tue,  1 May 2012 21:32:15 -0400 (EDT)
Date: Tue, 1 May 2012 21:32:15 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120502013215.GB11394@thyrsus.com>
References: <20120320121724.GA11523@thyrsus.com>
	<20120320104542.0eaf179c.gem@rellim.com>
	<20120501151027.44487e16.gem@rellim.com>
	<20120501230917.GE10188@thyrsus.com>
	<20120501163302.575890f8.gem@rellim.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy"
Content-Disposition: inline
In-Reply-To: <20120501163302.575890f8.gem@rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel] Progress on Plain Jane
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 01:32:22 -0000


--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Gary E. Miller <gem@rellim.com>:
> > That's excellent news.  0.5msec jitter is as good as we could have
> > expected and exactly what one would predict from a max error of 1msec
> > due to polling interval. The long-term NMEA/USB drift is consistent
> > with previous observations by Hal Murray and myself.
>=20
> Nice when theory and practice agree.  I wonder if there is a USB 2.0
> equivalent of the PL2303 which would give us a 125 microSec poll?
>=20
> Might be worth asking navisys about that.

Maybe.  But that would require that they qualify a new and probably more
expensive adapter part. We should get this puppy shipping and let them
see some ROI before we push that.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--gBBFr7Ir9EOA20Yy
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPoI6frfUW04Qh8RwRAmILAKDZj4JmR2rkF0FoKxSoFyIYIrMUJQCgkiLo
7zIbwWLu+1fWZX7LMhL9D1U=
=p+gz
-----END PGP SIGNATURE-----

--gBBFr7Ir9EOA20Yy--


From MAILER-DAEMON Tue May 01 21:40:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPOYf-0000ht-3r
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 21:40:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34585)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SPOYb-0000hm-8C
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 21:40:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SPOYY-0000VH-09
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 21:40:40 -0400
Received: from mail-we0-f173.google.com ([74.125.82.173]:53592)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SPOYX-0000Ug-NN
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 21:40:37 -0400
Received: by werp12 with SMTP id p12so83044wer.4
	for <gpsd-dev@nongnu.org>; Tue, 01 May 2012 18:40:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=iFtSfisXPPq18NFrNpFTmc48aFgX6yNgBJe1KVwa4mw=;
	b=rYD46zEM2i+iuRTByKcGZyNghUALdb6Akmyobzhy+J8u0D2JqQ7Ljs98czVl0fD5Lp
	JIW8EDWLJ6aKYnvJwHBKsWEFgXTENLnrg+9dJyAGzmkwb7hFpp6JHSh6qau7qcGZ3sT6
	iTDx0Q/NrLUk0yWS1NGibo7b5fFHucK9GpmSfJFHKcCKgGXh4aH7uQeHbTAb8BOUcLnP
	8z4TILIhBuxl4shM69Ufpm8daqUy0faosASzsMI2uYpbyTyE1cJ8zDssO6xQ5x1b+Bo7
	sVOzVk6Ko3/p/Db93h4ZsTGV+LazWaJCcwcvYRP+qIMjM3Dx3iYPqwrwx9QqG9cNgagj
	sCUw==
MIME-Version: 1.0
Received: by 10.216.134.28 with SMTP id r28mr1815641wei.2.1335922834733; Tue,
	01 May 2012 18:40:34 -0700 (PDT)
Received: by 10.223.112.66 with HTTP; Tue, 1 May 2012 18:40:34 -0700 (PDT)
In-Reply-To: <20120501151435.4a6a5373.gem@rellim.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
Date: Tue, 1 May 2012 18:40:34 -0700
Message-ID: <CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
From: Dave Taht <dave.taht@gmail.com>
To: "Gary E. Miller" <gem@rellim.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.173
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 01:40:44 -0000

I'm a little confused.

There are two threads going by today. One is about a sirfIII and the
other a ublox 6

I have been assuming they are one and the same, but perhaps I'm confused.

Secondly an item that has not been looked into much is the quality of
the antennas, or the quality of the clock source when only a single
sat is available....

Thirdly, wow.... when can I get one of these puppies to play with?

:me looks out his bay window wistfully:


On Tue, May 1, 2012 at 3:14 PM, Gary E. Miller <gem@rellim.com> wrote:
> Yo All!
>
> As some of you may know, esr has been helping the bufferbloat project
> with some gpsd issues. =A0Their 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. =A0They call them a GR-601 and I
> just received the samples. =A0The 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
> =A0 =A0 remote =A0 =A0 =A0 =A0 =A0 refid =A0 =A0 =A0st t when poll reach =
=A0 delay =A0 offset
> jitter
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> -backup =A0 =A0 =A0 =A0 =A0.SOC1. =A0 =A0 =A0 =A0 =A0 1 u =A0 45 =A0 64 =
=A0377 =A0 =A00.233 -0.006 =A0 0.067
> +fuzzy =A0 =A0 =A0 =A0 =A0 .GPS1. =A0 =A0 =A0 =A0 =A0 1 u =A0 47 =A0 64 =
=A0377 =A0 =A00.241 -0.047 =A0 0.071
> +SHM(0) =A0 =A0 =A0 =A0 =A0.GPS. =A0 =A0 =A0 =A0 =A0 =A00 l =A0 10 =A0 16=
 =A0377 =A0 =A00.000 -2.995 =A0 1.656
> *SHM(1) =A0 =A0 =A0 =A0 =A0.GPS1. =A0 =A0 =A0 =A0 =A0 0 l =A0 =A09 =A0 16=
 =A0377 =A0 =A00.000 =A00.317 =A0 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. =A0SHM(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. =A0Long term NMEA/USB drif=
t
> 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. =A0Of course I expect the
> results to be worse when run on a single core router.
>
> The important part of the ntp.conf:
>
> =A0 =A0# for gpsd
> =A0 =A0server 127.127.28.0 minpoll 4 maxpoll 4
> =A0 =A0fudge 127.127.28.0 time1 0.142 =A0refid GPS
>
> =A0 =A0# for PPS and gpsd
> =A0 =A0server 127.127.28.1 prefer =A0minpoll 4 maxpoll 4
> =A0 =A0fudge 127.127.28.1 time1 0.001500 refid GPS1
>
> I start the daemons this way:
>
> =A0 =A0ntpd -p /var/run/ntpd.pid -N -u ntp:ntp -g
> =A0 =A0gpsd -n /dev/ttyUSB0
>
> Any questions or suggestions?
>
> RGDS
> GARY
> -------------------------------------------------------------------------=
--
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
> =A0 =A0 =A0 =A0gem@rellim.com =A0Tel:+1(541)382-8588



--=20
Dave T=E4ht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net


From MAILER-DAEMON Tue May 01 23:07:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPPuf-0000Hf-7d
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 23:07:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57520)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SPPub-0000GT-OG
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 23:07:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SPPuZ-0007ES-De
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 23:07:29 -0400
Received: from mail-yw0-f45.google.com ([209.85.213.45]:62131)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SPPuZ-0007EJ-90
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 23:07:27 -0400
Received: by yhoo21 with SMTP id o21so240426yho.4
	for <gpsd-dev@nongnu.org>; Tue, 01 May 2012 20:07:24 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=references:in-reply-to:mime-version:content-transfer-encoding
	:content-type:message-id:cc:x-mailer:from:subject:date:to
	:x-gm-message-state;
	bh=0vfyeoq3fu1HF/fpS9tzTmbEzPG8YwvRss0fomk/ME8=;
	b=aOrfJGOSziKcOvvEJQu9zpIV0hJOSeiQl9oBEw9hDULVEP1wRaO4GQpFcmqCKiug7x
	NCwf7Jfg8FGZUviKaiel2qDgTQOK/5HlaVDit4F9+z50j8/reFsdX1AGCG/z6Yxh24UR
	ypnAcrIVBZXNr99cSvmaJn5Fmx6RSUlY0AAZ1bt6GZWsk0AkjImAwqErd+gmAHfpwDlQ
	20E88SKS9Th6gvGqUgSxNj9E4EhJfISDZyQD5QcZVez9tZ86+OQoyynRtHz/gelZZNp+
	61qWAlLpx0Czq20WFMo0myi1CyOBX2D7UAwZvcymnkGLFuK9PbJaKi/r5BLm/7Emx11w
	U73g==
Received: by 10.236.201.134 with SMTP id b6mr11207973yho.55.1335928043815;
	Tue, 01 May 2012 20:07:23 -0700 (PDT)
Received: from [192.168.4.18] (cpe-70-113-79-122.austin.res.rr.com.
	[70.113.79.122])
	by mx.google.com with ESMTPS id 34sm726090anu.6.2012.05.01.20.07.21
	(version=TLSv1/SSLv3 cipher=OTHER);
	Tue, 01 May 2012 20:07:22 -0700 (PDT)
References: <20120501151435.4a6a5373.gem@rellim.com>
	<CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
In-Reply-To: <CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
Mime-Version: 1.0 (1.0)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8
Message-Id: <0F96256E-B326-415A-ADD7-F5D86AEE75CA@netgate.com>
X-Mailer: iPad Mail (9B176)
From: Jim Thompson <jim@netgate.com>
Date: Tue, 1 May 2012 22:07:20 -0500
To: Dave Taht <dave.taht@gmail.com>
X-Gm-Message-State: ALoCoQkpD1vzH+qfJ4eovfZngDNq9i1HACtq8aw4dBpclFEcZSRqSpopXchjVSDNyR4aWypcCX+4
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.213.45
Cc: "thumbgps-devel@lists.bufferbloat.net"
	<thumbgps-devel@lists.bufferbloat.net>,
	"gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 03:07:31 -0000


Hi Dave,

There is a third option in-play, but I've not spoken about it in public. =20=


I have an ARM (xscale) board with OpenWRT (amd gpsd) running that has provis=
ions for a Trimble Copernicus-based GPS module with the PPS output tied to a=
 GPIO pin on the Xscale, and the UART on the GPS module connected to the Xsc=
ale at TTL signal levels.=20

The module is in-transit, so I've not completed the integration or started t=
esting.  I should be able to use the fast-path IRQ stuff on the xscale to si=
gnificantly reduce the latency & jitter over a USB-based solution. I know it=
's fast enough to be able to implement a distributed CSMA scheme among multi=
ple 802.11 radios, with timing sufficient to occur in the same timespan as t=
wo short OFDM symbols (800ns each, so 1.6 microsec.)=20

Outdoor enclosures, POE, etc. are all sourced, so the whole ball of wax coul=
d be put outside, with either Ethernet or Wi-Fi connectivity.  Alternatively=
, an antenna with DC power could be used, (it's available).

When they're ready, of course you can have one to play with.  I'm doing it t=
o support your efforts wrt bufferbloat.=20

Jim

On May 1, 2012, at 8:40 PM, Dave Taht <dave.taht@gmail.com> wrote:

> I'm a little confused.
>=20
> There are two threads going by today. One is about a sirfIII and the
> other a ublox 6
>=20
> I have been assuming they are one and the same, but perhaps I'm confused.
>=20
> Secondly an item that has not been looked into much is the quality of
> the antennas, or the quality of the clock source when only a single
> sat is available....
>=20
> Thirdly, wow.... when can I get one of these puppies to play with?
>=20
> :me looks out his bay window wistfully:
>=20
>=20
> On Tue, May 1, 2012 at 3:14 PM, Gary E. Miller <gem@rellim.com> wrote:
>> Yo All!
>>=20
>> 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.
>>=20
>> 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.
>>=20
>> A preliminary result from a dual core laptop.
>>=20
>> # ntpq -p
>>     remote           refid      st t when poll reach   delay   offset
>> jitter
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
>> -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
>>=20
>>=20
>> 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.
>>=20
>> 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.
>>=20
>> SHM(0) is NMEA time over USB.  SHM(1) is PPS time over USB.
>>=20
>> 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.
>>=20
>> 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.
>>=20
>> The important part of the ntp.conf:
>>=20
>>    # for gpsd
>>    server 127.127.28.0 minpoll 4 maxpoll 4
>>    fudge 127.127.28.0 time1 0.142  refid GPS
>>=20
>>    # for PPS and gpsd
>>    server 127.127.28.1 prefer  minpoll 4 maxpoll 4
>>    fudge 127.127.28.1 time1 0.001500 refid GPS1
>>=20
>> I start the daemons this way:
>>=20
>>    ntpd -p /var/run/ntpd.pid -N -u ntp:ntp -g
>>    gpsd -n /dev/ttyUSB0
>>=20
>> Any questions or suggestions?
>>=20
>> RGDS
>> GARY
>> -------------------------------------------------------------------------=
--
>> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
>>        gem@rellim.com  Tel:+1(541)382-8588
>=20
>=20
>=20
> --=20
> Dave T=C3=A4ht
> SKYPE: davetaht
> US Tel: 1-239-829-5608
> http://www.bufferbloat.net
>=20


From MAILER-DAEMON Tue May 01 23:33:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPQK9-000295-BK
	for mharc-gpsd-dev@gnu.org; Tue, 01 May 2012 23:33:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58513)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPQK6-00028y-Uk
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 23:33:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPQK4-0007Uo-NQ
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 23:33:50 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:51840 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SPQK4-0007QM-79
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 23:33:48 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 915C34043E; Tue,  1 May 2012 23:33:45 -0400 (EDT)
Date: Tue, 1 May 2012 23:33:45 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Dave Taht <dave.taht@gmail.com>
Message-ID: <20120502033345.GA11913@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 03:33:52 -0000

Dave Taht <dave.taht@gmail.com>:
> I'm a little confused.
> 
> There are two threads going by today. One is about a sirfIII and the
> other a ublox 6
> 
> I have been assuming they are one and the same, but perhaps I'm confused.

You are.  The first set of prototypes, from UniTraq, were SiRF-III + CP2101.
These won't do - turns out the CP2101 driver can't wait on a handshake state 
change because the vendor never released enough programnming information.

Gary is talking about the second set of prototypes, from NaviSys.
That's the uBlox + PL2303 device.  It works.  The next step is to
get them into volume production.

> Secondly an item that has not been looked into much is the quality of
> the antennas, or the quality of the clock source when only a single
> sat is available....

Quality of antenna will matter for the device's ability to function in
weak-signal conditions, e.g. indoors.  Clock time should be OK even with
a single sat - multiple birds are needed for the spherical trig to compute
position, but atomic time you get directly from each sat sample.

> Thirdly, wow.... when can I get one of these puppies to play with?

Gary has three.  He's keeping one and sending me the second.  Since OpenBSD 
has no TICMIWAIT, Chris Kuethe is out of contention for the third and it
should logically go to you.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed May 02 00:26:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPR9V-0006uG-IS
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 00:26:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42738)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPR9S-0006tq-W6
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 00:26:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPR9Q-0001j3-Ta
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 00:26:54 -0400
Received: from catbert.rellim.com ([204.17.205.1]:55896)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPR9Q-0001iw-C3
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 00:26:52 -0400
Received: from localhost (root@spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q424QhmU024079
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Tue, 1 May 2012 21:26:43 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q424QhmU024079
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1335932803; bh=Y+7Ebu8pj0mCSTvFrJuuGQrgq1no9krYgx5kfaQ2sCw=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=oMEHBJ1UsxmPMu2G9g++dpkwKGDtB32NYTITrhgKwmHfBc2Z8BTVu1r+uD9PWg48j
	9/lkYokh7vd7IQf4Kn8OA==
Date: Tue, 1 May 2012 21:26:36 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: esr@thyrsus.com
Message-ID: <20120501212636.498cdcfd.gem@rellim.com>
In-Reply-To: <20120502013215.GB11394@thyrsus.com>
References: <20120320121724.GA11523@thyrsus.com>
	<20120320104542.0eaf179c.gem@rellim.com>
	<20120501151027.44487e16.gem@rellim.com>
	<20120501230917.GE10188@thyrsus.com>
	<20120501163302.575890f8.gem@rellim.com>
	<20120502013215.GB11394@thyrsus.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/ckda1IUQQgrzkk3y1RrpK3j";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel] Progress on Plain Jane
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 04:26:56 -0000

--Sig_/ckda1IUQQgrzkk3y1RrpK3j
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Eric!

On Tue, 1 May 2012 21:32:15 -0400
"Eric S. Raymond" <esr@thyrsus.com> wrote:

> Gary E. Miller <gem@rellim.com>:

> > Nice when theory and practice agree.  I wonder if there is a USB 2.0
> > equivalent of the PL2303 which would give us a 125 microSec poll?
> >=20
> > Might be worth asking navisys about that.
>=20
> Maybe.  But that would require that they qualify a new and probably
> more expensive adapter part. We should get this puppy shipping and
> let them see some ROI before we push that.

Yeah, 0.5 milliSec jitter is more than enough for most practical=20
purposes.  I just like to get extreme...

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

--Sig_/ckda1IUQQgrzkk3y1RrpK3j
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+gt4IACgkQBmnRqz71OvPGaACgi6HrFZ9Dc6heG5nCTTO9ROUi
J2EAniWS8s7CbUFgEhaKMaIInozFqmpP
=+YVU
-----END PGP SIGNATURE-----

--Sig_/ckda1IUQQgrzkk3y1RrpK3j--


From MAILER-DAEMON Wed May 02 04:35:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPV1t-0007EE-EA
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 04:35:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38036)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SPV1m-0007Du-7z
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 04:35:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SPV1h-0002zb-Bq
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 04:35:13 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:59155)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SPV1h-0002y6-4E
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 04:35:09 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 6CC7880003B; 
	Wed,  2 May 2012 00:58:08 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: esr@thyrsus.com
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Eric S. Raymond" <esr@thyrsus.com>
	of "Tue, 01 May 2012 23:33:45 EDT." <20120502033345.GA11913@thyrsus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 02 May 2012 00:58:08 -0700
Message-Id: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 08:35:20 -0000


esr@thyrsus.com said:
> Clock time should be OK even with a single sat - multiple birds are needed
> for the spherical trig to compute position, but atomic time you get directly
> from each sat sample. 

I think it's more complicated than that.

You can get time with only 1 sat if know where you are located.  It takes 
special software, usually called "timing".

The usual approach for finding the location is to do a "survey".  That 
requires more special software which is usually included in the timing 
package.  It collects a 1000 (or whatever) good samples and averages the 
position.  The "good" qualifier means they don't use low-quality samples 
which might be way off.

It's worth asking Navisys if they have the timing mode software.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Wed May 02 08:11:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPYPB-0003Rp-1x
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 08:11:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57637)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SPYP4-0003ND-FM
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 08:11:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SPYOn-0000c7-7S
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 08:11:30 -0400
Received: from mail-gy0-f173.google.com ([209.85.160.173]:46603)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SPYOn-0000bE-3Y
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 08:11:13 -0400
Received: by ghrr14 with SMTP id r14so727812ghr.4
	for <gpsd-dev@nongnu.org>; Wed, 02 May 2012 05:11:10 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to:x-mailer
	:x-gm-message-state;
	bh=Uv8mlE/OWPp8w+JEjb0p50KZA1gIE7THDOV5B9aVZZY=;
	b=VSSix24h+C8xYNxef6vAyUM6BuF/Aeeezx/GM6AMExzI13/otDaQTfl8D3hosjLcaP
	cQP2DQGBOGB7ePNHR+4DNC00pncqMjBuUqhGe1KuAxThUt1UubmLZodWyWpV4kwNNIOR
	koK+M6T3V9bwY2Q//kdn1susy8O8594QNMp4AcJhIDHwYvmBhelMM9UUOyvPwX6bhO3h
	YE0/C+pg6VxnLkvi4nWfoQuwe9H8HIvYfP5zPrjDu0dqbmDW06LcKOtInB3lZDaHGQIa
	NLLK6EjE5qw8NK6IfpiyGSKxfn/uyG9pPMFiHVpDwxiKIKeY6Vc88EjKESKVLUdovViV
	ZK/w==
Received: by 10.236.201.168 with SMTP id b28mr2437566yho.96.1335960670835;
	Wed, 02 May 2012 05:11:10 -0700 (PDT)
Received: from [192.168.4.73] (cpe-70-113-79-122.austin.res.rr.com.
	[70.113.79.122])
	by mx.google.com with ESMTPS id i7sm2344107ani.17.2012.05.02.05.11.08
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 02 May 2012 05:11:09 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1457\))
From: Jim Thompson <jim@netgate.com>
In-Reply-To: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
Date: Wed, 2 May 2012 07:11:07 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
References: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
To: Hal Murray <hmurray@megapathdsl.net>
X-Mailer: Apple Mail (2.1457)
X-Gm-Message-State: ALoCoQlLeFqWkR1eR1L/bgeHva6xH93kYeJ1IywRNWfUB2Q0b40/drEEpysT1lkYC/R+C3D4Qo+2
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 12:11:34 -0000


On May 2, 2012, at 2:58 AM, Hal Murray <hmurray@megapathdsl.net> wrote:

>=20
> esr@thyrsus.com said:
>> Clock time should be OK even with a single sat - multiple birds are =
needed
>> for the spherical trig to compute position, but atomic time you get =
directly
>> from each sat sample.=20
>=20
> I think it's more complicated than that.
>=20
> You can get time with only 1 sat if know where you are located.  It =
takes=20
> special software, usually called "timing".
>=20
> The usual approach for finding the location is to do a "survey".  That=20=

> requires more special software which is usually included in the timing=20=

> package.  It collects a 1000 (or whatever) good samples and averages =
the=20
> position.  The "good" qualifier means they don't use low-quality =
samples=20
> which might be way off.
>=20
> It's worth asking Navisys if they have the timing mode software.


A GPS receiver functions by precisely measuring the transit time of =
signals received from several satellites (the pseudoranges). These =
distances combined geometrically with precise orbital information =
identify the location of the receiver. Precise timing is fundamental to =
an accurate GPS location. The time from an atomic clock on board each =
satellite is encoded into the radio signal; the receiver determines how =
much later it received the signal than it was sent.

Thus, even a very small clock error multiplied by C (the speed at which =
satellite signals propagate) results in a large positional error.  An =
error of one microsecond corresponds to an error of 300 meters. =
Therefore, GPS receivers solve for the time using the pseudoranges.

tl;dr: One bird won't do.

Jim



From MAILER-DAEMON Wed May 02 13:27:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPdLH-0006Lv-Qd
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 13:27:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42475)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SPdLC-0006IW-B2
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 13:27:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SPdLA-0000nr-Dt
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 13:27:49 -0400
Received: from smtp2.mail.fcom.ch ([212.60.46.171]:36325)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SPdLA-0000mN-7I
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 13:27:48 -0400
Received: from smtp2.mail.fcom.ch (localhost [127.0.0.1])
	by smtp2 (Postfix) with ESMTP id A58302D4F7
	for <gpsd-dev@nongnu.org>; Wed,  2 May 2012 19:27:41 +0200 (CEST)
Received: from drbeat.li (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by smtp2 (Postfix) with ESMTPS id 871B92D4F2
	for <gpsd-dev@nongnu.org>; Wed,  2 May 2012 19:27:41 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id 4B5E91808A; Wed,  2 May 2012 19:27:40 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Wed,  2 May 2012 19:27:39 +0200
Message-Id: <1335979660-23717-1-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.10
X-AV-Checked: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.60.46.171
Subject: [gpsd-dev] [PATCH] Fix a NMEA2000 mis-cleanup.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 17:27:54 -0000

Introduced in commit 472df9c480d5d6e4dff669807a198981e84f8c90.
---
 driver_nmea2000.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/driver_nmea2000.c b/driver_nmea2000.c
index c447490..a25a6c3 100644
--- a/driver_nmea2000.c
+++ b/driver_nmea2000.c
@@ -243,7 +243,7 @@ gps_mask_t hnd_126992(unsigned char *bu, int len, PGN *pgn, struct gps_device_t
     //source     = bu[1] & 0x0f;
 
     /*@-type@*//* splint has a bug here */
-    session->newdata.time = getleu16(bu, 2)*24*60*60 + getleu32(bu, 4)/1e3;
+    session->newdata.time = getleu16(bu, 2)*24*60*60 + getleu32(bu, 4)/1e4;
     /*@+type@*/
 
     (void)strlcpy(session->gpsdata.tag, "126992", sizeof(session->gpsdata.tag));
-- 
1.7.10


From MAILER-DAEMON Wed May 02 15:07:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPetj-0007kS-3D
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 15:07:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57214)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SPetg-0007kB-JV
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 15:07:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SPete-0006e7-V7
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 15:07:32 -0400
Received: from smtp2.mail.fcom.ch ([212.60.46.171]:36398)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SPete-0006ds-OV
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 15:07:30 -0400
Received: from smtp2.mail.fcom.ch (localhost [127.0.0.1])
	by smtp2 (Postfix) with ESMTP id 72FC02D50C
	for <gpsd-dev@nongnu.org>; Wed,  2 May 2012 21:07:26 +0200 (CEST)
Received: from drbeat.li (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by smtp2 (Postfix) with ESMTPS id 28A462D4FD
	for <gpsd-dev@nongnu.org>; Wed,  2 May 2012 21:07:24 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id 79B5C1808A; Wed,  2 May 2012 21:07:23 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Wed,  2 May 2012 21:07:23 +0200
Message-Id: <1335985643-26067-1-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.10
X-AV-Checked: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.60.46.171
Subject: [gpsd-dev] [PATCH] Fix syntax errors.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 19:07:33 -0000

Introduced in commit 41c1f46fe309e897b9a642beb929626e4171bc20.
---
 gpsd.h-tail |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gpsd.h-tail b/gpsd.h-tail
index b7f6970..11089c3 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -586,8 +586,8 @@ struct gps_device_t {
 	    int mode;
 	    unsigned int mode_valid;
 	    unsigned int idx;
-	    unsigned size_t ptr;
-	    unsigned size_t fast_packet_len;
+	    size_t ptr;
+	    size_t fast_packet_len;
 	    int type;
 	    void *workpgn;
 	    void *pgnlist;
-- 
1.7.10


From MAILER-DAEMON Wed May 02 15:53:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPfcd-0005hN-EH
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 15:53:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43536)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPfcb-0005gZ-0n
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 15:53:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPfcZ-0007ml-2l
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 15:53:56 -0400
Received: from catbert.rellim.com ([204.17.205.1]:56924)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPfcY-0007he-HY
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 15:53:54 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q42Jrl2f029401
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 2 May 2012 12:53:47 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q42Jrl2f029401
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1335988427; bh=pbUoMLZ7epq5fcBET5umL+nUv4LUoIEBz0HFSyxbhWI=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=kv7lZqoF9TlzrU/N2tqWtZyMtNPUrg07b6Tdk/1WxocXYgNrT3pKRWHJ8D6dyd3bT
	SkefKA4+0Zv8w9sdbGmTQ==
Date: Wed, 2 May 2012 12:53:43 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Jim Thompson <jim@netgate.com>
Message-ID: <20120502125343.57567a04.gem@rellim.com>
In-Reply-To: <37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
References: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
	<37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/B.M.odgy=WXSJKvD1FOL+GO";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 19:53:58 -0000

--Sig_/B.M.odgy=WXSJKvD1FOL+GO
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Jim!

On Wed, 2 May 2012 07:11:07 -0500
Jim Thompson <jim@netgate.com> wrote:

> Thus, even a very small clock error multiplied by C (the speed at
> which satellite signals propagate) results in a large positional
> error.  An error of one microsecond corresponds to an error of 300
> meters. Therefore, GPS receivers solve for the time using the
> pseudoranges.
>=20
> tl;dr: One bird won't do.

And in fact gpsd knows this and refuses to use the time until several
2D fixes have been sent from the GPS.  That is per the Garmin
recommendation.

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

--Sig_/B.M.odgy=WXSJKvD1FOL+GO
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+hkMoACgkQBmnRqz71OvN2GgCeOt3Hzb+7ZCL45zQudKl1qHju
w3oAoKEu2NuC4c9joFJvi5DGbSG5oshe
=bgWI
-----END PGP SIGNATURE-----

--Sig_/B.M.odgy=WXSJKvD1FOL+GO--


From MAILER-DAEMON Wed May 02 16:08:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPfqG-0007rd-SB
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 16:08:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42150)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SPfqE-0007rM-0A
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:08:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SPfqC-00050p-3f
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:08:01 -0400
Received: from mail-pz0-f46.google.com ([209.85.210.46]:34806)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SPfqB-0004zh-Qz
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:08:00 -0400
Received: by dady13 with SMTP id y13so374110dad.5
	for <gpsd-dev@nongnu.org>; Wed, 02 May 2012 13:07:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=nnnTKDBiK3rQFfKzve0obmsfsYY5mMG6AecQ316vrko=;
	b=oFPyBgp7g9NWpePyT1q96ls48WmLkUljBkCCn2teOCC57HKtTMAPneyIrUS9Xh67ye
	u9uaygcktCl32dzFxFePoh4jABg0RlocJeSphTRVVY6rUkfC4Tu++TPDv5NQ7Ov9tcA8
	jh8wRswUQq1evQJqzQhI0rBV/pt5SA3la80PY+btoZC/UJ1Gt4zNYcB/NKQJmYjaqzM1
	iCuHTFsr6vHbFy3/DfJlG9jGsISe/3cnNP83qB4BiCOpCIMhtbEzma5S2jI6BYOqJ8U/
	ymQ0RW5VLkKC0d19q/QV+iOD7fD47UOv2a5YKDjhWNRgceF8zMKTfRtbgdFWHbVIvqKq
	YiUQ==
Received: by 10.68.224.167 with SMTP id rd7mr390981pbc.129.1335989276843; Wed,
	02 May 2012 13:07:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.50.226 with HTTP; Wed, 2 May 2012 13:07:36 -0700 (PDT)
In-Reply-To: <20120502125343.57567a04.gem@rellim.com>
References: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
	<37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
	<20120502125343.57567a04.gem@rellim.com>
From: Chris Kuethe <chris.kuethe@gmail.com>
Date: Wed, 2 May 2012 13:07:36 -0700
Message-ID: <CAGHP0pL0CxuKiDU3CfzBK7iwDw8M9B2F7HbrogUResRzob7MEQ@mail.gmail.com>
To: "Gary E. Miller" <gem@rellim.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.210.46
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 20:08:03 -0000

On Wed, May 2, 2012 at 12:53 PM, Gary E. Miller <gem@rellim.com> wrote:
> On Wed, 2 May 2012 07:11:07 -0500 Jim Thompson <jim@netgate.com> wrote:
>> tl;dr: One bird won't do.
>
> And in fact gpsd knows this and refuses to use the time until several
> 2D fixes have been sent from the GPS. =A0That is per the Garmin
> recommendation.

I should probably test gpsd's opinion on this.

I have a few timing receivers that will, after running a site survey,
operate with only a single PRN in track. I believe the NMEA output
claims it's operating in 3D mode, and there's some status bit in the
binary protocol to say "well, actually it's in fixed-position timing
mode"

--=20
GDB has a 'break' feature; why doesn't it have 'fix' too?


From MAILER-DAEMON Wed May 02 16:10:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPfsF-00086i-4Q
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 16:10:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54285)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SPfs8-000848-GD
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:10:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SPfs5-0006Xf-AT
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:10:00 -0400
Received: from mail-wg0-f53.google.com ([74.125.82.53]:53517)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SPfs5-0006XV-1t
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:09:57 -0400
Received: by wgbfm10 with SMTP id fm10so1006716wgb.10
	for <gpsd-dev@nongnu.org>; Wed, 02 May 2012 13:09:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=Sq3DPJMaQKV7hJr9o/gaPK2PKXg9zsTGmlGrZ2jeYdU=;
	b=TDgMomb4Sz0LJhLdkjAgmV6/9kB77lWaV0MQpfZ2KSAzaZZ3EpqTRpEn3t4FMO3chk
	NVpaOAAPJBkYl104YwiU78hd2+9oPlqfHzZljzaEjx/v7cM4kFT5khn8SgBIgjSWRarr
	/d+tsIkOf0Z8XnV/LYLQBEedt+WDOWjHtOlUJUCVWGYJwOxMb99h8jRwqZb2YCgyHryS
	jiECO+kYapwNZp93J1DYE5ac/wmGZ58AiJ5+K2p1BbuGlpgTYMa9jZMTzDmsEBZNPPiq
	3pnLlbHGab5ZjGoSqooZCJ6M0vbvpcqNX96R7c33ceEAsSz9Q/0R2jNphHcsCJfJW6EZ
	KqFQ==
MIME-Version: 1.0
Received: by 10.180.100.230 with SMTP id fb6mr19928780wib.3.1335989394915;
	Wed, 02 May 2012 13:09:54 -0700 (PDT)
Received: by 10.223.112.66 with HTTP; Wed, 2 May 2012 13:09:54 -0700 (PDT)
In-Reply-To: <CAGHP0pL0CxuKiDU3CfzBK7iwDw8M9B2F7HbrogUResRzob7MEQ@mail.gmail.com>
References: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
	<37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
	<20120502125343.57567a04.gem@rellim.com>
	<CAGHP0pL0CxuKiDU3CfzBK7iwDw8M9B2F7HbrogUResRzob7MEQ@mail.gmail.com>
Date: Wed, 2 May 2012 13:09:54 -0700
Message-ID: <CAA93jw5R4Kh+9O0Hu_6hm8joBn5w5zEZTFHC8FQuXb9gAnkLyg@mail.gmail.com>
From: Dave Taht <dave.taht@gmail.com>
To: Chris Kuethe <chris.kuethe@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.53
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 20:10:05 -0000

the ublox 6 has a special mode for single sat operations.

On Wed, May 2, 2012 at 1:07 PM, Chris Kuethe <chris.kuethe@gmail.com> wrote=
:
> On Wed, May 2, 2012 at 12:53 PM, Gary E. Miller <gem@rellim.com> wrote:
>> On Wed, 2 May 2012 07:11:07 -0500 Jim Thompson <jim@netgate.com> wrote:
>>> tl;dr: One bird won't do.
>>
>> And in fact gpsd knows this and refuses to use the time until several
>> 2D fixes have been sent from the GPS. =A0That is per the Garmin
>> recommendation.
>
> I should probably test gpsd's opinion on this.
>
> I have a few timing receivers that will, after running a site survey,
> operate with only a single PRN in track. I believe the NMEA output
> claims it's operating in 3D mode, and there's some status bit in the
> binary protocol to say "well, actually it's in fixed-position timing
> mode"
>
> --
> GDB has a 'break' feature; why doesn't it have 'fix' too?
>



--=20
Dave T=E4ht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net


From MAILER-DAEMON Wed May 02 16:13:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPfvU-0000Uk-MN
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 16:13:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54960)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPfvS-0000UU-FN
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:13:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPfvQ-00079t-Fn
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:13:26 -0400
Received: from catbert.rellim.com ([204.17.205.1]:49987)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPfvP-00079Y-Ut
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:13:24 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q42KDEe2030625
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 2 May 2012 13:13:14 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q42KDEe2030625
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1335989594; bh=Vuhf73izjnyEjaLHrVn+oXve0wtfcWu7IwwLQKUbfL8=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=uXc2niqESSRNAmG/WSe5J2CW4qG0j4Q3sNmO0GaGZLCSEiwWKMvCge87hzjkzyCFb
	64/SVLIdeoT5df0e3FNzA==
Date: Wed, 2 May 2012 13:13:10 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: tz <tz2026@gmail.com>
Message-ID: <20120502131310.7dd7f799.gem@rellim.com>
In-Reply-To: <CAFv7Oigy9Zi6z8rxjefeMFgACv13JzDbEmAh69mo7NwTB08wBg@mail.gmail.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
	<20120502033345.GA11913@thyrsus.com>
	<CAFv7Oigy9Zi6z8rxjefeMFgACv13JzDbEmAh69mo7NwTB08wBg@mail.gmail.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/W+opz2SWMEsIUa3HCzhFHns";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel]  PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 20:13:27 -0000

--Sig_/W+opz2SWMEsIUa3HCzhFHns
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo tz!

On Wed, 2 May 2012 07:09:09 -0400
tz <tz2026@gmail.com> wrote:

> SkyTraq has a different version of the 638 (not just different
> firmware) that emits corrections to the pps edge to go to 10nS, and
> after a lock it will work down to 1 satellite and maintain accurate
> pps.

Got a model #?

> I don't know of any others that retain pps if they don't have a 3d
> lock.

The Garmin GPS 18 spec says:

"The accuracy of the one-pulse-per-second output is maintained only
while the GPS receiver is computing a valid position fix. "

I always took taht to mean 2D mode was good enough, but I see how 3D
mode would be more accurate timewise.

Looking for that check in the gpsd code, I do not see it in the PPS path
or in the NMEA path.  I wonder when that disappeared?  That may explain
some things...  I'll go add that back in now.

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

--Sig_/W+opz2SWMEsIUa3HCzhFHns
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+hlVkACgkQBmnRqz71OvPk5ACdGvxNVOEb73eRml/rq+rbfS4Q
zpcAn2iBiuEUc17eKgtxOT82kSO+vMf4
=WVxP
-----END PGP SIGNATURE-----

--Sig_/W+opz2SWMEsIUa3HCzhFHns--


From MAILER-DAEMON Wed May 02 16:20:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPg2G-0003Yz-Q8
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 16:20:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60295)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPP4B-0004AA-AM
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 22:13:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPP48-0003Vs-W3
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 22:13:18 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:36721)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPP48-0003VG-M2
	for gpsd-dev@nongnu.org; Tue, 01 May 2012 22:13:16 -0400
Received: by obbwd20 with SMTP id wd20so317239obb.4
	for <gpsd-dev@nongnu.org>; Tue, 01 May 2012 19:13:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=Toys7SNNFVk4AJz+G0db3Aai6hzLCxJAJB/5SiBQ/UU=;
	b=BulYuyXnSrcdjdccJw8MzxpXbKrqCd2k3YShUpa0aIVpoVpvMifKyBjF6zHJO45Ipe
	P2ZUdPEHbV13tY/k/xMCmMttJFQOIknWBXAtVrtw9TTU2eijcYIJzzZ6J81rN+pe5Us2
	FVAQI03o2lWODlYKQMC4nS0ZPKpPlouqKBzP9FyPRmoVCu8hRcIH3DXOz9row0PCMNWe
	VARj9D1v1HwysCmeTCK6PAOAAXXY3H1WPTctbksVi4x9bUFHeFd3mol7VaCTHiVvf2SR
	ipFyWZ5/5QuEZrY5vHV4SRZIk7GN/gccBbzq8wfNhe14MfDoX890s/+JfjUlEEAWpLNz
	dPFA==
MIME-Version: 1.0
Received: by 10.182.183.73 with SMTP id ek9mr11775976obc.15.1335924793909;
	Tue, 01 May 2012 19:13:13 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Tue, 1 May 2012 19:13:13 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Tue, 1 May 2012 19:13:13 -0700 (PDT)
In-Reply-To: <20120502013215.GB11394@thyrsus.com>
References: <20120320121724.GA11523@thyrsus.com>
	<20120320104542.0eaf179c.gem@rellim.com>
	<20120501151027.44487e16.gem@rellim.com>
	<20120501230917.GE10188@thyrsus.com>
	<20120501163302.575890f8.gem@rellim.com>
	<20120502013215.GB11394@thyrsus.com>
Date: Tue, 1 May 2012 22:13:13 -0400
Message-ID: <CAFv7OigCsn0PYnH3Fby2uNiBjOKA3_5OPWkUMjCsQJLTAPB7UA@mail.gmail.com>
From: tz <tz2026@gmail.com>
To: esr@thyrsus.com
Content-Type: multipart/alternative; boundary=f46d04478a31c9a09c04bf043afe
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
X-Mailman-Approved-At: Wed, 02 May 2012 16:20:26 -0400
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel] Progress on Plain Jane
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 02:13:21 -0000

--f46d04478a31c9a09c04bf043afe
Content-Type: text/plain; charset=ISO-8859-1

If you start to go too exotic, then an Arduino with ethernet shield
emitting a packet right at the pps starts to look good, and the parts are
at Radio Shack.  But any such not in quantity would be more expensive.
There are plenty of generic usb 2.0 chips and acm or cdc is just a set of
bit and endpoint specs.  And any 2.0 chip would need to use an existing
linux driver unless someone plans to do a lot of libusb coding.

The base problem is hardware lameness.  Polling instead of an interrupt pin
that can immediately respond, much less something like an input capture.  I
could probably sync a 2ppm dallas semiconductor i2c real time clock's 1Hz
output, but even then there is nothing to sync that with the internal
clocks.  (I was already inspired to use pps to create an accurate synced
timestamp for j1850 data off my motorcycle - oh, and batchpcb.com can do
small quantities of small boards themselves cheap, but you still need to
build them).

If you have a 2nd usb port and want to get tricky, the pnp/insert/remove
event is likely higher priority, so with a FET...
 On May 1, 2012 9:32 PM, "Eric S. Raymond" <esr@thyrsus.com> wrote:

> Gary E. Miller <gem@rellim.com>:
> > > That's excellent news.  0.5msec jitter is as good as we could have
> > > expected and exactly what one would predict from a max error of 1msec
> > > due to polling interval. The long-term NMEA/USB drift is consistent
> > > with previous observations by Hal Murray and myself.
> >
> > Nice when theory and practice agree.  I wonder if there is a USB 2.0
> > equivalent of the PL2303 which would give us a 125 microSec poll?
> >
> > Might be worth asking navisys about that.
>
> Maybe.  But that would require that they qualify a new and probably more
> expensive adapter part. We should get this puppy shipping and let them
> see some ROI before we push that.
> --
>                <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
>
> _______________________________________________
> Thumbgps-devel mailing list
> Thumbgps-devel@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/thumbgps-devel
>
>

--f46d04478a31c9a09c04bf043afe
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>If you start to go too exotic, then an Arduino with ethernet shield emit=
ting a packet right at the pps starts to look good, and the parts are at Ra=
dio Shack.=A0 But any such not in quantity would be more expensive.=A0 Ther=
e are plenty of generic usb 2.0 chips and acm or cdc is just a set of bit a=
nd endpoint specs.=A0 And any 2.0 chip would need to use an existing linux =
driver unless someone plans to do a lot of libusb coding.</p>

<p>The base problem is hardware lameness.=A0 Polling instead of an interrup=
t pin that can immediately respond, much less something like an input captu=
re.=A0 I could probably sync a 2ppm dallas semiconductor i2c real time cloc=
k&#39;s 1Hz output, but even then there is nothing to sync that with the in=
ternal clocks.=A0 (I was already inspired to use pps to create an accurate =
synced timestamp for j1850 data off my motorcycle - oh, and <a href=3D"http=
://batchpcb.com">batchpcb.com</a> can do small quantities of small boards t=
hemselves cheap, but you still need to build them).</p>

<p>If you have a 2nd usb port and want to get tricky, the pnp/insert/remove=
 event is likely higher priority, so with a FET...<br>
</p>
<div class=3D"gmail_quote">On May 1, 2012 9:32 PM, &quot;Eric S. Raymond&qu=
ot; &lt;<a href=3D"mailto:esr@thyrsus.com">esr@thyrsus.com</a>&gt; wrote:<b=
r type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0 =
0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Gary E. Miller &lt;<a href=3D"mailto:gem@rellim.com">gem@rellim.com</a>&gt;=
:<br>
&gt; &gt; That&#39;s excellent news. =A00.5msec jitter is as good as we cou=
ld have<br>
&gt; &gt; expected and exactly what one would predict from a max error of 1=
msec<br>
&gt; &gt; due to polling interval. The long-term NMEA/USB drift is consiste=
nt<br>
&gt; &gt; with previous observations by Hal Murray and myself.<br>
&gt;<br>
&gt; Nice when theory and practice agree. =A0I wonder if there is a USB 2.0=
<br>
&gt; equivalent of the PL2303 which would give us a 125 microSec poll?<br>
&gt;<br>
&gt; Might be worth asking navisys about that.<br>
<br>
Maybe. =A0But that would require that they qualify a new and probably more<=
br>
expensive adapter part. We should get this puppy shipping and let them<br>
see some ROI before we push that.<br>
--<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&lt;a href=3D&quot;<a href=3D"http://www.ca=
tb.org/~esr/" target=3D"_blank">http://www.catb.org/~esr/</a>&quot;&gt;Eric=
 S. Raymond&lt;/a&gt;<br>
<br>_______________________________________________<br>
Thumbgps-devel mailing list<br>
<a href=3D"mailto:Thumbgps-devel@lists.bufferbloat.net">Thumbgps-devel@list=
s.bufferbloat.net</a><br>
<a href=3D"https://lists.bufferbloat.net/listinfo/thumbgps-devel" target=3D=
"_blank">https://lists.bufferbloat.net/listinfo/thumbgps-devel</a><br>
<br></blockquote></div>

--f46d04478a31c9a09c04bf043afe--


From MAILER-DAEMON Wed May 02 16:20:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPg2G-0003ZO-Uh
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 16:20:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32936)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPXQr-0005oq-93
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 07:09:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPXQl-0000no-SU
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 07:09:16 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:40945)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPXQl-0000kr-JB
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 07:09:11 -0400
Received: by obbwd20 with SMTP id wd20so966343obb.4
	for <gpsd-dev@nongnu.org>; Wed, 02 May 2012 04:09:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=XScgQcjb54c9RpFe/+RS2BJNJOkv9pP3M+cl3U/jOoI=;
	b=ZE0DUMiepzUHVIfVUGIAlesPONAzxh1960Y+PArHSwnGn9bntloV86+v1ezbMRTVIe
	wEinFEONXoLsm5FpoYwx8v3idx8tFyopyW+TZfhJV1SrJZ+N/U8pzwtMQlUUdjJIFvwT
	IntITuYu3FXf/ZLqAvbgjHpD+PennHIQ2aDCHNpahyGJcc4Q6R+Xd6zZN7a4aXRpuzW7
	NMHxVpkfDlLNFcj6yPFSsxJ0861ciV/85hMphn98bqA+POn1cT1IfeYVF72wb+X6a0em
	ElSCKg437QGdcwINxppB2fxk3dYZoZJu8b65Su4et6fUCdGGggHgu/s6RyvfPC3OIKN4
	tgeg==
MIME-Version: 1.0
Received: by 10.182.183.73 with SMTP id ek9mr13781322obc.15.1335956949803;
	Wed, 02 May 2012 04:09:09 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Wed, 2 May 2012 04:09:09 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Wed, 2 May 2012 04:09:09 -0700 (PDT)
In-Reply-To: <20120502033345.GA11913@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
	<20120502033345.GA11913@thyrsus.com>
Date: Wed, 2 May 2012 07:09:09 -0400
Message-ID: <CAFv7Oigy9Zi6z8rxjefeMFgACv13JzDbEmAh69mo7NwTB08wBg@mail.gmail.com>
From: tz <tz2026@gmail.com>
To: esr@thyrsus.com
Content-Type: multipart/alternative; boundary=f46d04478a316da3a604bf0bb755
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
X-Mailman-Approved-At: Wed, 02 May 2012 16:20:26 -0400
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel]  PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 11:09:23 -0000

--f46d04478a316da3a604bf0bb755
Content-Type: text/plain; charset=ISO-8859-1

SkyTraq has a different version of the 638 (not just different firmware)
that emits corrections to the pps edge to go to 10nS, and after a lock it
will work down to 1 satellite and maintain accurate pps.

I don't know of any others that retain pps if they don't have a 3d lock.

The antenna is important but it won't overcome an obscured view of the sky
- at best you will get multipath or other errors with the weak signals.
On May 1, 2012 11:33 PM, "Eric S. Raymond" <esr@thyrsus.com> wrote:

> Dave Taht <dave.taht@gmail.com>:
> > I'm a little confused.
> >
> > There are two threads going by today. One is about a sirfIII and the
> > other a ublox 6
> >
> > I have been assuming they are one and the same, but perhaps I'm confused.
>
> You are.  The first set of prototypes, from UniTraq, were SiRF-III +
> CP2101.
> These won't do - turns out the CP2101 driver can't wait on a handshake
> state
> change because the vendor never released enough programnming information.
>
> Gary is talking about the second set of prototypes, from NaviSys.
> That's the uBlox + PL2303 device.  It works.  The next step is to
> get them into volume production.
>
> > Secondly an item that has not been looked into much is the quality of
> > the antennas, or the quality of the clock source when only a single
> > sat is available....
>
> Quality of antenna will matter for the device's ability to function in
> weak-signal conditions, e.g. indoors.  Clock time should be OK even with
> a single sat - multiple birds are needed for the spherical trig to compute
> position, but atomic time you get directly from each sat sample.
>
> > Thirdly, wow.... when can I get one of these puppies to play with?
>
> Gary has three.  He's keeping one and sending me the second.  Since OpenBSD
> has no TICMIWAIT, Chris Kuethe is out of contention for the third and it
> should logically go to you.
> --
>                <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
> _______________________________________________
> Thumbgps-devel mailing list
> Thumbgps-devel@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/thumbgps-devel
>

--f46d04478a316da3a604bf0bb755
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>SkyTraq has a different version of the 638 (not just different firmware)=
 that emits corrections to the pps edge to go to 10nS, and after a lock it =
will work down to 1 satellite and maintain accurate pps.</p>
<p>I don&#39;t know of any others that retain pps if they don&#39;t have a =
3d lock.</p>
<p>The antenna is important but it won&#39;t overcome an obscured view of t=
he sky - at best you will get multipath or other errors with the weak signa=
ls.</p>
<div class=3D"gmail_quote">On May 1, 2012 11:33 PM, &quot;Eric S. Raymond&q=
uot; &lt;<a href=3D"mailto:esr@thyrsus.com">esr@thyrsus.com</a>&gt; wrote:<=
br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0=
 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dave Taht &lt;<a href=3D"mailto:dave.taht@gmail.com">dave.taht@gmail.com</a=
>&gt;:<br>
&gt; I&#39;m a little confused.<br>
&gt;<br>
&gt; There are two threads going by today. One is about a sirfIII and the<b=
r>
&gt; other a ublox 6<br>
&gt;<br>
&gt; I have been assuming they are one and the same, but perhaps I&#39;m co=
nfused.<br>
<br>
You are. =A0The first set of prototypes, from UniTraq, were SiRF-III + CP21=
01.<br>
These won&#39;t do - turns out the CP2101 driver can&#39;t wait on a handsh=
ake state<br>
change because the vendor never released enough programnming information.<b=
r>
<br>
Gary is talking about the second set of prototypes, from NaviSys.<br>
That&#39;s the uBlox + PL2303 device. =A0It works. =A0The next step is to<b=
r>
get them into volume production.<br>
<br>
&gt; Secondly an item that has not been looked into much is the quality of<=
br>
&gt; the antennas, or the quality of the clock source when only a single<br=
>
&gt; sat is available....<br>
<br>
Quality of antenna will matter for the device&#39;s ability to function in<=
br>
weak-signal conditions, e.g. indoors. =A0Clock time should be OK even with<=
br>
a single sat - multiple birds are needed for the spherical trig to compute<=
br>
position, but atomic time you get directly from each sat sample.<br>
<br>
&gt; Thirdly, wow.... when can I get one of these puppies to play with?<br>
<br>
Gary has three. =A0He&#39;s keeping one and sending me the second. =A0Since=
 OpenBSD<br>
has no TICMIWAIT, Chris Kuethe is out of contention for the third and it<br=
>
should logically go to you.<br>
--<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0&lt;a href=3D&quot;<a href=3D"http://www.ca=
tb.org/~esr/" target=3D"_blank">http://www.catb.org/~esr/</a>&quot;&gt;Eric=
 S. Raymond&lt;/a&gt;<br>
_______________________________________________<br>
Thumbgps-devel mailing list<br>
<a href=3D"mailto:Thumbgps-devel@lists.bufferbloat.net">Thumbgps-devel@list=
s.bufferbloat.net</a><br>
<a href=3D"https://lists.bufferbloat.net/listinfo/thumbgps-devel" target=3D=
"_blank">https://lists.bufferbloat.net/listinfo/thumbgps-devel</a><br>
</blockquote></div>

--f46d04478a316da3a604bf0bb755--


From MAILER-DAEMON Wed May 02 16:33:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPgEs-0006Sl-Ck
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 16:33:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37457)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPgEq-0006Me-0z
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:33:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPgEo-0006Dn-3Q
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:33:27 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:61222)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPgEn-0006DX-SI
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:33:26 -0400
Received: by obbwd20 with SMTP id wd20so1644871obb.4
	for <gpsd-dev@nongnu.org>; Wed, 02 May 2012 13:33:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=ClgTW7EyYDDZkJZkWgC+yg7h4OySEo9mxl72OQj1w7Y=;
	b=I/BuZxxvb3QL7JQ03vDRvk4ZkZLsSUFy6KU5uI4NpOxQ5JNTADnwvzXh04LllZ9nKa
	SkcgdlIR5e3CJDvAbs12zABmHbFIh57FTqc/zOt1u2JYNJVYeW215vnu3okN9G1reOeh
	L+m/LGVIotKyIqzFo7QcYJZucEF9KPRo4/rw+09YTX7yf9YQXnUNdJy8GtiRE3pawoq3
	NwNSD9J1PfQwLYuIuluVAUeHDDQYQPwgBuGH9547ApcUvtWoj/MgLBZr1F0OiQA8mWtS
	FZZ5hfFra/w4CNve7j52ta3ubHK5VwZRmVyn5VyCv3g9eDcITJmOCL/QX1u2phGqdOju
	7vFA==
MIME-Version: 1.0
Received: by 10.182.183.73 with SMTP id ek9mr16607898obc.15.1335990803992;
	Wed, 02 May 2012 13:33:23 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Wed, 2 May 2012 13:33:23 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Wed, 2 May 2012 13:33:23 -0700 (PDT)
In-Reply-To: <20120502131310.7dd7f799.gem@rellim.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<CAA93jw6LbYvzoN4_B7EEPdBBc6NoOC9oxkdkXK8__UUPHjV3yw@mail.gmail.com>
	<20120502033345.GA11913@thyrsus.com>
	<CAFv7Oigy9Zi6z8rxjefeMFgACv13JzDbEmAh69mo7NwTB08wBg@mail.gmail.com>
	<20120502131310.7dd7f799.gem@rellim.com>
Date: Wed, 2 May 2012 16:33:23 -0400
Message-ID: <CAFv7Oij_zLCxF2E2kWQZN920YV=+YkoTNn3c2kivdHaNhDE1wA@mail.gmail.com>
From: tz <tz2026@gmail.com>
To: "Gary E. Miller" <gem@rellim.com>
Content-Type: multipart/alternative; boundary=f46d04478a314b8f7504bf1399e9
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel]  PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 20:33:29 -0000

--f46d04478a314b8f7504bf1399e9
Content-Type: text/plain; charset=ISO-8859-1

On May 2, 2012 4:13 PM, "Gary E. Miller" <gem@rellim.com> wrote:
>
> Yo tz!
>
> On Wed, 2 May 2012 07:09:09 -0400
> tz <tz2026@gmail.com> wrote:
>
> > SkyTraq has a different version of the 638 (not just different
> > firmware) that emits corrections to the pps edge to go to 10nS, and
> > after a lock it will work down to 1 satellite and maintain accurate
> > pps.
>
> Got a model #?

Venus638LPx-T

http://www.skytraq.com.tw/products/Venus638LPx-T_PB_v2.pdf

They have an evk that goes to a serial usb but has allmthe pins broken out,
and maybe they have a firmware sdk - I have it for the more common version.

--f46d04478a314b8f7504bf1399e9
Content-Type: text/html; charset=ISO-8859-1

<p><br>
On May 2, 2012 4:13 PM, &quot;Gary E. Miller&quot; &lt;<a href="mailto:gem@rellim.com">gem@rellim.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Yo tz!<br>
&gt;<br>
&gt; On Wed, 2 May 2012 07:09:09 -0400<br>
&gt; tz &lt;<a href="mailto:tz2026@gmail.com">tz2026@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; SkyTraq has a different version of the 638 (not just different<br>
&gt; &gt; firmware) that emits corrections to the pps edge to go to 10nS, and<br>
&gt; &gt; after a lock it will work down to 1 satellite and maintain accurate<br>
&gt; &gt; pps.<br>
&gt;<br>
&gt; Got a model #?</p>
<p>Venus638LPx-T</p>
<p><a href="http://www.skytraq.com.tw/products/Venus638LPx-T_PB_v2.pdf">http://www.skytraq.com.tw/products/Venus638LPx-T_PB_v2.pdf</a></p>
<p>They have an evk that goes to a serial usb but has allmthe pins broken out, and maybe they have a firmware sdk - I have it for the more common version.<br>
</p>

--f46d04478a314b8f7504bf1399e9--


From MAILER-DAEMON Wed May 02 16:42:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPgNz-00010d-Li
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 16:42:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37978)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SPgNw-00010I-Ag
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:42:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SPgNu-0001pb-EN
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:42:51 -0400
Received: from liara.ita.chalmers.se ([129.16.226.167]:22357)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SPgNu-0001pO-7Z
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 16:42:50 -0400
Received: from bridge1.fy.chalmers.se (129.16.110.161) by smtp.chalmers.se
	(129.16.10.240) with Microsoft SMTP Server (TLS) id 14.1.355.2;
	Wed, 2 May 2012 22:42:47 +0200
Date: Wed, 2 May 2012 22:42:42 +0200
From: =?ISO-8859-15?Q?H=E5kan_Johansson?= <f96hajo@chalmers.se>
X-X-Sender: htj@bridge1.fy.chalmers.se
To: Dave Taht <dave.taht@gmail.com>
In-Reply-To: <CAA93jw5R4Kh+9O0Hu_6hm8joBn5w5zEZTFHC8FQuXb9gAnkLyg@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1205022239310.77657@bridge1.fy.chalmers.se>
References: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
	<37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
	<20120502125343.57567a04.gem@rellim.com>
	<CAGHP0pL0CxuKiDU3CfzBK7iwDw8M9B2F7HbrogUResRzob7MEQ@mail.gmail.com>
	<CAA93jw5R4Kh+9O0Hu_6hm8joBn5w5zEZTFHC8FQuXb9gAnkLyg@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="276930926-110339616-1335991367=:77657"
X-Originating-IP: [129.16.110.161]
X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+,
	tstamp-)
X-Received-From: 129.16.226.167
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 20:42:54 -0000

--276930926-110339616-1335991367=:77657
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 8BIT


On Wed, 2 May 2012, Dave Taht wrote:

> the ublox 6 has a special mode for single sat operations.

Also the oncore has this mode.  I do not remember if the patches bypass 
the 'require-2d-fix to allow PPS timing' when the oncore device reported 
time as collected in this mode got into gpsd.  I'd need to get my 
equipment running again...

Cheers,
Håkan

> On Wed, May 2, 2012 at 1:07 PM, Chris Kuethe <chris.kuethe@gmail.com> wrote:
>> On Wed, May 2, 2012 at 12:53 PM, Gary E. Miller <gem@rellim.com> wrote:
>>> On Wed, 2 May 2012 07:11:07 -0500 Jim Thompson <jim@netgate.com> wrote:
>>>> tl;dr: One bird won't do.
>>>
>>> And in fact gpsd knows this and refuses to use the time until several
>>> 2D fixes have been sent from the GPS.  That is per the Garmin
>>> recommendation.
>>
>> I should probably test gpsd's opinion on this.
>>
>> I have a few timing receivers that will, after running a site survey,
>> operate with only a single PRN in track. I believe the NMEA output
>> claims it's operating in 3D mode, and there's some status bit in the
>> binary protocol to say "well, actually it's in fixed-position timing
>> mode"
>>
>> --
>> GDB has a 'break' feature; why doesn't it have 'fix' too?
>>
>
>
>
> -- 
> Dave Täht
> SKYPE: davetaht
> US Tel: 1-239-829-5608
> http://www.bufferbloat.net
>
>
--276930926-110339616-1335991367=:77657--


From MAILER-DAEMON Wed May 02 17:19:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPgxb-0007Zo-Ez
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 17:19:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34228)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SPgxY-0007Z0-Fs
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:19:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SPgxW-00006m-Gc
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:19:40 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:55886)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SPgxW-00006b-9H
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:19:38 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 9EAE180003B; 
	Wed,  2 May 2012 14:19:35 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Wed,
	02 May 2012 13:13:10 PDT." <20120502131310.7dd7f799.gem@rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 02 May 2012 14:19:35 -0700
Message-Id: <20120502211935.9EAE180003B@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org,
	tz <tz2026@gmail.com>
Subject: Re: [gpsd-dev] [Thumbgps-devel] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 21:19:41 -0000


gem@rellim.com said:
> Looking for that check in the gpsd code, I do not see it in the PPS path or
> in the NMEA path.  I wonder when that disappeared?  That may explain some
> things...  I'll go add that back in now. 

I think there is another piece of fine print in that area.  I'm not sure 
where I saw it, probably one of the Garmin docs.

The idea is that you can't trust the first few seconds of data when it 
switches from not-enough satellites to enough.  I've seen it give bogus 
position (way off) marked as valid.  I think they all happened right after 
recovering from not-enough-satellites.

I'll scan log files if anybody wants examples.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Wed May 02 17:24:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPh2Q-0000Dc-Mv
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 17:24:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59983)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPh2O-0000DW-6i
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:24:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPh2M-0001r0-Cm
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:24:39 -0400
Received: from catbert.rellim.com ([204.17.205.1]:52703)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SPh2L-0001qs-RY
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:24:38 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q42LOUXL001685
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 2 May 2012 14:24:30 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q42LOUXL001685
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1335993871; bh=3xgWpShX9ae1VJxhNq4UCWhHpw6f9h01xsCLD8W5Egg=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=g1BhF7QsDcHz+lsJdhZY1O//0+91i9qXSWvYbAdSUeQGPQ07WeUe0RXrC0PL2+pET
	x4zUO3dH5nkZl0lBb37aQ==
Date: Wed, 2 May 2012 14:24:26 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: =?ISO-8859-1?B?SOVrYW4=?= Johansson <f96hajo@chalmers.se>
Message-ID: <20120502142426.17823833.gem@rellim.com>
In-Reply-To: <alpine.DEB.2.00.1205022239310.77657@bridge1.fy.chalmers.se>
References: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
	<37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
	<20120502125343.57567a04.gem@rellim.com>
	<CAGHP0pL0CxuKiDU3CfzBK7iwDw8M9B2F7HbrogUResRzob7MEQ@mail.gmail.com>
	<CAA93jw5R4Kh+9O0Hu_6hm8joBn5w5zEZTFHC8FQuXb9gAnkLyg@mail.gmail.com>
	<alpine.DEB.2.00.1205022239310.77657@bridge1.fy.chalmers.se>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/J=YEjUHT5.Lw6R.ruWMB/Jv";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 21:24:41 -0000

--Sig_/J=YEjUHT5.Lw6R.ruWMB/Jv
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yo H=E5kan!

On Wed, 2 May 2012 22:42:42 +0200
H=E5kan Johansson <f96hajo@chalmers.se> wrote:

> > the ublox 6 has a special mode for single sat operations.
>=20
> Also the oncore has this mode.  I do not remember if the patches
> bypass the 'require-2d-fix to allow PPS timing' when the oncore
> device reported time as collected in this mode got into gpsd.  I'd
> need to get my equipment running again...

I looked a little deeper at the code. esr changed the code a while back
so that each driver needs to set PPSTIME_IS to mark that the PPS is good
by that drivers standards.  In spite of its name it also conditions
the sending of NMEA or binary time to ntp/chrony.

The garmin and NMEA 183 drivers set PPSTIME_IS after 4 consecutive 2D or=20
better fixes.

I see code in the uBlox driver to the handle single sat time case, but
it looks a little off to me.  When in time mode it sets 3D mode which=20
seems odd if time mode is single sat.

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

--Sig_/J=YEjUHT5.Lw6R.ruWMB/Jv
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+hpg0ACgkQBmnRqz71OvOtswCfZQGihoWlf3CdBsfzp4yV1yv5
Tc4AoKFUfbqXitQGakq9FfgzSOGEL4gG
=eNPr
-----END PGP SIGNATURE-----

--Sig_/J=YEjUHT5.Lw6R.ruWMB/Jv--


From MAILER-DAEMON Wed May 02 17:37:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPhEp-0004IK-3Y
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 17:37:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57149)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SPhEm-0004I5-Ll
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:37:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SPhEl-0006NH-33
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:37:28 -0400
Received: from mail-pz0-f46.google.com ([209.85.210.46]:60712)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SPhEk-0006N7-P3
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:37:27 -0400
Received: by dady13 with SMTP id y13so496434dad.5
	for <gpsd-dev@nongnu.org>; Wed, 02 May 2012 14:37:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=rPsLtMXIiiy16fqqvKlDf9DY14dwiUXgXIkVCPBrxA4=;
	b=kYKwZvLtzUYodXM2j+jJa4Z/nPrC8srmakOhhuFwNrPoBBg5fGerdZj1GK2ANTxBz0
	i9j3RzQIO2nKd2H2aX8fUsromrxv+CpQQUHnY4aFfUIZB1GozKgv7i1fyT6DggwAEenC
	3Tcl1RfxMtu3w+vWZCTKvGY8XUbzVSIYZYMDF2LwasghXYo87ZOsCJm+GhVMQyI+lbDQ
	E7giC1xiVzOWKP1fHgQqsLyzc4FkMv9Bxv936ZsJHASdyf3iKsE+uWMYZ67cHiRo6fMA
	kn39FYZOoIPPBrAV1vrnTvIT2pnamrHa9KAsrxem81sngBngTZ0hEp9ONKV+1LnY0oV3
	4KAQ==
Received: by 10.68.190.197 with SMTP id gs5mr1082885pbc.87.1335994644669; Wed,
	02 May 2012 14:37:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.50.226 with HTTP; Wed, 2 May 2012 14:37:04 -0700 (PDT)
In-Reply-To: <20120502142426.17823833.gem@rellim.com>
References: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
	<37ADE3CF-4D73-4211-921C-6B6D0FB2AAF3@netgate.com>
	<20120502125343.57567a04.gem@rellim.com>
	<CAGHP0pL0CxuKiDU3CfzBK7iwDw8M9B2F7HbrogUResRzob7MEQ@mail.gmail.com>
	<CAA93jw5R4Kh+9O0Hu_6hm8joBn5w5zEZTFHC8FQuXb9gAnkLyg@mail.gmail.com>
	<alpine.DEB.2.00.1205022239310.77657@bridge1.fy.chalmers.se>
	<20120502142426.17823833.gem@rellim.com>
From: Chris Kuethe <chris.kuethe@gmail.com>
Date: Wed, 2 May 2012 14:37:04 -0700
Message-ID: <CAGHP0p+OKfo0xbcwt7R95b3vFuoo356_HRRCVWWP68n6w0FL+g@mail.gmail.com>
To: "Gary E. Miller" <gem@rellim.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.210.46
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 21:37:29 -0000

On Wed, May 2, 2012 at 2:24 PM, Gary E. Miller <gem@rellim.com> wrote:
> I see code in the uBlox driver to the handle single sat time case, but
> it looks a little off to me. =A0When in time mode it sets 3D mode which
> seems odd if time mode is single sat.

Only a little odd. In timing mode you've effectively promised the
receiver that the antenna isn't going to be moving, and it knows what
its position is, so it only has one unknown to solve for. It seems
fair to for the receiver to say "assuming that i'm still at
-2690516.79m -4303200.43m +3850231.53m, the time must be ... now"

--=20
GDB has a 'break' feature; why doesn't it have 'fix' too?


From MAILER-DAEMON Wed May 02 17:43:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SPhKM-0004w6-3P
	for mharc-gpsd-dev@gnu.org; Wed, 02 May 2012 17:43:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34245)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPhKI-0004ot-LP
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:43:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPhKF-0008OB-4I
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:43:10 -0400
Received: from mail-yx0-f173.google.com ([209.85.213.173]:62943)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SPhKE-0008Nd-Tv
	for gpsd-dev@nongnu.org; Wed, 02 May 2012 17:43:07 -0400
Received: by yenr5 with SMTP id r5so1473537yen.4
	for <gpsd-dev@nongnu.org>; Wed, 02 May 2012 14:43:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=K81xjWkRgAbWN4VVtbL/Zf/sw6tL9SUBwcPlIiudgq4=;
	b=loLTVN9GgqpCjMuJkI0P7TcOI3xlq9JKqB9jZfkCxS9bTZboilSpsTk34C7o/CmF9S
	kMHiFIMVDqCt3NG8fWioINCFDyYfdIcLywflxttmosbz1pw59T/8y2fv+XG7ty3tZpZJ
	/ccmNzfpn3WDK5lC5zoc5S1nDfi/xqr1y4QNZTtuidgx3WFdnFWR3EgaE/X1Jjo2gomZ
	QkI14pj81zqv2BU2ZzUC8dMcJvoYq/gp4Ld8YhO+JI87Z4ELaYa8vphNlthPUH6oqt6C
	8u4gGN1iDCnarlzF0Tor1FmpTOQBIcS/J2RbeMJlIL1oedswATpCEGoXJ+/gA1Z8t5Xg
	GTGQ==
MIME-Version: 1.0
Received: by 10.60.31.67 with SMTP id y3mr40941794oeh.41.1335994982529; Wed,
	02 May 2012 14:43:02 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Wed, 2 May 2012 14:43:02 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Wed, 2 May 2012 14:43:02 -0700 (PDT)
In-Reply-To: <20120502211935.9EAE180003B@ip-64-139-1-69.sjc.megapath.net>
References: <gem@rellim.com> <20120502131310.7dd7f799.gem@rellim.com>
	<20120502211935.9EAE180003B@ip-64-139-1-69.sjc.megapath.net>
Date: Wed, 2 May 2012 17:43:02 -0400
Message-ID: <CAFv7Oijh5Kpi9RxJ0kQaY1eyMmz-FdTFhBoMkBebsV8ysQcNTA@mail.gmail.com>
From: tz <tz2026@gmail.com>
To: Hal Murray <hmurray@megapathdsl.net>
Content-Type: multipart/alternative; boundary=e89a8f647b715afb7a04bf149212
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.213.173
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2012 21:43:12 -0000

--e89a8f647b715afb7a04bf149212
Content-Type: text/plain; charset=ISO-8859-1

Depending on the gps, there can be a dead-reckoning mode that will
extrapolate things for some time (often settable).  The pps may or may not
follow.
On May 2, 2012 5:19 PM, "Hal Murray" <hmurray@megapathdsl.net> wrote:

>
> gem@rellim.com said:
> > Looking for that check in the gpsd code, I do not see it in the PPS path
> or
> > in the NMEA path.  I wonder when that disappeared?  That may explain some
> > things...  I'll go add that back in now.
>
> I think there is another piece of fine print in that area.  I'm not sure
> where I saw it, probably one of the Garmin docs.
>
> The idea is that you can't trust the first few seconds of data when it
> switches from not-enough satellites to enough.  I've seen it give bogus
> position (way off) marked as valid.  I think they all happened right after
> recovering from not-enough-satellites.
>
> I'll scan log files if anybody wants examples.
>
>
> --
> These are my opinions, not necessarily my employer's.  I hate spam.
>
>
>
>

--e89a8f647b715afb7a04bf149212
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>Depending on the gps, there can be a dead-reckoning mode that will extra=
polate things for some time (often settable).=A0 The pps may or may not fol=
low.</p>
<div class=3D"gmail_quote">On May 2, 2012 5:19 PM, &quot;Hal Murray&quot; &=
lt;<a href=3D"mailto:hmurray@megapathdsl.net">hmurray@megapathdsl.net</a>&g=
t; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href=3D"mailto:gem@rellim.com">gem@rellim.com</a> said:<br>
&gt; Looking for that check in the gpsd code, I do not see it in the PPS pa=
th or<br>
&gt; in the NMEA path. =A0I wonder when that disappeared? =A0That may expla=
in some<br>
&gt; things... =A0I&#39;ll go add that back in now.<br>
<br>
I think there is another piece of fine print in that area. =A0I&#39;m not s=
ure<br>
where I saw it, probably one of the Garmin docs.<br>
<br>
The idea is that you can&#39;t trust the first few seconds of data when it<=
br>
switches from not-enough satellites to enough. =A0I&#39;ve seen it give bog=
us<br>
position (way off) marked as valid. =A0I think they all happened right afte=
r<br>
recovering from not-enough-satellites.<br>
<br>
I&#39;ll scan log files if anybody wants examples.<br>
<br>
<br>
--<br>
These are my opinions, not necessarily my employer&#39;s. =A0I hate spam.<b=
r>
<br>
<br>
<br>
</blockquote></div>

--e89a8f647b715afb7a04bf149212--


From MAILER-DAEMON Thu May 03 16:38:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQ2n2-0000z2-8k
	for mharc-gpsd-dev@gnu.org; Thu, 03 May 2012 16:38:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53672)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ2n0-0000yw-Hp
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 16:38:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ2my-000622-Lq
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 16:38:14 -0400
Received: from catbert.rellim.com ([204.17.205.1]:45393)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ2my-00060E-3N
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 16:38:12 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q43KbqhJ025095
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 3 May 2012 13:37:52 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q43KbqhJ025095
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336077472; bh=5ldI/FZ2/2dk5vFVO4KeEud9UQ9cqU81mm/ZvEpIido=;
	h=Date:From:To:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=gBoryCVLpN1HZB/VHsvRgz4+QMOUL30YFgePAGsxu1loMCj6aVMO5O0/SKye5nujc
	BVc+YzZRtOK73oYIMBMrg==
Date: Thu, 3 May 2012 13:37:48 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>, gpsd dev <gpsd-dev@nongnu.org>
Message-ID: <20120503133748.1cc3cf07.gem@rellim.com>
In-Reply-To: <20120503072728.2F02180006F@ip-64-139-1-69.sjc.megapath.net>
References: <20120502151935.05fa17ba.gem@rellim.com>
	<20120503072728.2F02180006F@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/H55.1BeX3yHGwaS5OF3+7Xm";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 May 2012 20:38:15 -0000

--Sig_/H55.1BeX3yHGwaS5OF3+7Xm
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Thu, 03 May 2012 00:27:28 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

>=20
> gem@rellim.com said:
> > All packet flags are cleared at the start of each packet.  Then
> > PPSTIME_IS is set if the packet indicates a valid time.  Since it
> > is different in every driver you should check your fave driver if
> > it is not garmin or nmea.=20
>=20
> Maybe it's a good thing I asked.  I couldn't find the code I was
> looking for.
>=20
> driver_nmea0183.c says:
>         if (session->fixcnt > 3)
>             retval |=3D PPSTIME_IS;
> That looks like what you described.
>=20
> I couldn't find the place that clears fixcnt when it gets a not-valid=20
> sentence.
> I did a grep fixcnt *.c
> Is there some other place I should have looked?  (I don't know my way
> around gpsd yet.)
>=20
> There is another potential worm in this can.  GPZDA sentences don't
> have a not-valid field like most of the other sentences with time in
> them.  (I'm more interested in time.  I don't pay much attention to
> sentences that don't have time.)  So getting a GPZDA sentence that
> looks OK doesn't count as valid.
>=20
>=20
>=20




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

--Sig_/H55.1BeX3yHGwaS5OF3+7Xm
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+i7J8ACgkQBmnRqz71OvPlFwCaA37BAKqu/lcnstLGviFWkKJu
nAcAoMXxA9KKkSK//Krpb6OFnvmHaFr1
=sEKT
-----END PGP SIGNATURE-----

--Sig_/H55.1BeX3yHGwaS5OF3+7Xm--


From MAILER-DAEMON Thu May 03 16:43:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQ2rp-0002MJ-QV
	for mharc-gpsd-dev@gnu.org; Thu, 03 May 2012 16:43:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34829)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ2rm-0002Lt-WE
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 16:43:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ2rk-0008UH-OU
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 16:43:10 -0400
Received: from catbert.rellim.com ([204.17.205.1]:36633)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ2rk-0008Tu-7F
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 16:43:08 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q43Kh2hg025412
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 3 May 2012 13:43:02 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q43Kh2hg025412
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336077782; bh=b+9YolXvMEtvQHpHMwscXyVl/3SrGYsPKMGRHlinjxM=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=dZW0fj46jZv7p94Z4elZwFj+EZy9l7PSVHYJmmopiTgZbPF5RZPq/qQXqlQUcIdAW
	GY7sEMpnSXnbjjPd/DQzA==
Date: Thu, 3 May 2012 13:42:58 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120503134258.6430fdd0.gem@rellim.com>
In-Reply-To: <20120503133748.1cc3cf07.gem@rellim.com>
References: <20120502151935.05fa17ba.gem@rellim.com>
	<20120503072728.2F02180006F@ip-64-139-1-69.sjc.megapath.net>
	<20120503133748.1cc3cf07.gem@rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/7GINXIRFl0XLWiFKYZLAWKt";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd dev <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 May 2012 20:43:12 -0000

--Sig_/7GINXIRFl0XLWiFKYZLAWKt
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

I'm adding to the gpsd-dev list as this is of interest to many.

On Thu, 03 May 2012 00:27:28 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

>=20
> gem@rellim.com said:
> > All packet flags are cleared at the start of each packet.  Then
> > PPSTIME_IS is set if the packet indicates a valid time.  Since it
> > is different in every driver you should check your fave driver if
> > it is not garmin or nmea.=20
>=20
> Maybe it's a good thing I asked.  I couldn't find the code I was
> looking for.
>=20
> driver_nmea0183.c says:
>         if (session->fixcnt > 3)
>             retval |=3D PPSTIME_IS;
> That looks like what you described.
>=20
> I couldn't find the place that clears fixcnt when it gets a
> not-valid sentence.
> I did a grep fixcnt *.c
> Is there some other place I should have looked?  (I don't know my
> way around gpsd yet.)

Interesting, I could not find a clear fixcnt either.  So I added one
to git head.  I expect some corner case failures will appear as a result.

> There is another potential worm in this can.  GPZDA sentences don't
> have a not-valid field like most of the other sentences with time in
> them.  (I'm more interested in time.  I don't pay much attention to
> sentences that don't have time.)  So getting a GPZDA sentence that
> looks OK doesn't count as valid.

GPZDA does not set PPSTIME_IS, so is not part of the ntp calculations.

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

--Sig_/7GINXIRFl0XLWiFKYZLAWKt
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+i7dUACgkQBmnRqz71OvNHOwCePLZc9oigElXTzsxJROQ1xwXG
PJkAn1yNFpVZrs95ywKCc9yBdc1JV0p4
=pmVg
-----END PGP SIGNATURE-----

--Sig_/7GINXIRFl0XLWiFKYZLAWKt--


From MAILER-DAEMON Thu May 03 17:14:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQ3Lr-0000zS-8C
	for mharc-gpsd-dev@gnu.org; Thu, 03 May 2012 17:14:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55567)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQ3Lo-0000zM-TY
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:14:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQ3Ln-0004pm-6u
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:14:12 -0400
Received: from smtp2.mail.fcom.ch ([212.60.46.171]:58058)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQ3Ln-0004ls-0P
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:14:11 -0400
Received: from smtp2.mail.fcom.ch (localhost [127.0.0.1])
	by smtp2 (Postfix) with ESMTP id 46A942D4C1
	for <gpsd-dev@nongnu.org>; Thu,  3 May 2012 23:14:04 +0200 (CEST)
Received: from drbeat.li (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by smtp2 (Postfix) with ESMTPS id 266EA2D4BA
	for <gpsd-dev@nongnu.org>; Thu,  3 May 2012 23:14:03 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id 996231808E; Thu,  3 May 2012 23:14:03 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Thu,  3 May 2012 23:14:03 +0200
Message-Id: <1336079643-18427-1-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.10
X-AV-Checked: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.60.46.171
Subject: [gpsd-dev] [PATCH] Fix a compiler warning when compiling with clang.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 May 2012 21:14:14 -0000

I tried to compile GPSd with clang from the LLVM project.

This was the command line: CC=clang scons nmea2000=false

I had to exclude the NMEA2000 driver because <time.h> on Ubuntu 12.04
(Precise Pangolin) doesn't define clock_gettime().

This was the only warning:

clang -o gpxlogger.o -c -O2 gpxlogger.c
gpxlogger.c:338:5: warning: expression result unused [-Wunused-value]
    (int)gps_mainloop(&gpsdata, 5000000, conditionally_log_fix);
    ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Everything else compiled fine. "CC=clang scons check" passes.
---
 gpxlogger.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpxlogger.c b/gpxlogger.c
index 6f4ae4c..eff63ef 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -335,7 +335,7 @@ int main(int argc, char **argv)
     (void)gps_stream(&gpsdata, flags, source.device);
 
     print_gpx_header();
-    (int)gps_mainloop(&gpsdata, 5000000, conditionally_log_fix);
+    (void)gps_mainloop(&gpsdata, 5000000, conditionally_log_fix);
     print_gpx_footer();
     (void)gps_close(&gpsdata);
 
-- 
1.7.10


From MAILER-DAEMON Thu May 03 17:28:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQ3Zu-0002FZ-Nl
	for mharc-gpsd-dev@gnu.org; Thu, 03 May 2012 17:28:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33762)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ3Zs-0002EH-4P
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:28:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ3Zq-0001mP-2c
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:28:43 -0400
Received: from catbert.rellim.com ([204.17.205.1]:50945)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ3Zp-0001iD-H8
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:28:41 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q43LSWiE027841
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 3 May 2012 14:28:32 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q43LSWiE027841
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336080513; bh=7DebL8KubGC77k44ZPGrRYcbZl3ZiIFvkkDfP+7oMIk=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=OBIEPK8+pCxSJK8D2gWbdollpbkNcA5r/1L45mlO3jgyelrALBP/lryDt/Kw8AiOT
	jurEFX8FX6BFG6Ais+UIw==
Date: Thu, 3 May 2012 14:28:28 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120503142828.2064aa4b.gem@rellim.com>
In-Reply-To: <1336079643-18427-1-git-send-email-bbolli@ewanet.ch>
References: <1336079643-18427-1-git-send-email-bbolli@ewanet.ch>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/Phsro_pHZT0mazL5sm+sr.u";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix a compiler warning when compiling with
 clang.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 May 2012 21:28:45 -0000

--Sig_/Phsro_pHZT0mazL5sm+sr.u
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Beat!

On Thu,  3 May 2012 23:14:03 +0200
Beat Bolli <bbolli@ewanet.ch> wrote:

> I tried to compile GPSd with clang from the LLVM project.

Cool.

> I had to exclude the NMEA2000 driver because <time.h> on Ubuntu 12.04
> (Precise Pangolin) doesn't define clock_gettime().

Can you tell us where clock_gettime() is defined?
>
> This was the only warning:
>=20
> clang -o gpxlogger.o -c -O2 gpxlogger.c
> gpxlogger.c:338:5: warning: expression result unused [-Wunused-value]
>     (int)gps_mainloop(&gpsdata, 5000000, conditionally_log_fix);
>     ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Good catch.  Fix pushed to git head.


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

--Sig_/Phsro_pHZT0mazL5sm+sr.u
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+i+H8ACgkQBmnRqz71OvMWYgCgyRTuTTZHqdq22PlGDULjEyE+
jWEAnRQdmekO6cfzx5wYMw7m1c1eqvmi
=COaf
-----END PGP SIGNATURE-----

--Sig_/Phsro_pHZT0mazL5sm+sr.u--


From MAILER-DAEMON Thu May 03 17:47:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQ3sP-0003Ts-CI
	for mharc-gpsd-dev@gnu.org; Thu, 03 May 2012 17:47:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44490)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQ3sM-0003Tm-Sr
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:47:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQ3sL-0000ut-2X
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:47:50 -0400
Received: from mx1.2b3w.ch ([92.42.186.250]:33245)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQ3sK-0000up-SS
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:47:48 -0400
Received: from mx1.2b3w.ch (localhost [127.0.0.1])
	by mx1.2b3w.ch (Postfix) with ESMTP id C81B2C344D;
	Thu,  3 May 2012 23:47:45 +0200 (CEST)
Received: from mcmini.bolli (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by mx1.2b3w.ch (Postfix) with ESMTPSA id A74A3C344A;
	Thu,  3 May 2012 23:47:45 +0200 (CEST)
Message-ID: <4FA2FD01.1060505@ewanet.ch>
Date: Thu, 03 May 2012 23:47:45 +0200
From: Beat Bolli <bbolli@ewanet.ch>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <1336079643-18427-1-git-send-email-bbolli@ewanet.ch>
	<20120503142828.2064aa4b.gem@rellim.com>
In-Reply-To: <20120503142828.2064aa4b.gem@rellim.com>
X-Enigmail-Version: 1.4.1
OpenPGP: id=506A903A;
	url=http://drbeat.li/pubkey.asc
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig79B51D06E355784C842E23E5"
X-Virus-Scanned: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 92.42.186.250
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix a compiler warning when compiling with
 clang.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 May 2012 21:47:52 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig79B51D06E355784C842E23E5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Gary

On 03.05.12 23:28, Gary E. Miller wrote:
> Yo Beat!
>=20
> On Thu,  3 May 2012 23:14:03 +0200
> Beat Bolli <bbolli@ewanet.ch> wrote:
>=20
>> I tried to compile GPSd with clang from the LLVM project.
>=20
> Cool.
>=20
>> I had to exclude the NMEA2000 driver because <time.h> on Ubuntu 12.04
>> (Precise Pangolin) doesn't define clock_gettime().
>=20
> Can you tell us where clock_gettime() is defined?

Please forget what I wrote. One more "scons -c; CC=3Dclang scons" cycle
seems to have fixed things.

Beat
--=20
mail: echo '<bNbolOli@ewaSPnetAM.ch>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F  D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E

"It takes love over gold, and mind over matter" -- Dire Straits


--------------enig79B51D06E355784C842E23E5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+i/QEACgkQMEuTz1BqkDqx2ACdGh+GzFF061GuDxA2pD52d093
2UEAoOYIIGnfgb0r7wRzeDc6AXNKnpCY
=3RGL
-----END PGP SIGNATURE-----

--------------enig79B51D06E355784C842E23E5--


From MAILER-DAEMON Thu May 03 17:52:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQ3xJ-0003iy-3R
	for mharc-gpsd-dev@gnu.org; Thu, 03 May 2012 17:52:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38715)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SQ3xF-0003iq-OK
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:52:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SQ3xD-0002dm-T4
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:52:53 -0400
Received: from smtp.gentoo.org ([140.211.166.183]:60838)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SQ3xD-0002dd-Mt
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:52:51 -0400
Received: from vapier.localnet (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id B91CE1B4002;
	Thu,  3 May 2012 21:52:48 +0000 (UTC)
From: Mike Frysinger <vapier@gentoo.org>
Organization: wh0rd.org
To: gpsd-dev@nongnu.org
Date: Thu, 3 May 2012 17:53:40 -0400
User-Agent: KMail/1.13.7 (Linux/3.3.4; KDE/4.6.5; x86_64; ; )
References: <1336079643-18427-1-git-send-email-bbolli@ewanet.ch>
	<20120503142828.2064aa4b.gem@rellim.com>
	<4FA2FD01.1060505@ewanet.ch>
In-Reply-To: <4FA2FD01.1060505@ewanet.ch>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart1388702.m9DLqYYjz8";
	protocol="application/pgp-signature"; micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <201205031753.42106.vapier@gentoo.org>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 140.211.166.183
Subject: Re: [gpsd-dev] [PATCH] Fix a compiler warning when compiling with
	clang.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 May 2012 21:52:55 -0000

--nextPart1388702.m9DLqYYjz8
Content-Type: Text/Plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable

On Thursday 03 May 2012 17:47:45 Beat Bolli wrote:
> On 03.05.12 23:28, Gary E. Miller wrote:
> > On Thu,  3 May 2012 23:14:03 +0200 Beat Bolli wrote:
> >> I tried to compile GPSd with clang from the LLVM project.
> >=20
> > Cool.
> >=20
> >> I had to exclude the NMEA2000 driver because <time.h> on Ubuntu 12.04
> >> (Precise Pangolin) doesn't define clock_gettime().
> >=20
> > Can you tell us where clock_gettime() is defined?
>=20
> Please forget what I wrote. One more "scons -c; CC=3Dclang scons" cycle
> seems to have fixed things.

good because that's where it's supposed to be defined [1], and where it's=20
defined for me on Gentoo/Ubuntu systems ;)
=2Dmike

[1]=20
http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html

--nextPart1388702.m9DLqYYjz8
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQIcBAABAgAGBQJPov5lAAoJEEFjO5/oN/WBlKQQAMwtvaJs+hs0Kuqy4sH8V7BZ
D1Js+bKXW5LeSwMMr/tEZcQIJGsMUaetnuD2Jsj2pWJZR8eLNoUe1O4ufHUYfnyz
1KqRkUbBV9HGTEYvmDJRyScJYtTLD4Y7LXqrRJ4I0hRdX1CDT8nmCFNIGsGNLXD4
Qu+KNFE8KE2KZ+QAC0rWMyBGBin7E7vkCaQEoAEUUhrvazOZE/E68zLfjhPhPwWc
Xk/DPwbI3g6UZvxdjJ8/AgSzik7T4rsNOb89Nu8diWm+PArXjA2TaxdVPIfcSUyb
3i7S6DmXlBDK5FzDR63j4/2WuPsf8cSNSLUXFdm8d1nmnY4Gk7PR9DCDudTN8Lja
9Zd7hp5iSINm61rRTzsGlkpUkGvWly5fqZFT5lRRxAoayUKF19BpAHCgTVwAiIAy
d1nR38Qq5WG8SJXceMpByR4TPvwfeFREztcpi3hIqfTx51/byEIFwJEz8LZTqj/w
XDqH3Ov8OQEmlb3N6pxj8tdKAFO5dgtdObAMmLA43r7ylP8iiYFB0zADmuV7heuY
KhNemwsnKcS1hWFy6l9tTpCk44UJ8Cx6GxvCLqMmLVs3Axyobt2AcDU/eYXL8zsd
VOpzUbOctF8nMvIPoXW6hQm/CPd0bzTACusjHlRDyHZBEfNoxvyQSglIKL0ODCHo
sttb7njjLCErcCNFQ1ik
=V7Sq
-----END PGP SIGNATURE-----

--nextPart1388702.m9DLqYYjz8--


From MAILER-DAEMON Thu May 03 17:59:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQ441-0004Me-Pv
	for mharc-gpsd-dev@gnu.org; Thu, 03 May 2012 17:59:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53131)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ43z-0004Ls-5w
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:59:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ43x-0005zl-I2
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:59:50 -0400
Received: from catbert.rellim.com ([204.17.205.1]:38795)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQ43x-0005w1-0h
	for gpsd-dev@nongnu.org; Thu, 03 May 2012 17:59:49 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q43Lxe05029131
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 3 May 2012 14:59:40 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q43Lxe05029131
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336082381; bh=dJYj5q1VydLHONSpNGnqBOlS3aM3HcmoK7F+f3w80yM=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=PWFQ8h941MiQwaL+LF9rOdrZvtmINbRlaRwl3Hfbv0AbfqVtgG7heSsELDcrknZ6i
	yruaDZwY2/2hlD0omYbOg==
Date: Thu, 3 May 2012 14:59:37 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120503145937.27cdabfe.gem@rellim.com>
In-Reply-To: <4FA2FD01.1060505@ewanet.ch>
References: <1336079643-18427-1-git-send-email-bbolli@ewanet.ch>
	<20120503142828.2064aa4b.gem@rellim.com>
	<4FA2FD01.1060505@ewanet.ch>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/2hOxm0hLTLgcinkX.Zin3=C";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix a compiler warning when compiling with
 clang.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 03 May 2012 21:59:52 -0000

--Sig_/2hOxm0hLTLgcinkX.Zin3=C
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Beat!

On Thu, 03 May 2012 23:47:45 +0200
Beat Bolli <bbolli@ewanet.ch> wrote:

> Please forget what I wrote. One more "scons -c; CC=3Dclang scons" cycle
> seems to have fixed things.

I hate it when that happens.  here is what I do to prevent that:

scons --clean && scons --config=3Dforce && scons install

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

--Sig_/2hOxm0hLTLgcinkX.Zin3=C
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+i/8sACgkQBmnRqz71OvOg7gCgz/KEDyeLnM13BgJOalETcKWJ
PHwAn0P58gI+tR/QcaJ+IdRCRB3DNx01
=N5On
-----END PGP SIGNATURE-----

--Sig_/2hOxm0hLTLgcinkX.Zin3=C--


From MAILER-DAEMON Fri May 04 15:39:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQOLg-0007WY-O5
	for mharc-gpsd-dev@gnu.org; Fri, 04 May 2012 15:39:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56856)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SQOLe-0007WQ-FZ
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 15:39:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SQOLc-0005Lk-4L
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 15:39:26 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:45695)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SQOLb-0005LP-Va
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 15:39:24 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 91D49340402
	for <gpsd-dev@nongnu.org>; Fri,  4 May 2012 20:39:21 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id gbcZYfQhagsn for <gpsd-dev@nongnu.org>;
	Fri,  4 May 2012 20:39:21 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 59B5A3403CB
	for <gpsd-dev@nongnu.org>; Fri,  4 May 2012 20:39:21 +0100 (BST)
Message-ID: <4FA43068.2080606@wildgooses.com>
Date: Fri, 04 May 2012 20:39:20 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120501151435.4a6a5373.gem@rellim.com>
In-Reply-To: <20120501151435.4a6a5373.gem@rellim.com>
X-TagToolbar-Keys: D20120504203920785
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 04 May 2012 19:39:28 -0000

On 01/05/2012 23:14, Gary E. Miller wrote:
> 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.
>

Just curious but is the goal: accuracy, cheapness, off-the-shelf or 
something else?

I admit I haven't tried it, but I sell loads of PL2303 adaptors that 
just happen to dismantle very easily.  I don't see any theoretical 
reason why you couldn't easily modify one to either put 5V power on a 
serial pin, or just drill a hole in the case and poke wires directly 
inside.  This would allow you to grab say an old Garmin 18 off ebay and 
use that?

I got part way through the implementation of using the GPIO inputs as 
PPS on the PC Engines Alix boards.  The goal was to enable a fairly 
cheap machine that could connect pretty much directly to something like 
a Garmin 18 (or the rather nice looking Skytraq modules, some of which 
seem to offer seriously accurate PPS options) and give you an 
inexpensive Stratum 1 box. (PC Engines boards are circa $110 for 
basically an entire 500Mhz i586 including ram, processor, USB, mini-PCI 
and up to 3 network ports)

So, just trying to understand if the goal is to be more off the shelf 
than a DIY prolific bodge?  Or if you want an entire Stratum 1 box with 
microsecond accuracy, then perhaps the Alix route gets you the finished 
product with 2W consumption for decently low money?

Cheers

Ed W


From MAILER-DAEMON Fri May 04 19:05:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQRYu-0002v0-BA
	for mharc-gpsd-dev@gnu.org; Fri, 04 May 2012 19:05:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33923)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQRYq-0002ut-MC
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 19:05:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQRYo-0002qZ-4O
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 19:05:16 -0400
Received: from catbert.rellim.com ([204.17.205.1]:38996)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQRYn-0002ep-Jt
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 19:05:14 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q44N4whp019436
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Fri, 4 May 2012 16:04:59 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q44N4whp019436
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336172699; bh=CvN/0Tv4VpHpPTh8QY+VUYU5BX95+a82NkUQWplCd7s=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=tRV4rh8v+FjOXD3FMcsSIcp7RuUt3zARj58HlwBhWdOxipLPTw4dt///O1w4+mTts
	oe6bcH9oXhYFm8vQKxhzA==
Date: Fri, 4 May 2012 16:04:55 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120504160455.4514ac26.gem@rellim.com>
In-Reply-To: <4FA43068.2080606@wildgooses.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/+O61H9flBLU7DAd_KtyqCr1";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 04 May 2012 23:05:19 -0000

--Sig_/+O61H9flBLU7DAd_KtyqCr1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Fri, 04 May 2012 20:39:20 +0100
Ed W <lists@wildgooses.com> wrote:

> Just curious but is the goal: accuracy, cheapness, off-the-shelf or=20
> something else?

Eric has been involved in the 'thumbgps' project.  A component part of
the 'bufferbloat' project.

The goal is to setup about 100 home routers with accurate (1 milliSec)
local time sources to be used as data collecting routers to understand
bufferbloat better.

To meet that goal they want to source about 100 inexpensive USB/GPS for
the local time source.  Having them all identical should reduce any
timing errors introduced by subtle differences in models.  These are all
software guys and previous efforts to get them to solder a few wires
have been a failure.  Thus the desire to source a commercial solution.

Navisys has sold us samples of a proposed GR-601W which seem to be
suitable.  Unit cost should be under $40 and time accuracy better than 1
milliSec.  Unless we find a show stopper bug, or a better solution, real
soon, the project will likely go with the GR-601W soon.

More info on the main project is here:
	http://www.bufferbloat.net/projects/cerowrt/roadmap

More on the thumbgps project ehre:
	https://lists.bufferbloat.net/pipermail/thumbgps-devel/

> I admit I haven't tried it, but I sell loads of PL2303 adaptors that=20
> just happen to dismantle very easily.  I don't see any theoretical=20
> reason why you couldn't easily modify one to either put 5V power on a=20
> serial pin, or just drill a hole in the case and poke wires directly=20
> inside.  This would allow you to grab say an old Garmin 18 off ebay
> and use that?

Ugh.  The Garmin 18s are unsuitable for indoor use.  The uBlox6 in the
GR-601W works well in my basement.

> I got part way through the implementation of using the GPIO inputs as=20
> PPS on the PC Engines Alix boards.  The goal was to enable a fairly=20
> cheap machine that could connect pretty much directly to something
> like a Garmin 18 (or the rather nice looking Skytraq modules, some of
> which seem to offer seriously accurate PPS options) and give you an=20
> inexpensive Stratum 1 box. (PC Engines boards are circa $110 for=20
> basically an entire 500Mhz i586 including ram, processor, USB,
> mini-PCI and up to 3 network ports)

That would be fairly similar to what the bufferbloat project is
looking to do, except they want it also to work as a standard
router.

> So, just trying to understand if the goal is to be more off the shelf=20
> than a DIY prolific bodge?  Or if you want an entire Stratum 1 box
> with microsecond accuracy, then perhaps the Alix route gets you the
> finished product with 2W consumption for decently low money?

Off the shelf, repeatable, interchangeable and simple enough for
programmers to use is the requirement for thumbgps.

That said, I would personnally love to find a USB 2.0 equivent to the
USB1.1 PL2303.  Doing so would increase the time resolution from about 1
milliSec to 125 microSec.  An 8x improvement.  Right now the GR-601W is
three orders of magnitude worse than local PPS over serial and 16 times
worse than being on GigE adjacent to an ntpd server with serial PPS.
Getting to 125 microSec would make the USB/GPS only 2x worse than being
adjacent to a serial PPS.

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

--Sig_/+O61H9flBLU7DAd_KtyqCr1
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+kYJkACgkQBmnRqz71OvPqHwCeLZUrswMdZiUk/+qw86wSdgWr
Y34AnRJyS/KANTQQy7oHqsWiwvllUQzj
=Jow3
-----END PGP SIGNATURE-----

--Sig_/+O61H9flBLU7DAd_KtyqCr1--


From MAILER-DAEMON Fri May 04 22:04:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQUMR-0003df-7o
	for mharc-gpsd-dev@gnu.org; Fri, 04 May 2012 22:04:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42947)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SQUMN-0003dS-Tq
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 22:04:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SQUMM-0003Aw-5Q
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 22:04:35 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:51944)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SQUML-00039D-U6
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 22:04:34 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id EB424800073; 
	Fri,  4 May 2012 19:04:29 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Fri,
	04 May 2012 16:04:55 PDT." <20120504160455.4514ac26.gem@rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 04 May 2012 19:04:29 -0700
Message-Id: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 May 2012 02:04:37 -0000


gem@rellim.com said:
> Navisys has sold us samples of a proposed GR-601W which seem to be suitable.
>  Unit cost should be under $40 and time accuracy better than 1 milliSec.
> Unless we find a show stopper bug, or a better solution, real soon, the
> project will likely go with the GR-601W soon. 

Are these going to be generally available?

Usually, when I poke a vendor name and/or model number into google, I find 
many sites offering to sell me one, and usually several ad sites on the right 
side.  Navisys, GR-601, or GR-601U don't find much.

As far as I can tell, Navisys only sells wholesale.  I haven't found a retail 
outlet for any of their stuff.  Is my google-foo just on the blink?

Does anybody know of a retail source for USB GPS devices using the u-blox 6 
chip set?


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Fri May 04 23:06:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQVKC-0008Nu-PY
	for mharc-gpsd-dev@gnu.org; Fri, 04 May 2012 23:06:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45224)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SQVKA-0008NK-9i
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 23:06:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SQVK7-000495-EF
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 23:06:21 -0400
Received: from mail-gh0-f173.google.com ([209.85.160.173]:33567
	helo=mail-gy0-f173.google.com) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SQVK7-00047V-29
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 23:06:19 -0400
Received: by ghrr14 with SMTP id r14so4154977ghr.4
	for <gpsd-dev@nongnu.org>; Fri, 04 May 2012 20:06:16 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=references:in-reply-to:mime-version:content-transfer-encoding
	:content-type:message-id:cc:x-mailer:from:subject:date:to
	:x-gm-message-state;
	bh=DM88EMDkMhe2GxyNercw+MhcvisPTgly4pHcmp7lWDM=;
	b=SDsJlBtRv13dMrz8GaK5YWoSgoHuzDo+LkaZEv4UJ4Ud1+3HawEHBORz5kdqPEXFuJ
	TGF2qzADiaYhZEQZOHGtRR/NNXthL1OSkpY2kiO1NGo2I7VWX0JzJBDF8KCX0tJs09lQ
	PuCbeFeEZn7Rj7j0TGMooTmYnCpWQ4J9XwO8vDdvbMMSTuZqI+V78btINYapBSIwXTpv
	ctS4h3c9a8ZiU4ZUuC01+g/MbczC74AdtmrRgAIXuo5hA8dL5ehGkWlhKH3C+bxOZ3Tn
	pic1TU5N/WPjnXdf4PjJFrCz33ij46K9zH+WcYNqvsd/j9ZixK+RbmQwDmLvgGOxTZQo
	s/kg==
Received: by 10.236.72.39 with SMTP id s27mr10701331yhd.65.1336187176004;
	Fri, 04 May 2012 20:06:16 -0700 (PDT)
Received: from [192.168.4.80] (cpe-70-113-79-122.austin.res.rr.com.
	[70.113.79.122])
	by mx.google.com with ESMTPS id p3sm16563939and.4.2012.05.04.20.06.14
	(version=TLSv1/SSLv3 cipher=OTHER);
	Fri, 04 May 2012 20:06:15 -0700 (PDT)
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
In-Reply-To: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
Mime-Version: 1.0 (1.0)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii
Message-Id: <33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
X-Mailer: iPhone Mail (9B179)
From: Jim Thompson <jim@netgate.com>
Date: Fri, 4 May 2012 22:06:59 -0500
To: Hal Murray <hmurray@megapathdsl.net>
X-Gm-Message-State: ALoCoQl3JScGcwsicQpU3dllxVVBwVY5iROrg0G9T8sBJoZMTuziI3yNUAGL+DzHSyEg7nGB0zGc
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.173
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 May 2012 03:06:23 -0000




On May 4, 2012, at 21:04, Hal Murray <hmurray@megapathdsl.net> wrote:

>=20
> gem@rellim.com said:
>> Navisys has sold us samples of a proposed GR-601W which seem to be suitab=
le.
>> Unit cost should be under $40 and time accuracy better than 1 milliSec.
>> Unless we find a show stopper bug, or a better solution, real soon, the
>> project will likely go with the GR-601W soon.=20
>=20
> Are these going to be generally available?
>=20
> Usually, when I poke a vendor name and/or model number into google, I find=
=20
> many sites offering to sell me one, and usually several ad sites on the ri=
ght=20
> side.  Navisys, GR-601, or GR-601U don't find much.
>=20
> As far as I can tell, Navisys only sells wholesale.  I haven't found a ret=
ail=20
> outlet for any of their stuff.  Is my google-foo just on the blink?
>=20
> Does anybody know of a retail source for USB GPS devices using the u-blox 6=
  chip set?

I've asked about same (since, if they work, we'd be quite willing to carry t=
hem, and have tons of experience importing stuff from Taiwan / China), but h=
ave yet to receive a response.=20

All I really need is a contact name / email, too.=20

-- Jim



From MAILER-DAEMON Sat May 05 09:37:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQfBH-0002KX-Ng
	for mharc-gpsd-dev@gnu.org; Sat, 05 May 2012 09:37:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57988)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==4712caa35e7==rbywater@drs-ts.com>)
	id 1SQIvB-0007Ox-HT
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 09:51:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <btv1==4712caa35e7==rbywater@drs-ts.com>)
	id 1SQIv7-0005B7-O4
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 09:51:45 -0400
Received: from smtp.drs-ts.com ([4.79.116.89]:55211)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==4712caa35e7==rbywater@drs-ts.com>)
	id 1SQIv7-00059l-Fm
	for gpsd-dev@nongnu.org; Fri, 04 May 2012 09:51:41 -0400
X-ASG-Debug-ID: 1336139498-032e3c0eb24eba40001-tzOsvG
Received: from ts-exchange.ts.drs.master (ts-exchange.ts.drs.master
	[10.60.10.15]) by smtp.drs-ts.com with ESMTP id
	j2NifcpA7srVSytG for <gpsd-dev@nongnu.org>;
	Fri, 04 May 2012 09:51:38 -0400 (EDT)
X-Barracuda-Envelope-From: rbywater@drs-ts.com
X-ASG-Whitelist: Client
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Fri, 4 May 2012 09:51:38 -0400
X-ASG-Orig-Subj: wsg_separation Issue
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
	micalg=SHA1; boundary="----=_NextPart_000_010F_01CD29DB.7FB298C0"
Message-ID: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: wsg_separation Issue
Thread-Index: Ac0p/QbDgdSMdQp+TPqHsxingEJIdw==
From: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
To: <gpsd-dev@nongnu.org>
X-Barracuda-Connect: ts-exchange.ts.drs.master[10.60.10.15]
X-Barracuda-Start-Time: 1336139498
X-Barracuda-URL: http://4.79.116.89:8000/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at drs-ts.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 4.79.116.89
X-Mailman-Approved-At: Sat, 05 May 2012 09:37:50 -0400
Subject: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 04 May 2012 13:51:57 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_010F_01CD29DB.7FB298C0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0110_01CD29DB.7FB298C0"


------=_NextPart_001_0110_01CD29DB.7FB298C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

All,

 

I was running Coverity on gpsd-2.39 and it complained about an array-bounds
issue in geoid.c in the function wsg84_separation.  It suggested that the
code was accessing element 846 of 703 in the call to bilinear at the end of
the function.

 

I have no knowledge of gpsd, really, only that I was asked to run the tool
on the project.  So, it took me a while to digest the code and what it was
trying to accomplish.  Now that I have, I am of the opinion that the "sanity
check" code is problematic.  By my read, wsg84_separation is called with a
lat/log presumably in the ranges -90 to +90, and -180 to +180, respectively.
Those values are converted into indices into geoid_delta_table, ilat and
ilon, which are in decades (ranged 0-19 and 0-37, respectively).  When the
sanity check is performed, it is against the ilat/ilon values, and against
the latitude and longitude ranges, which would pass with a broad range of
invalid value.  In my opinion, the correct code is as follows:

 

    /* sanity checks to prevent segfault on bad data */

    if ((lat > 90.) || (lat < -90.)) {

        return 0.0;

    }

    if ((lon > 180.) || (lon < -180.)) {

        return 0.0;

    }

 

    ilat = (int)floor((90. + lat) / 10);

    ilon = (int)floor((180. + lon) / 10);

 

Since I have no stake in gpsd, I am bringing it to your attention so that
someone associated with the project can address the issue.

 

Best regards,

Rick Bywater


NOTICE: This e-mail transmission (and/or the attachments accompanying it) may contain confidential or proprietary information belonging to DRS Technologies or the sender. The information is only for the use of the intended recipient. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior written approval from the U.S. Department of State."

------=_NextPart_001_0110_01CD29DB.7FB298C0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV=3D"Content-Type" CONTENT=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
code
	{mso-style-priority:99;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'f=
ont-size:10.0pt;font-family:"Courier New";color:black'>All,<o:p></o:p></spa=
n></p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Cou=
rier New";color:black'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><sp=
an style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>I was r=
unning Coverity on gpsd-2.39 and it complained about an array-bounds issue =
in geoid.c in the function wsg84_separation.&nbsp; It suggested that the co=
de was accessing element 846 of 703 in the call to bilinear at the end of t=
he function.<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-=
size:10.0pt;font-family:"Courier New";color:black'><o:p>&nbsp;</o:p></span>=
</p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Couri=
er New";color:black'>I have no knowledge of gpsd, really, only that I was a=
sked to run the tool on the project.&nbsp; So, it took me a while to digest=
 the code and what it was trying to accomplish.&nbsp; Now that I have, I am=
 of the opinion that the &#8220;sanity check&#8221; code is problematic.&nb=
sp; By my read, wsg84_separation is called with a lat/log presumably in the=
 ranges -90 to +90, and -180 to +180, respectively.&nbsp; Those values are =
converted into indices into geoid_delta_table, ilat and ilon, which are in =
decades (ranged 0-19 and 0-37, respectively).&nbsp; When the sanity check i=
s performed, it is against the ilat/ilon values, and against the latitude a=
nd longitude ranges, which would pass with a broad range of invalid value.&=
nbsp; In my opinion, the correct code is as follows:<o:p></o:p></span></p><=
p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Courier Ne=
w";color:black'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span styl=
e=3D'font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&n=
bsp; /* sanity checks to prevent segfault on bad data */<o:p></o:p></span><=
/p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Courie=
r New";color:black'>&nbsp;&nbsp;&nbsp; if ((lat &gt; 90.) || (lat &lt; -90.=
)) {<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:10.=
0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; return 0.0;<o:p></o:p></span></p><p class=3DMsoNormal><span styl=
e=3D'font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp; &=
nbsp;}<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:1=
0.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp; if ((lon &g=
t; 180.) || (lon &lt; -180.)) {<o:p></o:p></span></p><p class=3DMsoNormal><=
span style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0.0;<o:p></o:p></span></p><p c=
lass=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Courier New";=
color:black'>&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p><p class=3DMsoNormal=
><span style=3D'font-size:10.0pt;font-family:"Courier New";color:black'><o:=
p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:10.0=
pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp; ilat =3D (int)=
floor((90. + lat) / 10);<o:p></o:p></span></p><p class=3DMsoNormal><span st=
yle=3D'font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;=
&nbsp; ilon =3D (int)floor((180. + lon) / 10);<o:p></o:p></span></p><p clas=
s=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Courier New";col=
or:black'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'f=
ont-size:10.0pt;font-family:"Courier New";color:black'>Since I have no stak=
e in gpsd, I am bringing it to your attention so that someone associated wi=
th the project can address the issue.<o:p></o:p></span></p><p class=3DMsoNo=
rmal><span style=3D'font-size:10.0pt;font-family:"Courier New";color:black'=
><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:=
10.0pt;font-family:"Courier New";color:black'>Best regards,<o:p></o:p></spa=
n></p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Cou=
rier New";color:black'>Rick Bywater<o:p></o:p></span></p></div><br>NOTICE: =
This e-mail transmission (and/or the attachments accompanying it) may conta=
in confidential or proprietary information belonging to DRS Technologies or=
 the sender. The information is only for the use of the intended recipient.=
 If you are not the intended recipient you are hereby notified that any dis=
closure, copying, distribution or the taking of any action in reliance on t=
he contents of this information is strictly prohibited. Any unauthorized in=
terception of this transmission is illegal under the law. If you have recei=
ved this transmission in error, please promptly notify the sender by reply =
e-mail, and then destroy all copies of the transmission.<br>
<br>
"This (document/presentation) may contain technical data as defined in the =
International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of t=
his material is restricted by the Arms Export Control Act (22 U.S.C. 2751 e=
t seq.) and may not be exported to foreign persons without prior written ap=
proval from the U.S. Department of State."
&nbsp;&nbsp;&shy;&shy;&nbsp;&nbsp;</body></html>=

------=_NextPart_001_0110_01CD29DB.7FB298C0--

------=_NextPart_000_010F_01CD29DB.7FB298C0
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH
AQAAoIIUHDCCBDYwggMeoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwbzELMAkG
A1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3Qg
RXh0ZXJuYWwgQ0EgUm9vdDAeFw0wMDA1MzAxMDQ4MzhaFw0yMDA1MzAxMDQ4
MzhaMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQG
A1UECxMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMT
GUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUA
A4IBDwAwggEKAoIBAQC39xoz5vIABC054E5b7R+8bA/Ntfojts7emxEzl6Qp
TH2Tn71KvJPtAxrjj8/lbVBa1pcplFqAsEl62y6V/bjKvzc4LR4+kUGtcFbH
8E8/6DKedMrIkFTpxl8PeJ2aQDwOrGGqXhSPnoehalDc15pOrwWzpnGUnHGz
UGAKxxOdOAeGAqjpqGkmGJCrTLBPI6s6T4TY386f4Wlvu9dC12tE5Met7m1B
X3JacQg3s3llpFmglDf3AC8NwpJy2tA4ctsUqEXEXSp9t7TWxO6szR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H/p0ykc7gUhfSsw85BWS44g6ctKlHBBK38/8lGuisk/oVQhud9
/1R9bQR51FyI2rKQ1JYiIKpV2p5z1BJHUcfiGKYCrwsxGzpS9WgO+NTHTDRJ
xPBZs6IIH534HYpLkKLIZk0QHao3WmKCe+hCGUKn0H9By0M0ZFZfXfAJCgf0
C/3rcDV8ELb8o05iUdT7pATOtajZTcxHcIGlSfON76UTbcRV/Fytsw0T6eqE
+PUQ5R8xamA68eZObzAdGdztb3oLnTawYrJKKzyw1ZsOHK/EHXsxleyXKBgR
FRkV3JZxkvjQm5K9nNK46fPgp2UTASPYMG0+n7wAAAAAAAA=

------=_NextPart_000_010F_01CD29DB.7FB298C0--


From MAILER-DAEMON Sat May 05 15:33:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQkjV-0005rz-Lp
	for mharc-gpsd-dev@gnu.org; Sat, 05 May 2012 15:33:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50651)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQkjS-0005ra-A7
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 15:33:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQkjQ-0006yT-AS
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 15:33:29 -0400
Received: from catbert.rellim.com ([204.17.205.1]:42227)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQkjP-0006yL-PL
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 15:33:28 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q45JXLIW027592
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sat, 5 May 2012 12:33:22 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q45JXLIW027592
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336246402; bh=28aAzBdaiaVIAknDg6KIShR8MitQDQ9ZskEBd01ooIw=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=pBgVFTXKIuvaAbPfnGVEC7H1e2uuhnDTszz74exr1ETDJd7MaWpF8iXsXHtuTXL8C
	OtgYTjHGpvfLSd+Dx36Rg==
Date: Sat, 5 May 2012 12:33:18 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Jim Thompson <jim@netgate.com>
Message-ID: <20120505123318.061aca3f.gem@rellim.com>
In-Reply-To: <33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/Uaom3LrvET0yoxxO9+WxsDf";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 May 2012 19:33:31 -0000

--Sig_/Uaom3LrvET0yoxxO9+WxsDf
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Jim!

On Fri, 4 May 2012 22:06:59 -0500
Jim Thompson <jim@netgate.com> wrote:

> I've asked about same (since, if they work, we'd be quite willing to
> carry them, and have tons of experience importing stuff from Taiwan /
> China), but have yet to receive a response.=20
>=20
> All I really need is a contact name / email, too.=20

Veronica Tsai <veronica@navisys.com.tw>

The 3 units we received were hand made engineering samples.  Not sure
what their production schedule is, or any USA vendor.

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

--Sig_/Uaom3LrvET0yoxxO9+WxsDf
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+lgIEACgkQBmnRqz71OvNJGACeLonzEg08/RCVhBhbSpstxHOy
3CkAmwVaTp09zJ5FwXBCus8gua1w2pYY
=ztg9
-----END PGP SIGNATURE-----

--Sig_/Uaom3LrvET0yoxxO9+WxsDf--


From MAILER-DAEMON Sat May 05 15:38:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQko0-00069d-8k
	for mharc-gpsd-dev@gnu.org; Sat, 05 May 2012 15:38:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38935)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQknx-00069X-Fo
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 15:38:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQknv-0000PZ-OD
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 15:38:09 -0400
Received: from catbert.rellim.com ([204.17.205.1]:48283)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQknv-0000PT-Bp
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 15:38:07 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q45Jc3uT027852
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sat, 5 May 2012 12:38:04 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q45Jc3uT027852
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336246684; bh=4tu4VHDHzw7azpirmDUQCuPIRm3Io8Hwkb+9eXFhfxI=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=mvdV9d8EpSRhf/ATHjpLTwyioTfO9AfV2VtW6XIjbJCtM7NVn09Ptcjce4PSMJUH5
	Fw+ZZwEi3GT7mwzaeSxlA==
Date: Sat, 5 May 2012 12:38:00 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
Message-ID: <20120505123800.175ed3cc.gem@rellim.com>
In-Reply-To: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/_jOyBC8d93VnMwwR8nWsdrw";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 May 2012 19:38:10 -0000

--Sig_/_jOyBC8d93VnMwwR8nWsdrw
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Rick (SA-1)!

On Fri, 4 May 2012 09:51:38 -0400
"Bywater, Rick (SA-1)" <rbywater@drs-ts.com> wrote:

> I was running Coverity on gpsd-2.39 and it complained about an
> array-bounds issue in geoid.c in the function wsg84_separation.

2.39 is pretty ancient.  Can you repeat on a more current version?
Preferably git head?

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

--Sig_/_jOyBC8d93VnMwwR8nWsdrw
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+lgZsACgkQBmnRqz71OvNG7ACePYnjD1pnzwsrXeFagAbFeLmc
d+UAoKySjskns4N7LIi1UdU0bQ7vOt2o
=tbrd
-----END PGP SIGNATURE-----

--Sig_/_jOyBC8d93VnMwwR8nWsdrw--


From MAILER-DAEMON Sat May 05 17:23:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQmRo-0000lb-5g
	for mharc-gpsd-dev@gnu.org; Sat, 05 May 2012 17:23:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44769)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQmRl-0000lV-3F
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 17:23:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQmRi-0008UF-Kf
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 17:23:20 -0400
Received: from mx1.2b3w.ch ([92.42.186.250]:42291)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SQmRi-0008U0-Ep
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 17:23:18 -0400
Received: from mx1.2b3w.ch (localhost [127.0.0.1])
	by mx1.2b3w.ch (Postfix) with ESMTP id A1F98C344D
	for <gpsd-dev@nongnu.org>; Sat,  5 May 2012 23:23:14 +0200 (CEST)
Received: from mcmini.bolli (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by mx1.2b3w.ch (Postfix) with ESMTPSA id 7CB96C343C
	for <gpsd-dev@nongnu.org>; Sat,  5 May 2012 23:23:14 +0200 (CEST)
Message-ID: <4FA59A41.6060808@ewanet.ch>
Date: Sat, 05 May 2012 23:23:13 +0200
From: Beat Bolli <bbolli@ewanet.ch>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120505123800.175ed3cc.gem@rellim.com>
In-Reply-To: <20120505123800.175ed3cc.gem@rellim.com>
X-Enigmail-Version: 1.4.1
OpenPGP: id=506A903A;
	url=http://drbeat.li/pubkey.asc
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig1576314D1EF230ED1973EE65"
X-Virus-Scanned: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 92.42.186.250
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 05 May 2012 21:23:22 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig1576314D1EF230ED1973EE65
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05.05.12 21:38, Gary E. Miller wrote:
> On Fri, 4 May 2012 09:51:38 -0400
> "Bywater, Rick (SA-1)" <rbywater@drs-ts.com> wrote:
>=20
>> I was running Coverity on gpsd-2.39 and it complained about an
>> array-bounds issue in geoid.c in the function wsg84_separation.
>=20
> 2.39 is pretty ancient.  Can you repeat on a more current version?
> Preferably git head?

The current code is still wrong IMO:

    ilat =3D (int)floor((90. + lat) / 10);
    ilon =3D (int)floor((180. + lon) / 10);

    /* sanity checks to prevent segfault on bad data */
    if ((ilat > 90) || (ilat < -90)) {
        return 0.0;
    }
    if ((ilon > 180) || (ilon < -180)) {
        return 0.0;
    }

ilat and ilon are offset so as to be >=3D 0, but the subsequent test
checks the original degree range without offset or divisor. Checking lat
and lon above the i{lat,lon} calculation should work.

Regards,
Beat
--=20
mail: echo '<bNbolOli@ewaSPnetAM.ch>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F  D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E

"It takes love over gold, and mind over matter" -- Dire Straits


--------------enig1576314D1EF230ED1973EE65
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+lmkIACgkQMEuTz1BqkDokiwCeN0CN8ULSIlb6XHyK1CV+e4BT
tVgAni4MkWHCkPezXDgoxOiCZRK3z/Z1
=tYNI
-----END PGP SIGNATURE-----

--------------enig1576314D1EF230ED1973EE65--


From MAILER-DAEMON Sat May 05 20:14:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQp7N-0007yh-Nl
	for mharc-gpsd-dev@gnu.org; Sat, 05 May 2012 20:14:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58034)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQp7K-0007xJ-93
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 20:14:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQp7I-0001By-6u
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 20:14:25 -0400
Received: from catbert.rellim.com ([204.17.205.1]:46216)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SQp7H-0000zA-La
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 20:14:24 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q460E0oT004532
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sat, 5 May 2012 17:14:02 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q460E0oT004532
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336263242; bh=JZ64gBb/C8MucU1Jh0GJW1/+MyWOO89TUdorFJx5lww=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=Wa39RsnnI5N91CO2gXfjNN291IqUjuTYFwG8TQs3wj2YaCCUC0L8un6w6wshRl0zx
	vHS+WbayFvxzchoRwzzkg==
Date: Sat, 5 May 2012 17:13:57 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120505171357.70648a1e.gem@rellim.com>
In-Reply-To: <4FA59A41.6060808@ewanet.ch>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120505123800.175ed3cc.gem@rellim.com>
	<4FA59A41.6060808@ewanet.ch>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/Jdihrv+XQXpSPw6ql5xAYAS";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 00:14:27 -0000

--Sig_/Jdihrv+XQXpSPw6ql5xAYAS
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Beat!

On Sat, 05 May 2012 23:23:13 +0200
Beat Bolli <bbolli@ewanet.ch> wrote:

> On 05.05.12 21:38, Gary E. Miller wrote:
> > On Fri, 4 May 2012 09:51:38 -0400
> > "Bywater, Rick (SA-1)" <rbywater@drs-ts.com> wrote:
> >=20
> >> I was running Coverity on gpsd-2.39 and it complained about an
> >> array-bounds issue in geoid.c in the function wsg84_separation.

> The current code is still wrong IMO:
>=20
>     ilat =3D (int)floor((90. + lat) / 10);
>     ilon =3D (int)floor((180. + lon) / 10);
>=20
>     /* sanity checks to prevent segfault on bad data */
>     if ((ilat > 90) || (ilat < -90)) {
>         return 0.0;
>     }
>     if ((ilon > 180) || (ilon < -180)) {
>         return 0.0;
>     }
>=20
> ilat and ilon are offset so as to be >=3D 0, but the subsequent test
> checks the original degree range without offset or divisor. Checking
> lat and lon above the i{lat,lon} calculation should work.

Seems to me that keeping the sanity test on the integer, rather than,=20
the float, is the way to go.  So I think you are suggesting the test
should be:

     if ((ilat > 18) || (ilat < 0)) {
         return 0.0;
     }
     if ((ilon > 36) || (ilon < 0)) {
         return 0.0;
     }

Do I have it right?


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

--Sig_/Jdihrv+XQXpSPw6ql5xAYAS
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+lwkgACgkQBmnRqz71OvOwzwCgs/D7+KRno4xZcvxhpCbe49M0
ncwAn13OXC7jdItz7Fbp7MwfkAPcXOIe
=vYn8
-----END PGP SIGNATURE-----

--Sig_/Jdihrv+XQXpSPw6ql5xAYAS--


From MAILER-DAEMON Sat May 05 21:38:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SQqQm-0003PB-58
	for mharc-gpsd-dev@gnu.org; Sat, 05 May 2012 21:38:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50504)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SQqQj-0003ON-1x
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 21:38:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SQqQh-0007ct-9b
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 21:38:32 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:60507)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SQqQg-0007U4-7H
	for gpsd-dev@nongnu.org; Sat, 05 May 2012 21:38:31 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 57849800073; 
	Sat,  5 May 2012 18:38:21 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: gpsd-dev@nongnu.org
From: Hal Murray <hmurray@megapathdsl.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sat, 05 May 2012 18:38:20 -0700
Message-Id: <20120506013821.57849800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Subject: [gpsd-dev] errors from scons testregress: Trimble-lassen
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 01:38:34 -0000

I'm not familiar with the gpsd build/test environment.  On a recent git pull, 
scons (build) seemed happy, but scons testregress gives the following errors:

Regression test FAILED: 3 errors in 78 tests total (0 not found).
The following test Failed:
================================================================
"test/daemon/trimble-lassen_iq-3dfix.log"
"test/daemon/trimble-lassen_iq-playacar.log"
"test/daemon/trimble-lassen_iq.log"
================================================================
Elapsed time: 281
scons: *** [gps-regress] Error 3
scons: building terminated because of errors.


Looking way back, I see something like this for all 3 cases:

Processing test/daemon/trimble-lassen_iq-3dfix.log
Traceback (most recent call last):
  File "/home/murray/gpsd/gpsd-git/gpsfake", line 171, in <module>
    test.gps_add(logfile, speed=speed, pred=fakehook)
  File "/home/murray/gpsd/gpsd-git/gps/fake.py", line 453, in gps_add
    progress=self.progress)
  File "/home/murray/gpsd/gpsd-git/gps/fake.py", line 249, in __init__
    [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
termios.error: (22, 'Invalid argument')
--- test/daemon/trimble-lassen_iq-3dfix.log.chk 2011-10-24 01:29:33.000000000 
-0700
+++ /tmp/gpsd-test-uK66kjQzdvfWn0/test-4743.chk 2012-05-05 18:24:53.000000000 
-0700
@@ -1,251 +0,0 @@
-$GPGSV,3,1,10,00,00,000,00,19,26,250,29,00,00,000,00,18,26,096,37*7C^M
-$GPGSV,3,2,10,01,29,221,26,11,24,307,29,03,08,225,28,00,00,000,00*7B^M
-$GPGSV,3,3,10,22,65,094,37,09,24,045,37*78^M
-{"class":"SKY","tag":"ID5c","xdop":1.21,"ydop":5.27,"vdop":2.56,"tdop":1.47,"
hdop":1.43,"gdop":3.28,"pdop":2.93,"satellites":[{"PRN":19,"el":26,"az":250,"s
s":29,"used":true},{"PRN":18,"el":26,"az":96,"ss":37,"used":true},{"PRN":1,"el
":29,"az":221,"ss":26,"used":false},{"PRN":11,"el":24,"az":307,"ss":29,"used":
true},{"PRN":3,"el":8,"az":225,"ss":28,"used":false}]}^M
...

I'm running on a old Fedora box.  Kernel is 2.6.38.5 with my local config 
file.

Is this a known problem area?  If not, what do I do to help track it down?



-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Sun May 06 07:55:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR03J-0004If-Gr
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 07:55:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33526)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SR03G-0004IQ-Fx
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 07:55:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SR03E-0008Bi-8T
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 07:54:58 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:58439)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SR03E-0008BQ-0D
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 07:54:56 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 837D134032D;
	Sun,  6 May 2012 12:54:53 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id VAOT3F5finbL; Sun,  6 May 2012 12:54:53 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 265E934032A;
	Sun,  6 May 2012 12:54:52 +0100 (BST)
Message-ID: <4FA6668B.70503@wildgooses.com>
Date: Sun, 06 May 2012 12:54:51 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
In-Reply-To: <20120504160455.4514ac26.gem@rellim.com>
X-TagToolbar-Keys: D20120506125451702
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 11:55:00 -0000

Hi

> Navisys has sold us samples of a proposed GR-601W which seem to be
> suitable.  Unit cost should be under $40 and time accuracy better than 1
> milliSec.  Unless we find a show stopper bug, or a better solution, real
> soon, the project will likely go with the GR-601W soon.

Cool - interesting to note


> Ugh.  The Garmin 18s are unsuitable for indoor use.  The uBlox6 in the
> GR-601W works well in my basement.

OK, so you could use some other serial device, my point was whether the 
jointing together needed to be better than DIY?  That said, I'm kinda 
curious that the ublox6 does so much better than a Garmin18, the 
theoretical specs aren't so different?  I have never found any device to 
work inside to be honest?  (at least not for initial acquisition)


>> I got part way through the implementation of using the GPIO inputs as
>> PPS on the PC Engines Alix boards.  The goal was to enable a fairly
>> cheap machine that could connect pretty much directly to something
>> like a Garmin 18 (or the rather nice looking Skytraq modules, some of
>> which seem to offer seriously accurate PPS options) and give you an
>> inexpensive Stratum 1 box. (PC Engines boards are circa $110 for
>> basically an entire 500Mhz i586 including ram, processor, USB,
>> mini-PCI and up to 3 network ports)
> That would be fairly similar to what the bufferbloat project is
> looking to do, except they want it also to work as a standard
> router.

Which bit of the above makes it unsuitable as a standard router?  Too 
expensive?

Just to be clear - the above is a waaay more powerful board than most 
routers, it's i586 compatible (rather than ARM).  However, it is 
probably more expensive than an old Linksys router, and it's switching 
capacity is almost certainly lower than a cutting edge Linksys job.

I'm building a commercial router using these.  Being intel based has 
vastly simplified the process of building a distro.  However, off the 
shelf distros of either xxWrt or Voyager seem to work well with the board.

The bit I was trying to square was that the GPIOs don't currently have a 
linux driver which is interrupt triggered.  However, the boards are 
extremely similar to the OLPC hardware and so I just need time to port 
across their drivers to read the slightly different gpio arrangement on 
the alix.  At that point any recent kernel would get GPIO interrupt 
support and hopefully (untested) the GPIO-PPS driver should just 
work...  Well you get the idea anyway...


> That said, I would personnally love to find a USB 2.0 equivent to the
> USB1.1 PL2303.

Just clicking on the first hit in google takes me to here.  Is this what 
you want?
     http://www.tronisoft.com/prod.php?id=2327

>    Doing so would increase the time resolution from about 1
> milliSec to 125 microSec.  An 8x improvement.

It's not bad, but I think the issue is still that the USB bus is non 
deterministic, so it might still have a good bunch of jitter around 
that.  Over time of course that should average out, but still not perfect

Incidently the Alix has two serial ports, however, for various odd 
reasons they only have the data lines connected, so if you wanted to use 
them then you would need to sync off the data lines, not the CTS or 
whatever - I never investigated if this was even possible (buffering of 
input chars?).  However, interesting



Anyway, I got stalled, but my goal was quite similar.  I wanted to try 
and offer a cheap solution to Stratum 1 servers.  The idea of the Alix 
plus a cheapo serial GPS seemed very attractive.  They can be powered 
via ethernet which potentially makes them easy to put into a hobby box 
and put the whole box on the roof...


Cheers

Ed W


From MAILER-DAEMON Sun May 06 08:14:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR0Lz-00062a-Kn
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 08:14:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48819)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SR0Lw-00062F-Rp
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 08:14:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SR0Lu-0007Kk-OX
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 08:14:16 -0400
Received: from mx1.2b3w.ch ([92.42.186.250]:44300)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SR0Lu-0007KW-IP
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 08:14:14 -0400
Received: from mx1.2b3w.ch (localhost [127.0.0.1])
	by mx1.2b3w.ch (Postfix) with ESMTP id D8913C3457;
	Sun,  6 May 2012 14:14:11 +0200 (CEST)
Received: from mcmini.bolli (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by mx1.2b3w.ch (Postfix) with ESMTPSA id B69E0C3456;
	Sun,  6 May 2012 14:14:11 +0200 (CEST)
Message-ID: <4FA66B12.2030802@ewanet.ch>
Date: Sun, 06 May 2012 14:14:10 +0200
From: Beat Bolli <bbolli@ewanet.ch>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120505123800.175ed3cc.gem@rellim.com>
	<4FA59A41.6060808@ewanet.ch>
	<20120505171357.70648a1e.gem@rellim.com>
In-Reply-To: <20120505171357.70648a1e.gem@rellim.com>
X-Enigmail-Version: 1.4.1
OpenPGP: id=506A903A;
	url=http://drbeat.li/pubkey.asc
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig28FEB9D13F5C9F950C8D6B84"
X-Virus-Scanned: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 92.42.186.250
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 12:14:18 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig28FEB9D13F5C9F950C8D6B84
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 06.05.12 02:13, Gary E. Miller wrote:
> Yo Beat!
>=20
> On Sat, 05 May 2012 23:23:13 +0200
> Beat Bolli <bbolli@ewanet.ch> wrote:
>=20
>> On 05.05.12 21:38, Gary E. Miller wrote:
>>> On Fri, 4 May 2012 09:51:38 -0400
>>> "Bywater, Rick (SA-1)" <rbywater@drs-ts.com> wrote:
>>>
>>>> I was running Coverity on gpsd-2.39 and it complained about an
>>>> array-bounds issue in geoid.c in the function wsg84_separation.
>=20
>> The current code is still wrong IMO:
>>
>>     ilat =3D (int)floor((90. + lat) / 10);
>>     ilon =3D (int)floor((180. + lon) / 10);
>>
>>     /* sanity checks to prevent segfault on bad data */
>>     if ((ilat > 90) || (ilat < -90)) {
>>         return 0.0;
>>     }
>>     if ((ilon > 180) || (ilon < -180)) {
>>         return 0.0;
>>     }
>>
>> ilat and ilon are offset so as to be >=3D 0, but the subsequent test
>> checks the original degree range without offset or divisor. Checking
>> lat and lon above the i{lat,lon} calculation should work.
>=20
> Seems to me that keeping the sanity test on the integer, rather than,=20
> the float, is the way to go.  So I think you are suggesting the test
> should be:
>=20
>      if ((ilat > 18) || (ilat < 0)) {
>          return 0.0;
>      }
>      if ((ilon > 36) || (ilon < 0)) {
>          return 0.0;
>      }
>=20
> Do I have it right?

I'd reuse the GEOID_ROW and GEOID_COL constants and merge the two ifs:

    /* sanity checks to prevent segfault on bad data */
    if ((ilat >=3D GEOID_ROW) || (ilat < 0) ||
        (ilon >=3D GEOID_COL) || (ilon < 0))
        return 0.0;

But other than that, it looks fine.

Regards,
Beat
--=20
mail: echo '<bNbolOli@ewaSPnetAM.ch>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F  D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E

"It takes love over gold, and mind over matter" -- Dire Straits


--------------enig28FEB9D13F5C9F950C8D6B84
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+maxIACgkQMEuTz1BqkDpxVgCeK7mUTXTnGKCs+pM5TEuNEf3n
LYgAni0RZQLnb+5z8qI+QzrkPi9VU2nN
=cKV0
-----END PGP SIGNATURE-----

--------------enig28FEB9D13F5C9F950C8D6B84--


From MAILER-DAEMON Sun May 06 09:34:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR1bg-0005bI-5B
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 09:34:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33473)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SR1bc-0005bC-ED
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 09:34:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SR1bY-0002wg-7C
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 09:34:32 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:33747)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SR1bY-0002vG-1T
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 09:34:28 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 591B334032A;
	Sun,  6 May 2012 14:34:26 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id YnQfDfWYRaGh; Sun,  6 May 2012 14:34:26 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id EE2F4340317;
	Sun,  6 May 2012 14:34:25 +0100 (BST)
Message-ID: <4FA67DE1.3080701@wildgooses.com>
Date: Sun, 06 May 2012 14:34:25 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
In-Reply-To: <20120504160455.4514ac26.gem@rellim.com>
X-TagToolbar-Keys: D20120506143425530
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 13:34:34 -0000

On 05/05/2012 00:04, Gary E. Miller wrote:
> That said, I would personnally love to find a USB 2.0 equivent to the
> USB1.1 PL2303.  Doing so would increase the time resolution from about 1
> milliSec to 125 microSec.  An 8x improvement.  Right now the GR-601W is
> three orders of magnitude worse than local PPS over serial and 16 times
> worse than being on GigE adjacent to an ntpd server with serial PPS.
> Getting to 125 microSec would make the USB/GPS only 2x worse than being
> adjacent to a serial PPS.
>

Incidentally I have a load of these (very inexpensive):
     
http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle.html

They are detected as a "cp210x: v0.09:Silicon Labs CP210x RS232 serial 
adaptor driver".  Some googling suggests this is a USB2 chipset?

The actual GPS is a Venus6, which is a -160dB tracking chipset (so not 
far off your uBlox 6).

According to someone on your thumbgps list these have very predictable 
latency to the first $
     
https://lists.bufferbloat.net/pipermail/thumbgps-devel/2012-March/000006.html

Simply using gpsd to feed chrony gives only millisec kind of accuracy, 
presumably too much userland latency and error in reading (does gpsd set 
low_latency when opening the port?)

$ chronyc_auth_cmd sourcestats
200 OK
210 Number of sources = 4
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  
Std Dev
==============================================================================
GPS0                        7   5    98     -8.099     72.469    -69us   
734us
GPS1                        0   0     0      0.000   2000.000     +0ns  
4000ms
91.220.24.240              21  11   39m     75.348      0.370  -4872us   
218us
91.220.24.241              19  10   37m     75.493      0.294  -5350us   
162us


Ed W


From MAILER-DAEMON Sun May 06 11:12:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR38F-0005Ag-Uf
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 11:12:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34622)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <j-pi@seznam.cz>) id 1SQygb-00028c-5G
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 06:27:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <j-pi@seznam.cz>) id 1SQygZ-0005a8-As
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 06:27:28 -0400
Received: from smtp2.seznam.cz ([77.75.76.43]:39858)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <j-pi@seznam.cz>) id 1SQygZ-0005Zp-3x
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 06:27:27 -0400
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=seznam.cz;
	h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-Smtpd:X-Seznam-User:X-Session:X-Country:X-Virus-Info:X-Seznam-SPF:X-Seznam-DomainKeys;
	b=kXrfOzdL+lW7PfgBXotB4JTCk0yGIRcfyrEmNvKqpU9U0H0tT/vB2cpqZwnSX+DqF
	XTSRcObQ9Q4m9fffjJ0pg18pr3K1n8DblTEubIkhFEC8erGwVLLO2eWzFd3iWIT4hv6
	0KT7vci27siX9W0cyG9JtNLkJShhTJ8+iBfZpco=
Received: from [192.168.7.10] (62.14.broadband15.iol.cz [90.182.14.62])	by
	email-relay2.ng.seznam.cz (Seznam SMTPD 1.2.17@22062:22067)
	with ESMTP; Sun, 06 May 2012 12:26:11 +0200 (CEST)  
Message-ID: <4FA651D6.1040308@seznam.cz>
Date: Sun, 06 May 2012 12:26:30 +0200
From: =?ISO-8859-2?Q?Ji=F8=ED_Pinkava?= <j-pi@seznam.cz>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
X-Smtpd: 1.2.17@22062:22067
X-Seznam-User: j-pi@seznam.cz
X-Session: 17
X-Country: CZ
X-Virus-Info: clean
X-Seznam-SPF: neutral
X-Seznam-DomainKeys: unknown
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 77.75.76.43
X-Mailman-Approved-At: Sun, 06 May 2012 11:12:18 -0400
Subject: [gpsd-dev] [PATCH] libgpsd_core: fix typo
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 10:27:32 -0000


---
  libgpsd_core.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libgpsd_core.c b/libgpsd_core.c
index 0efb000..84a5973 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -889,7 +889,7 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)

  #ifdef TIMING_ENABLE
      /*
-     * Input just gecame available from a sensor, but no read from the
+     * Input just became available from a sensor, but no read from the
       * device has yet been done.
       *
       * If we ever want a start-of-packet timestamp again, take it here
-- 
1.7.7.6



From MAILER-DAEMON Sun May 06 12:55:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR4kH-000200-VA
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 12:55:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44486)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SR4kF-0001yf-QR
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 12:55:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SR4kD-0004eY-BP
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 12:55:39 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:58272)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SR4kD-0004dl-4c
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 12:55:37 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 4C0A8800073; 
	Sun,  6 May 2012 09:55:33 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Ed W <lists@wildgooses.com>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Ed W <lists@wildgooses.com>
	of "Sun, 06 May 2012 12:54:51 BST." <4FA6668B.70503@wildgooses.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sun, 06 May 2012 09:55:33 -0700
Message-Id: <20120506165533.4C0A8800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 16:55:41 -0000


> Incidently the Alix has two serial ports, however, for various odd  reasons
> they only have the data lines connected, so if you wanted to use  them then
> you would need to sync off the data lines, not the CTS or  whatever - I
> never investigated if this was even possible (buffering of  input chars?).
> However, interesting 

I think the plan is that you would use some of the GPIO pins for modem 
control.

Pins are expensive.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Sun May 06 15:48:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR7Rt-0005CK-9w
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 15:48:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40129)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7Rp-0005Ay-U7
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 15:48:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7Rn-0001b3-Ok
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 15:48:49 -0400
Received: from catbert.rellim.com ([204.17.205.1]:38724)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7Rn-0001W0-4J
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 15:48:47 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q46JmgRk006242
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sun, 6 May 2012 12:48:43 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q46JmgRk006242
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336333723; bh=dUaSkTkMZ0r44945+77x3GonC/6PLhGzMrJSHL6JwbY=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=iLYktTMeTF487v3sAKehRYWGURMpFDGArnf20xyvcoGN7Y6r4DQyW2Cq5KQJT+uAM
	QOVzqabeQKeC4/aGctOPA==
Date: Sun, 6 May 2012 12:48:39 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120506124839.4d171f83.gem@rellim.com>
In-Reply-To: <4FA67DE1.3080701@wildgooses.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/owCOyU.0RIupI_lSdg4YJXo";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 19:48:51 -0000

--Sig_/owCOyU.0RIupI_lSdg4YJXo
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Sun, 06 May 2012 14:34:25 +0100
Ed W <lists@wildgooses.com> wrote:

> Incidentally I have a load of these (very inexpensive):
>     =20
> http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle.ht=
ml
>=20
> They are detected as a "cp210x: v0.09:Silicon Labs CP210x RS232
> serial adaptor driver".  Some googling suggests this is a USB2
> chipset?

Sadly, as esr has found out, the cp210x linux driver is very poor and
gets no love from the vendor.  It does not support basic ioctl() calls
that gpsd needs to utilize the PPS signal.  So until there is a good
driver for them they are not an option for gpsd users.

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

--Sig_/owCOyU.0RIupI_lSdg4YJXo
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+m1ZoACgkQBmnRqz71OvO8gACfTvJxN3RNYJ4ePvvLAuCU9hKC
kvMAn33JOjz4zI5YbdOTY1NL9WGayTgK
=mZgp
-----END PGP SIGNATURE-----

--Sig_/owCOyU.0RIupI_lSdg4YJXo--


From MAILER-DAEMON Sun May 06 16:03:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR7gU-0007R0-QI
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 16:03:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42404)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SR7gS-0007Qr-5U
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:03:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SR7gN-0007sg-PE
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:03:55 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:61360)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SR7gL-0007gR-6u
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:03:51 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id E7819800073; 
	Sun,  6 May 2012 13:03:40 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Sun,
	06 May 2012 12:48:39 PDT." <20120506124839.4d171f83.gem@rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sun, 06 May 2012 13:03:40 -0700
Message-Id: <20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 20:03:58 -0000


gem@rellim.com said:
> Sadly, as esr has found out, the cp210x linux driver is very poor and gets
> no love from the vendor.  It does not support basic ioctl() calls that gpsd
> needs to utilize the PPS signal.  So until there is a good driver for them
> they are not an option for gpsd users. 

Is there a list of serial-USB chips that are known to work and/or not work?


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Sun May 06 16:05:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR7ho-0000Uc-02
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 16:05:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47693)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7hk-0000UL-Rt
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:05:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7hi-0000RK-DH
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:05:16 -0400
Received: from catbert.rellim.com ([204.17.205.1]:45276)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7hh-0000R3-Rc
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:05:14 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q46K59aS006696
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sun, 6 May 2012 13:05:10 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q46K59aS006696
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336334710; bh=Aa4GwpjY5yjCdIVlKdciVwqHFVsVwrRf12PQflnZfoE=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=qzIYWeefyzTaGStujynagLY6+cBi1m8yA7OsE4OwsbWf7BDeAFLVcj4/0pznAfvce
	VGvWcc9G3liMOTuTUi7dQ==
Date: Sun, 6 May 2012 13:05:06 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120506130506.3a4f07a1.gem@rellim.com>
In-Reply-To: <4FA6668B.70503@wildgooses.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA6668B.70503@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/wrn5YAwEE3BAw_cEcXAUZUs";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 20:05:18 -0000

--Sig_/wrn5YAwEE3BAw_cEcXAUZUs
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Sun, 06 May 2012 12:54:51 +0100
Ed W <lists@wildgooses.com> wrote:

> > Ugh.  The Garmin 18s are unsuitable for indoor use.  The uBlox6 in
> > the GR-601W works well in my basement.
>=20
> OK, so you could use some other serial device, my point was whether
> the jointing together needed to be better than DIY?

And I thought I made the point that DIY was not an option.  These
guys don't even own multi-meters.

> That said, I'm
> kinda curious that the ublox6 does so much better than a Garmin18,
> the theoretical specs aren't so different?

All I can say is that I have Garmin18s, SiRFIIIs, uBlox6, etc and the=20
newer ones all work fine in my basement and the Garmin 18 only works
with a very open sky.

>  I have never found any
> device to work inside to be honest?  (at least not for initial
> acquisition)

Maybe yours is deeper than mine.

> > That would be fairly similar to what the bufferbloat project is
> > looking to do, except they want it also to work as a standard
> > router.
>=20
> Which bit of the above makes it unsuitable as a standard router?  Too=20
> expensive?

Yes, and too DIY.  Remember these guys don't own a soldering iron, nor=20
do they want use drivers different than mainstream ones.

> Just to be clear - the above is a waaay more powerful board than most=20
> routers, it's i586 compatible (rather than ARM).  However, it is=20
> probably more expensive than an old Linksys router, and it's
> switching capacity is almost certainly lower than a cutting edge
> Linksys job.

And that is exactly the problem.  They want a common dumb consumer
platform becasue they are looking to develop teaks for dumb consumer
platorms.

> The bit I was trying to square was that the GPIOs don't currently
> have a linux driver which is interrupt triggered.


Yup, and the bufferbloat project noted that and explictly decided that
to go down that road was to go Yak Shearing.  If such a driver should
appear that might be usefull in a future project.

> > That said, I would personnally love to find a USB 2.0 equivent to
> > the USB1.1 PL2303.
>=20
> Just clicking on the first hit in google takes me to here.  Is this
> what you want?
>      http://www.tronisoft.com/prod.php?id=3D2327

Nope. That is just a USB to RS-232.  The problem is finding a=20
matching cheap RS-232 GPS, with PPS and preinstalled RS-232 connector.

I am looking for an integrated product requiring zero hardware skills to
use.

> It's not bad, but I think the issue is still that the USB bus is non=20
> deterministic, so it might still have a good bunch of jitter around=20
> that.

Actually, it is VERY deterministic.  USB 1.1 is polled 1024 times a
second, and that is exactly what we see in the results.

> Anyway, I got stalled, but my goal was quite similar.  I wanted to
> try and offer a cheap solution to Stratum 1 servers.  The idea of the
> Alix plus a cheapo serial GPS seemed very attractive.  They can be
> powered via ethernet which potentially makes them easy to put into a
> hobby box and put the whole box on the roof...

And as a pre-packaged commmercial solution it might be very interesting
to many people.  Just not the bufferbloat folks.

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

--Sig_/wrn5YAwEE3BAw_cEcXAUZUs
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+m2XUACgkQBmnRqz71OvOo7QCaAgmNgf7Nym/gAsDxsXj5ObqZ
xgYAoJ/Z/fakJ/cvrsRzsLR52hS5zuX7
=Y3Zi
-----END PGP SIGNATURE-----

--Sig_/wrn5YAwEE3BAw_cEcXAUZUs--


From MAILER-DAEMON Sun May 06 16:08:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR7kQ-00013A-8i
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 16:08:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48056)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7kO-000134-7t
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:08:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7kM-0000mz-IR
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:07:59 -0400
Received: from catbert.rellim.com ([204.17.205.1]:33842)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7kM-0000mr-6S
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:07:58 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q46K7tuR006787
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sun, 6 May 2012 13:07:56 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q46K7tuR006787
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336334876; bh=iukfKZst/aBYzXkarDsqI7kyKjBpbGbq4zk6z2aK1DE=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=ZOKDTyOG8FtiRSR9NEAmY3JUIF/EDa+gEol3MuB1/x7zp8Fro7EqkNOX5C3S2ciz6
	tmra9yodgZ3eSbRAe08Ng==
Date: Sun, 6 May 2012 13:07:52 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: =?ISO-8859-2?B?Smn47Q==?= Pinkava <j-pi@seznam.cz>
Message-ID: <20120506130752.7432be7c.gem@rellim.com>
In-Reply-To: <4FA651D6.1040308@seznam.cz>
References: <4FA651D6.1040308@seznam.cz>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/uNWsAXmuk8o=BgPdHn1/MGU";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] libgpsd_core: fix typo
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 20:08:01 -0000

--Sig_/uNWsAXmuk8o=BgPdHn1/MGU
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable

Yo Ji=F8=ED!

On Sun, 06 May 2012 12:26:30 +0200
Ji=F8=ED Pinkava <j-pi@seznam.cz> wrote:

> -     * Input just gecame available from a sensor, but no read from
> the
> +     * Input just became available from a sensor, but no read from

Thanks, now in git head.

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

--Sig_/uNWsAXmuk8o=BgPdHn1/MGU
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+m2hsACgkQBmnRqz71OvMfwACdF5Q9HHU54QLTfNE+FghZG6OC
MuEAmgKu+wbvejQTtdbbMsgxEkF7bcZW
=ghlt
-----END PGP SIGNATURE-----

--Sig_/uNWsAXmuk8o=BgPdHn1/MGU--


From MAILER-DAEMON Sun May 06 16:12:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR7oy-0001KI-V2
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 16:12:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55500)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7ox-0001KC-7z
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:12:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7ov-0002Xx-Bu
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:12:42 -0400
Received: from catbert.rellim.com ([204.17.205.1]:34129)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7ov-0002Xj-0J
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:12:41 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q46KCaxP006921
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sun, 6 May 2012 13:12:36 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q46KCaxP006921
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336335157; bh=ci+zgJdLn03w6MqFBpQuzpKgN3STBZ+Ev1BGkvWmB3k=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=tQJuAHbYp1G+T4lUy1/qdCSyctYKPRFiUmF+3ZbBGOSkKPvdMpjcRhgrjljno/wUu
	MQIsGJZ3BVyGwKhDvOR6w==
Date: Sun, 6 May 2012 13:12:32 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120506131232.14a31ceb.gem@rellim.com>
In-Reply-To: <20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
References: <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/GY+G8U6nvqk.gJcciFjJscg";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 20:12:44 -0000

--Sig_/GY+G8U6nvqk.gJcciFjJscg
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Hal!

On Sun, 06 May 2012 13:03:40 -0700
Hal Murray <hmurray@megapathdsl.net> wrote:

>=20
> gem@rellim.com said:
> > Sadly, as esr has found out, the cp210x linux driver is very poor
> > and gets no love from the vendor.  It does not support basic
> > ioctl() calls that gpsd needs to utilize the PPS signal.  So until
> > there is a good driver for them they are not an option for gpsd
> > users.=20
>=20
> Is there a list of serial-USB chips that are known to work and/or not
> work?

I just did an fgrep for TIOCMWAIT in the linux driver source.  Which says
nothing about other OS at all.  The best source is probably the gpsd
hardware compatibility list.

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

--Sig_/GY+G8U6nvqk.gJcciFjJscg
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+m2zMACgkQBmnRqz71OvM8owCfSLpOrkUsUvnACaD5rVRQqVHk
xvIAni6nVoCM7OQ2TqwNOXIQf5th/QzM
=ArzC
-----END PGP SIGNATURE-----

--Sig_/GY+G8U6nvqk.gJcciFjJscg--


From MAILER-DAEMON Sun May 06 16:17:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR7tT-0001pc-Hu
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 16:17:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35477)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7tQ-0001oc-EL
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:17:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7tO-0004R9-JX
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:17:20 -0400
Received: from catbert.rellim.com ([204.17.205.1]:49761)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SR7tO-0004R0-6x
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 16:17:18 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q46KHAh7007084
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sun, 6 May 2012 13:17:11 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q46KHAh7007084
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336335431; bh=p1e8ArxZZ6vE6xICqK4dF1qHz2spCNqxjVsqzyv/068=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=MR8kwXZuQU9W0zaPDlcZuTYGRJUFeuVZZBmiT8P6AEAK7fei81iysQ4WW2xYYkzwn
	Z1NCW5JzBrlJUOkdE4xFQ==
Date: Sun, 6 May 2012 13:17:07 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120506131707.25c8e662.gem@rellim.com>
In-Reply-To: <4FA66B12.2030802@ewanet.ch>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120505123800.175ed3cc.gem@rellim.com>
	<4FA59A41.6060808@ewanet.ch>
	<20120505171357.70648a1e.gem@rellim.com>
	<4FA66B12.2030802@ewanet.ch>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_//Oa9TizCz6tNrfS1.bWNNe6";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 20:17:21 -0000

--Sig_//Oa9TizCz6tNrfS1.bWNNe6
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Beat!

I like it.  Patch is now in git head.

On Sun, 06 May 2012 14:14:10 +0200
Beat Bolli <bbolli@ewanet.ch> wrote:

> On 06.05.12 02:13, Gary E. Miller wrote:
> > Yo Beat!
> >=20
> > On Sat, 05 May 2012 23:23:13 +0200
> > Beat Bolli <bbolli@ewanet.ch> wrote:
> >=20
> >> On 05.05.12 21:38, Gary E. Miller wrote:
> >>> On Fri, 4 May 2012 09:51:38 -0400
> >>> "Bywater, Rick (SA-1)" <rbywater@drs-ts.com> wrote:
> >>>
> >>>> I was running Coverity on gpsd-2.39 and it complained about an
> >>>> array-bounds issue in geoid.c in the function wsg84_separation.
> >=20
> >> The current code is still wrong IMO:
> >>
> >>     ilat =3D (int)floor((90. + lat) / 10);
> >>     ilon =3D (int)floor((180. + lon) / 10);
> >>
> >>     /* sanity checks to prevent segfault on bad data */
> >>     if ((ilat > 90) || (ilat < -90)) {
> >>         return 0.0;
> >>     }
> >>     if ((ilon > 180) || (ilon < -180)) {
> >>         return 0.0;
> >>     }
> >>
> >> ilat and ilon are offset so as to be >=3D 0, but the subsequent test
> >> checks the original degree range without offset or divisor.
> >> Checking lat and lon above the i{lat,lon} calculation should work.
> >=20
> > Seems to me that keeping the sanity test on the integer, rather
> > than, the float, is the way to go.  So I think you are suggesting
> > the test should be:
> >=20
> >      if ((ilat > 18) || (ilat < 0)) {
> >          return 0.0;
> >      }
> >      if ((ilon > 36) || (ilon < 0)) {
> >          return 0.0;
> >      }
> >=20
> > Do I have it right?
>=20
> I'd reuse the GEOID_ROW and GEOID_COL constants and merge the two ifs:
>=20
>     /* sanity checks to prevent segfault on bad data */
>     if ((ilat >=3D GEOID_ROW) || (ilat < 0) ||
>         (ilon >=3D GEOID_COL) || (ilon < 0))
>         return 0.0;
>=20
> But other than that, it looks fine.
>=20
> Regards,
> Beat




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

--Sig_//Oa9TizCz6tNrfS1.bWNNe6
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+m3EUACgkQBmnRqz71OvPYCwCeJc3TrzSvHE0UfTSud6t1iH13
nwgAn1LN9LG4knK8eRslI63wz4BGxrom
=ZvzU
-----END PGP SIGNATURE-----

--Sig_//Oa9TizCz6tNrfS1.bWNNe6--


From MAILER-DAEMON Sun May 06 17:28:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR90d-0001dy-CL
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 17:28:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42957)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR90a-0001d3-8c
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:28:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR90Y-0004rJ-2r
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:28:47 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:41857 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR90X-0004oI-Um
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:28:45 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id A2B0B40475; Sun,  6 May 2012 17:28:43 -0400 (EDT)
Date: Sun, 6 May 2012 17:28:43 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120506212843.GA14699@thyrsus.com>
References: <esr@thyrsus.com> <20120502033345.GA11913@thyrsus.com>
	<20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120502075808.6CC7880003B@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 21:28:49 -0000

Hal Murray <hmurray@megapathdsl.net>:
> 
> esr@thyrsus.com said:
> > Clock time should be OK even with a single sat - multiple birds are needed
> > for the spherical trig to compute position, but atomic time you get directly
> > from each sat sample. 
> 
> I think it's more complicated than that.
> 
> You can get time with only 1 sat if know where you are located.  It takes 
> special software, usually called "timing".

That's if you care about precision to less than the variation in
lightspeed-from-orbit and ionosphere delays.  Physicists do; most
other people don't, which is why uBlox can sell a device with a
time-service mode that (as I read the datasheet) doesn't require
a pre-survey.

Theoretical discussion only, since most GPses won't report time
without a (3-sat) fix and GPSD doesn't 

> It's worth asking Navisys if they have the timing mode software.

No chance.  I can ask, but I'm certain they'll not evenn know it exists.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 06 17:41:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9D5-000321-Kc
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 17:41:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47465)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9D3-00031j-De
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:41:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9D1-0000ss-EN
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:41:40 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42036 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9D1-0000sj-9i
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:41:39 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 1FCD340475; Sun,  6 May 2012 17:41:38 -0400 (EDT)
Date: Sun, 6 May 2012 17:41:38 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120506214138.GB14699@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC"
Content-Disposition: inline
In-Reply-To: <20120504160455.4514ac26.gem@rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 21:41:43 -0000


--wRRV7LY7NUeQGEoC
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Gary E. Miller <gem@rellim.com>:
> To meet that goal they want to source about 100 inexpensive USB/GPS for
> the local time source.  Having them all identical should reduce any
> timing errors introduced by subtle differences in models.  These are all
> software guys and previous efforts to get them to solder a few wires
> have been a failure.  Thus the desire to source a commercial solution.

Right.  Hand-building 100 devices was always a no-hoper. =20

It is also noting that while other people have been blue-skying about
Arduino boards and custom hardware I went to the market and *solved
the fscking problem*.  There's a GR601W on my desk now delivering 1PPS
where I can see it.  NaviSys will produce these in volume for us at
abot $30 a pop and the manufacturing, FCC cert etc. is *someone else's
hassle*.  That's the optimal solution.

It is now May 6.  We got a sustainable solution in *60 days* from a
cold standing start.  Don't try to tell me we'd have gotten any
kind of custom design shipping sooner than that.

> Ugh.  The Garmin 18s are unsuitable for indoor use.  The uBlox6 in the
> GR-601W works well in my basement.

And in my office.  Indoor usability is *strongly* desirable for this
application. Gary is right, the Garmin 18 would not be a good match.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--wRRV7LY7NUeQGEoC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPpvARrfUW04Qh8RwRAi4zAJ9irA66RgkIVKqg90J5SkNRMGkMUQCgwUvn
GOKjRY0wkgLnlhFftGfHAa0=
=lIRS
-----END PGP SIGNATURE-----

--wRRV7LY7NUeQGEoC--


From MAILER-DAEMON Sun May 06 17:45:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9Gc-0003Fd-1Q
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 17:45:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55947)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9GZ-0003F2-Lt
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:45:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9GX-0002ac-Rx
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:45:19 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42087 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9GX-0002aQ-NV
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:45:17 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 7FFE140475; Sun,  6 May 2012 17:45:16 -0400 (EDT)
Date: Sun, 6 May 2012 17:45:16 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120506214516.GC14699@thyrsus.com>
References: <gem@rellim.com> <20120504160455.4514ac26.gem@rellim.com>
	<20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 21:45:21 -0000

Hal Murray <hmurray@megapathdsl.net>:
> 
> gem@rellim.com said:
> > Navisys has sold us samples of a proposed GR-601W which seem to be suitable.
> >  Unit cost should be under $40 and time accuracy better than 1 milliSec.
> > Unless we find a show stopper bug, or a better solution, real soon, the
> > project will likely go with the GR-601W soon. 
> 
> Are these going to be generally available?

That's NaviSys's plan.  I sold them the idea there'd be a big market
for these thigs.
 
> Usually, when I poke a vendor name and/or model number into google, I find 
> many sites offering to sell me one, and usually several ad sites on the right 
> side.  Navisys, GR-601, or GR-601U don't find much.

Early days.  NaviSys is still getting its marketing together.  
 
> As far as I can tell, Navisys only sells wholesale.  I haven't found a retail 
> outlet for any of their stuff.  Is my google-foo just on the blink?

No. That problem still needs solving.  My plan was to try to pull some
strings at Amazon and see if I can get them to carry the GR601W.  Yes,
I have the strings to pull.
 
> Does anybody know of a retail source for USB GPS devices using the u-blox 6 
> chip set?

Not sufficient.  It would need my magic mod.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 06 17:46:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9I1-0003O7-8h
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 17:46:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56028)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9Hy-0003NO-U3
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:46:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9Hx-0002mS-8R
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:46:46 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42109 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9Hx-0002mH-4B
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:46:45 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id E341E40475; Sun,  6 May 2012 17:46:43 -0400 (EDT)
Date: Sun, 6 May 2012 17:46:43 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120506214643.GD14699@thyrsus.com>
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
	<20120505123318.061aca3f.gem@rellim.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb"
Content-Disposition: inline
In-Reply-To: <20120505123318.061aca3f.gem@rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 21:46:48 -0000


--mxv5cy4qt+RJ9ypb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Gary E. Miller <gem@rellim.com>:
> The 3 units we received were hand made engineering samples.  Not sure
> what their production schedule is, or any USA [retail] vendor.

They don't have one yet AFAIK.  That the last phase of my hack, which=20
I'll be working this week.  I have a friend at Amazon.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--mxv5cy4qt+RJ9ypb
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPpvFDrfUW04Qh8RwRArO/AKC5L1swJz2q9QLa0sK9jw7l84OfWwCglpsF
1UBkVCTsrGgibZbVwNvgRYY=
=oITM
-----END PGP SIGNATURE-----

--mxv5cy4qt+RJ9ypb--


From MAILER-DAEMON Sun May 06 17:47:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9J2-0003Uf-EI
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 17:47:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56083)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SR9J0-0003UG-AE
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:47:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SR9Iy-0002uA-IH
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:47:49 -0400
Received: from mail-gh0-f174.google.com ([209.85.160.174]:63748
	helo=mail-gy0-f174.google.com) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SR9Iy-0002tn-E0
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:47:48 -0400
Received: by ghrr11 with SMTP id r11so4968390ghr.33
	for <gpsd-dev@nongnu.org>; Sun, 06 May 2012 14:47:45 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to:x-mailer
	:x-gm-message-state;
	bh=nfQoMNu/TsuWye/GVgTzKRRLDtFRsH4hDRm285RoyPM=;
	b=HPinCpuJMZ5O1L1gGSYOdp8vgs8mcPXzi+EpjA4jLUXKxnSDupCowGPWM7iLATp5Ke
	t6alT4vvrwFghPB2I+nbCBPqfCvzXzMWnGXw/ZJxSb4BfhsFE/gmd8z+wx0P2wYEQJ1j
	aMHJypkotmPfkk9tq0j2jV1E4rM3JLDeQZEbAYR6NrL00HD5G7ApJPe3rVB/iBXN1LrJ
	cunYO2ZF+cFQ/HEZT7nX/kIk5yXYp1dI0DpoNMN7R8YFalYT/3HQ5ATHynAUihhBXNrc
	gpZX6BGLxBll4reGZ30JlNO2O04f/BV5tAsLV0FMAn/UEWKBtVFqWjpdYM/OimibQKSF
	A1rw==
Received: by 10.236.161.166 with SMTP id w26mr7264894yhk.105.1336340865615;
	Sun, 06 May 2012 14:47:45 -0700 (PDT)
Received: from [192.168.4.73] (cpe-70-113-79-122.austin.res.rr.com.
	[70.113.79.122])
	by mx.google.com with ESMTPS id p6sm24446140ani.8.2012.05.06.14.47.44
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sun, 06 May 2012 14:47:44 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1457\))
From: Jim Thompson <jim@netgate.com>
In-Reply-To: <20120506214643.GD14699@thyrsus.com>
Date: Sun, 6 May 2012 16:47:42 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <3BC6C701-1853-4A94-BF19-889B1E750925@netgate.com>
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
	<20120505123318.061aca3f.gem@rellim.com>
	<20120506214643.GD14699@thyrsus.com>
To: "Eric S. Raymond" <esr@thyrsus.com>
X-Mailer: Apple Mail (2.1457)
X-Gm-Message-State: ALoCoQlI+CEdrzjnZl8WC15phzDxQ44AmzOtTKxa4YJTPupiUnER/ECiZ8TfA5ZgW6V6rRm5f6Kv
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.174
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 21:47:51 -0000


On May 6, 2012, at 4:46 PM, "Eric S. Raymond" <esr@thyrsus.com> wrote:

> Gary E. Miller <gem@rellim.com>:
>> The 3 units we received were hand made engineering samples.  Not sure
>> what their production schedule is, or any USA [retail] vendor.
>=20
> They don't have one yet AFAIK.  That the last phase of my hack, which=20=

> I'll be working this week.  I have a friend at Amazon.

I just sent them mail requesting volume pricing, terms (typically T/T) =
and schedule.

jim



From MAILER-DAEMON Sun May 06 17:56:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9Rj-0005UW-JZ
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 17:56:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32849)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <terje@tmsw.no>) id 1SR9Rh-0005Tn-1G
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:56:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <terje@tmsw.no>) id 1SR9Rf-0006nm-GH
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:56:48 -0400
Received: from hapkido.dreamhost.com ([66.33.216.122]:54315)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <terje@tmsw.no>) id 1SR9Rf-0006nN-0F
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:56:47 -0400
Received: from homiemail-a70.g.dreamhost.com (caiajhbdcagg.dreamhost.com
	[208.97.132.66])
	by hapkido.dreamhost.com (Postfix) with ESMTP id 001A0246BCC
	for <gpsd-dev@nongnu.org>; Sun,  6 May 2012 14:56:42 -0700 (PDT)
Received: from homiemail-a70.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a70.g.dreamhost.com (Postfix) with ESMTP id 10B18768059
	for <gpsd-dev@nongnu.org>; Sun,  6 May 2012 14:56:41 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=tmsw.no; h=message-id:date:from
	:mime-version:cc:subject:references:in-reply-to:content-type:
	content-transfer-encoding; q=dns; s=tmsw.no; b=jVISdW1HNka2/g4d0
	aCNx6fohz7+x1k1CLqBH6CWX4KYkjyT53VXhnRTRutcit0aE0Pwl9cFKd29KO4DQ
	zyPqE0cvaH5lSk3Wf2aFQv6ijDPMJjG83FCw3H+kA2Frw1Iv69grQtCrktvgYahC
	VSn3K5ObNbOiTnLSjO+8UJrcKo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=tmsw.no; h=message-id:date
	:from:mime-version:cc:subject:references:in-reply-to
	:content-type:content-transfer-encoding; s=tmsw.no; bh=FiUIAjKXE
	WUuYAONscyYyATBjv4=; b=u0KVMSglxQJm71FS352WvkfNa6jZtPu21Mz5qehRI
	MxF+EtDwLcW+wZAlmCFUAsj1EOYnYfvUC/VJ4p/39H/TFYuW7WlbgjyRGbgEmKZh
	8NAJ9uudkY5LxZm/n64mjtnmweLdm+7rm/AqXnIKGU3jPFvK7TGbaDXUkcpzOHbK
	58=
Received: from [192.168.11.3] (172.79-161-68.customer.lyse.net [79.161.68.172])
	(Authenticated sender: terje@tmsw.no)
	by homiemail-a70.g.dreamhost.com (Postfix) with ESMTPA id A523D76801C
	for <gpsd-dev@nongnu.org>; Sun,  6 May 2012 14:56:40 -0700 (PDT)
Message-ID: <4FA6F396.70307@tmsw.no>
Date: Sun, 06 May 2012 23:56:38 +0200
From: Terje Mathisen <terje@tmsw.no>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
	rv:12.0) Gecko/20120429 Firefox/12.0 SeaMonkey/2.9.1
MIME-Version: 1.0
Cc: gpsd-dev@nongnu.org
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com>
In-Reply-To: <20120506214138.GB14699@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
X-Received-From: 66.33.216.122
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 21:56:50 -0000

Eric S. Raymond wrote:
 > Gary E. Miller<gem@rellim.com>:
 >> Ugh.  The Garmin 18s are unsuitable for indoor use.  The uBlox6 in the
 >> GR-601W works well in my basement.
 >
 > And in my office.  Indoor usability is *strongly* desirable for this
 > application. Gary is right, the Garmin 18 would not be a good match.

The Garmin 18 was replaced by the 18x several years ago, wasn't it?

My default at-home S1 server has the original 18 with rooftop antenna, a 
hand-soldered (for PPS) SURE board works fine indoors.

BTW, I just picked up a NetGear 3800 for the BufferBloat firmware, I 
intend to point that router at the local S1, which should result in 
better timing than a PPS over USB solution.

Terje
-- 
- <Terje@tmsw.no>
"almost all programming can be viewed as an exercise in caching"


From MAILER-DAEMON Sun May 06 17:58:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9TW-0005fV-O2
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 17:58:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33000)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SR9TU-0005fN-MY
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:58:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SR9TS-0007TU-PP
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:58:40 -0400
Received: from mail-yx0-f173.google.com ([209.85.213.173]:53391)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SR9TS-0007QL-L6
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 17:58:38 -0400
Received: by yenm4 with SMTP id m4so1227678yen.4
	for <gpsd-dev@nongnu.org>; Sun, 06 May 2012 14:58:36 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to:x-mailer
	:x-gm-message-state;
	bh=tiATqV+t7GdJGYTHOM1qlTezM5UlYLfNMJj1+CPe+Q4=;
	b=lbazimSx8e56idTiV80+DqLU6e1SZZ1rvja81bUcG8jfZzpDhkUnPA16loFoEF8SPj
	9r6dEFHgwC+RMWG9qKBm0+BoeuY05fkeNE3Qal37ME3TqgmX0duf8bCkdOSe0VGIvmOz
	S8UGGl87TvN5OHmlYwU6XYx4xDz01e4cYYlPhszXrgRtiJwpjgKAvvJ0xV/gG5RUFuw1
	UKArANbbJdqAEyEutndLT4dy5Lzp83mMiIFhppRq8j+jhopNNdNjyHeZMThigiPjMNyc
	7yF/JUn5wrW1i6VvO+b+U7qmmR5sWmQMs+10SEEsBXp0YLiuwB6IYxx0T0XZNPszwNBn
	2FDg==
Received: by 10.236.181.129 with SMTP id l1mr2327725yhm.59.1336341516603;
	Sun, 06 May 2012 14:58:36 -0700 (PDT)
Received: from [192.168.4.73] (cpe-70-113-79-122.austin.res.rr.com.
	[70.113.79.122])
	by mx.google.com with ESMTPS id y28sm73908493yhi.16.2012.05.06.14.58.35
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sun, 06 May 2012 14:58:35 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1457\))
From: Jim Thompson <jim@netgate.com>
In-Reply-To: <20120506214643.GD14699@thyrsus.com>
Date: Sun, 6 May 2012 16:58:34 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <056B7675-2FFC-4F4C-97BE-B6CFADDE725C@netgate.com>
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
	<20120505123318.061aca3f.gem@rellim.com>
	<20120506214643.GD14699@thyrsus.com>
To: "Eric S. Raymond" <esr@thyrsus.com>
X-Mailer: Apple Mail (2.1457)
X-Gm-Message-State: ALoCoQmiRmbSl2THpKz/coZpD9WHIRbsEb/eGtY8W9OvS6orLZvhBesNaNXKFIdLRgoLBVJmQ5du
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.213.173
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 21:58:42 -0000


On May 6, 2012, at 4:46 PM, "Eric S. Raymond" <esr@thyrsus.com> wrote:

> Gary E. Miller <gem@rellim.com>:
>> The 3 units we received were hand made engineering samples.  Not sure
>> what their production schedule is, or any USA [retail] vendor.
>=20
> They don't have one yet AFAIK.  That the last phase of my hack, which=20=

> I'll be working this week.  I have a friend at Amazon.

You have a friend at Amazon, I've run a storefront there for a good =
while now.

"When your item sells, Amazon collects the sales price and shipping =
costs from the buyer, deducts a referral fee of 6 to 25 percent of the =
sales price, a variable closing fee, and a per-item fee of $0.99."

http://www.amazon.com/gp/help/customer/display.html?nodeId=3D1161240

Consumer electronics are 8%.   Assuming a $50 price, Amazon is going to =
pay you less than $45.

Note that you still have to stock it and ship it at this level.   Amazon =
is going to pay you $0.45 + $0.05/lb to do so.  You don't get to charge =
'extra' for this, so you'll need to build
that into your price.

If you want Amazon to 'stock and fulfill', that costs more.  (Sell =
enough of them and they'll ask to bring it in-house.)   You'll pay for =
shelf space, inventory counts, and every 'pull'.

Is your $30 each a landed cost?  (import duties, import shipping, =
cost-of-captial, etc)  At what volume(s)?

Jim=


From MAILER-DAEMON Sun May 06 18:07:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9br-0006Ce-25
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 18:07:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44942)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9bo-0006CY-PZ
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:07:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9bm-0002XP-UF
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:07:16 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42396 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SR9bm-0002XC-Q8
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:07:14 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 5228040475; Sun,  6 May 2012 18:07:13 -0400 (EDT)
Date: Sun, 6 May 2012 18:07:13 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120506220713.GE14699@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FA67DE1.3080701@wildgooses.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 22:07:18 -0000

Ed W <lists@wildgooses.com>:
> Incidentally I have a load of these (very inexpensive):
> http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle.html
> 
> They are detected as a "cp210x: v0.09:Silicon Labs CP210x RS232
> serial adaptor driver".  Some googling suggests this is a USB2
> chipset?

It is, but it sucks.  Due to the vendor's secrecy fetish, the Linux
driver for the CP2101 couldn't see 1PPS even if the device had my
nagic hardware patch.  This is the exact reason our UniTraq samples
didn't work.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 06 18:10:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SR9el-0006QR-Gs
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 18:10:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49339)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SR9ej-0006Pz-BO
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:10:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SR9eh-0004Eu-K2
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:10:16 -0400
Received: from mail-pb0-f45.google.com ([209.85.160.45]:59789)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SR9eh-0004Eb-Az
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:10:15 -0400
Received: by pbbro12 with SMTP id ro12so8092987pbb.4
	for <gpsd-dev@nongnu.org>; Sun, 06 May 2012 15:10:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:user-agent:mime-version:to:subject:references
	:in-reply-to:content-type:content-transfer-encoding;
	bh=XDnI7vF4gkCXAA1RpFS2oIQ4PFWMvi4gPOjaZZsSL2w=;
	b=SgnHAYWE87U5qMwEjDuC38aDkvK3pGHd5/a/xRHi4s6V16KTfxFjB8+Y8D6M3KAJQ1
	DLhmdnb59AcKXe65xYpKGy6U8o2t6qZNBpkGSOzYHgZ73hLq8261V/l/TfbFIfkEZXjO
	VMx6g9rpgu9sZYWXgRR+Ytbs6ljnzCTd4RNvokkne2C7T8d1BmiaOGYA4iBT/aLJSf5c
	nNPch26SzML/43w3v7XP7O3vvkN/d58dcjKNSeeTPf0dVyZDiDB2Gp53l/i/qXbXkcYe
	1zIZH0oeWVX7fwctpc8T8Hwu6a4HWrtShlYQ+W6F6fp2qch4dDmp4scljpCuRgnl/wxR
	m0RA==
Received: by 10.68.203.40 with SMTP id kn8mr39088289pbc.162.1336342212767;
	Sun, 06 May 2012 15:10:12 -0700 (PDT)
Received: from ?IPv6:2001:4f8:3:203::c001? ([2001:4f8:3:203::c001])
	by mx.google.com with ESMTPS id wn3sm16059698pbc.74.2012.05.06.15.10.10
	(version=SSLv3 cipher=OTHER); Sun, 06 May 2012 15:10:11 -0700 (PDT)
Message-ID: <4FA6F6C1.6020302@gmail.com>
Date: Sun, 06 May 2012 15:10:09 -0700
From: dave taht <dave.taht@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120410 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
	<20120506220713.GE14699@thyrsus.com>
In-Reply-To: <20120506220713.GE14699@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.45
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 22:10:18 -0000

On 05/06/2012 03:07 PM, Eric S. Raymond wrote:
> Ed W<lists@wildgooses.com>:
>> Incidentally I have a load of these (very inexpensive):
>> http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle.html
>>
>> They are detected as a "cp210x: v0.09:Silicon Labs CP210x RS232
>> serial adaptor driver".  Some googling suggests this is a USB2
>> chipset?
> It is, but it sucks.  Due to the vendor's secrecy fetish, the Linux
> driver for the CP2101 couldn't see 1PPS even if the device had my
> nagic hardware patch.  This is the exact reason our UniTraq samples
> didn't work.
magic hardware patch? kernel patch? Donde?

Building kernels is not a lot of fun
for cerowrt, I don't have a major build scheduled til thursday....




From MAILER-DAEMON Sun May 06 18:42:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRA9Q-0000Fl-D6
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 18:42:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42052)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRA9N-0000Eq-9U
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:41:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRA9L-0006mW-GG
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:41:56 -0400
Received: from catbert.rellim.com ([204.17.205.1]:35919)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRA9K-0006m0-Vd
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:41:55 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q46Mfoe2011618
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sun, 6 May 2012 15:41:50 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q46Mfoe2011618
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336344110; bh=GJdWdjOTwY9ahT7QionsBEo0Ecv5S47WIxQfG7sybkc=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=KkHWSAovoUq/W1Utar9iRdGLU7yGKQmXsnQxLpzqZkE31LWOwDRHKj3fDtzC/qSMd
	2DuklDL/PFKgDRYKWqJuA==
Date: Sun, 6 May 2012 15:41:46 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: dave taht <dave.taht@gmail.com>
Message-ID: <20120506154146.69d7d5dc.gem@rellim.com>
In-Reply-To: <4FA6F6C1.6020302@gmail.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
	<20120506220713.GE14699@thyrsus.com> <4FA6F6C1.6020302@gmail.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/JbjJku9Nnfd+l+r+Rci2TES";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 22:41:58 -0000

--Sig_/JbjJku9Nnfd+l+r+Rci2TES
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo dave!

On Sun, 06 May 2012 15:10:09 -0700
dave taht <dave.taht@gmail.com> wrote:

> On 05/06/2012 03:07 PM, Eric S. Raymond wrote:
> > Ed W<lists@wildgooses.com>:
> >> Incidentally I have a load of these (very inexpensive):
> >> http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle=
.html
> >>
> >> They are detected as a "cp210x: v0.09:Silicon Labs CP210x RS232
> >> serial adaptor driver".  Some googling suggests this is a USB2
> >> chipset?
> > It is, but it sucks.  Due to the vendor's secrecy fetish, the Linux
> > driver for the CP2101 couldn't see 1PPS even if the device had my
> > nagic hardware patch.  This is the exact reason our UniTraq samples
> > didn't work.
> magic hardware patch?

Yup.  Hardware patch connecting PPS from the GPS to CTS on the CP210x.

> kernel patch?

That too, if you want to get the cp210x driver to support ioctl(TIOCMWAIT)
then that would be a kernel patch. =20
=20
> Building kernels is not a lot of fun
> for cerowrt, I don't have a major build scheduled til thursday....

Well, just be sure you have the PL2303 driver in the kernel and you are
good to go with the Navisus GR-601W engineering sample.

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

--Sig_/JbjJku9Nnfd+l+r+Rci2TES
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+m/i0ACgkQBmnRqz71OvMMhACfW5lmD4udoc6WTCfJn/0MJVX5
mKAAnjFg+KSLkH+QRdSPIh73lbb96vLr
=8QX0
-----END PGP SIGNATURE-----

--Sig_/JbjJku9Nnfd+l+r+Rci2TES--


From MAILER-DAEMON Sun May 06 18:48:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRAFS-0000Xg-0T
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 18:48:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37532)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRAFP-0000Xa-So
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:48:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRAFO-0000DW-4Y
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:48:11 -0400
Received: from catbert.rellim.com ([204.17.205.1]:53566)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRAFN-0000DL-Oh
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 18:48:10 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q46Mm7BX011960
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Sun, 6 May 2012 15:48:07 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q46Mm7BX011960
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336344488; bh=zEzkS/UmE/BMpMJ3Qd1ceaaWW70ZMtN4Pc+mRpw1xQE=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=eRgf94iu7z5aVL3G27cOAFbXgZsqlH9ONVqpCIkvgWaeoPvpho2m4whT+Bg70cF1N
	0lB7eYXL6A9xZYA0GngrQ==
Date: Sun, 6 May 2012 15:48:04 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Terje Mathisen <terje@tmsw.no>
Message-ID: <20120506154804.083375f3.gem@rellim.com>
In-Reply-To: <4FA6F396.70307@tmsw.no>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/32ls+sSDEGSFkbEgXyb3.4X";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 22:48:13 -0000

--Sig_/32ls+sSDEGSFkbEgXyb3.4X
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Terje!

On Sun, 06 May 2012 23:56:38 +0200
Terje Mathisen <terje@tmsw.no> wrote:

> Eric S. Raymond wrote:
>  > Gary E. Miller<gem@rellim.com>:
>  >> Ugh.  The Garmin 18s are unsuitable for indoor use.  The uBlox6
>  >> in the GR-601W works well in my basement.
>  >
>  > And in my office.  Indoor usability is *strongly* desirable for
>  > this application. Gary is right, the Garmin 18 would not be a good
>  > match.
>=20
> The Garmin 18 was replaced by the 18x several years ago, wasn't it?

Yes.  I have an 18x but not tried it yet.
=20
> My default at-home S1 server has the original 18 with rooftop
> antenna, a hand-soldered (for PPS) SURE board works fine indoors.

I did the same for years at my office.  The Garmin18 works fine when
roof mounted.  Not so good on the side of my house.  So it was easier to
buy a SiRFIII then to get the Garmin18 on my house roof.

> BTW, I just picked up a NetGear 3800 for the BufferBloat firmware, I=20
> intend to point that router at the local S1, which should result in=20
> better timing than a PPS over USB solution.

Yup.  I would guess 10x to 20x better from my recent experience.

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

--Sig_/32ls+sSDEGSFkbEgXyb3.4X
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+m/6YACgkQBmnRqz71OvNnKwCeOXpsuFkDfA032LENBqud/WXi
zH4An1rvrZyH/hN2LJp/5ZR4mDe6iq8O
=j2VB
-----END PGP SIGNATURE-----

--Sig_/32ls+sSDEGSFkbEgXyb3.4X--


From MAILER-DAEMON Sun May 06 19:11:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRAbe-00023X-P4
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 19:11:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55558)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRAbb-00023R-Ki
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 19:11:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRAbZ-0000zN-Lm
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 19:11:07 -0400
Received: from mail-wi0-f181.google.com ([209.85.212.181]:45477)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRAbZ-0000zJ-D5
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 19:11:05 -0400
Received: by wibhn14 with SMTP id hn14so2417123wib.10
	for <gpsd-dev@nongnu.org>; Sun, 06 May 2012 16:11:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=Own6tz/A6vf2LmVAZ0PzrYTEETf2PW94zqk4FJCC0+c=;
	b=HjPnGgw4CVu9+9QkkppmXqZuJClw+poAbY9QiYZq4RNdljVhNzDRmMF3bcoR+2tAtX
	ZLTYbXiVip6eIAyu6RrwB32tKi4Ks4zPuwbckNnsy6ad0GpHEYcg+jg30GgS4eUSpxsD
	cAoRhmf5tRd9P0oqkGRNCg4fqGw2gtN+gWz0VKSS+9rnlSJZE309si+XXknm+I8mFwUr
	i3d/+x34bIT+sAu5bkct/C9Rw4fWQ948hKpG/5mT/eFrwxpwzQmNGmuDikXz9e9v/8fB
	h8ZsGn8S1pcS3Bk6M/3bWXFx0Ov7clXRAX2FJOCKZAxjO99DAS6g79Q8MUwQHwdegAUC
	Z2aA==
MIME-Version: 1.0
Received: by 10.180.94.7 with SMTP id cy7mr8527633wib.3.1336345863499; Sun, 06
	May 2012 16:11:03 -0700 (PDT)
Received: by 10.223.112.66 with HTTP; Sun, 6 May 2012 16:11:03 -0700 (PDT)
In-Reply-To: <20120506154804.083375f3.gem@rellim.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
	<20120506154804.083375f3.gem@rellim.com>
Date: Sun, 6 May 2012 16:11:03 -0700
Message-ID: <CAA93jw5sUWhAirZrNz0QXLMjUQm391UrYWGEraraTWCfNUmtcQ@mail.gmail.com>
From: Dave Taht <dave.taht@gmail.com>
To: "Gary E. Miller" <gem@rellim.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.212.181
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 06 May 2012 23:11:09 -0000

On Sun, May 6, 2012 at 3:48 PM, Gary E. Miller <gem@rellim.com> wrote:
> Yo Terje!
>
> On Sun, 06 May 2012 23:56:38 +0200
> Terje Mathisen <terje@tmsw.no> wrote:
>
>> Eric S. Raymond wrote:
>> =A0> Gary E. Miller<gem@rellim.com>:
>> =A0>> Ugh. =A0The Garmin 18s are unsuitable for indoor use. =A0The uBlox=
6
>> =A0>> in the GR-601W works well in my basement.
>> =A0>
>> =A0> And in my office. =A0Indoor usability is *strongly* desirable for
>> =A0> this application. Gary is right, the Garmin 18 would not be a good
>> =A0> match.
>>
>> The Garmin 18 was replaced by the 18x several years ago, wasn't it?
>
> Yes. =A0I have an 18x but not tried it yet.
>
>> My default at-home S1 server has the original 18 with rooftop
>> antenna, a hand-soldered (for PPS) SURE board works fine indoors.
>
> I did the same for years at my office. =A0The Garmin18 works fine when
> roof mounted. =A0Not so good on the side of my house. =A0So it was easier=
 to
> buy a SiRFIII then to get the Garmin18 on my house roof.
>
>> BTW, I just picked up a NetGear 3800 for the BufferBloat firmware, I
>> intend to point that router at the local S1, which should result in
>> better timing than a PPS over USB solution.

I'm tickled. Stick with the current cero firmware tho... and we have
some cool new stuff happening in a week or two more. It did,
last I looked, run gpsd fine, you did have to do an opkg install of the
right kmod-serial-something.

> Yup. =A0I would guess 10x to 20x better from my recent experience.

Heh. Don't count your eggs before you measure. When a box is running flat o=
ut
97% of the time spent in the interrupt handler, god knows what will happen.

http://www.bufferbloat.net/projects/cerowrt/issues/379

There are always heisenbugs.

(note the above is against an unreleased version of cerowrt, running
 at the fastest speed yet achieved, where we found new problems)

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



--=20
Dave T=E4ht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net


From MAILER-DAEMON Sun May 06 23:20:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SREUw-00020w-Ju
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 23:20:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50578)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREUu-00020p-75
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:20:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREUs-0000p8-7C
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:20:27 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:46991 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREUs-0000oy-38
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:20:26 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 3F16C40475; Sun,  6 May 2012 23:20:23 -0400 (EDT)
Date: Sun, 6 May 2012 23:20:23 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120507032023.GA16601@thyrsus.com>
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 03:20:29 -0000

Hal Murray <hmurray@megapathdsl.net>:
> Is there a list of serial-USB chips that are known to work and/or not work?

You can generate one by grepping for TIOCMIWAIT in the driver tree.  Gary
did this as one point.  The PL2303 is defintely good, the CP210x bad.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 06 23:21:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SREWF-0002AR-RC
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 23:21:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50753)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREWD-0002AL-FO
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:21:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREWB-00011L-PH
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:21:49 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:47011 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREWB-00011H-L9
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:21:47 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 350A240475; Sun,  6 May 2012 23:21:46 -0400 (EDT)
Date: Sun, 6 May 2012 23:21:46 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: dave taht <dave.taht@gmail.com>
Message-ID: <20120507032146.GB16601@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
	<20120506220713.GE14699@thyrsus.com> <4FA6F6C1.6020302@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FA6F6C1.6020302@gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 03:21:50 -0000

dave taht <dave.taht@gmail.com>:
> >It is, but it sucks.  Due to the vendor's secrecy fetish, the Linux
> >driver for the CP2101 couldn't see 1PPS even if the device had my
> >nagic hardware patch.  This is the exact reason our UniTraq samples
> >didn't work.
> magic hardware patch? kernel patch? Donde?

My magic hardware patch is the wire connecting 1PPS no DCD.

No kernel patch is required.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 06 23:26:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SREaK-0002Py-Fv
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 23:26:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52515)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREaI-0002Pe-Bz
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:26:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREaG-0002fJ-AX
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:26:01 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:47072 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREaG-0002fE-6R
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:26:00 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 786C640475; Sun,  6 May 2012 23:25:58 -0400 (EDT)
Date: Sun, 6 May 2012 23:25:58 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Jim Thompson <jim@netgate.com>
Message-ID: <20120507032558.GC16601@thyrsus.com>
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
	<20120505123318.061aca3f.gem@rellim.com>
	<20120506214643.GD14699@thyrsus.com>
	<056B7675-2FFC-4F4C-97BE-B6CFADDE725C@netgate.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <056B7675-2FFC-4F4C-97BE-B6CFADDE725C@netgate.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 03:26:03 -0000

Jim Thompson <jim@netgate.com>:
> Consumer electronics are 8%.  Assuming a $50 price, Amazon is going
>  to pay you less than $45.

You misunderstand.  My intention is to talk Amazon into stocking it as
part of their *own* line of gadgets.  I don't want to run a storefront;
don't want the hassle.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 06 23:50:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SREyM-0004RL-2H
	for mharc-gpsd-dev@gnu.org; Sun, 06 May 2012 23:50:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53654)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREyI-0004Ee-JX
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:50:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREyG-00034U-Qb
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:50:50 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:47494 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SREyG-00034M-Mk
	for gpsd-dev@nongnu.org; Sun, 06 May 2012 23:50:48 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 2117640475; Sun,  6 May 2012 23:50:46 -0400 (EDT)
Date: Sun, 6 May 2012 23:50:46 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
Message-ID: <20120507035046.GA16848@thyrsus.com>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 03:50:52 -0000

Bywater, Rick (SA-1) <rbywater@drs-ts.com>:
> I was running Coverity on gpsd-2.39 and it complained about an array-bounds
> issue in geoid.c in the function wsg84_separation.

We've incorporated a fix patch to the repo head version.

Please run Coverity on repo head and post the results here.  I'd *love* to see  
a current Coverity defect list.  We're on their list of projects allowed
to self-scan from their website, but they have never gotten that machinery
together enough that we can actually do it from here.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 07 00:06:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRFDV-0004RX-DC
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 00:06:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46310)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRFDS-0004In-IW
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:06:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRFDQ-0000kf-RY
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:06:30 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:52363)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRFDQ-0000kQ-KC
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:06:28 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id AF26E800073; 
	Sun,  6 May 2012 21:06:26 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: esr@thyrsus.com
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Eric S. Raymond" <esr@thyrsus.com>
	of "Sun, 06 May 2012 23:20:23 EDT." <20120507032023.GA16601@thyrsus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sun, 06 May 2012 21:06:26 -0700
Message-Id: <20120507040626.AF26E800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 04:06:32 -0000


esr@thyrsus.com said:
> You can generate one by grepping for TIOCMIWAIT in the driver tree.  Gary
> did this as one point.  The PL2303 is defintely good, the CP210x bad. 

Thanks.  For the archives, here is what I see in a handy kernel source tree.

[murray@shuksan linux-3.2.12]$ grep -r TIOCMIWAIT ./drivers/usb/serial -l
./drivers/usb/serial/ark3116.c
./drivers/usb/serial/ti_usb_3410_5052.c
./drivers/usb/serial/oti6858.c
./drivers/usb/serial/cypress_m8.c
./drivers/usb/serial/io_edgeport.c
./drivers/usb/serial/spcp8x5.c
./drivers/usb/serial/ssu100.c
./drivers/usb/serial/ch341.c
./drivers/usb/serial/mos7840.c
./drivers/usb/serial/ftdi_sio.c
./drivers/usb/serial/pl2303.c
./drivers/usb/serial/io_ti.c
./drivers/usb/serial/mct_u232.c
./drivers/usb/serial/mos7720.c
[murray@shuksan linux-3.2.12]$ 


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Mon May 07 00:30:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRFaf-0007ro-4t
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 00:30:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41435)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRFab-0007ri-Rg
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:30:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRFaZ-0002rK-Mp
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:30:25 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:48168 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRFaZ-0002qw-Ip
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:30:23 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 111AA40475; Mon,  7 May 2012 00:30:20 -0400 (EDT)
Date: Mon, 7 May 2012 00:30:20 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120507043020.GA17039@thyrsus.com>
References: <esr@thyrsus.com> <20120507032023.GA16601@thyrsus.com>
	<20120507040626.AF26E800073@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120507040626.AF26E800073@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 04:30:28 -0000

Hal Murray <hmurray@megapathdsl.net>:
> 
> esr@thyrsus.com said:
> > You can generate one by grepping for TIOCMIWAIT in the driver tree.  Gary
> > did this as one point.  The PL2303 is defintely good, the CP210x bad. 
> 
> Thanks.  For the archives, here is what I see in a handy kernel source tree.
> 
> [murray@shuksan linux-3.2.12]$ grep -r TIOCMIWAIT ./drivers/usb/serial -l
> ./drivers/usb/serial/ark3116.c
> ./drivers/usb/serial/ti_usb_3410_5052.c
> ./drivers/usb/serial/oti6858.c
> ./drivers/usb/serial/cypress_m8.c
> ./drivers/usb/serial/io_edgeport.c
> ./drivers/usb/serial/spcp8x5.c
> ./drivers/usb/serial/ssu100.c
> ./drivers/usb/serial/ch341.c
> ./drivers/usb/serial/mos7840.c
> ./drivers/usb/serial/ftdi_sio.c
> ./drivers/usb/serial/pl2303.c
> ./drivers/usb/serial/io_ti.c
> ./drivers/usb/serial/mct_u232.c
> ./drivers/usb/serial/mos7720.c
> [murray@shuksan linux-3.2.12]$ 

Our hotplug rules, which have been stable for some time and thus probably
enumerate the subset of serial-to-USB adapters found in GPSes pretty well, 
give us these:

# Prolific Technology, Inc. PL2303 Serial Port [linux module: pl2303]
# FTDI 8U232AM / FT232 [linux module: ftdi_sio]
# Cypress M8/CY7C64013 (Delorme uses these) [linux module: cypress_m8]
# Garmin International GPSmap, various models (tested with Garmin GPS 18 USB)  [linux module: garmin_gps]
# Cygnal Integrated Products, Inc. [linux module: cp210x]
# u-blox AG, u-blox 5 (tested with Navilock NL-402U) [linux module: cdc_acm]

I think we can deduce from this the following:

PL2303, Cypress M8, FTDI SIO - good

CP2120x - bad (we already knew this). 
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 07 00:38:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRFi4-0001Tv-UP
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 00:38:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46749)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRFi1-0001My-Re
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:38:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRFhz-00053p-Vj
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:38:05 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:48270 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRFhz-00053f-RU
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 00:38:03 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id EC13140475; Mon,  7 May 2012 00:38:01 -0400 (EDT)
Date: Mon, 7 May 2012 00:38:01 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120507043801.GA17127@thyrsus.com>
References: <20120506013821.57849800073@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120506013821.57849800073@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] errors from scons testregress: Trimble-lassen
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 04:38:07 -0000

Hal Murray <hmurray@megapathdsl.net>:
> I'm not familiar with the gpsd build/test environment.  On a recent git pull, 
> scons (build) seemed happy, but scons testregress gives the following errors:
> 
> Regression test FAILED: 3 errors in 78 tests total (0 not found).
> The following test Failed:
> ================================================================
> "test/daemon/trimble-lassen_iq-3dfix.log"
> "test/daemon/trimble-lassen_iq-playacar.log"
> "test/daemon/trimble-lassen_iq.log"
> ================================================================
> Elapsed time: 281
> scons: *** [gps-regress] Error 3
> scons: building terminated because of errors.
> 
> 
> Looking way back, I see something like this for all 3 cases:
> 
> Processing test/daemon/trimble-lassen_iq-3dfix.log
> Traceback (most recent call last):
>   File "/home/murray/gpsd/gpsd-git/gpsfake", line 171, in <module>
>     test.gps_add(logfile, speed=speed, pred=fakehook)
>   File "/home/murray/gpsd/gpsd-git/gps/fake.py", line 453, in gps_add
>     progress=self.progress)
>   File "/home/murray/gpsd/gpsd-git/gps/fake.py", line 249, in __init__
>     [iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
> termios.error: (22, 'Invalid argument')
> --- test/daemon/trimble-lassen_iq-3dfix.log.chk 2011-10-24 01:29:33.000000000 
> -0700
> +++ /tmp/gpsd-test-uK66kjQzdvfWn0/test-4743.chk 2012-05-05 18:24:53.000000000 
> -0700
> @@ -1,251 +0,0 @@
> -$GPGSV,3,1,10,00,00,000,00,19,26,250,29,00,00,000,00,18,26,096,37*7C^M
> -$GPGSV,3,2,10,01,29,221,26,11,24,307,29,03,08,225,28,00,00,000,00*7B^M
> -$GPGSV,3,3,10,22,65,094,37,09,24,045,37*78^M
> -{"class":"SKY","tag":"ID5c","xdop":1.21,"ydop":5.27,"vdop":2.56,"tdop":1.47,"
> hdop":1.43,"gdop":3.28,"pdop":2.93,"satellites":[{"PRN":19,"el":26,"az":250,"s
> s":29,"used":true},{"PRN":18,"el":26,"az":96,"ss":37,"used":true},{"PRN":1,"el
> ":29,"az":221,"ss":26,"used":false},{"PRN":11,"el":24,"az":307,"ss":29,"used":
> true},{"PRN":3,"el":8,"az":225,"ss":28,"used":false}]}^M
> ...
> 
> I'm running on a old Fedora box.  Kernel is 2.6.38.5 with my local config 
> file.
> 
> Is this a known problem area?  If not, what do I do to help track it down?

This is a bug in older versions of the Python termios library, I think.  
What's triggering it is gpsfake trying to set a word-length/stop-bits
combination other than N8, which those device types and only those require.

I dimly recally tripping over something similar in the past.  Simplest way
to fix it is just upgrade your Python version.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 07 04:48:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRJcE-0003ko-MD
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 04:48:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54407)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRJc8-0003ke-Ok
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 04:48:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRJc6-00024I-VO
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 04:48:16 -0400
Received: from mail-gh0-f174.google.com ([209.85.160.174]:56027
	helo=mail-gy0-f174.google.com) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRJc6-000244-Re
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 04:48:14 -0400
Received: by ghrr11 with SMTP id r11so5292478ghr.33
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 01:48:12 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=references:in-reply-to:mime-version:content-transfer-encoding
	:content-type:message-id:cc:x-mailer:from:subject:date:to
	:x-gm-message-state;
	bh=aAPGBRTm2PkkL53lydw+5cS0zRzlT+Sz7k0YbBrh81s=;
	b=pB/H7gb2lsiFQRvs5AeSi/sAT3NzE5Xw6b5XlomQMzj6+Nsw5ihbo8RFoWj0VyUCIv
	PzlCpU0RCz7HbpP8UTD2/ki8adlqwDCe8z95i2JUen+mm6xaAPxqRCJj9sflmkl8m/ux
	dNmwcocTfGXC/47+59O80HQeMDvc7qSKg5wQTGx1ktUWdgS0SsXwZVZRVhTbVMNo2znO
	Yikh5SLgtycwsjQLQhliLtVJPjY515aGaq9oRdYzPrzbqW+5gg/ZHVU5Q+pXAdu4En+S
	vfvpLWuwxLzgtGRbX3Pm6Qrbw5CdZeF552Xx0NhOarMVXqB4vLlhzXWgQxlbwJEl2ZXo
	1W8A==
Received: by 10.236.184.226 with SMTP id s62mr18910326yhm.119.1336380492516;
	Mon, 07 May 2012 01:48:12 -0700 (PDT)
Received: from [192.168.4.3] (cpe-70-113-79-122.austin.res.rr.com.
	[70.113.79.122])
	by mx.google.com with ESMTPS id f61sm80661581yhg.14.2012.05.07.01.48.11
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 07 May 2012 01:48:11 -0700 (PDT)
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
	<20120505123318.061aca3f.gem@rellim.com>
	<20120506214643.GD14699@thyrsus.com>
	<056B7675-2FFC-4F4C-97BE-B6CFADDE725C@netgate.com>
	<20120507032558.GC16601@thyrsus.com>
In-Reply-To: <20120507032558.GC16601@thyrsus.com>
Mime-Version: 1.0 (1.0)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii
Message-Id: <68218A19-C43B-4262-B21B-D680B848F1E3@netgate.com>
X-Mailer: iPhone Mail (9B176)
From: Jim Thompson <jim@netgate.com>
Date: Mon, 7 May 2012 03:47:49 -0500
To: "esr@thyrsus.com" <esr@thyrsus.com>
X-Gm-Message-State: ALoCoQkWB5HnHiCt41i6aBXeAUbeXZKdKqXnICle4fK14I6tYSi9YhriYJ5Sy8uSmTxonK6pvA77
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.174
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 08:48:21 -0000


On May 6, 2012, at 22:25, "Eric S. Raymond" <esr@thyrsus.com> wrote:

> Jim Thompson <jim@netgate.com>:
>> Consumer electronics are 8%.  Assuming a $50 price, Amazon is going
>> to pay you less than $45.
>=20
> You misunderstand.  My intention is to talk Amazon into stocking it as
> part of their *own* line of gadgets.  I don't want to run a storefront;
> don't want the hassle.

I wish you luck in your quest.  (But think you misunderstand the biz model a=
t Amazon.)

I'll still pursue things from my end. =20

Jim



From MAILER-DAEMON Mon May 07 05:44:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRKUk-0002Z1-Ps
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 05:44:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33853)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRKUd-0002Yc-T3
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 05:44:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRKUX-0007pm-Mq
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 05:44:35 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:59501)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRKUX-0007ni-E4
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 05:44:29 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id A15C8800073; 
	Mon,  7 May 2012 02:44:26 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: esr@thyrsus.com
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Eric S. Raymond" <esr@thyrsus.com>
	of "Mon, 07 May 2012 00:38:01 EDT." <20120507043801.GA17127@thyrsus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 07 May 2012 02:44:26 -0700
Message-Id: <20120507094426.A15C8800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] errors from scons testregress: Trimble-lassen
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 09:44:41 -0000


esr@thyrsus.com said:
>> Regression test FAILED: 3 errors in 78 tests total (0 not found).
>> The following test Failed:
>> ================================================================
>> "test/daemon/trimble-lassen_iq-3dfix.log"
>> "test/daemon/trimble-lassen_iq-playacar.log"
>> "test/daemon/trimble-lassen_iq.log"
>> Is this a known problem area?  If not, what do I do to help track it down?
> This is a bug in older versions of the Python termios library, I think.
> What's triggering it is gpsfake trying to set a word-length/stop-bits
> combination other than N8, which those device types and only those require.

Thanks.

I tried on a newer system, Fedora 17.  It's got python 2.7.  It gets the same 
error.

I poked around a bit and found a termios.py out there.  A comment on the top 
says it was generated with h2py.  I think I'll put this on the back burner 
for now.

----------

I've got another quirk on that new system.  It can't build the man pages:

xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/d
ocbook.xsl gpsctl.xml > gpsctl.1
I/O error : Attempt to load network entity http://docbook.sourceforge.net/rele
ase/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/releas
e/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbo
ok.xsl
scons: *** [gpsctl.1] Error 4
scons: building terminated because of errors.

The same command line works on the older system.  Looks like the remapping 
for http://docbook.sourceforge.net/release/xsl/current/ has been removed from 
/etc/xml/catalog

Is anybody familiar with this area?


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Mon May 07 07:03:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRLin-0007Zg-PL
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 07:03:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40269)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRLik-0007ZR-8d
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 07:03:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRLid-00082L-LB
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 07:03:13 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:48561)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRLid-000810-Cz
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 07:03:07 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id D5CFE34032A
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 12:03:05 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id 4XkKC79Q_-q0 for <gpsd-dev@nongnu.org>;
	Mon,  7 May 2012 12:03:05 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 95886340317
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 12:03:05 +0100 (BST)
Message-ID: <4FA7ABE9.9020404@wildgooses.com>
Date: Mon, 07 May 2012 12:03:05 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
	<20120505123318.061aca3f.gem@rellim.com>
	<20120506214643.GD14699@thyrsus.com>
	<056B7675-2FFC-4F4C-97BE-B6CFADDE725C@netgate.com>
In-Reply-To: <056B7675-2FFC-4F4C-97BE-B6CFADDE725C@netgate.com>
X-TagToolbar-Keys: D20120507120305069
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 11:03:15 -0000

On 06/05/2012 22:58, Jim Thompson wrote:
> On May 6, 2012, at 4:46 PM, "Eric S. Raymond"<esr@thyrsus.com>  wrote:
>
>> Gary E. Miller<gem@rellim.com>:
>>> The 3 units we received were hand made engineering samples.  Not sure=

>>> what their production schedule is, or any USA [retail] vendor.
>> They don't have one yet AFAIK.  That the last phase of my hack, which
>> I'll be working this week.  I have a friend at Amazon.
> You have a friend at Amazon, I've run a storefront there for a good whi=
le now.
>
> "When your item sells, Amazon collects the sales price and shipping cos=
ts from the buyer, deducts a referral fee of 6 to 25 percent of the sales=
 price, a variable closing fee, and a per-item fee of $0.99."
>
> http://www.amazon.com/gp/help/customer/display.html?nodeId=3D1161240
>
> Consumer electronics are 8%.   Assuming a $50 price, Amazon is going to=
 pay you less than $45.
>
> Note that you still have to stock it and ship it at this level.   Amazo=
n is going to pay you $0.45 + $0.05/lb to do so.  You don't get to charge=
 'extra' for this, so you'll need to build
> that into your price.
>
> If you want Amazon to 'stock and fulfill', that costs more.  (Sell enou=
gh of them and they'll ask to bring it in-house.)   You'll pay for shelf =
space, inventory counts, and every 'pull'.
>
> Is your $30 each a landed cost?  (import duties, import shipping, cost-=
of-captial, etc)  At what volume(s)?
>
> Jim

Further sob story: I spend something like 6-9 months getting a new=20
product added to their catalogue (it's *SERIOUSLY* hard to get a new=20
item added unless you have a pre-allocated unique part number for it (I=20
forget the name for this number now)).  Finally got the part added, had=20
to pay them =A320/month to be a premium store during all that time, then =

we finally sold three items of the new part, one week later we got an=20
email saying that Amazon no longer wanted to trade with us and that our=20
account would be closed... Now here is the interesting part - without a=20
vendor login to amazon you can no longer even phone them (wierd, but=20
it's how they structure their business).  So they currently have =A32,500=
=20
(about $4,000) of my money and I have no way to phone/email and ask for=20
it back - their general channels refuse any attempts to negotiate and=20
decline to pass a message - emails to the correct department are never=20
replied to.

Amazon is a tough nut if things go wrong.  I still don't know how this=20
story is going to pan out - I think we need to actually sue them to get=20
the money back, but in Europe it's not that obvious even how to do that=20
because of their unusual trade structure....

Good luck...

Ed W



From MAILER-DAEMON Mon May 07 07:32:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRMAl-00037T-Nx
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 07:32:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56984)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMAe-00037H-KC
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 07:32:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMAc-00024Q-9v
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 07:32:04 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:58330)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMAc-00024G-0c
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 07:32:02 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 210E534032A;
	Mon,  7 May 2012 12:32:00 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id 8wL6VciAGi48; Mon,  7 May 2012 12:31:59 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id BBE04340317;
	Mon,  7 May 2012 12:31:59 +0100 (BST)
Message-ID: <4FA7B2AF.50901@wildgooses.com>
Date: Mon, 07 May 2012 12:31:59 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA6668B.70503@wildgooses.com>
	<20120506130506.3a4f07a1.gem@rellim.com>
In-Reply-To: <20120506130506.3a4f07a1.gem@rellim.com>
X-TagToolbar-Keys: D20120507123159068
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 11:32:10 -0000


...Very hostile answer Gary? What did I say to tick you off?


>> Just to be clear - the above is a waaay more powerful board than most
>> routers, it's i586 compatible (rather than ARM).  However, it is
>> probably more expensive than an old Linksys router, and it's
>> switching capacity is almost certainly lower than a cutting edge
>> Linksys job.
> And that is exactly the problem.  They want a common dumb consumer
> platform becasue they are looking to develop teaks for dumb consumer
> platorms.

Still not quite clear what you are saying here?  First you say you can't 
do diy, then you say that you want to tweak off the shelf stuff?  At 
least some interpretations of that are incompatible? Are you saying that 
you cannot narrow the platform hardware choices?

The front page of the thumbgps platform suggests you are building your 
own 'wrt clone?

Note although you are ticking me off for *asking* if DIY is an option, 
your mailing list is full of technical chatter - I think you are quite 
harsh to an outside simply trying to offer some ideas when it's really 
not obvious what the parameters are.  I will stand corrected though...


>> The bit I was trying to square was that the GPIOs don't currently
>> have a linux driver which is interrupt triggered.
>
> Yup, and the bufferbloat project noted that and explictly decided that
> to go down that road was to go Yak Shearing.  If such a driver should
> appear that might be usefull in a future project.

Don't understand?  Isn't software on the table?  I thought it was only 
diy hardware which was out of contention?

I already managed to get the basic GPIO changes into kernel 3.2 to 
support this.  Either I or someone else needs to beat me to take the 
code from the OLPC modules and turn it into a generic module.  For sure 
it's systems programming, but probably around 100 lines of code or so.

The last 6 months have had me out of action, but I might get a chance to 
look further into this shortly

I do agree it's not perfect hardware though - hence my questions on what 
your requirements were.  Had this been a useful solution I might have 
been inclined to try and help get such a module developed sooner



>>> That said, I would personnally love to find a USB 2.0 equivent to
>>> the USB1.1 PL2303.
>> Just clicking on the first hit in google takes me to here.  Is this
>> what you want?
>>       http://www.tronisoft.com/prod.php?id=2327
> Nope. That is just a USB to RS-232.  The problem is finding a
> matching cheap RS-232 GPS, with PPS and preinstalled RS-232 connector.
>
> I am looking for an integrated product requiring zero hardware skills to
> use.

You are shifting the goals on me...

You appeared to ask for a chipset which was USB2, I think I found you 
one?  Yes, it's not a complete solution, but I wasn't clear what you 
were asking for

That said, I just pushed buy to see what they were like.  Assuming I 
wire a spare Garmin 18 up to one, is there any special way I need to 
configure GPSD to try and observe decreased jitter?  At least it's an 
experiment which will show if there is any mileage in pursuing USB2 options?


>> It's not bad, but I think the issue is still that the USB bus is non
>> deterministic, so it might still have a good bunch of jitter around
>> that.
> Actually, it is VERY deterministic.  USB 1.1 is polled 1024 times a
> second, and that is exactly what we see in the results.

I thought we were talking USB2 not 1.1?

In any case my misunderstanding was directed that the polling had a lot 
of jitter on it.  Also I was under the misapprehension that bulk 
transfers and the realtime class could further skew that timing - I 
concede I haven't looked into the details though

Some full PC motherboards appear to have more than one USB bus.  No idea 
on cheap routers (would guess not), but it would be worth allocating 
peripherals to cause least interference if it's an option...



>> Anyway, I got stalled, but my goal was quite similar.  I wanted to
>> try and offer a cheap solution to Stratum 1 servers.  The idea of the
>> Alix plus a cheapo serial GPS seemed very attractive.  They can be
>> powered via ethernet which potentially makes them easy to put into a
>> hobby box and put the whole box on the roof...
> And as a pre-packaged commmercial solution it might be very interesting
> to many people.  Just not the bufferbloat folks.

I would be happy to donate a bunch of these if there was interest.  I 
have a vague interest in trying to flood the internet with decently 
accurate Stratum 1 time servers that you can use directly - the current 
stratum 1 servers seem to be .... not that accurate ... and stratum 2 
cannot be more accurate than the stratum 1.


Note that the Alix cannot achieve greatness off the shelf.  The GPIO 
interrupts appear to have about 30 microsecond lag to be read.  Plus a 
relatively slow single core processor and poor default clock stability 
means we are unlikely to be vastly under millisec accuracy.  However, 
that seems to be a good deal better than the average Stratum 1 today

Ed W


From MAILER-DAEMON Mon May 07 08:12:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRMnI-0003ba-8k
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 08:12:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37043)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMnE-0003ap-BT
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:11:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMnC-00028v-B0
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:11:55 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:35667)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMnC-00028V-4d
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:11:54 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 7771B34032D
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 13:11:51 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id 0FqFn9kI_VST for <gpsd-dev@nongnu.org>;
	Mon,  7 May 2012 13:11:51 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 3E82C34032A
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 13:11:51 +0100 (BST)
Message-ID: <4FA7BC06.90906@wildgooses.com>
Date: Mon, 07 May 2012 13:11:50 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
	<20120506220713.GE14699@thyrsus.com> <4FA6F6C1.6020302@gmail.com>
	<20120506154146.69d7d5dc.gem@rellim.com>
In-Reply-To: <20120506154146.69d7d5dc.gem@rellim.com>
X-TagToolbar-Keys: D20120507131150028
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 12:11:57 -0000

On 06/05/2012 23:41, Gary E. Miller wrote:
> That too, if you want to get the cp210x driver to support ioctl(TIOCMWAIT)
> then that would be a kernel patch.

According to a mail on your thumbgps list these are supported?

     
https://lists.bufferbloat.net/pipermail/thumbgps-devel/2012-March/000087.html

However, I just looked through the cp210x kernel module and I don't see 
*any* implementation of ioctl there at all?  Is the claim wrong or is 
this handled effectively at some higher level such as the ldisc?

Note there is a vendor cp210x driver which does contain an 
implementation of TIOCMIWAIT.  From eyeballing it, it looks 
straightforward in it's implementation (no idea why it's not in kernel?)


Ed W


From MAILER-DAEMON Mon May 07 08:13:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRMpA-0004IK-Mq
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 08:13:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37580)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMp5-0004I5-1L
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:13:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMp0-000383-36
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:13:50 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:56424)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMoz-00036L-Sy
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:13:45 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id B83BE34032A;
	Mon,  7 May 2012 13:13:44 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id RkL6zsg4Cqg7; Mon,  7 May 2012 13:13:44 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 34B90340317;
	Mon,  7 May 2012 13:13:42 +0100 (BST)
Message-ID: <4FA7BC75.8020700@wildgooses.com>
Date: Mon, 07 May 2012 13:13:41 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
	<20120506124839.4d171f83.gem@rellim.com>
In-Reply-To: <20120506124839.4d171f83.gem@rellim.com>
X-TagToolbar-Keys: D20120507131341870
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 12:13:54 -0000

Hi

>> Incidentally I have a load of these (very inexpensive):
>>
>> http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle.html
>>
>> They are detected as a "cp210x: v0.09:Silicon Labs CP210x RS232
>> serial adaptor driver".  Some googling suggests this is a USB2
>> chipset?
> Sadly, as esr has found out, the cp210x linux driver is very poor and
> gets no love from the vendor.  It does not support basic ioctl() calls
> that gpsd needs to utilize the PPS signal.  So until there is a good
> driver for them they are not an option for gpsd users.
>

Quick heads up, but assuming a the device above does not have PPS 
signals wired, what additional ioctl calls would benefit accuracy with 
gpsd?  (and why?) I would be interested to investigate adding kernel support

Thanks

Ed W



From MAILER-DAEMON Mon May 07 08:20:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRMvI-0006RQ-AE
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 08:20:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52381)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMvB-0006R6-VL
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:20:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMv6-00064E-1g
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:20:09 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:58241)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRMv5-00061r-S2
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:20:03 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 3F04334032A
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 13:20:02 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id vXXBdJRhHm7i for <gpsd-dev@nongnu.org>;
	Mon,  7 May 2012 13:20:02 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 06254340317
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 13:20:01 +0100 (BST)
Message-ID: <4FA7BDF1.7030708@wildgooses.com>
Date: Mon, 07 May 2012 13:20:01 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
In-Reply-To: <4FA6F396.70307@tmsw.no>
X-TagToolbar-Keys: D20120507132001603
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 12:20:15 -0000

On 06/05/2012 22:56, Terje Mathisen wrote:
> BTW, I just picked up a NetGear 3800 for the BufferBloat firmware, I 
> intend to point that router at the local S1, which should result in 
> better timing than a PPS over USB solution.


Big problem... If you look on the chrony mailing list you can find a 
post plotting the divergence of worldwide stratum 1 clocks.  I'm afraid 
the answer is that stratum 1 is not a definition of accuracy, just an 
observation on the clock source.  In particular many have fixed offsets, 
poor stability, synced to radio clocks rather than GPS, etc.

 From what you describe the bufferbloat project should ask ntp.org for 
their own pseudo machine group and do some work to populate it with high 
quality servers s1/s2 that are cross synced.  I could have some interest 
in getting involved with that.

Just for kicks add a bunch of ntp machines into your chrony config, wait 
15 mins or so and then check the statistics.  Bet you get a range of > 
200ms ...

Good luck

Ed W


From MAILER-DAEMON Mon May 07 08:41:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRNG9-0001zL-TC
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 08:41:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34889)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRNG0-0001wd-VC
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:41:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRNFw-0005yA-7u
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:41:40 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:37436)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRNFw-0005xY-1r
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 08:41:36 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 14EF0340317
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 13:41:34 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id 4WQex4K8P8OC for <gpsd-dev@nongnu.org>;
	Mon,  7 May 2012 13:41:33 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id C40133402DF
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 13:41:33 +0100 (BST)
Message-ID: <4FA7C2FD.6000902@wildgooses.com>
Date: Mon, 07 May 2012 13:41:33 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
	<20120507032023.GA16601@thyrsus.com>
In-Reply-To: <20120507032023.GA16601@thyrsus.com>
X-TagToolbar-Keys: D20120507134133395
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 12:41:47 -0000

On 07/05/2012 04:20, Eric S. Raymond wrote:
> Hal Murray<hmurray@megapathdsl.net>:
>> Is there a list of serial-USB chips that are known to work and/or not work?
> You can generate one by grepping for TIOCMIWAIT in the driver tree.  Gary
> did this as one point.  The PL2303 is defintely good, the CP210x bad.

Apart from PPS signals, does TIOCMIWAIT improve gpsd accuracy in any 
other way?  Phrased another way are CP210x any worse than a generic 
PL2303 device?

I couldn't get a definite opinion, but CP210x devices appear to be USB2? 
I currently see around 1ms jitter on my device using just the NMEA clock 
- perhaps I ought to be expecting lower than this?

I think TIOCMIWAIT could be added to the driver. However, does this buy 
me anything on generic non PPS devices?  Any other changes which would 
improve precision of the NMEA date?


Big picture question - Am I going to get better accuracy using your new 
device than I am from these CP210x Venux6 devices?


Thanks

Ed W


From MAILER-DAEMON Mon May 07 09:02:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRNZk-0002NO-6o
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 09:02:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59930)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRNZd-0002MH-2w
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:02:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRNZa-0001Sz-Rt
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:01:56 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:41005)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRNZa-0001SD-Mm
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:01:54 -0400
Received: by obbwd20 with SMTP id wd20so10018436obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 06:01:52 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to:x-mailer
	:x-gm-message-state;
	bh=hSKS5Ou2MdnfBlTYLLH51XUCf+N6r604dZOE+KiM9ug=;
	b=lz+tDwazUU/CN0RQsTZkgVy+MQlvrogLkRgPqHTz3d8sZcy+e99ykYXiF5bnc45Foe
	ZzN37KQSvIIEH7QHOWhTyBbX+/tFUfpKmN/YiY2YQ9/dXT7qopx+qutgA+gNLTgsxLoY
	eqfMQSNOgoaMFy9wn5Q9V8VFDgqlYtP3DvgH2amUdLRYfK1kozJ60VDJ1528vlGrAxpZ
	48n6peaj4MfUcxIa57OMWvwyVzxPm6sYnhrayo/o/FvYh5OK0VJJiCl/MP09N1DQejTn
	iR1fMy2nBAH+SUuVGe+gPNGX3rlp368S/gvuDW5Un06QmPdWQB6nl0Y55UzZ9lYZ5FqD
	9QMw==
Received: by 10.182.154.73 with SMTP id vm9mr13111819obb.72.1336395712353;
	Mon, 07 May 2012 06:01:52 -0700 (PDT)
Received: from [192.168.1.41] (rrcs-97-77-122-61.sw.biz.rr.com. [97.77.122.61])
	by mx.google.com with ESMTPS id d9sm18317419obz.6.2012.05.07.06.01.50
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 07 May 2012 06:01:51 -0700 (PDT)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1457\))
From: Jim Thompson <jim@netgate.com>
In-Reply-To: <4FA7ABE9.9020404@wildgooses.com>
Date: Mon, 7 May 2012 08:01:49 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <056778E0-4315-48D6-8B82-C47ED0EFFBAC@netgate.com>
References: <20120505020429.EB424800073@ip-64-139-1-69.sjc.megapath.net>
	<33C151B1-4A4D-486E-8A55-B40C42D3BB39@netgate.com>
	<20120505123318.061aca3f.gem@rellim.com>
	<20120506214643.GD14699@thyrsus.com>
	<056B7675-2FFC-4F4C-97BE-B6CFADDE725C@netgate.com>
	<4FA7ABE9.9020404@wildgooses.com>
To: Ed W <lists@wildgooses.com>
X-Mailer: Apple Mail (2.1457)
X-Gm-Message-State: ALoCoQmZ807Lq7+03ovaNSKjUHfOv/LlgqBUF9eu4q39hOKQ6RZ95aQHLukxCNRt4avltLkzniWD
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 13:02:03 -0000


On May 7, 2012, at 6:03 AM, Ed W <lists@wildgooses.com> wrote:

> Further sob story: I spend something like 6-9 months getting a new =
product added to their catalogue (it's *SERIOUSLY* hard to get a new =
item added unless you have a pre-allocated unique part number for it (I =
forget the name for this number now)).

International Article Number (or UPC) or EAN (European Article Number).  =
The cost real money.

http://www.gs1us.org/get-started/i-need-a-barcode

"The initial fee can be as low as $760 for up to 100 barcodes. Your =
initial registration fee licenses the prefix to you for one year. After =
that, you=92ll pay a small annual renewal fee to continue using the =
company prefix for your barcodes."

Translated, you can buy a "company prefix" with address space for up to =
100 codes, for $760.  GS1-US started imposing a renewal fee in 2002, =
too.  You'll pay for your code(s) year over year.

There are brokers who will dole these out, but they're not cheap.

Amazon runs on IANs.   (We have several.  :-)

>  Finally got the part added, had to pay them =A320/month to be a =
premium store during all that time, then we finally sold three items of =
the new part, one week later we got an email saying that Amazon no =
longer wanted to trade with us and that our account would be closed...

We've sold tens of thousands of a LEGO-compatible iPhone 4/4S case via =
Amazon.   We've sold more than this via other channels. =20

Dealing with Amazon is a nearly 1/2-time job.   Worth it if you're going =
to move some serious volume, possibly not without the volume.
(We also sell a metric ton of Alix boards & cases every month, and =
choose to *NOT* sell these via Amazon.)

We've not yet discussed "returns", either.

> Now here is the interesting part - without a vendor login to amazon =
you can no longer even phone them (wierd, but it's how they structure =
their business).  So they currently have =A32,500 (about $4,000) of my =
money and I have no way to phone/email and ask for it back - their =
general channels refuse any attempts to negotiate and decline to pass a =
message - emails to the correct department are never replied to.

Perhaps Eric's contact can be of some assist.  (?)




From MAILER-DAEMON Mon May 07 09:29:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRO0Y-0007OC-Bd
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 09:29:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50415)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRO0R-0007Mx-Nq
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:29:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRO0P-0008Pb-Nt
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:29:39 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:51786 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRO0P-0008Oy-KL
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:29:37 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 3588840475; Mon,  7 May 2012 09:29:34 -0400 (EDT)
Date: Mon, 7 May 2012 09:29:33 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507132933.GA19145@thyrsus.com>
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
	<20120507032023.GA16601@thyrsus.com>
	<4FA7C2FD.6000902@wildgooses.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FA7C2FD.6000902@wildgooses.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 13:29:44 -0000

Ed W <lists@wildgooses.com>:
> On 07/05/2012 04:20, Eric S. Raymond wrote:
> >Hal Murray<hmurray@megapathdsl.net>:
> >>Is there a list of serial-USB chips that are known to work and/or not work?
> >You can generate one by grepping for TIOCMIWAIT in the driver tree.  Gary
> >did this as one point.  The PL2303 is defintely good, the CP210x bad.
> 
> Apart from PPS signals, does TIOCMIWAIT improve gpsd accuracy in any
> other way?  Phrased another way are CP210x any worse than a generic
> PL2303 device?

You haven't been following the thumbgps list, I see.  SiRF-III chips
have a 100-170ms long-period wobble in their message timing, observed
by Hal Murray and Gary Miller and myself. That's what PPS fixes,
giving top-of-second to 1ms.
 
> I couldn't get a definite opinion, but CP210x devices appear to be
> USB2? I currently see around 1ms jitter on my device using just the
> NMEA clock - perhaps I ought to be expecting lower than this?

That's news to us.  What GPS chip is in your devices?  If it's 
Venus 6 that's interesting - suggests they don't have the timing 
wobble that SiRF chips do.

> I think TIOCMIWAIT could be added to the driver. However, does this
> buy me anything on generic non PPS devices?

No.

>                                 Any other changes which
> would improve precision of the NMEA date?

Not that I know of.  The SiRF wobble seems to be something happening
on the chip itself.
 
> Big picture question - Am I going to get better accuracy using your
> new device than I am from these CP210x Venux6 devices?

Maybe.  Gary is actually measuring 0.5 ms jitter.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 07 09:36:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRO6k-00038Q-Ll
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 09:36:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34784)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <terje@tmsw.no>) id 1SRO6d-00036l-PA
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:36:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <terje@tmsw.no>) id 1SRO6a-0003Vz-Nj
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:36:03 -0400
Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145]:38778
	helo=homiemail-a24.g.dreamhost.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <terje@tmsw.no>) id 1SRO6X-0003UU-0O
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:36:00 -0400
Received: from homiemail-a24.g.dreamhost.com (localhost [127.0.0.1])
	by homiemail-a24.g.dreamhost.com (Postfix) with ESMTP id 3B0382C806C
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 06:35:54 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=tmsw.no; h=message-id:date:from
	:mime-version:cc:subject:references:in-reply-to:content-type:
	content-transfer-encoding; q=dns; s=tmsw.no; b=uOyPuC1DblGw5OpK3
	PIg8/hBgcx0GDfD/2vZKafTLBYyAVu8EqY4DfihrkKAmfSa0EMt1zeGU0hBREHrf
	LRm196o0bn5F+zwxF8heeBDKWnNVX+krj4VW3E8LAw6pEMErzDGubSilMippxYgb
	USVhfW7geqekguv1Zp2gRSvBIs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=tmsw.no; h=message-id:date
	:from:mime-version:cc:subject:references:in-reply-to
	:content-type:content-transfer-encoding; s=tmsw.no; bh=uCU3jUdGB
	okn6jIFoLeDgU80itI=; b=BYn28pWU+ewZ5RkhW/R4hGp9c8+exle3NEc1g+7UV
	L9hgVUnpozCKLpZW91olvZDVlykGEs7LZ79w4tkUTnW0K5S3OiEeRYjgtkfOEUqC
	xIEUTUly1x4WhEiZI/66tPHqhuYROGRtUE9ms+n0XVVW5cKZydS/g/wdd16X6TFJ
	6o=
Received: from [192.168.1.100] (unknown [176.75.115.29])
	(Authenticated sender: terje@tmsw.no)
	by homiemail-a24.g.dreamhost.com (Postfix) with ESMTPA id 6139B2C8057
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 06:35:50 -0700 (PDT)
Message-ID: <4FA7CFB2.9080807@tmsw.no>
Date: Mon, 07 May 2012 15:35:46 +0200
From: Terje Mathisen <terje@tmsw.no>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
	rv:12.0) Gecko/20120429 Firefox/12.0 SeaMonkey/2.9.1
MIME-Version: 1.0
CC: gpsd-dev@nongnu.org
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
	<4FA7BDF1.7030708@wildgooses.com>
In-Reply-To: <4FA7BDF1.7030708@wildgooses.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Windows 98 (1)
X-Received-From: 208.97.132.145
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 13:36:09 -0000

Ed W wrote:
> On 06/05/2012 22:56, Terje Mathisen wrote:
>> BTW, I just picked up a NetGear 3800 for the BufferBloat firmware, I
>> intend to point that router at the local S1, which should result in
>> better timing than a PPS over USB solution.
>
>
> Big problem... If you look on the chrony mailing list you can find a
> post plotting the divergence of worldwide stratum 1 clocks. I'm afraid
> the answer is that stratum 1 is not a definition of accuracy, just an
> observation on the clock source. In particular many have fixed offsets,
> poor stability, synced to radio clocks rather than GPS, etc.

You misunderstood my post.:-(

The S1 is my personal, at-home, FreeBSD+Garmin18 ntpd server.

I also have backup Linux+SURE and FreeBSD+Oncore UT+ servers, as well as 
a bunch of PPS-capable bare GSP boards.

I.e. my local LAN has multiple ~us level reference servers.

I have been part of the ntp-hackers mailing list for 10-15 years, I used 
to host the widows binaries of the ntpd reference code.

Terje

-- 
- <Terje@tmsw.no>
"almost all programming can be viewed as an exercise in caching"


From MAILER-DAEMON Mon May 07 09:46:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SROGb-0005uh-8e
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 09:46:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41971)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SROGT-0005tW-FN
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:46:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SROGR-0000aM-Lv
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:46:12 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:51270)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SROGR-0000a3-HD
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 09:46:11 -0400
Received: by obbwd20 with SMTP id wd20so10073497obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 06:46:09 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to:x-mailer
	:x-gm-message-state;
	bh=IbvoSMOqBWClja46IvXSFGkxgZRfeKwpUDtgUsYK8Bs=;
	b=cm66BLH0QDWLR0kVic12ZCMF4hc6VRk3dnWPKIwLQsHe9o3B16669VbrVORq+WbnEp
	06ZCx6cMGj5AtqOYGVmvvyVMdNPN1fmDfTvs6/MrBkGvHKh1wUM8wWGjnKwqpGd1LfpL
	EPkSU3y5SSwikjBLN2vJJw9rmka6qlmZZytOOaKByyVvFcbK7YvdHNlgry9c25rOZiTd
	L9uPegEYhBWSIR5kPKMReb0SEsAlzKnc7hHqLYxL2nbQ2meOos0ZQHKdKGFv5KPczvy/
	2JIvIa9pn3G129VF9ajQZYphMtJqnrcX5LSgNEDT4MtOhYCqNJyXI7w8rFkY6hFcsgK2
	f00A==
Received: by 10.182.152.4 with SMTP id uu4mr13376274obb.26.1336398369097;
	Mon, 07 May 2012 06:46:09 -0700 (PDT)
Received: from [192.168.1.41] (rrcs-97-77-122-61.sw.biz.rr.com. [97.77.122.61])
	by mx.google.com with ESMTPS id n9sm14616111oen.2.2012.05.07.06.46.08
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 07 May 2012 06:46:08 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1457\))
From: Jim Thompson <jim@netgate.com>
In-Reply-To: <20120507132933.GA19145@thyrsus.com>
Date: Mon, 7 May 2012 08:46:07 -0500
Content-Transfer-Encoding: 7bit
Message-Id: <A68884D4-A76C-411F-826C-8373E42AFC04@netgate.com>
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
	<20120507032023.GA16601@thyrsus.com>
	<4FA7C2FD.6000902@wildgooses.com>
	<20120507132933.GA19145@thyrsus.com>
To: "Eric S. Raymond" <esr@thyrsus.com>
X-Mailer: Apple Mail (2.1457)
X-Gm-Message-State: ALoCoQmvt9lKc1iia4w6akIMcdmFEEjqkYVmgXy1jbvr9t6viK84fvXnqIzY6zdo9h0UZ6rM+Dj0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 13:46:19 -0000


On May 7, 2012, at 8:29 AM, "Eric S. Raymond" <esr@thyrsus.com> wrote:

> Maybe.  Gary is actually measuring 0.5 ms jitter.

with a scope, or via software (gpsd or ntpd)?




From MAILER-DAEMON Mon May 07 10:15:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SROii-00019E-7F
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 10:15:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35998)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==4747b694e62==rbywater@drs-ts.com>)
	id 1SROia-000180-4y
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 10:15:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <btv1==4747b694e62==rbywater@drs-ts.com>)
	id 1SROiT-0004Tb-CF
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 10:15:15 -0400
Received: from smtp.drs-ts.com ([4.79.116.89]:38744)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==4747b694e62==rbywater@drs-ts.com>)
	id 1SROiT-0004Sh-26
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 10:15:09 -0400
X-ASG-Debug-ID: 1336400106-032e3c0eb256bfd0001-tzOsvG
Received: from ts-exchange.ts.drs.master (ts-exchange.ts.drs.master
	[10.60.10.15]) by smtp.drs-ts.com with ESMTP id
	BLgHTuD4XXKbHgjT; Mon, 07 May 2012 10:15:06 -0400 (EDT)
X-Barracuda-Envelope-From: rbywater@drs-ts.com
X-ASG-Whitelist: Client
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Mon, 7 May 2012 10:15:05 -0400
X-ASG-Orig-Subj: RE: [gpsd-dev] wsg_separation Issue
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
	micalg=SHA1; boundary="----=_NextPart_000_01E5_01CD2C3A.443DD280"
Message-ID: <88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
In-Reply-To: <20120507035046.GA16848@thyrsus.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [gpsd-dev] wsg_separation Issue
Thread-Index: Ac0sBJaT97JgE8TQRie35iiO8me9OgASwnxg
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120507035046.GA16848@thyrsus.com>
From: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
To: <esr@thyrsus.com>
X-Barracuda-Connect: ts-exchange.ts.drs.master[10.60.10.15]
X-Barracuda-Start-Time: 1336400106
X-Barracuda-URL: http://4.79.116.89:8000/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at drs-ts.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 4.79.116.89
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 14:15:22 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_01E5_01CD2C3A.443DD280
Content-Type: multipart/mixed;
	boundary="----=_NextPart_001_01E6_01CD2C3A.443DD280"


------=_NextPart_001_01E6_01CD2C3A.443DD280
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Eric,

Here is a log of a Coverity run on the head as of this morning.  The gpsd.log 
contains the output from the cov-build while gpsd.log2 contains the 
cov-analyze output.  I was going to attach the full c/ directory that Coverity 
generates so you could see the issues, but the tgz file was over 12 MB and I 
was afraid that would be rejected by the mailing list.  If you would like that 
output and the list server is ok with a 12 MB file, let me know and I will 
post it.  If the list server will reject that size of an upload, let me know 
where you would like the results posted and I will get them uploaded.

Thanks,
Rick

-----Original Message-----
From: Eric S. Raymond [mailto:esr@thyrsus.com]
Sent: Sunday, May 06, 2012 11:51 PM
To: Bywater, Rick (SA-1)
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue

Bywater, Rick (SA-1) <rbywater@drs-ts.com>:
> I was running Coverity on gpsd-2.39 and it complained about an
> array-bounds issue in geoid.c in the function wsg84_separation.

We've incorporated a fix patch to the repo head version.

Please run Coverity on repo head and post the results here.  I'd *love* to see 
a current Coverity defect list.  We're on their list of projects allowed to 
self-scan from their website, but they have never gotten that machinery 
together enough that we can actually do it from here.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

NOTICE: This e-mail transmission (and/or the attachments accompanying it) may contain confidential or proprietary information belonging to DRS Technologies or the sender. The information is only for the use of the intended recipient. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior written approval from the U.S. Department of State."

------=_NextPart_001_01E6_01CD2C3A.443DD280
Content-Type: application/octet-stream;
	name="gpsd.log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="gpsd.log"

Coverity Build Capture version 6.0.1 on Linux 2.6.32-220.13.1.el6.i686 i686=
=0A=
Internal version numbers: 1.5222:3042, 20120412041511UTC, p-berkeley-push-1=
1376.367=0A=
=0A=
=1B[?1034hscons: Reading SConscript files ...=0A=
Checking for chrpath... (cached) yes=0A=
Checking whether the C++ compiler worksno=0A=
Checking for ncurses... (cached) yes=0A=
Checking for libusb-1.0... (cached) no=0A=
Checking for C library librt... no=0A=
Checking for C library libcap... no=0A=
Checking for bluez... (cached) no=0A=
Checking for C header file sys/timepps.h... no=0A=
You do not have kernel PPS available.=0A=
Checking for C function daemon()... no=0A=
Checking for C function strlcpy()... no=0A=
Checking for C function strlcat()... no=0A=
Checking for C function clock_gettime()... no=0A=
Checking for C library libbluetooth... no=0A=
libbluetooth not found, bluez cannot be enabled.=0A=
Checking for C function pselect()... no=0A=
Checking that xsltproc can make man pages... (cached) yes=0A=
Checking for QtNetwork... (cached) yes=0A=
All configuration flags are defaulted.=0A=
scons: done reading SConscript files.=0A=
scons: Building targets ...=0A=
substituter(["jsongen.py"], ["jsongen.py.in"])=0A=
chmod -w jsongen.py=0A=
chmod +x jsongen.py=0A=
rm -f ais_json.i && /usr/bin/python jsongen.py --ais --target=3Dparser > ai=
s_json.i && chmod a-w ais_json.i=0A=
Creating 'gpsd_config.h'=0A=
gcc -o ais_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC ais_jso=
n.c=0A=
gcc -o bits.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initi=
alizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-p=
rototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC bits.c=0A=
gcc -o daemon.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC daemon.c=
=0A=
Creating 'gpsd.h'=0A=
gcc -o gpsutils.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gpsutil=
s.c=0A=
gcc -o gpsdclient.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gpsdc=
lient.c=0A=
substituter(["maskaudit.py"], ["maskaudit.py.in"])=0A=
chmod -w maskaudit.py=0A=
chmod +x maskaudit.py=0A=
rm -f gps_maskdump.c && /usr/bin/python maskaudit.py -c . > gps_maskdump.c =
&& chmod a-w gps_maskdump.c=0A=
gcc -o gps_maskdump.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gps=
_maskdump.c=0A=
gcc -o hex.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initia=
lizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-pr=
ototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC hex.c=0A=
gcc -o json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initi=
alizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-p=
rototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC json.c=0A=
gcc -o libgps_core.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_core.c=0A=
gcc -o libgps_dbus.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_dbus.c=0A=
gcc -o libgps_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_json.c=0A=
gcc -o libgps_shm.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libgp=
s_shm.c=0A=
gcc -o libgps_sock.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_sock.c=0A=
gcc -o netlib.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC netlib.c=
=0A=
gcc -o rtcm2_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC rtcm2=
_json.c=0A=
gcc -o shared_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC shar=
ed_json.c=0A=
gcc -o strl.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initi=
alizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-p=
rototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC strl.c=0A=
gcc -o libgps.so.20.0.0 -Wl,-rpath=3D/mnt/sdb1/gpsd -Wl,-rpath=3D//usr/loca=
l/lib -shared -Wl,-Bsymbolic -Wl,-soname=3Dlibgps.so.20 ais_json.os bits.os=
 daemon.os gpsutils.os gpsdclient.os gps_maskdump.os hex.os json.os libgps_=
core.os libgps_dbus.os libgps_json.os libgps_shm.os libgps_sock.os netlib.o=
s rtcm2_json.os shared_json.os strl.os -L. -L/usr/local/lib=0A=
rm -f libgps.so; ln -s libgps.so.20.0.0 libgps.so=0A=
rm -f libgps.so.20; ln -s libgps.so.20.0.0 libgps.so.20=0A=
rm -f libgps.so.20.0; ln -s libgps.so.20.0.0 libgps.so.20.0=0A=
gcc -o bsd_base64.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC bsd_b=
ase64.c=0A=
gcc -o crc24q.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC crc24q.c=
=0A=
Creating 'revision.h'=0A=
gcc -o gpsd_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstr=
ict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gpsd_j=
son.c=0A=
gcc -o geoid.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC geoid.c=0A=
gcc -o isgps.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC isgps.c=0A=
gcc -o libgpsd_core.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC lib=
gpsd_core.c=0A=
gcc -o net_dgpsip.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC net_d=
gpsip.c=0A=
gcc -o net_gnss_dispatch.os -c -Wextra -Wall -Wno-uninitialized -Wno-missin=
g-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototyp=
es -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPI=
C net_gnss_dispatch.c=0A=
gcc -o net_ntrip.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstr=
ict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC net_nt=
rip.c=0A=
rm -f packet_names.h && sed -e '/^ *\([A-Z][A-Z0-9_]*\),/s// "\1",/' < pack=
et_states.h > packet_names.h && chmod a-w packet_names.h=0A=
gcc -o packet.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC packet.c=
=0A=
gcc -o pseudonmea.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC pseud=
onmea.c=0A=
gcc -o serial.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC serial.c=
=0A=
gcc -o subframe.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC subfram=
e.c=0A=
timebase_h(["timebase.h"], ["leapseconds.cache"])=0A=
gcc -o timebase.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC timebas=
e.c=0A=
gcc -o drivers.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-in=
itializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstric=
t-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC drivers.c=
=0A=
gcc -o driver_aivdm.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_aivdm.c=0A=
gcc -o driver_evermore.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-=
field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes=
 -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC =
driver_evermore.c=0A=
gcc -o driver_garmin.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_garmin.c=0A=
gcc -o driver_garmin_txt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missin=
g-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototyp=
es -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPI=
C driver_garmin_txt.c=0A=
gcc -o driver_geostar.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-f=
ield-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes =
-Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC d=
river_geostar.c=0A=
gcc -o driver_italk.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_italk.c=0A=
gcc -o driver_navcom.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_navcom.c=0A=
gcc -o driver_nmea0183.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-=
field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes=
 -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC =
driver_nmea0183.c=0A=
gcc -o driver_nmea2000.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-=
field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes=
 -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC =
driver_nmea2000.c=0A=
gcc -o driver_oncore.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_oncore.c=0A=
gcc -o driver_rtcm2.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_rtcm2.c=0A=
gcc -o driver_rtcm3.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_rtcm3.c=0A=
gcc -o driver_sirf.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC driv=
er_sirf.c=0A=
gcc -o driver_superstar2.os -c -Wextra -Wall -Wno-uninitialized -Wno-missin=
g-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototyp=
es -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPI=
C driver_superstar2.c=0A=
gcc -o driver_tsip.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC driv=
er_tsip.c=0A=
gcc -o driver_ubx.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC drive=
r_ubx.c=0A=
gcc -o driver_zodiac.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_zodiac.c=0A=
gcc -o libgpsd.so.20.0.0 -Wl,-rpath=3D/mnt/sdb1/gpsd -Wl,-rpath=3D//usr/loc=
al/lib -shared -Wl,-Bsymbolic -Wl,-soname=3Dlibgpsd.so.20 bsd_base64.os crc=
24q.os gpsd_json.os geoid.os isgps.os libgpsd_core.os net_dgpsip.os net_gns=
s_dispatch.os net_ntrip.os packet.os pseudonmea.os serial.os subframe.os ti=
mebase.os drivers.os driver_aivdm.os driver_evermore.os driver_garmin.os dr=
iver_garmin_txt.os driver_geostar.os driver_italk.os driver_navcom.os drive=
r_nmea0183.os driver_nmea2000.os driver_oncore.os driver_rtcm2.os driver_rt=
cm3.os driver_sirf.os driver_superstar2.os driver_tsip.os driver_ubx.os dri=
ver_zodiac.os -L. -L/usr/local/lib=0A=
rm -f libgpsd.so; ln -s libgpsd.so.20.0.0 libgpsd.so=0A=
rm -f libgpsd.so.20; ln -s libgpsd.so.20.0.0 libgpsd.so.20=0A=
rm -f libgpsd.so.20.0; ln -s libgpsd.so.20.0.0 libgpsd.so.20.0=0A=
gcc -o gpsd.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initia=
lizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-pr=
ototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread gpsd.c=0A=
gcc -o ntpshm.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread ntpshm.c=
=0A=
gcc -o shmexport.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread shme=
xport.c=0A=
gcc -o dbusexport.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstr=
ict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread dbu=
sexport.c=0A=
gcc -o gpsd -Wl,-rpath=3D/mnt/sdb1/gpsd -Wl,-rpath=3D//usr/local/lib -pthre=
ad gpsd.o ntpshm.o shmexport.o dbusexport.o -L. -L/usr/local/lib -lgpsd -lg=
ps -lm=0A=
./libgpsd.so: undefined reference to `clock_gettime'=0A=
collect2: ld returned 1 exit status=0A=
scons: *** [gpsd] Error 1=0A=
scons: building terminated because of errors.=0A=
[WARNING] Build command scons exited with code 2. Please verify that the bu=
ild completed successfully.=0A=
51 C/C++ compilation units (100%) are ready for analysis=0A=
 For more details, please look at:=20=0A=
    /mnt/sdb1/gpsd/build-log.txt=0A=

------=_NextPart_001_01E6_01CD2C3A.443DD280
Content-Type: application/octet-stream;
	name="gpsd.log2"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="gpsd.log2"

Coverity Static Analysis for C/C++ version 6.0.1 on Linux 2.6.32-220.13.1.e=
l6.i686 i686=0A=
Internal version numbers: 1.5222:3042, 20120412041511UTC, p-berkeley-push-1=
1376.367=0A=
=0A=
Looking for translation units=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing links for 82 translation units=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing virtual overrides=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing callgraph=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Topologically sorting 585 functions=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing node costs=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Starting analysis run=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Starting analysis run (types/warnings pass)=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
Analysis summary report:=0A=
------------------------=0A=
Files analyzed                  : 86=0A=
Total LoC input to cov-analyze  : 72824=0A=
Functions analyzed              : 585=0A=
Classes/structs analyzed        : 128=0A=
Paths analyzed                  : 125590=0A=
Time taken by Coverity analysis : 00:01:22=0A=
Defect occurrences found        : 45 Total=0A=
                                   2 BAD_SIZEOF=0A=
                                   2 CHECKED_RETURN=0A=
                                   4 CONSTANT_EXPRESSION_RESULT=0A=
                                   3 DEADCODE=0A=
                                  12 FORWARD_NULL=0A=
                                   1 INFINITE_LOOP=0A=
                                   1 NEGATIVE_RETURNS=0A=
                                   1 NULL_RETURNS=0A=
                                   1 OVERRUN_DYNAMIC=0A=
                                   3 OVERRUN_STATIC=0A=
                                   6 RESOURCE_LEAK=0A=
                                   1 REVERSE_INULL=0A=
                                   7 UNINIT=0A=
                                   1 UNREACHABLE=0A=
=0A=
Exceeded path limit of 5000 paths in 1.88% of functions (normally up to 5% =
of functions encounter this limitation)=0A=

------=_NextPart_001_01E6_01CD2C3A.443DD280--

------=_NextPart_000_01E5_01CD2C3A.443DD280
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH
AQAAoIIUHDCCBDYwggMeoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwbzELMAkG
A1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3Qg
RXh0ZXJuYWwgQ0EgUm9vdDAeFw0wMDA1MzAxMDQ4MzhaFw0yMDA1MzAxMDQ4
MzhaMG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bmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQx
GjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMTkwNwYDVQQDEzBDT01PRE8g
Q2xpZW50IEF1dGhlbnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0ECEDf1
40i8m15ye/BTQrLHpoAwgbsGCyqGSIb3DQEJEAILMYGroIGoMIGTMQswCQYD
VQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQH
EwdTYWxmb3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDE5MDcGA1UE
AxMwQ09NT0RPIENsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQgU2VjdXJlIEVt
YWlsIENBAhA39eNIvJtecnvwU0Kyx6aAMA0GCSqGSIb3DQEBAQUABIIBAIkG
z5RwBG2CJjc/ih2A0KEYB0nSst21OiuyTSdxiQW2Q+d2+uZ2RGI6ky3Q8og6
KOnQCUetCoJxaIpCSZV+HdKSrIsSIbF8siho0qIjYj5rz/3P+VuhUBjC7sW7
oyhkHdzsBHJri0LxWFXXVSkeApy39fpeXayjGJGaQGl4VchbCjjlbygMZDPR
9ZYbOtUupfQIjklDuPkVzTWfVthm8hQNHtcPhD/zY0ISXOAQvJI7NA4YpBVD
9sN94+YZEttz5YtUgoRcXPAx8wquCyf+UFd/FaPVUKv0E/ssSIiVzlTCCsH7
rzCOYWAlF+Fw7ffaKIKfs5sbvhqAqri8c95nEPYAAAAAAAA=

------=_NextPart_000_01E5_01CD2C3A.443DD280--


From MAILER-DAEMON Mon May 07 10:52:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRPIW-0007aI-Hq
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 10:52:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46488)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRPIO-0007ZF-Kr
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 10:52:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRPIH-0001wz-UZ
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 10:52:16 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:51144)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRPIH-0001wa-Oc
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 10:52:09 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id D1E3F34032D
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 15:52:07 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id VwwrbZxBbFos for <gpsd-dev@nongnu.org>;
	Mon,  7 May 2012 15:52:07 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 91FF1340233
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 15:52:07 +0100 (BST)
Message-ID: <4FA7E197.9010902@wildgooses.com>
Date: Mon, 07 May 2012 15:52:07 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
	<4FA7BDF1.7030708@wildgooses.com> <4FA7CFB2.9080807@tmsw.no>
In-Reply-To: <4FA7CFB2.9080807@tmsw.no>
X-TagToolbar-Keys: D20120507155207221
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 14:52:22 -0000

On 07/05/2012 14:35, Terje Mathisen wrote:
> Ed W wrote:
>> On 06/05/2012 22:56, Terje Mathisen wrote:
>>> BTW, I just picked up a NetGear 3800 for the BufferBloat firmware, I
>>> intend to point that router at the local S1, which should result in
>>> better timing than a PPS over USB solution.
>>
>>
>> Big problem... If you look on the chrony mailing list you can find a
>> post plotting the divergence of worldwide stratum 1 clocks. I'm afraid
>> the answer is that stratum 1 is not a definition of accuracy, just an
>> observation on the clock source. In particular many have fixed offsets,
>> poor stability, synced to radio clocks rather than GPS, etc.
>
> You misunderstood my post.:-(
>
> The S1 is my personal, at-home, FreeBSD+Garmin18 ntpd server.

Aha! Then in that case I definitely agree you are sorted!  I would 
presume you can achieve low few 100s micro second sync (or better?) 
quite easily?

I guess I still don't understand the bufferbloat / thumbgps 
requirements, but either you need a very stable clock local, or you need 
a bunch of clocks which are sync'ed to each other (across the world).  
Problem seems to be that unless you all have the same reference (eg gps) 
then you could all be microsecond "accurate", just all at an offset to 
each other?

I might guess that this is the goal of thumbgps - get the offset to 
zero?  However, it appears in principle that you might achieve almost 
the same simply syncing to a carefully chosen pool of stratum 1 
servers?  So I'm still a touch unsure what the ultimate reason is for 
this? (Note in case that sounds like an attack - it's not, just that I 
can't immediately see what the parameters for "success" for the thumbgps 
project - I'm sure there are several, perhaps there is a web page with a 
list?)

Good luck - fun project!

Ed W


From MAILER-DAEMON Mon May 07 11:08:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRPY5-0003PP-Hs
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 11:08:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42363)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRPY1-0003Nm-Bg
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 11:08:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRPXt-0000UE-NY
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 11:08:24 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:38497)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRPXt-0000Tr-FF
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 11:08:17 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id ED4A534032D;
	Mon,  7 May 2012 16:08:15 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id zexmBT-CItbO; Mon,  7 May 2012 16:08:15 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 99D133402DF;
	Mon,  7 May 2012 16:08:15 +0100 (BST)
Message-ID: <4FA7E55F.8030407@wildgooses.com>
Date: Mon, 07 May 2012 16:08:15 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
	<20120507032023.GA16601@thyrsus.com>
	<4FA7C2FD.6000902@wildgooses.com>
	<20120507132933.GA19145@thyrsus.com>
In-Reply-To: <20120507132933.GA19145@thyrsus.com>
X-TagToolbar-Keys: D20120507160815182
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 15:08:28 -0000

On 07/05/2012 14:29, Eric S. Raymond wrote:
> Ed W<lists@wildgooses.com>:
>> On 07/05/2012 04:20, Eric S. Raymond wrote:
>>> Hal Murray<hmurray@megapathdsl.net>:
>>>> Is there a list of serial-USB chips that are known to work and/or not work?
>>> You can generate one by grepping for TIOCMIWAIT in the driver tree.  Gary
>>> did this as one point.  The PL2303 is defintely good, the CP210x bad.
>> Apart from PPS signals, does TIOCMIWAIT improve gpsd accuracy in any
>> other way?  Phrased another way are CP210x any worse than a generic
>> PL2303 device?
> You haven't been following the thumbgps list, I see.  SiRF-III chips
> have a 100-170ms long-period wobble in their message timing, observed
> by Hal Murray and Gary Miller and myself. That's what PPS fixes,
> giving top-of-second to 1ms.
>
>> I couldn't get a definite opinion, but CP210x devices appear to be
>> USB2? I currently see around 1ms jitter on my device using just the
>> NMEA clock - perhaps I ought to be expecting lower than this?
> That's news to us.  What GPS chip is in your devices?  If it's
> Venus 6 that's interesting - suggests they don't have the timing
> wobble that SiRF chips do.

Yes it's a venus 6.  Resend of the link:
     
http://www.bluenext.co.uk/bluetooth-products/gps/92-bn-903s-gps-dongle.html

They cost around $15 or so.  Perhaps they can be had for less in 
quantity ($10 might be a reasonable target)

A little further research suggests that the CP210x is a "full speed 
12mbit USB2" device.  Google suggests that "full speed" devices are 
still polled at 1ms resolution and that you need a "High speed" device 
to achieve 125us resolution.  As such the expected jitter is at least 
500us, ie the normal 1ms jitter.

I see chrony state a 1ms jitter from the NMEA time, which is a bit 
higher than the expected 0.5ms jitter, but I haven't looked into how 
chrony computes it's calculation.  Also it's possible that there is some 
gremlin due to the way GPSD computes the NMEA time?  (eg I thought the 
algorithm might kick in once a whole sentence was read and reversed out 
the length of the sentence to get the start timestamp - if the sentence 
was read over two 1ms interrupts then we might acquire an additional 1ms 
jitter that could be eliminated if we used the sentence start timestamp, 
not the end timestamp? - ready to be told this is wrong...


>> Big picture question - Am I going to get better accuracy using your
>> new device than I am from these CP210x Venux6 devices?
> Maybe.  Gary is actually measuring 0.5 ms jitter.

I guess I need to go find those results - however, might Gary mind 
resending his results and how to compute them here?  For reference I 
have been feeding my results to chrony and examining the statistics from 
that.  Probably ntp computes it's statistics differently?

Thanks

Ed W



From MAILER-DAEMON Mon May 07 11:44:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRQ7E-0000kj-P8
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 11:44:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51277)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRQ7B-0000kH-Co
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 11:44:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRQ74-0001cD-SO
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 11:44:44 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:48907)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRQ74-0001bn-M7
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 11:44:38 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id BCBC834032D
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 16:44:36 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id suHPgBULk5nc for <gpsd-dev@nongnu.org>;
	Mon,  7 May 2012 16:44:36 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 5EA633401D1
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 16:44:36 +0100 (BST)
Message-ID: <4FA7EDE4.5040807@wildgooses.com>
Date: Mon, 07 May 2012 16:44:36 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 15:44:46 -0000

Hi, Could Eric or similar give me a confirmation on the current gpsd 
nmea time calculation?

My understanding is that you take the final GPZDA sentence, then work 
*back* the timestamp of the initial $ by counting the number of 
characters divided by baud rate?

So my question would be: if using USB with it's 1ms polling interval, 
then it's possible to read the first part of the ZDA sentence, then it 
will be a known 1ms later that we get the last few characters and 
presumably then timestamp the sentence.  This would appear to give an 
approx 1ms additional delay over recording the timestamp of the first $ 
and using that if we later discover that it is the ZDA sentence?

Granted NMEA time is not traditionally considered incredibly accurate, 
but *if* the calculation is as I describe above, then we could 
potentially increase measurement accuracy by 0.5-1ms?

Actually, the thought occurs that given USB is around 1024Hz and serial 
around 600-5000Hz, but the sentences are 10+ characters long, we could 
use a custom timing mode for USB reads to increase timestamp accuracy.  
The logic would be that the usb timestamps have jitter, but the supply 
rate of the serial port is presumed of lower jitter - by examining the 
number of characters on each read we could get a far higher estimate of 
the timestamp that a character is actually emitted (and hence work back 
to figure out the timestamp of the $).


The reason for asking is that my Venus6 + CP210x has NMEA time that 
appears to measure almost as accurately as a theoretical PPS over USB.  
However, there is slightly higher than expected deviation and my initial 
results suggest that this has a positive skewed distribution, perhaps 
fitting the effect described above.

I'm going to collect a couple of hours results and plot them.  My 
observations over the last few months (without having thought it 
special) are that the Venus6+CP210x never visibly deviates more than 
around 1ms on the NMEA time.  I never see any of these few hundred ms 
drifts that others talk about?

The Venus6 is a -160dB tracking chipset. The ublox 6 is a -162dB 
chipset.  So not quite as good, but real use is likely to be more 
important than specs.  I don't own a ublox6 to compare

Regards

Ed W


From MAILER-DAEMON Mon May 07 12:16:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRQbS-0002Df-IA
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 12:16:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42935)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRQbP-0002DO-8v
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:16:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRQbH-0007XW-28
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:15:58 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:36205)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRQbG-0007XL-Ol
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:15:50 -0400
Received: by obbwd20 with SMTP id wd20so10254489obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 09:15:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=z2kLmQYcLHL7OfDddPbuewmobKm17p3lJ7d1DdZpcmE=;
	b=GOdYCVHYckzkpq+JiKzOYAwkcj83i+C+K2XGeBQhg4kd7vV4eny8YZfyBcWqIyrMxx
	IWrNKNrmns5D2K4GwbOGvjL/BTri3drOsa4rGktxEotm4qUwsWJRgC1zTwwdn9HIdDED
	LjxXbXyjcff0LYsK8sF45k+zyEXWmucF9RyL6PNtoJgdjDBUFzpYujiT7KAf7nfSl8/O
	MwFqh8xD7ifrqjNbNp7lJFuXX7AvinoxDQC5Updpia6wE5RaLCFUOD4IBtz91+B2rIPw
	FeFm87K2aOzid3NIgcZ+txIsrk+wbw7WmV2U7axWmG4BLYB37FyN8jxvGSHeUJgFFGfM
	JGag==
Received: by 10.182.111.39 with SMTP id if7mr21908367obb.55.1336407348225;
	Mon, 07 May 2012 09:15:48 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Mon, 7 May 2012 09:15:27 -0700 (PDT)
In-Reply-To: <4FA7EDE4.5040807@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
From: tz <thomas@mich.com>
Date: Mon, 7 May 2012 12:15:27 -0400
X-Google-Sender-Auth: w9BwUtJEOs-slqI-0hSOikP1cPA
Message-ID: <CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
To: Ed W <lists@wildgooses.com>
Content-Type: multipart/alternative; boundary=14dae939908744261304bf749563
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 16:16:01 -0000

--14dae939908744261304bf749563
Content-Type: text/plain; charset=ISO-8859-1

This varies a lot wth the GPS - Some have a mode where they will sync the
first sentence (typically GPRMC) with the UTC edge, though there is
sometimes a small latency to the start bit.

Others have no synchronization mechanism, and without a true PPS, they can
drift if the lock isn't perfect (many have dead-reckoning, some even keep
the pps going).

My Skytraq Venus 634 and 638 at 1Hz update (with UTC sync enabled) can work
this way with a fixed latency  to the start bit of the first sentence  (I
think 2mS - it is perfectly consistent on my scope on the TTL line).  I
don't know about other chipsets, but most don't even have a way to do this.

USB 1.1 has a 1mS jitter minimum since that is the polling interval.
USB2.0 can go down to 125uS.

I don't know what the goal is, but you would need a hardware pin and some
kernel patches if you want a linux or bsd system to sync to sub mS accuracy.

That said, an Arduino Mega with an Ethernet shield (available at radio
shack and globally, just under $100 US, cheaper if you shop) is pure
embedded so the PPS can go into an input capture and be tagged with 67nS
precision (and measure and compensate for crystal accuracy), so you can
create a very accurate clock down to a few microsecnds and there should be
enough space to implement SNTP, and at 100Mbps, Ethernet will have far less
latency and jitter than USB.

On Mon, May 7, 2012 at 11:44 AM, Ed W <lists@wildgooses.com> wrote:

> Hi, Could Eric or similar give me a confirmation on the current gpsd nmea
> time calculation?
>
> My understanding is that you take the final GPZDA sentence, then work
> *back* the timestamp of the initial $ by counting the number of characters
> divided by baud rate?
>
> So my question would be: if using USB with it's 1ms polling interval, then
> it's possible to read the first part of the ZDA sentence, then it will be a
> known 1ms later that we get the last few characters and presumably then
> timestamp the sentence.  This would appear to give an approx 1ms additional
> delay over recording the timestamp of the first $ and using that if we
> later discover that it is the ZDA sentence?
>
> Granted NMEA time is not traditionally considered incredibly accurate, but
> *if* the calculation is as I describe above, then we could potentially
> increase measurement accuracy by 0.5-1ms?
>
> Actually, the thought occurs that given USB is around 1024Hz and serial
> around 600-5000Hz, but the sentences are 10+ characters long, we could use
> a custom timing mode for USB reads to increase timestamp accuracy.  The
> logic would be that the usb timestamps have jitter, but the supply rate of
> the serial port is presumed of lower jitter - by examining the number of
> characters on each read we could get a far higher estimate of the timestamp
> that a character is actually emitted (and hence work back to figure out the
> timestamp of the $).
>
>
> The reason for asking is that my Venus6 + CP210x has NMEA time that
> appears to measure almost as accurately as a theoretical PPS over USB.
>  However, there is slightly higher than expected deviation and my initial
> results suggest that this has a positive skewed distribution, perhaps
> fitting the effect described above.
>
> I'm going to collect a couple of hours results and plot them.  My
> observations over the last few months (without having thought it special)
> are that the Venus6+CP210x never visibly deviates more than around 1ms on
> the NMEA time.  I never see any of these few hundred ms drifts that others
> talk about?
>
> The Venus6 is a -160dB tracking chipset. The ublox 6 is a -162dB chipset.
>  So not quite as good, but real use is likely to be more important than
> specs.  I don't own a ublox6 to compare
>
> Regards
>
> Ed W
>
>

--14dae939908744261304bf749563
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

This varies a lot wth the GPS - Some have a mode where they will sync the f=
irst sentence (typically GPRMC) with the UTC edge, though there is sometime=
s a small latency to the start bit.<br><br>Others have no synchronization m=
echanism, and without a true PPS, they can drift if the lock isn&#39;t perf=
ect (many have dead-reckoning, some even keep the pps going).<br>

<br>My Skytraq Venus 634 and 638 at 1Hz update (with UTC sync enabled) can =
work this way with a fixed latency=A0 to the start bit of the first sentenc=
e=A0 (I think 2mS - it is perfectly consistent on my scope on the TTL line)=
.=A0 I don&#39;t know about other chipsets, but most don&#39;t even have a =
way to do this.<br>

<br>USB 1.1 has a 1mS jitter minimum since that is the polling interval.=A0=
 USB2.0 can go down to 125uS.<br><br>I don&#39;t know what the goal is, but=
 you would need a hardware pin and some kernel patches if you want a linux =
or bsd system to sync to sub mS accuracy.<br>

<br>That said, an Arduino Mega with an Ethernet shield (available at radio =
shack and globally, just under $100 US, cheaper if you shop) is pure embedd=
ed so the PPS can go into an input capture and be tagged with 67nS precisio=
n (and measure and compensate for crystal accuracy), so you can create a ve=
ry accurate clock down to a few microsecnds and there should be enough spac=
e to implement SNTP, and at 100Mbps, Ethernet will have far less latency an=
d jitter than USB.<br>

<br><div class=3D"gmail_quote">On Mon, May 7, 2012 at 11:44 AM, Ed W <span =
dir=3D"ltr">&lt;<a href=3D"mailto:lists@wildgooses.com" target=3D"_blank">l=
ists@wildgooses.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
>

Hi, Could Eric or similar give me a confirmation on the current gpsd nmea t=
ime calculation?<br>
<br>
My understanding is that you take the final GPZDA sentence, then work *back=
* the timestamp of the initial $ by counting the number of characters divid=
ed by baud rate?<br>
<br>
So my question would be: if using USB with it&#39;s 1ms polling interval, t=
hen it&#39;s possible to read the first part of the ZDA sentence, then it w=
ill be a known 1ms later that we get the last few characters and presumably=
 then timestamp the sentence. =A0This would appear to give an approx 1ms ad=
ditional delay over recording the timestamp of the first $ and using that i=
f we later discover that it is the ZDA sentence?<br>


<br>
Granted NMEA time is not traditionally considered incredibly accurate, but =
*if* the calculation is as I describe above, then we could potentially incr=
ease measurement accuracy by 0.5-1ms?<br>
<br>
Actually, the thought occurs that given USB is around 1024Hz and serial aro=
und 600-5000Hz, but the sentences are 10+ characters long, we could use a c=
ustom timing mode for USB reads to increase timestamp accuracy. =A0The logi=
c would be that the usb timestamps have jitter, but the supply rate of the =
serial port is presumed of lower jitter - by examining the number of charac=
ters on each read we could get a far higher estimate of the timestamp that =
a character is actually emitted (and hence work back to figure out the time=
stamp of the $).<br>


<br>
<br>
The reason for asking is that my Venus6 + CP210x has NMEA time that appears=
 to measure almost as accurately as a theoretical PPS over USB. =A0However,=
 there is slightly higher than expected deviation and my initial results su=
ggest that this has a positive skewed distribution, perhaps fitting the eff=
ect described above.<br>


<br>
I&#39;m going to collect a couple of hours results and plot them. =A0My obs=
ervations over the last few months (without having thought it special) are =
that the Venus6+CP210x never visibly deviates more than around 1ms on the N=
MEA time. =A0I never see any of these few hundred ms drifts that others tal=
k about?<br>


<br>
The Venus6 is a -160dB tracking chipset. The ublox 6 is a -162dB chipset. =
=A0So not quite as good, but real use is likely to be more important than s=
pecs. =A0I don&#39;t own a ublox6 to compare<br>
<br>
Regards<span class=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
Ed W<br>
<br>
</font></span></blockquote></div><br>

--14dae939908744261304bf749563--


From MAILER-DAEMON Mon May 07 12:23:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRQiq-0005FH-57
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 12:23:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34800)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRQin-00056K-Ke
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:23:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRQij-0001nl-02
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:23:37 -0400
Received: from mail-yw0-f45.google.com ([209.85.213.45]:46667)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRQii-0001kp-Rk
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:23:32 -0400
Received: by yhoo21 with SMTP id o21so1309752yho.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 09:23:30 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=references:in-reply-to:mime-version:content-transfer-encoding
	:content-type:message-id:cc:x-mailer:from:subject:date:to
	:x-gm-message-state;
	bh=KkbIb00Cyctyigb5wKsAQ+UofCloXtiM/iyi7a15+cc=;
	b=OFXjzqodgw5XQGFA7y+6p/OMs88bhkZ66td2QgR27aAIm0CoDChMNbD5tpiOa4fnPQ
	TZUBHT0ZGtwTHIZSpSWxdXnQQDlwFdeLv1FApqveiuQgKNiZsiTCtbHN3PC/NTfQQ8ta
	Qj3vF1lwUQjHbdhhNeUNQtctKh9k3lP+XsO94WUh6O2hb/c0qZm+VvNr86468pKkGMdG
	gw4Np/4f9Abav+2XtDpN1kecsTVmgEBW4BgReAJF/qALAugpBDt2sslgFdJYL0CxriLy
	sjOqDbcy6o+373QOM6A+/UjirLMJL5A4nYy4rTnVci/MvaqUvQM2XaRouUOu2cUp7qwl
	is4w==
Received: by 10.236.173.6 with SMTP id u6mr20051512yhl.130.1336407810379;
	Mon, 07 May 2012 09:23:30 -0700 (PDT)
Received: from [192.168.4.18] (cpe-70-113-79-122.austin.res.rr.com.
	[70.113.79.122])
	by mx.google.com with ESMTPS id i7sm28162774ani.17.2012.05.07.09.23.29
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 07 May 2012 09:23:29 -0700 (PDT)
References: <4FA7EDE4.5040807@wildgooses.com>
	<CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
In-Reply-To: <CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
Mime-Version: 1.0 (1.0)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii
Message-Id: <93A5B161-16B9-4E8D-929B-F2112DB9D6B4@netgate.com>
X-Mailer: iPad Mail (9B176)
From: Jim Thompson <jim@netgate.com>
Date: Mon, 7 May 2012 11:23:30 -0500
To: tz <thomas@mich.com>
X-Gm-Message-State: ALoCoQlkVZwOoN38uPhVntVLUYBi0U8H+ENymgsZnjMzn8vSM6W2gJYRmJAhXRUS6ybnmoqTIPJT
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.213.45
Cc: "gpsd-dev@nongnu.org" <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 16:23:39 -0000


On May 7, 2012, at 11:15 AM, tz <thomas@mich.com> wrote:

> I don't know what the goal is, but you would need a hardware pin and some k=
ernel patches if you want a linux or bsd system to sync to sub mS accuracy.

Working on it!   (parts showed up this morning.)

Jim



From MAILER-DAEMON Mon May 07 12:58:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRRGx-0002s9-D2
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 12:58:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43653)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRRGu-0002rb-UF
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:58:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRRGs-00011U-QB
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:58:52 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:39204)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRRGs-0000zA-Ki
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 12:58:50 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id C1FE93403CC;
	Mon,  7 May 2012 17:58:48 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id H5s-2lXArOaX; Mon,  7 May 2012 17:58:48 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 5C67E340370;
	Mon,  7 May 2012 17:58:48 +0100 (BST)
Message-ID: <4FA7FF48.5090201@wildgooses.com>
Date: Mon, 07 May 2012 17:58:48 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: tz <thomas@mich.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
In-Reply-To: <CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
X-TagToolbar-Keys: D20120507175848118
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 16:58:54 -0000

Hi

> My Skytraq Venus 634 and 638 at 1Hz update (with UTC sync enabled) can 
> work this way with a fixed latency  to the start bit of the first 
> sentence  (I think 2mS - it is perfectly consistent on my scope on the 
> TTL line).  I don't know about other chipsets, but most don't even 
> have a way to do this.

Yes, I have a Venus 6 and I believe it's the same.  Rumour is that the 
first bit is of similar jitter to the PPS?  Do you observe that on a scope?


> USB 1.1 has a 1mS jitter minimum since that is the polling interval.  
> USB2.0 can go down to 125uS.

See my previous email - it appears that only USB2 *high* speed goes to 125uS



> I don't know what the goal is, but you would need a hardware pin and 
> some kernel patches if you want a linux or bsd system to sync to sub 
> mS accuracy.

Well, I obviously didn't get my point across.

1) My jitter is slightly higher than expected.  Q: is this related to 
the way GPSD estimates the arrival time of the first $, ie can I make a 
change to the gpsd algorithm which would give me 0.5ms precision on my 
NMEA time (from venus 6 over usb)

2) *IF* not just the initial bit, but in fact if every bit of the Venus 
6 output were of low jitter, then because we collect multiple 
observations of the serial output via USB, then it should be possible to 
improve our estimate of the arrival timestamp below the 0.5ms mark.  ie 
we can observe the number of characters read on each USB timestamp, 
compare with our predicted number of characters we should be able to get 
sub ms estimates of the arrival time of a particular character - use 
that to work back and get the arrival time of the first bit. Note that 
if feasible, this technique would give better accuracy than PPS over USB !


> That said, an Arduino Mega with an Ethernet shield (available at radio 
> shack and globally, just under $100 US, cheaper if you shop) is pure 
> embedded so the PPS can go into an input capture and be tagged with 
> 67nS precision (and measure and compensate for crystal accuracy), so 
> you can create a very accurate clock down to a few microsecnds and 
> there should be enough space to implement SNTP, and at 100Mbps, 
> Ethernet will have far less latency and jitter than USB.

Agreed.  I think the goal here is to see how far one can push USB for 
accuracy?  For the vast majority of uses I think 0.5ms is very decent.  
If we could get that into the few hundred microsec range then we almost 
certainly surpass the average stratum 1.

PPS into a GPIO is the way to go for best accuracy, but don't you find 
it interesting that we might be able to get into the few hundred 
microsecs using only usb?

Cheers

Ed W


From MAILER-DAEMON Mon May 07 13:17:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRRZ4-0006aE-NE
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 13:17:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54884)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRRYz-0006Yy-5S
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:17:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRRYt-0000Ja-Ni
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:17:32 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:38742)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRRYt-0000JB-Dz
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:17:27 -0400
Received: by obbwd20 with SMTP id wd20so10328960obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 10:17:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=EO5dKd8Y7peFuKJEmZBGW5YDnwc4evZWvSVhLDt798g=;
	b=xnfm2/Ca8AmU/bjGzNU86CxgV6ce2lVqprjWWtCYasCAfPVM2n6LfI+OK+Q1eqUGFY
	pkL5FqCH0F/naFpnJXnn/AeetWbmtQ5emL2aII7f3RRwHdLrB0451oNTnHzq8D8xkXN0
	ypfyTF8rXRz/XNICAiBgJe1AocFJpsgpTzuIGIVjF4J+uXd8wff91ZXfhEo35ziOoGG2
	d7/yflhRZtSaa1ply/9b8Q30qpqgx//9OOO0ly7NwZzIsBSkRN9fJq9wkXF0aCZeRMQR
	gYkTqiV/sZYUWeClJN+4VZU7HextRe+Cg3+Yr20Syr2I9w8V9mNvwuNtH+tzyGRsq7s9
	qgDA==
Received: by 10.182.183.73 with SMTP id ek9mr4768824obc.15.1336411045617; Mon,
	07 May 2012 10:17:25 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Mon, 7 May 2012 10:17:05 -0700 (PDT)
In-Reply-To: <4FA7FF48.5090201@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
	<4FA7FF48.5090201@wildgooses.com>
From: tz <thomas@mich.com>
Date: Mon, 7 May 2012 13:17:05 -0400
X-Google-Sender-Auth: LSkaHxqh_gt_wEuku79qPvDZf00
Message-ID: <CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com>
To: Ed W <lists@wildgooses.com>
Content-Type: multipart/alternative; boundary=f46d04478a31a5dfbb04bf757190
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 17:17:37 -0000

--f46d04478a31a5dfbb04bf757190
Content-Type: text/plain; charset=ISO-8859-1

On Mon, May 7, 2012 at 12:58 PM, Ed W <lists@wildgooses.com> wrote:

> Hi
>
>
>  My Skytraq Venus 634 and 638 at 1Hz update (with UTC sync enabled) can
>> work this way with a fixed latency  to the start bit of the first sentence
>>  (I think 2mS - it is perfectly consistent on my scope on the TTL line).  I
>> don't know about other chipsets, but most don't even have a way to do this.
>>
>
> Yes, I have a Venus 6 and I believe it's the same.  Rumour is that the
> first bit is of similar jitter to the PPS?  Do you observe that on a scope?
>

Within the resolution of the scope, yes.   Well under a few microseconds.



 USB 1.1 has a 1mS jitter minimum since that is the polling interval.
>  USB2.0 can go down to 125uS.
>

See my previous email - it appears that only USB2 *high* speed goes to 125uS
>

Yes, and the device has to request that polling interval

 I don't know what the goal is, but you would need a hardware pin and some
> kernel patches if you want a linux or bsd system to sync to sub mS accuracy.
>

Well, I obviously didn't get my point across.
>
> 1) My jitter is slightly higher than expected.  Q: is this related to the
> way GPSD estimates the arrival time of the first $, ie can I make a change
> to the gpsd algorithm which would give me 0.5ms precision on my NMEA time
> (from venus 6 over usb)
>

The system latencies (over USB) is such that GPSD will see it with this
variable latency.  If you are doing better than 1mS over USB you are
lucky.  If PPS was going to a dedicated pin (RI, DCD) on a hardware UART on
an non-busy system you could get much better precision.  With a kernel
timing patch, probalby <1uS.


> 2) *IF* not just the initial bit, but in fact if every bit of the Venus 6
> output were of low jitter, then because we collect multiple observations of
> the serial output via USB, then it should be possible to improve our
> estimate of the arrival timestamp below the 0.5ms mark.  ie we can observe
> the number of characters read on each USB timestamp, compare with our
> predicted number of characters we should be able to get sub ms estimates of
> the arrival time of a particular character - use that to work back and get
> the arrival time of the first bit. Note that if feasible, this technique
> would give better accuracy than PPS over USB !
>

I've done similar experiments.  There is an OFFSET because of the latency
to the last sentence, but the jitter is consistent with USB jitter.  115200
baud is fast enough that it takes a 10 character difference in the messages
to add up to 1mS.  You might want to try 230400, though the Venus meters
the characters out at less than full speed.

 That said, an Arduino Mega with an Ethernet shield (available at radio
> shack and globally, just under $100 US, cheaper if you shop) is pure
> embedded so the PPS can go into an input capture and be tagged with 67nS
> precision (and measure and compensate for crystal accuracy), so you can
> create a very accurate clock down to a few microsecnds and there should be
> enough space to implement SNTP, and at 100Mbps, Ethernet will have far less
> latency and jitter than USB.
>

Agreed.  I think the goal here is to see how far one can push USB for
> accuracy?  For the vast majority of uses I think 0.5ms is very decent.  If
> we could get that into the few hundred microsec range then we almost
> certainly surpass the average stratum 1.
>

The only thing which might work there is if you could run the PPS to a
circuit that would do an "insert" and/or a "remove" event on a second USB
port as those could be on an interrupt so you would not have the USB jitter.

PPS into a GPIO is the way to go for best accuracy, but don't you find it
> interesting that we might be able to get into the few hundred microsecs
> using only usb?
>

Only USB2, if you can get a client side chip to implement a minimum latency
configuration.


> Cheers
>
> Ed W
>

--f46d04478a31a5dfbb04bf757190
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Mon, May 7, 2012 at 12:58 PM, Ed W <s=
pan dir=3D"ltr">&lt;<a href=3D"mailto:lists@wildgooses.com" target=3D"_blan=
k">lists@wildgooses.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex">

Hi<div class=3D"im"><br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
My Skytraq Venus 634 and 638 at 1Hz update (with UTC sync enabled) can work=
 this way with a fixed latency =A0to the start bit of the first sentence =
=A0(I think 2mS - it is perfectly consistent on my scope on the TTL line). =
=A0I don&#39;t know about other chipsets, but most don&#39;t even have a wa=
y to do this.<br>


</blockquote>
<br></div>
Yes, I have a Venus 6 and I believe it&#39;s the same. =A0Rumour is that th=
e first bit is of similar jitter to the PPS? =A0Do you observe that on a sc=
ope?<br><div class=3D"im"></div></blockquote><div class=3D"im"><br>Within t=
he resolution of the scope, yes. =A0 Well under a few microseconds.<br>

<br><br> <br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
USB 1.1 has a 1mS jitter minimum since that is the polling interval. =A0USB=
2.0 can go down to 125uS.<br>
</blockquote>
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
See my previous email - it appears that only USB2 *high* speed goes to 125u=
S<br><div class=3D"im"></div></blockquote><div class=3D"im"><br>Yes, and th=
e device has to request that polling interval <br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
I don&#39;t know what the goal is, but you would need a hardware pin and so=
me kernel patches if you want a linux or bsd system to sync to sub mS accur=
acy.<br>
</blockquote>
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Well, I obviously didn&#39;t get my point across.<br>
<br>
1) My jitter is slightly higher than expected. =A0Q: is this related to the=
 way GPSD estimates the arrival time of the first $, ie can I make a change=
 to the gpsd algorithm which would give me 0.5ms precision on my NMEA time =
(from venus 6 over usb)<br>

</blockquote><div>=A0<br></div><div>The system latencies (over USB) is such=
 that GPSD will see it with this variable latency.=A0 If you are doing bett=
er than 1mS over USB you are lucky.=A0 If PPS was going to a dedicated pin =
(RI, DCD) on a hardware UART on an non-busy system you could get much bette=
r precision.=A0 With a kernel timing patch, probalby &lt;1uS.<br>

=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2) *IF* not just the initial bit, but in fact if every bit of the Venus 6 o=
utput were of low jitter, then because we collect multiple observations of =
the serial output via USB, then it should be possible to improve our estima=
te of the arrival timestamp below the 0.5ms mark. =A0ie we can observe the =
number of characters read on each USB timestamp, compare with our predicted=
 number of characters we should be able to get sub ms estimates of the arri=
val time of a particular character - use that to work back and get the arri=
val time of the first bit. Note that if feasible, this technique would give=
 better accuracy than PPS over USB !<br>

<div class=3D"im"></div></blockquote><div class=3D"im"><br>I&#39;ve done si=
milar experiments.=A0 There is an OFFSET because of the latency to the last=
 sentence, but the jitter is consistent with USB jitter.=A0 115200 baud is =
fast enough that it takes a 10 character difference in the messages to add =
up to 1mS.=A0 You might want to try 230400, though the Venus meters the cha=
racters out at less than full speed.<br>


<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
That said, an Arduino Mega with an Ethernet shield (available at radio shac=
k and globally, just under $100 US, cheaper if you shop) is pure embedded s=
o the PPS can go into an input capture and be tagged with 67nS precision (a=
nd measure and compensate for crystal accuracy), so you can create a very a=
ccurate clock down to a few microsecnds and there should be enough space to=
 implement SNTP, and at 100Mbps, Ethernet will have far less latency and ji=
tter than USB.<br>


</blockquote>
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Agreed. =A0I think the goal here is to see how far one can push USB for acc=
uracy? =A0For the vast majority of uses I think 0.5ms is very decent. =A0If=
 we could get that into the few hundred microsec range then we almost certa=
inly surpass the average stratum 1.<br>

</blockquote><div><br>The only thing which might work there is if you could=
 run the PPS to a circuit that would do an &quot;insert&quot; and/or a &quo=
t;remove&quot; event on a second USB port as those could be on an interrupt=
 so you would not have the USB jitter.<br>

<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
PPS into a GPIO is the way to go for best accuracy, but don&#39;t you find =
it interesting that we might be able to get into the few hundred microsecs =
using only usb?<br></blockquote><div><br>Only USB2, if you can get a client=
 side chip to implement a minimum latency configuration.<br>

=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Cheers<span class=3D"HOEnZb"><font color=3D"#888888"><br>
<br>
Ed W<br>
</font></span></blockquote></div><br>

--f46d04478a31a5dfbb04bf757190--


From MAILER-DAEMON Mon May 07 13:42:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRRwe-0003bV-QH
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 13:42:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49432)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRRwc-0003bL-Dj
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:42:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRRwY-00041X-Sh
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:41:57 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:57863)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRRwY-000416-J0
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:41:54 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id BBBA4340332;
	Mon,  7 May 2012 18:41:52 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id RN2AHgf4_fmP; Mon,  7 May 2012 18:41:52 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 69F1934032D;
	Mon,  7 May 2012 18:41:52 +0100 (BST)
Message-ID: <4FA80960.4090400@wildgooses.com>
Date: Mon, 07 May 2012 18:41:52 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: tz <thomas@mich.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
	<4FA7FF48.5090201@wildgooses.com>
	<CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com>
In-Reply-To: <CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com>
X-TagToolbar-Keys: D20120507184152095
Content-Type: multipart/alternative;
	boundary="------------000609040404020909040908"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 17:42:00 -0000

This is a multi-part message in MIME format.
--------------000609040404020909040908
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi


>     1) My jitter is slightly higher than expected.  Q: is this related
>     to the way GPSD estimates the arrival time of the first $, ie can
>     I make a change to the gpsd algorithm which would give me 0.5ms
>     precision on my NMEA time (from venus 6 over usb)
>
>
> The system latencies (over USB) is such that GPSD will see it with 
> this variable latency.  If you are doing better than 1mS over USB you 
> are lucky.  If PPS was going to a dedicated pin (RI, DCD) on a 
> hardware UART on an non-busy system you could get much better 
> precision.  With a kernel timing patch, probalby <1uS.

I think I might not be getting my point across.  Assuming more like 
4,800 to 38,400 baud then there should be variation of only one 
character arrival uncertainty to the timestamp of the start of the ZDA 
sentence.  However the end of the sentence could have much larger 
jitter, up to 1ms (eg consider we read only the very last character and 
the rest of the buffer is empty)

So my jitter is currently 1ms ish, but I believe it should be possible 
to reduce that to 0.5ms.  Do you agree?

First question though - did I correctly understand the current gpsd 
algorithm?


>     2) *IF* not just the initial bit, but in fact if every bit of the
>     Venus 6 output were of low jitter, then because we collect
>     multiple observations of the serial output via USB, then it should
>     be possible to improve our estimate of the arrival timestamp below
>     the 0.5ms mark.  ie we can observe the number of characters read
>     on each USB timestamp, compare with our predicted number of
>     characters we should be able to get sub ms estimates of the
>     arrival time of a particular character - use that to work back and
>     get the arrival time of the first bit. Note that if feasible, this
>     technique would give better accuracy than PPS over USB !
>
>
> I've done similar experiments.  There is an OFFSET because of the 
> latency to the last sentence, but the jitter is consistent with USB 
> jitter.  115200 baud is fast enough that it takes a 10 character 
> difference in the messages to add up to 1mS.  You might want to try 
> 230400, though the Venus meters the characters out at less than full 
> speed.

Still think I didn't explain my idea correctly.

My Venus delivers characters at 9,600 baud, ie 1,200Hz, lets assume for 
the sake of argument that the jitter on the arrival time of each 
character is very low. The USB bus returns results approximately ever 
1ms, but with high jitter, eg might be 1.5ms, then 0.5ms, then 1ms, etc

Assuming that the USB timestamp is accurate, ie it might be 1.5ms since 
the last read, but we can measure that gap accurately, then we can 
predict how many characters should be in the buffer.  Algorithm has one 
unknown, timestamp of first character.  Number of characters in each 
read at 1024Hz will depend on the timestamp of the first character and 
the delivery rate (1,200Hz in this case).

In fact if we maintain our estimate between loops it should be possible 
to setup a PLL which actually has quite high degree of accuracy in 
predicting the arrival time of each character.

Remember if the assumption holds that we know the timestamp of the low 
frequency USB observations, then it doesn't in fact matter so much that 
they are at fairly random intervals, they still allow us to observe the 
underlying process with much higher accuracy.  In fact more USB jitter 
is actually beneficial because it will help observe the underlying 
process...

I'm kind of intrigued that others haven't jumped in on this - on the 
surface it would appear that the PPS is irrelevant for USB - we can gain 
far higher accuracy using a PLL and observing the NMEA data (caveat this 
is true only on certain chipsets, eg many Venus).  Or equivalently you 
want a 10-20Hz PPS for usb?

Ed W


--------------000609040404020909040908
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi<br>
    <br>
    <br>
    <blockquote
cite="mid:CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">1)
          My jitter is slightly higher than expected. &nbsp;Q: is this
          related to the way GPSD estimates the arrival time of the
          first $, ie can I make a change to the gpsd algorithm which
          would give me 0.5ms precision on my NMEA time (from venus 6
          over usb)<br>
        </blockquote>
        <div>&nbsp;<br>
        </div>
        <div>The system latencies (over USB) is such that GPSD will see
          it with this variable latency.&nbsp; If you are doing better than
          1mS over USB you are lucky.&nbsp; If PPS was going to a dedicated
          pin (RI, DCD) on a hardware UART on an non-busy system you
          could get much better precision.&nbsp; With a kernel timing patch,
          probalby &lt;1uS.<br>
        </div>
      </div>
    </blockquote>
    <br>
    I think I might not be getting my point across.&nbsp; Assuming more like
    4,800 to 38,400 baud then there should be variation of only one
    character arrival uncertainty to the timestamp of the start of the
    ZDA sentence.&nbsp; However the end of the sentence could have much
    larger jitter, up to 1ms (eg consider we read only the very last
    character and the rest of the buffer is empty)<br>
    <br>
    So my jitter is currently 1ms ish, but I believe it should be
    possible to reduce that to 0.5ms.&nbsp; Do you agree?<br>
    <br>
    First question though - did I correctly understand the current gpsd
    algorithm? <br>
    &nbsp;<br>
    <blockquote
cite="mid:CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
        </blockquote>
      </div>
    </blockquote>
    <br>
    <blockquote
cite="mid:CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">2)
          *IF* not just the initial bit, but in fact if every bit of the
          Venus 6 output were of low jitter, then because we collect
          multiple observations of the serial output via USB, then it
          should be possible to improve our estimate of the arrival
          timestamp below the 0.5ms mark. &nbsp;ie we can observe the number
          of characters read on each USB timestamp, compare with our
          predicted number of characters we should be able to get sub ms
          estimates of the arrival time of a particular character - use
          that to work back and get the arrival time of the first bit.
          Note that if feasible, this technique would give better
          accuracy than PPS over USB !<br>
        </blockquote>
        <div class="im"><br>
          I've done similar experiments.&nbsp; There is an OFFSET because of
          the latency to the last sentence, but the jitter is consistent
          with USB jitter.&nbsp; 115200 baud is fast enough that it takes a
          10 character difference in the messages to add up to 1mS.&nbsp; You
          might want to try 230400, though the Venus meters the
          characters out at less than full speed.<br>
        </div>
      </div>
    </blockquote>
    <br>
    Still think I didn't explain my idea correctly.<br>
    <br>
    My Venus delivers characters at 9,600 baud, ie 1,200Hz, lets assume
    for the sake of argument that the jitter on the arrival time of each
    character is very low. The USB bus returns results approximately
    ever 1ms, but with high jitter, eg might be 1.5ms, then 0.5ms, then
    1ms, etc<br>
    <br>
    Assuming that the USB timestamp is accurate, ie it might be 1.5ms
    since the last read, but we can measure that gap accurately, then we
    can predict how many characters should be in the buffer.&nbsp; Algorithm
    has one unknown, timestamp of first character.&nbsp; Number of characters
    in each read at 1024Hz will depend on the timestamp of the first
    character and the delivery rate (1,200Hz in this case).<br>
    <br>
    In fact if we maintain our estimate between loops it should be
    possible to setup a PLL which actually has quite high degree of
    accuracy in predicting the arrival time of each character.&nbsp; <br>
    <br>
    Remember if the assumption holds that we know the timestamp of the
    low frequency USB observations, then it doesn't in fact matter so
    much that they are at fairly random intervals, they still allow us
    to observe the underlying process with much higher accuracy.&nbsp; In
    fact more USB jitter is actually beneficial because it will help
    observe the underlying process...<br>
    <br>
    I'm kind of intrigued that others haven't jumped in on this - on the
    surface it would appear that the PPS is irrelevant for USB - we can
    gain far higher accuracy using a PLL and observing the NMEA data
    (caveat this is true only on certain chipsets, eg many Venus).&nbsp; Or
    equivalently you want a 10-20Hz PPS for usb?<br>
    <br>
    Ed W<br>
    <br>
  </body>
</html>

--------------000609040404020909040908--


From MAILER-DAEMON Mon May 07 13:49:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRS3W-0005pG-88
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 13:49:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42190)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRS3T-0005lp-Eb
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:49:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRS3R-0008Cj-1o
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:49:03 -0400
Received: from catbert.rellim.com ([204.17.205.1]:43377)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRS3Q-0007uV-HD
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:49:00 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47HmkSX017109
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 10:48:46 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47HmkSX017109
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336412926; bh=muP4U9qp1gSq7offZQK8YutvqGwuLyi1nl2FIb1xe3Y=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=kFg6mcew94pmEWgnMYmlehgXAqOA3FNysDbNBDd2HKlfJj3IQ8I1gPfdLV5rX2cv3
	H+P9V3NtF/RRxbCC8/1Ow==
Date: Mon, 7 May 2012 10:48:42 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507104842.155f89c1.gem@rellim.com>
In-Reply-To: <4FA7EDE4.5040807@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/SIXBoTd5VYwl2f9JKowrSTx";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 17:49:04 -0000

--Sig_/SIXBoTd5VYwl2f9JKowrSTx
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Mon, 07 May 2012 16:44:36 +0100
Ed W <lists@wildgooses.com> wrote:

> Hi, Could Eric or similar give me a confirmation on the current gpsd=20
> nmea time calculation?

I'll try.
=20
> My understanding is that you take the final GPZDA sentence, then work=20
> *back* the timestamp of the initial $ by counting the number of=20
> characters divided by baud rate?

Nope, nothing anywhere near so fancy.  And since the start of gps=20
sentences is so jittery there is no point to trying except for a=20
few special case GPS.

> Granted NMEA time is not traditionally considered incredibly
> accurate, but *if* the calculation is as I describe above, then we
> could potentially increase measurement accuracy by 0.5-1ms?

Right now the NMEA uncertainly is 70 milliSec or much worse.  1 milliSec
is noise.

> The reason for asking is that my Venus6 + CP210x has NMEA time that=20
> appears to measure almost as accurately as a theoretical PPS over
> USB.

Until the CP210x kernel driver is fixed there is no point thinking about
any usage of CP210x for timing.

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

--Sig_/SIXBoTd5VYwl2f9JKowrSTx
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+oCv0ACgkQBmnRqz71OvPkswCgoXq1O6CYOLG/N9II0Pi3bmtZ
euoAn0K/Stnd5K7Dlft2VK5DKDp15UXz
=9suf
-----END PGP SIGNATURE-----

--Sig_/SIXBoTd5VYwl2f9JKowrSTx--


From MAILER-DAEMON Mon May 07 13:58:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSCY-0003SE-99
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 13:58:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50643)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSCU-0003S7-PK
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:58:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSCS-0003IO-PZ
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:58:22 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:61154)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSCS-0003I1-Ha
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:58:20 -0400
Received: by obbwd20 with SMTP id wd20so10379743obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 10:58:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=/qYVB7gqDa4kyGMg2gm1HT2OUF5kTCL3HPlzVY1I6FQ=;
	b=tQASUsN1In7F9B9kJjYieN9j/5i4hhwfwEl/UBd84XhM22AlTORAHJ/vnEJD4ulNA0
	JerHoBoOxYYSTJBnn9qsZmZDxGP5e7yGV2lh4IqPfl5NYIlTcGaMh9NrL7/efPx8fx6j
	lOwQyk0L6vitZXToU031xZYvhfOjdut/3RzhQ4zu4GaBnISt+MoFDkhHMocEf3CoW3uY
	XK1BxFmdrVhpv3WEEriwLjbUSR0iQa5Tw5Y6s99vqM0hneSDhluWkExkGFXS6NfeRZD0
	cnIXHPCCGqepwjL5zTL0h664kEg9WVzxWLF2+wYZgFC98hi/3cF7tkErc6ziMJcdWVTB
	p3lw==
Received: by 10.182.31.11 with SMTP id w11mr3994928obh.64.1336413498472; Mon,
	07 May 2012 10:58:18 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Mon, 7 May 2012 10:57:58 -0700 (PDT)
In-Reply-To: <20120507104842.155f89c1.gem@rellim.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<20120507104842.155f89c1.gem@rellim.com>
From: tz <thomas@mich.com>
Date: Mon, 7 May 2012 13:57:58 -0400
X-Google-Sender-Auth: YAOzUMuNfoAwFjU0wSfvRti6H9k
Message-ID: <CAFv7OihrPhf3o=0G3aRhMR3_OtnmX+g8p8oMqrUe4eky5DAYEw@mail.gmail.com>
To: "Gary E. Miller" <gem@rellim.com>
Content-Type: multipart/alternative; boundary=14dae93a1495d9782604bf7603b8
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 17:58:25 -0000

--14dae93a1495d9782604bf7603b8
Content-Type: text/plain; charset=ISO-8859-1

On Mon, May 7, 2012 at 1:48 PM, Gary E. Miller <gem@rellim.com> wrote:

> Yo Ed!
>
> On Mon, 07 May 2012 16:44:36 +0100
> Ed W <lists@wildgooses.com> wrote:
>
> > Hi, Could Eric or similar give me a confirmation on the current gpsd
> > nmea time calculation?
>
> I'll try.
>
> > My understanding is that you take the final GPZDA sentence, then work
> > *back* the timestamp of the initial $ by counting the number of
> > characters divided by baud rate?
>
> Nope, nothing anywhere near so fancy.  And since the start of gps
> sentences is so jittery there is no point to trying except for a
> few special case GPS.
>

His is one of the special case GPS that has a solid PPS synced start bit.


>  > Granted NMEA time is not traditionally considered incredibly
> > accurate, but *if* the calculation is as I describe above, then we
> > could potentially increase measurement accuracy by 0.5-1ms?
>
> Right now the NMEA uncertainly is 70 milliSec or much worse.  1 milliSec
> is noise.
>

On ONE of the more jittery chipsets


>  > The reason for asking is that my Venus6 + CP210x has NMEA time that
> > appears to measure almost as accurately as a theoretical PPS over
> > USB.
>
> Until the CP210x kernel driver is fixed there is no point thinking about
> any usage of CP210x for timing.
>

Not if the USB latency in the CP210x is constant

--14dae93a1495d9782604bf7603b8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Mon, May 7, 2012 at 1:48 PM, Gary E. =
Miller <span dir=3D"ltr">&lt;<a href=3D"mailto:gem@rellim.com" target=3D"_b=
lank">gem@rellim.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">

Yo Ed!<br>
<div class=3D"im"><br>
On Mon, 07 May 2012 16:44:36 +0100<br>
Ed W &lt;<a href=3D"mailto:lists@wildgooses.com">lists@wildgooses.com</a>&g=
t; wrote:<br>
<br>
&gt; Hi, Could Eric or similar give me a confirmation on the current gpsd<b=
r>
&gt; nmea time calculation?<br>
<br>
</div>I&#39;ll try.<br>
<div class=3D"im"><br>
&gt; My understanding is that you take the final GPZDA sentence, then work<=
br>
&gt; *back* the timestamp of the initial $ by counting the number of<br>
&gt; characters divided by baud rate?<br>
<br>
</div>Nope, nothing anywhere near so fancy. =A0And since the start of gps<b=
r>
sentences is so jittery there is no point to trying except for a<br>
few special case GPS.<br><div class=3D"im"></div></blockquote><div><br>His =
is one of the special case GPS that has a solid PPS synced start bit.<br>=
=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div class=3D"im">
&gt; Granted NMEA time is not traditionally considered incredibly<br>
&gt; accurate, but *if* the calculation is as I describe above, then we<br>
&gt; could potentially increase measurement accuracy by 0.5-1ms?<br>
<br>
</div>Right now the NMEA uncertainly is 70 milliSec or much worse. =A01 mil=
liSec<br>
is noise.<br><div class=3D"im"></div></blockquote><div><br>On ONE of the mo=
re jittery chipsets<br>=A0</div><blockquote class=3D"gmail_quote" style=3D"=
margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">

<div class=3D"im">
&gt; The reason for asking is that my Venus6 + CP210x has NMEA time that<br=
>
&gt; appears to measure almost as accurately as a theoretical PPS over<br>
&gt; USB.<br>
<br>
</div>Until the CP210x kernel driver is fixed there is no point thinking ab=
out<br>
any usage of CP210x for timing.<br></blockquote><div>=A0<br>Not if the USB =
latency in the CP210x is constant<br></div></div>

--14dae93a1495d9782604bf7603b8--


From MAILER-DAEMON Mon May 07 13:58:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSCa-0003Wf-Dn
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 13:58:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50677)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRSCY-0003SC-9w
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:58:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRSCV-0003LS-RX
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:58:25 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:49758)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRSCV-0003IF-Jr
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 13:58:23 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 9F04E800073; 
	Mon,  7 May 2012 10:58:19 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: esr@thyrsus.com
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Eric S. Raymond" <esr@thyrsus.com>
	of "Mon, 07 May 2012 09:29:33 EDT." <20120507132933.GA19145@thyrsus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 07 May 2012 10:58:19 -0700
Message-Id: <20120507175819.9F04E800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 17:58:27 -0000


esr@thyrsus.com said:
> That's news to us.  What GPS chip is in your devices?  If it's  Venus 6
> that's interesting - suggests they don't have the timing  wobble that SiRF
> chips do. 

The timing wobble on data from the serial port is just a firmware 
quirk/bug/feature.  Take your pick.

The old Garmin GPS 18 (non x) was pretty good.  The GPS 18x is as bad as the 
SIRF chip sets but the pattern is different.


---------


lists@wildgooses.com said:
> Granted NMEA time is not traditionally considered incredibly accurate,  but
> *if* the calculation is as I describe above, then we could  potentially
> increase measurement accuracy by 0.5-1ms? 

There are two issues:  accuracy and stability.

Your suggestion might improve accuracy.  It won't help stability.

In the context of bufferbloat, accuracy is not a big deal.  We could go 
through a calibration dance if that helps.

> I'm going to collect a couple of hours results and plot them.  My
> observations over the last few months (without having thought it  special)
> are that the Venus6+CP210x never visibly deviates more than  around 1ms on
> the NMEA time.  I never see any of these few hundred ms  drifts that others
> talk about? 

That's reasonable.  Thanks for the data point.  It just means that the 
firmware on the Venus chip isn't as brain damaged (from a timing perspective) 
as the firmware on most other chips.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Mon May 07 14:01:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSFC-0003lr-1w
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:01:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58189)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSF6-0003lU-7V
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:01:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSF4-0005F7-Dh
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:01:03 -0400
Received: from catbert.rellim.com ([204.17.205.1]:45024)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSF3-0005Eq-Sm
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:01:02 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47I0x7c017697
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 11:00:59 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47I0x7c017697
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336413659; bh=ybtKKdme7iIV8kfBn5qQG2YNAbDf9VQYP0gXqFK2HD8=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=U6Yb7C13AJ7hyg/FPiXlznfT3iiIeXhfvOI/m28nhzfLfFpU/S9l9yGIgt5yOBqT8
	XINXQpnCRLJQVeWE4BLVg==
Date: Mon, 7 May 2012 11:00:55 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507110055.38b370be.gem@rellim.com>
In-Reply-To: <4FA7E55F.8030407@wildgooses.com>
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
	<20120507032023.GA16601@thyrsus.com>
	<4FA7C2FD.6000902@wildgooses.com>
	<20120507132933.GA19145@thyrsus.com>
	<4FA7E55F.8030407@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/2x05HNQhT_/VcWUclzO9gof";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:01:09 -0000

--Sig_/2x05HNQhT_/VcWUclzO9gof
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Mon, 07 May 2012 16:08:15 +0100
Ed W <lists@wildgooses.com> wrote:

> > Maybe.  Gary is actually measuring 0.5 ms jitter.
>=20
> I guess I need to go find those results - however, might Gary mind=20
> resending his results and how to compute them here?  For reference I=20
> have been feeding my results to chrony and examining the statistics
> from that.  Probably ntp computes it's statistics differently?

I'm feeding the results of the GR-601W into ntpd on one host and into
chronyd on another.  Both hosts also lock to PPS over serial on adjacent
GigE connected hosts so the local clock is stable.  Eyeballing the worst
case GR-601W jitter over 10 or 20 mins on both give me about 0.500
milliSec.  So nothing fancy on my end.

This exceeds the request of the bufferbloat project.

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

--Sig_/2x05HNQhT_/VcWUclzO9gof
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+oDdoACgkQBmnRqz71OvNiVwCfcju+Y9tLhq+D++jkyiqlvQtn
oEAAoIFIrea8ajAA4F1IbRZ0XEQT+TYQ
=GD7w
-----END PGP SIGNATURE-----

--Sig_/2x05HNQhT_/VcWUclzO9gof--


From MAILER-DAEMON Mon May 07 14:04:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSIU-0003ya-OB
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:04:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58974)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSIQ-0003yL-RV
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:04:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSIN-0006gQ-Nm
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:04:30 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:63110)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSIN-0006fU-Ez
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:04:27 -0400
Received: by obbwd20 with SMTP id wd20so10386649obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 11:04:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=Y5UdrNoV7673flkvmkAmkVxyo08e+NOzknYePrLR7rA=;
	b=ECpNdR5a/kx29yF2fgvu0DyVr4RJjwrMuK+Q/s+X3TMdNEiv3zVQhgA6y9OinfR90s
	KU8mpxjmcHNor1sjYr+/nc3JJ8XhqjSASLKTuC15Mx7MuHzINQPk3uEw+Zdxr7Hyng9e
	Co2Jza7M+652tf2fPl7jGcaA1kaG7FVJ+FrH2IOa6lpTsRpUwbULX7VcOiYXnbeoZgj5
	SbtxzVgARGbzTzbuhYMHAVBi4g/ZJnJIzk7st4TznMuz7TEJD0WnosndpsYw6TmEH0aK
	lJ+M7pLw5bGRkRovCTB18pTHJKkACyUdMtREbOdhnl1loZSsnYxzUYN4Yhf4rjwFSSoi
	irKg==
Received: by 10.182.31.11 with SMTP id w11mr4026321obh.64.1336413865598; Mon,
	07 May 2012 11:04:25 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Mon, 7 May 2012 11:04:05 -0700 (PDT)
In-Reply-To: <4FA80960.4090400@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
	<4FA7FF48.5090201@wildgooses.com>
	<CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com>
	<4FA80960.4090400@wildgooses.com>
From: tz <thomas@mich.com>
Date: Mon, 7 May 2012 14:04:05 -0400
X-Google-Sender-Auth: uMB1OSThQvTGkfcKEbsf0Gv-ryA
Message-ID: <CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com>
To: Ed W <lists@wildgooses.com>
Content-Type: multipart/alternative; boundary=14dae93a1495bb5f0a04bf7619c3
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:04:33 -0000

--14dae93a1495bb5f0a04bf7619c3
Content-Type: text/plain; charset=ISO-8859-1

On Mon, May 7, 2012 at 1:41 PM, Ed W <lists@wildgooses.com> wrote:

>  Hi
>
>
> I think I might not be getting my point across.  Assuming more like 4,800
> to 38,400 baud then there should be variation of only one character arrival
> uncertainty to the timestamp of the start of the ZDA sentence.  However the
> end of the sentence could have much larger jitter, up to 1ms (eg consider
> we read only the very last character and the rest of the buffer is empty)
>
> So my jitter is currently 1ms ish, but I believe it should be possible to
> reduce that to 0.5ms.  Do you agree?
>

No, because USB "jitter" is random 0-1mS.  It will set the interrupt
condition when it sees the character arrive, but it has to poll and it only
polls every 1mS.  There is no way to average it out


> First question though - did I correctly understand the current gpsd
> algorithm?
>

Yes, but it creates an offset, It remembers the time of something early but
it doesn't try to compensate for baud rate, and may remember the end of
sentence.

>
> I've done similar experiments.  There is an OFFSET because of the latency
> to the last sentence, but the jitter is consistent with USB jitter.  115200
> baud is fast enough that it takes a 10 character difference in the messages
> to add up to 1mS.  You might want to try 230400, though the Venus meters
> the characters out at less than full speed.
>
> 2) *IF* not just the initial bit, but in fact if every bit of the Venus 6
> output were of low jitter, then because we collect multiple observations of
> the serial output via USB, then it should be possible to improve our
> estimate of the arrival timestamp below the 0.5ms mark.  ie we can observe
> the number of characters read on each USB timestamp, compare with our
> predicted number of characters we should be able to get sub ms estimates of
> the arrival time of a particular character - use that to work back and get
> the arrival time of the first bit. Note that if feasible, this technique
> would give better accuracy than PPS over USB !
>

You cannot measure the error.  It is random and not a normal distribution.


>  Still think I didn't explain my idea correctly.
>
> My Venus delivers characters at 9,600 baud, ie 1,200Hz, lets assume for
> the sake of argument that the jitter on the arrival time of each character
> is very low. The USB bus returns results approximately ever 1ms, but with
> high jitter, eg might be 1.5ms, then 0.5ms, then 1ms, etc
>
> Assuming that the USB timestamp is accurate, ie it might be 1.5ms since
> the last read, but we can measure that gap accurately, then we can predict
> how many characters should be in the buffer.  Algorithm has one unknown,
> timestamp of first character.  Number of characters in each read at 1024Hz
> will depend on the timestamp of the first character and the delivery rate
> (1,200Hz in this case).
>
> In fact if we maintain our estimate between loops it should be possible to
> setup a PLL which actually has quite high degree of accuracy in predicting
> the arrival time of each character.
>

No, the USB "timing" is equivalent of white noise.   The timestamp of the
USB will be 0-1mS from when the real interrupt occurs with no way of
calculating or predicting it.

>
> Remember if the assumption holds that we know the timestamp of the low
> frequency USB observations, then it doesn't in fact matter so much that
> they are at fairly random intervals, they still allow us to observe the
> underlying process with much higher accuracy.  In fact more USB jitter is
> actually beneficial because it will help observe the underlying process...
>
> The kernel adds its own jitter.  Small but nonzero


> I'm kind of intrigued that others haven't jumped in on this - on the
> surface it would appear that the PPS is irrelevant for USB - we can gain
> far higher accuracy using a PLL and observing the NMEA data (caveat this is
> true only on certain chipsets, eg many Venus).  Or equivalently you want a
> 10-20Hz PPS for usb?
>

You can't do a PLL if you don't have an accurate edge to determine the
phase error, and that edge is accurate to worse than 1mS.

>
> Ed W
>
>

--14dae93a1495bb5f0a04bf7619c3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Mon, May 7, 2012 at 1:41 PM, Ed W <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:lists@wildgooses.com" target=3D"_blank">lists@wildgooses.com</a>&gt;</spa=
n> wrote:<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    Hi<div class=3D"im"><br>
    <br></div>
    I think I might not be getting my point across.=A0 Assuming more like
    4,800 to 38,400 baud then there should be variation of only one
    character arrival uncertainty to the timestamp of the start of the
    ZDA sentence.=A0 However the end of the sentence could have much
    larger jitter, up to 1ms (eg consider we read only the very last
    character and the rest of the buffer is empty)<br>
    <br>
    So my jitter is currently 1ms ish, but I believe it should be
    possible to reduce that to 0.5ms.=A0 Do you agree?<br></div></blockquot=
e><div><br>No, because USB &quot;jitter&quot; is random 0-1mS.=A0 It will s=
et the interrupt condition when it sees the character arrive, but it has to=
 poll and it only polls every 1mS.=A0 There is no way to average it out<br>

=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"=
#FFFFFF" text=3D"#000000">
    First question though - did I correctly understand the current gpsd
    algorithm? <br></div></blockquote><div><br>Yes, but it creates an offse=
t, It remembers the time of something early but it doesn&#39;t try to compe=
nsate for baud rate, and may remember the end of sentence. <br></div><block=
quote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1=
px solid rgb(204,204,204);padding-left:1ex">

<div bgcolor=3D"#FFFFFF" text=3D"#000000"><div class=3D"im"><blockquote typ=
e=3D"cite"><div class=3D"gmail_quote">
        <div><br>
          I&#39;ve done similar experiments.=A0 There is an OFFSET because =
of
          the latency to the last sentence, but the jitter is consistent
          with USB jitter.=A0 115200 baud is fast enough that it takes a
          10 character difference in the messages to add up to 1mS.=A0 You
          might want to try 230400, though the Venus meters the
          characters out at less than full speed.<br>
        </div>
      </div>
    </blockquote>2)
          *IF* not just the initial bit, but in fact if every bit of the
          Venus 6 output were of low jitter, then because we collect
          multiple observations of the serial output via USB, then it
          should be possible to improve our estimate of the arrival
          timestamp below the 0.5ms mark. =A0ie we can observe the number
          of characters read on each USB timestamp, compare with our
          predicted number of characters we should be able to get sub ms
          estimates of the arrival time of a particular character - use
          that to work back and get the arrival time of the first bit.
          Note that if feasible, this technique would give better
          accuracy than PPS over USB !<br></div></div></blockquote><div><br=
>You cannot measure the error.=A0 It is random and not a normal distributio=
n.<br>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0p=
t 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div bgcolor=3D"#FFFFFF" text=3D"#000000"><div class=3D"im"></div>
    Still think I didn&#39;t explain my idea correctly.<br>
    <br>
    My Venus delivers characters at 9,600 baud, ie 1,200Hz, lets assume
    for the sake of argument that the jitter on the arrival time of each
    character is very low. The USB bus returns results approximately
    ever 1ms, but with high jitter, eg might be 1.5ms, then 0.5ms, then
    1ms, etc<br>
    <br>
    Assuming that the USB timestamp is accurate, ie it might be 1.5ms
    since the last read, but we can measure that gap accurately, then we
    can predict how many characters should be in the buffer.=A0 Algorithm
    has one unknown, timestamp of first character.=A0 Number of characters
    in each read at 1024Hz will depend on the timestamp of the first
    character and the delivery rate (1,200Hz in this case).<br>
    <br>
    In fact if we maintain our estimate between loops it should be
    possible to setup a PLL which actually has quite high degree of
    accuracy in predicting the arrival time of each character.=A0 <br></div=
></blockquote><div><br>No, the USB &quot;timing&quot; is equivalent of whit=
e noise.=A0=A0 The timestamp of the USB will be 0-1mS from when the real in=
terrupt occurs with no way of calculating or predicting it.<br>

</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"#FF=
FFFF" text=3D"#000000">
    <br>
    Remember if the assumption holds that we know the timestamp of the
    low frequency USB observations, then it doesn&#39;t in fact matter so
    much that they are at fairly random intervals, they still allow us
    to observe the underlying process with much higher accuracy.=A0 In
    fact more USB jitter is actually beneficial because it will help
    observe the underlying process...<br>
    <br></div></blockquote><div>The kernel adds its own jitter.=A0 Small bu=
t nonzero<br>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt=
 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><di=
v bgcolor=3D"#FFFFFF" text=3D"#000000">


    I&#39;m kind of intrigued that others haven&#39;t jumped in on this - o=
n the
    surface it would appear that the PPS is irrelevant for USB - we can
    gain far higher accuracy using a PLL and observing the NMEA data
    (caveat this is true only on certain chipsets, eg many Venus).=A0 Or
    equivalently you want a 10-20Hz PPS for usb?<span class=3D"HOEnZb"><fon=
t color=3D"#888888"><br></font></span></div></blockquote><div><br>You can&#=
39;t do a PLL if you don&#39;t have an accurate edge to determine the phase=
 error, and that edge is accurate to worse than 1mS. <br>

</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"#FF=
FFFF" text=3D"#000000"><span class=3D"HOEnZb"><font color=3D"#888888">
    <br>
    Ed W<br>
    <br>
  </font></span></div>

</blockquote></div><br>

--14dae93a1495bb5f0a04bf7619c3--


From MAILER-DAEMON Mon May 07 14:11:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSPD-00063R-2w
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:11:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40953)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSP9-000629-R8
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:11:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSP7-0000pP-P4
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:11:27 -0400
Received: from catbert.rellim.com ([204.17.205.1]:53974)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSP7-0000pD-DD
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:11:25 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47IBNFu018226
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 11:11:23 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47IBNFu018226
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336414283; bh=gWMNb7VBz7hNRVmMo1h28tYfXXuaXQMHFSxnay9GhL0=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=uEFt0g/RySPWkQXXdgb5BGR5B83NgyGOulDxE0FSvUiD+GFvdyV7OV6y3n1q+B6/u
	ZwXUhdctU/Oo72/Lk5tHQ==
Date: Mon, 7 May 2012 11:11:19 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507111119.35bb2cd1.gem@rellim.com>
In-Reply-To: <4FA7E197.9010902@wildgooses.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
	<4FA7BDF1.7030708@wildgooses.com> <4FA7CFB2.9080807@tmsw.no>
	<4FA7E197.9010902@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/0gQi9FGmvpQfv+F.LhEEu2j";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:11:29 -0000

--Sig_/0gQi9FGmvpQfv+F.LhEEu2j
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Mon, 07 May 2012 15:52:07 +0100
Ed W <lists@wildgooses.com> wrote:

> > The S1 is my personal, at-home, FreeBSD+Garmin18 ntpd server.
>=20
> Aha! Then in that case I definitely agree you are sorted!  I would=20
> presume you can achieve low few 100s micro second sync (or better?)=20
> quite easily?

My experience is that a host adjacent to S1 on a GigE link can sync
to better than 100 microSec jitter.  Variable depending a lot on=20
the load on the hosts and the net.

> Problem seems to be that unless you all have the same
> reference (eg gps) then you could all be microsecond "accurate", just
> all at an offset to each other?

Exactly, thus the preference for a single time source for all units
in the test.

> I might guess that this is the goal of thumbgps - get the offset to=20
> zero?

Plus or minus a handfull of  milliSec.

> However, it appears in principle that you might achieve almost=20
> the same simply syncing to a carefully chosen pool of stratum 1=20
> servers?

Chicken and egg problem.  How can you get good time over a network
link of unknown (and asyn) delays?  Thus the observed data that it
can be pretty hard to sync to an S1 over a cable modem to even
100 milliSec.  100 times worse than the GR-601W locally.

>  So I'm still a touch unsure what the ultimate reason is for=20
> this?

To measure and understand the effects of bufferbloat on network
latency.  Since this is off topic for gpsd I suggesst you check out
the bufferbloat project html pages and mailing lists.

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

--Sig_/0gQi9FGmvpQfv+F.LhEEu2j
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+oEEoACgkQBmnRqz71OvPiaACgr9sK0/4r9DoLH3YJxq+/yc4l
lVcAn2r+NofU6XHp1nWdp8bZXFqvqx1/
=TDQQ
-----END PGP SIGNATURE-----

--Sig_/0gQi9FGmvpQfv+F.LhEEu2j--


From MAILER-DAEMON Mon May 07 14:15:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSTF-0006Uo-0P
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:15:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51755)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSTC-0006U2-8I
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:15:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSTA-0002g4-BV
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:15:37 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:45878)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSTA-0002fx-5f
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:15:36 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 93498340332
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 19:15:34 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id ijCtO0-8Gn2j for <gpsd-dev@nongnu.org>;
	Mon,  7 May 2012 19:15:34 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 359EF34032D
	for <gpsd-dev@nongnu.org>; Mon,  7 May 2012 19:15:33 +0100 (BST)
Message-ID: <4FA81145.4080405@wildgooses.com>
Date: Mon, 07 May 2012 19:15:33 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120507175819.9F04E800073@ip-64-139-1-69.sjc.megapath.net>
In-Reply-To: <20120507175819.9F04E800073@ip-64-139-1-69.sjc.megapath.net>
X-TagToolbar-Keys: D20120507191533453
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:15:39 -0000

>> Granted NMEA time is not traditionally considered incredibly accurate,  but
>> *if* the calculation is as I describe above, then we could  potentially
>> increase measurement accuracy by 0.5-1ms?
> There are two issues:  accuracy and stability.
>
> Your suggestion might improve accuracy.  It won't help stability.
>
> In the context of bufferbloat, accuracy is not a big deal.  We could go
> through a calibration dance if that helps.

Can you explain what you mean in more detail?  I get the difference 
between accuracy, stability, jitter, but not what you mean here?

As I see it, specifically the Venus chipset "has PPS" already, just over 
the serial data, not via a separate line.  This doesn't seem to be true 
of other chipsets of course.  In fact the Venus appears to give better 
than PPS because it appears we get multiple observations per second 
(each extra character in the ZDA sentence).  So with the addition of a 
PPL loop it should be possible to use the Venus to get significantly 
better than 1ms accuracy

The new device seems to give you the 1 ms that the PPS output appears 
on, but give or take an offset that is the same as the 1ms timeslot that 
the $ in the ZDA sentence appears in.  What have you gained by PPS?

In fact the $ should be much more accurate, because you can estimate the 
sub millisec arrival time within that 1ms, whereas with the PPS all you 
know is that it occured in a given 1ms slot...


This seems like quite an exciting thing to explore.  With a chipset 
giving stable ZDA sentences we should be able to get perhaps 100us 
accuracy out of a 1ms accurate observation - cool!


>> I'm going to collect a couple of hours results and plot them.  My
>> observations over the last few months (without having thought it  special)
>> are that the Venus6+CP210x never visibly deviates more than  around 1ms on
>> the NMEA time.  I never see any of these few hundred ms  drifts that others
>> talk about?
> That's reasonable.  Thanks for the data point.  It just means that the
> firmware on the Venus chip isn't as brain damaged (from a timing perspective)
> as the firmware on most other chips.

If you check google there are a number of observations on the stability 
of the NMEA output.  I think sparkfun and "tz" on this list have 
observed the output with a scope and confirmed that you can use the NMEA 
output as a stable PPS on several of the Venus chipsets

Ed W


From MAILER-DAEMON Mon May 07 14:19:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSX9-00075h-SE
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:19:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52439)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSX7-00075I-6U
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:19:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSX4-0004Ho-OP
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:19:40 -0400
Received: from catbert.rellim.com ([204.17.205.1]:59728)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSX4-0004FA-CR
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:19:38 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47IJZnf018673
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 11:19:35 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47IJZnf018673
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336414776; bh=kl/+uQ6mZ5/8JYYSkFXz6RVgdTSe6VWSGDXwCEia4oc=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=ha7xQ9zLQCCXWmzMz2hEIx0ojy8wjCdsz3VtE67kgcinEBFZDEiPccqQQb/GZewu9
	B81/m9yh+OAUE5XeRgM4A==
Date: Mon, 7 May 2012 11:19:31 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Jim Thompson <jim@netgate.com>
Message-ID: <20120507111931.765b45c7.gem@rellim.com>
In-Reply-To: <A68884D4-A76C-411F-826C-8373E42AFC04@netgate.com>
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
	<20120507032023.GA16601@thyrsus.com>
	<4FA7C2FD.6000902@wildgooses.com>
	<20120507132933.GA19145@thyrsus.com>
	<A68884D4-A76C-411F-826C-8373E42AFC04@netgate.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/IvFCEO.CPomYOcIDQvw50fd";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:19:42 -0000

--Sig_/IvFCEO.CPomYOcIDQvw50fd
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Jim!

On Mon, 7 May 2012 08:46:07 -0500
Jim Thompson <jim@netgate.com> wrote:

>=20
> On May 7, 2012, at 8:29 AM, "Eric S. Raymond" <esr@thyrsus.com> wrote:
>=20
> > Maybe.  Gary is actually measuring 0.5 ms jitter.
>=20
> with a scope, or via software (gpsd or ntpd)?

With ntpq and chronyc.  Eyeballed for worst case over time.


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

--Sig_/IvFCEO.CPomYOcIDQvw50fd
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+oEjYACgkQBmnRqz71OvNj5gCgkO/snJtFFuFVEozCDDOotGho
gNAAoOOVlgNUn0bV27HcYDtPSJ73m8/o
=UPGE
-----END PGP SIGNATURE-----

--Sig_/IvFCEO.CPomYOcIDQvw50fd--


From MAILER-DAEMON Mon May 07 14:28:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSfo-0001eX-OW
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:28:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53723)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRSfl-0001dj-F0
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:28:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRSfj-0007GU-Jy
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:28:37 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:45025)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SRSfj-0007DB-Eo
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:28:35 -0400
Received: by obbwd20 with SMTP id wd20so10418297obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 11:28:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to:x-mailer
	:x-gm-message-state;
	bh=dx1y0yYEWibPAmdszbzi7qZhgMIpGh2L4htR3z5ALR0=;
	b=oioQFcBocRVAkuZWwf8WXhj5RtlFf4gET+PqZYFGLUwNxieTeusGCQVe4D9OnIBbbW
	KtwnQM4+bmztchvGh2VLkeBd2ANz4uvgiydflPkULk1BgSDwThcwkgzXVRix0APCSpbS
	N1LwfDpdynjkJTqsssfXPaYrskRedrsbgSYBTvYHlLsQwMhc+pqLRBJMPsJOvpO+F2Xp
	Ygr9pZbd45mhmykCBjhFIopDqvpaGaiWlSr2ArhvgZr54STp8fHMWsZahNrdo2xPEMZ/
	nJPepacahcJ5AdRv4wi1v4kaHBmW5PMuXpi2KfSEaUBnjL6b8B0njV+P94mmyU+DBePN
	5JjA==
Received: by 10.182.14.104 with SMTP id o8mr23223732obc.6.1336415313034;
	Mon, 07 May 2012 11:28:33 -0700 (PDT)
Received: from [192.168.3.169] (rrcs-24-153-177-138.sw.biz.rr.com.
	[24.153.177.138])
	by mx.google.com with ESMTPS id d6sm15262240oeh.3.2012.05.07.11.28.30
	(version=TLSv1/SSLv3 cipher=OTHER);
	Mon, 07 May 2012 11:28:31 -0700 (PDT)
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1457\))
From: Jim Thompson <jim@netgate.com>
In-Reply-To: <20120507110055.38b370be.gem@rellim.com>
Date: Mon, 7 May 2012 13:28:29 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <50A03448-57A3-4D3B-A0B6-F56713DA4B7E@netgate.com>
References: <gem@rellim.com> <20120506124839.4d171f83.gem@rellim.com>
	<20120506200340.E7819800073@ip-64-139-1-69.sjc.megapath.net>
	<20120507032023.GA16601@thyrsus.com>
	<4FA7C2FD.6000902@wildgooses.com>
	<20120507132933.GA19145@thyrsus.com>
	<4FA7E55F.8030407@wildgooses.com>
	<20120507110055.38b370be.gem@rellim.com>
To: "Gary E. Miller" <gem@rellim.com>
X-Mailer: Apple Mail (2.1457)
X-Gm-Message-State: ALoCoQl+8iAzf4Thzn5i+yUvYBGoIRmU8CKewomLLLpzseocFLvKQPe0B+UFv5TN2RafZnj7HVVg
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:28:39 -0000

So is there an opinion among this esteemed group on the Trimble =
Copernicus-II?

=
http://trl.trimble.com/docushare/dsweb/Get/Document-501977/Copernicus-II_D=
S.pdf

I've got one of these on a module, which will mate to a matching =
connector on a Xscale ixp425-based board, with the PPS signal tied to a =
GPIO.
Runs OpenWRT/GPSD, should have the integration done in < a week.  (Hey, =
it's my 50th birthday Friday.. I might take the weekend off.)

The datasheet says "Stable indoor PPS in Stationary Mode", -160 dBm =
tracking sensitivity, and PPS (Stationary Mode "indoor" @ =96145dBm) of =
+/- 350ns.
Add a bit of interrupt latency, and we're probably still under 1uS.

Only 1+4 100Mbps Ethernet out of the board though.   Does POE, so it's =
simple to remote on a pole.  Have solid outdoor cases, too.  Adding =
802.11 is trivial.

But not $30, either. =20

Jim




From MAILER-DAEMON Mon May 07 14:34:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSlT-0002P9-T1
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:34:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52290)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSlQ-0002Ov-Sl
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:34:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSlM-0001hI-IQ
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:34:28 -0400
Received: from catbert.rellim.com ([204.17.205.1]:49265)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRSlM-0001e5-0z
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:34:24 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47IYKZV019614
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 11:34:20 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47IYKZV019614
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336415661; bh=M6FTsUAs2tpfBlJ+vncinyUQ1kDRMYpar7CUdmgE6ME=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=jZ2jQ5/5AyCZsUspD0OKfsHeWCbkmqiS+b/8e4qdVtoMfutbe3F3x4L2mzOgdgAZk
	t0n4VuvxTxaDk+Py/vNMQ==
Date: Mon, 7 May 2012 11:34:10 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507113410.12540d8a.gem@rellim.com>
In-Reply-To: <4FA7BC06.90906@wildgooses.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
	<20120506220713.GE14699@thyrsus.com> <4FA6F6C1.6020302@gmail.com>
	<20120506154146.69d7d5dc.gem@rellim.com>
	<4FA7BC06.90906@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/m7vyUtLuVM7XPxMOSfNhza9";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:34:30 -0000

--Sig_/m7vyUtLuVM7XPxMOSfNhza9
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Mon, 07 May 2012 13:11:50 +0100
Ed W <lists@wildgooses.com> wrote:

> On 06/05/2012 23:41, Gary E. Miller wrote:
> > That too, if you want to get the cp210x driver to support
> > ioctl(TIOCMWAIT) then that would be a kernel patch.
>=20
> According to a mail on your thumbgps list these are supported?

So we thought in March.  Now we know better.

> However, I just looked through the cp210x kernel module and I don't
> see *any* implementation of ioctl there at all?

Look again, it is there.  For comparision grep the source of other
USB serial for TIOCMWAIT.  Read the adjacent code for context and you'll
see how it works.

> Note there is a vendor cp210x driver which does contain an=20
> implementation of TIOCMIWAIT.

And from what we hear the vendor driver is not good.  Eric has
more detail on that.

> From eyeballing it, it looks=20
> straightforward in it's implementation (no idea why it's not in
> kernel?)

Which gets outside the scope of gpsd.  If you can get the kernel driver
fixed then have at it, until then it is off our plate.

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

--Sig_/m7vyUtLuVM7XPxMOSfNhza9
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEUEARECAAYFAk+oFasACgkQBmnRqz71OvPecACYjpNlz1fvhLLxMUzSaR6cfrrc
WACgseQ3ixPhHGL3/WzYPuIiR1iMNfg=
=ptum
-----END PGP SIGNATURE-----

--Sig_/m7vyUtLuVM7XPxMOSfNhza9--


From MAILER-DAEMON Mon May 07 14:34:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSln-0002Yo-4P
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:34:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52386)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSlk-0002Y8-KV
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:34:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSlf-0001uh-Jy
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:34:48 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:42630)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSlf-0001tg-EJ
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:34:43 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id B7B8E340332;
	Mon,  7 May 2012 19:34:41 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id VPHNhj8-B00D; Mon,  7 May 2012 19:34:41 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 5067834032D;
	Mon,  7 May 2012 19:34:41 +0100 (BST)
Message-ID: <4FA815C1.7080201@wildgooses.com>
Date: Mon, 07 May 2012 19:34:41 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<20120507104842.155f89c1.gem@rellim.com>
In-Reply-To: <20120507104842.155f89c1.gem@rellim.com>
X-TagToolbar-Keys: D20120507193440970
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:34:50 -0000

Hi

>> Hi, Could Eric or similar give me a confirmation on the current gpsd
>> nmea time calculation?
> I'll try.
>
>> My understanding is that you take the final GPZDA sentence, then work
>> *back* the timestamp of the initial $ by counting the number of
>> characters divided by baud rate?
> Nope, nothing anywhere near so fancy.  And since the start of gps
> sentences is so jittery there is no point to trying except for a
> few special case GPS.

You have said how it *doesn't* work, but not how it *does* work here?

Any chance of clarifying the current method of calculating NMEA time 
(presumably via ZDA sentence)?

Note also that we seem to have clarification now that at least several 
of the Venus chipsets has PPS accurate ZDA sentences.  ie we have in the 
wild cheap devices with working PPS right now


>> The reason for asking is that my Venus6 + CP210x has NMEA time that
>> appears to measure almost as accurately as a theoretical PPS over
>> USB.
> Until the CP210x kernel driver is fixed there is no point thinking about
> any usage of CP210x for timing.

I think we reached the point we are starting to talk past each other 
now.  I know we have a bunch of messages here, but could I ask you to 
just double check this so we don't cover old ground?

To recap my device doesn't have a traditional PPS, so I think we agreed 
some emails further back that the CP210x would gain nothing by 
implementing TIOCMIWAIT?  Additionally I think you confirmed that there 
are no other driver changes which would benefit me, so I dont think the 
driver needs "fixing" at this point?


Near as I can see the situation is:
- Reading the PPS will only ever poll every 1ms and so won't give you 
better than 1ms accuracy, regardless of implementation of TIOCMIWAIT
- Reading the serial data will give you $... and based on the number of 
characters in the buffer we can infer a more precise arrival time of the 
$ than the granularity of the USB poll.  So the serial port data is 
potentially more accurate if we take the timestamp of the USB poll and 
from that work back to figure out the arrival time of some character 
during that poll?

So for your purpose it may be interesting to investigate GPS devices 
based on a Venus chipset.  Accuracy has the potential to be better than 
PPS... (and devices are available)

Ed W


From MAILER-DAEMON Mon May 07 14:38:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSp6-0003Az-Cp
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:38:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54965)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSp3-0003Ak-S1
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:38:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSp1-0002g2-VV
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:38:13 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:47935)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRSp1-0002ft-NW
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:38:11 -0400
Received: by obbwd20 with SMTP id wd20so10429458obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 11:38:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=SiwOc6JrmkzhtfnlxF1eSb8XC12Tkrinw0dUU5RPm8Q=;
	b=P4NhVyNg7gf+qVA6tGXc8znNkleklxpTTuxan/D8DIOnNhDQG1E3Yf3ckz3RxIB57S
	0TcxbVfHMJigjytUI+OV15SjicsDS+ZOYH1J7qYkh8dYZb82Kdcb5Kvfh5QQpdshliu7
	/NZXqc+o628xpVHCPPKTDZryv1ZxzwZPPudRjRA6I4/E7kb1lE04lCqf1zMlnkAdyGRr
	LHTiF7WdAIr+ZwRQvIf3D5XnDbsLSCwcKqDMxFPW3Rt4lWWrlXJ9TBylezGgJsjsvvbT
	heGtIPaB+Z19q7R3kqwhbpqMankxctVZXcUAlqCUflPkb+WrvEY9rZ9Lh15VxA23oRfd
	QDqw==
Received: by 10.182.111.39 with SMTP id if7mr22619876obb.55.1336415889813;
	Mon, 07 May 2012 11:38:09 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Mon, 7 May 2012 11:37:48 -0700 (PDT)
In-Reply-To: <20120507175819.9F04E800073@ip-64-139-1-69.sjc.megapath.net>
References: <esr@thyrsus.com> <20120507132933.GA19145@thyrsus.com>
	<20120507175819.9F04E800073@ip-64-139-1-69.sjc.megapath.net>
From: tz <thomas@mich.com>
Date: Mon, 7 May 2012 14:37:48 -0400
X-Google-Sender-Auth: k94_v57SdrUhaY1fIURpPujCogo
Message-ID: <CAFv7Oihp=+MYJM=hijBFGddwL=DRw=nna=gNS5SH+a7X-s9VdA@mail.gmail.com>
To: Hal Murray <hmurray@megapathdsl.net>
Content-Type: multipart/alternative; boundary=14dae9399087626fb904bf769272
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:38:15 -0000

--14dae9399087626fb904bf769272
Content-Type: text/plain; charset=ISO-8859-1

On Mon, May 7, 2012 at 1:58 PM, Hal Murray <hmurray@megapathdsl.net> wrote:

>
> esr@thyrsus.com said:
> > That's news to us.  What GPS chip is in your devices?  If it's  Venus 6
> > that's interesting - suggests they don't have the timing  wobble that
> SiRF
> > chips do.
>
> The timing wobble on data from the serial port is just a firmware
> quirk/bug/feature.  Take your pick.
>

The wobble on the Venus is 60nS because the clock on the Venus is 16.667Mhz

I have multiple Skytraq chips and using a scope all the PPS rising edges
will be aligned to less than 100nS.   It may be better but I don't have a
super scope and that is pushing the bandwidth.

But for 40 Euros there's http://shop.8devices.com/carambola-bundle with TWO
hardware UARTS port and GPIOs - wireless and ethernet and openwrt.

--14dae9399087626fb904bf769272
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Mon, May 7, 2012 at 1:58 PM, Hal Murr=
ay <span dir=3D"ltr">&lt;<a href=3D"mailto:hmurray@megapathdsl.net" target=
=3D"_blank">hmurray@megapathdsl.net</a>&gt;</span> wrote:<br><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;p=
adding-left:1ex">

<div class=3D"im"><br>
<a href=3D"mailto:esr@thyrsus.com">esr@thyrsus.com</a> said:<br>
&gt; That&#39;s news to us. =A0What GPS chip is in your devices? =A0If it&#=
39;s =A0Venus 6<br>
&gt; that&#39;s interesting - suggests they don&#39;t have the timing =A0wo=
bble that SiRF<br>
&gt; chips do.<br>
<br>
</div>The timing wobble on data from the serial port is just a firmware<br>
quirk/bug/feature. =A0Take your pick.<br></blockquote></div><br>The wobble =
on the Venus is 60nS because the clock on the Venus is 16.667Mhz<br><br>I h=
ave multiple Skytraq chips and using a scope all the PPS rising edges will =
be aligned to less than 100nS.=A0=A0 It may be better but I don&#39;t have =
a super scope and that is pushing the bandwidth.<br>

<br>But for 40 Euros there&#39;s <a href=3D"http://shop.8devices.com/caramb=
ola-bundle">http://shop.8devices.com/carambola-bundle</a> with TWO hardware=
 UARTS port and GPIOs - wireless and ethernet and openwrt.<br><br><br>

--14dae9399087626fb904bf769272--


From MAILER-DAEMON Mon May 07 14:48:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRSzS-00055s-Ln
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:48:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43895)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSzO-00055j-Qm
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:48:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSzL-0007IH-Ta
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:48:54 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:33743)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRSzL-0007F9-Ho
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:48:51 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id C5424340332;
	Mon,  7 May 2012 19:48:49 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id 1jGUZ0ndd0NV; Mon,  7 May 2012 19:48:49 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 6B2EB34032D;
	Mon,  7 May 2012 19:48:49 +0100 (BST)
Message-ID: <4FA81911.10204@wildgooses.com>
Date: Mon, 07 May 2012 19:48:49 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: tz <thomas@mich.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
	<4FA7FF48.5090201@wildgooses.com>
	<CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com>
	<4FA80960.4090400@wildgooses.com>
	<CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com>
In-Reply-To: <CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com>
X-TagToolbar-Keys: D20120507194849104
Content-Type: multipart/alternative;
	boundary="------------070703070500050100020407"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:48:57 -0000

This is a multi-part message in MIME format.
--------------070703070500050100020407
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 07/05/2012 19:04, tz wrote:
> On Mon, May 7, 2012 at 1:41 PM, Ed W <lists@wildgooses.com 
> <mailto:lists@wildgooses.com>> wrote:
>
>     Hi
>
>
>     I think I might not be getting my point across.  Assuming more
>     like 4,800 to 38,400 baud then there should be variation of only
>     one character arrival uncertainty to the timestamp of the start of
>     the ZDA sentence.  However the end of the sentence could have much
>     larger jitter, up to 1ms (eg consider we read only the very last
>     character and the rest of the buffer is empty)
>
>     So my jitter is currently 1ms ish, but I believe it should be
>     possible to reduce that to 0.5ms.  Do you agree?
>
>
> No, because USB "jitter" is random 0-1mS.  It will set the interrupt 
> condition when it sees the character arrive, but it has to poll and it 
> only polls every 1mS.  There is no way to average it out

But my understanding is that we get the data (very quickly) after the 
poll is done.  Therefore we should get a decently accurate timestamp of 
the end of the USB poll.  So the poll event might be quick random, but 
we should at least know when it took place.  Is this correct?

So in practice USB polls will take place at intervals from 0.5ms to 
1.5ms, however, we should be able to timestamp *when* they take place, 
even if we can't predict them in advance.  Seems like this is not a 
problem in practice and possibly beneficial

>     First question though - did I correctly understand the current
>     gpsd algorithm?
>
>
> Yes, but it creates an offset, It remembers the time of something 
> early but it doesn't try to compensate for baud rate, and may remember 
> the end of sentence.

See I think if you measure the end of the sentence then you get a 
different error than if you measure the start of the sentence.  This is 
because you have an unknown quantisation at the end which isn't present 
at the start (or at least the size of the error is smaller)


>>
>>     I've done similar experiments.  There is an OFFSET because of the
>>     latency to the last sentence, but the jitter is consistent with
>>     USB jitter.  115200 baud is fast enough that it takes a 10
>>     character difference in the messages to add up to 1mS.  You might
>>     want to try 230400, though the Venus meters the characters out at
>>     less than full speed.
>     2) *IF* not just the initial bit, but in fact if every bit of the
>     Venus 6 output were of low jitter, then because we collect
>     multiple observations of the serial output via USB, then it should
>     be possible to improve our estimate of the arrival timestamp below
>     the 0.5ms mark.  ie we can observe the number of characters read
>     on each USB timestamp, compare with our predicted number of
>     characters we should be able to get sub ms estimates of the
>     arrival time of a particular character - use that to work back and
>     get the arrival time of the first bit. Note that if feasible, this
>     technique would give better accuracy than PPS over USB !
>
>
> You cannot measure the error.  It is random and not a normal distribution.

Sorry, which error can't you measure?  Also I don't see why you can't so 
can you please explain why you think you can't?

To recap, my expectation is that if you put it on a scope, the Venus 
chipset will send the initial $ with PPS level precision, and even 
subsequent bit will be delivered with very low jitter at 9,600 baud 
until the end of the ZDA sentence.  Can you please shoot down that 
expectation if it's not true?

The follow-on is that *if* the per character transmit time is constant 
and low jitter, then it's not a problem that our observation process of 
those characters is high jitter.  As long as we can observe "now" with 
decent accuracy then we can collect enough samples to infer the exact 
arrival time, even though there is jitter in the observation process.

Key question is whether a) initial bit is delivered with precision (you 
confirmed yes) and b) subsequent bits are also delivered with low 
jitter?  Can you confirm/deny b)?



> No, the USB "timing" is equivalent of white noise.   The timestamp of 
> the USB will be 0-1mS from when the real interrupt occurs with no way 
> of calculating or predicting it.

What process causes this?  Once the USB bus wakes up and polls the 
device, where does the data go for the rest of the time before 
delivering it to the operating system?  Generally buffering things is 
tricky and expensive so I would have expected a much simpler algorithm 
where the USB bus wakes up occasionally and simply delivers whatever is 
waiting at that point - as such we can measure the wakeup event, it's "now".


Thanks for your insight

Ed W

--------------070703070500050100020407
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 07/05/2012 19:04, tz wrote:
    <blockquote
cite="mid:CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com"
      type="cite">On Mon, May 7, 2012 at 1:41 PM, Ed W <span dir="ltr">&lt;<a
          moz-do-not-send="true" href="mailto:lists@wildgooses.com"
          target="_blank">lists@wildgooses.com</a>&gt;</span> wrote:<br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> Hi
            <div class="im"><br>
              <br>
            </div>
            I think I might not be getting my point across.&nbsp; Assuming
            more like 4,800 to 38,400 baud then there should be
            variation of only one character arrival uncertainty to the
            timestamp of the start of the ZDA sentence.&nbsp; However the end
            of the sentence could have much larger jitter, up to 1ms (eg
            consider we read only the very last character and the rest
            of the buffer is empty)<br>
            <br>
            So my jitter is currently 1ms ish, but I believe it should
            be possible to reduce that to 0.5ms.&nbsp; Do you agree?<br>
          </div>
        </blockquote>
        <div><br>
          No, because USB "jitter" is random 0-1mS.&nbsp; It will set the
          interrupt condition when it sees the character arrive, but it
          has to poll and it only polls every 1mS.&nbsp; There is no way to
          average it out<br>
        </div>
      </div>
    </blockquote>
    <br>
    But my understanding is that we get the data (very quickly) after
    the poll is done.&nbsp; Therefore we should get a decently accurate
    timestamp of the end of the USB poll.&nbsp; So the poll event might be
    quick random, but we should at least know when it took place.&nbsp; Is
    this correct?<br>
    <br>
    So in practice USB polls will take place at intervals from 0.5ms to
    1.5ms, however, we should be able to timestamp *when* they take
    place, even if we can't predict them in advance.&nbsp; Seems like this is
    not a problem in practice and possibly beneficial<br>
    <br>
    <blockquote
cite="mid:CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>
          &nbsp;</div>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000"> First question though -
            did I correctly understand the current gpsd algorithm? <br>
          </div>
        </blockquote>
        <div><br>
          Yes, but it creates an offset, It remembers the time of
          something early but it doesn't try to compensate for baud
          rate, and may remember the end of sentence. <br>
        </div>
      </div>
    </blockquote>
    <br>
    See I think if you measure the end of the sentence then you get a
    different error than if you measure the start of the sentence.&nbsp; This
    is because you have an unknown quantisation at the end which isn't
    present at the start (or at least the size of the error is smaller)<br>
    <br>
    <br>
    <blockquote
cite="mid:CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF" text="#000000">
            <div class="im">
              <blockquote type="cite">
                <div class="gmail_quote">
                  <div><br>
                    I've done similar experiments.&nbsp; There is an OFFSET
                    because of the latency to the last sentence, but the
                    jitter is consistent with USB jitter.&nbsp; 115200 baud
                    is fast enough that it takes a 10 character
                    difference in the messages to add up to 1mS.&nbsp; You
                    might want to try 230400, though the Venus meters
                    the characters out at less than full speed.<br>
                  </div>
                </div>
              </blockquote>
              2) *IF* not just the initial bit, but in fact if every bit
              of the Venus 6 output were of low jitter, then because we
              collect multiple observations of the serial output via
              USB, then it should be possible to improve our estimate of
              the arrival timestamp below the 0.5ms mark. &nbsp;ie we can
              observe the number of characters read on each USB
              timestamp, compare with our predicted number of characters
              we should be able to get sub ms estimates of the arrival
              time of a particular character - use that to work back and
              get the arrival time of the first bit. Note that if
              feasible, this technique would give better accuracy than
              PPS over USB !<br>
            </div>
          </div>
        </blockquote>
        <div><br>
          You cannot measure the error.&nbsp; It is random and not a normal
          distribution.<br>
        </div>
      </div>
    </blockquote>
    <br>
    Sorry, which error can't you measure?&nbsp; Also I don't see why you
    can't so can you please explain why you think you can't?<br>
    <br>
    To recap, my expectation is that if you put it on a scope, the Venus
    chipset will send the initial $ with PPS level precision, and even
    subsequent bit will be delivered with very low jitter at 9,600 baud
    until the end of the ZDA sentence.&nbsp; Can you please shoot down that
    expectation if it's not true?<br>
    <br>
    The follow-on is that *if* the per character transmit time is
    constant and low jitter, then it's not a problem that our
    observation process of those characters is high jitter.&nbsp; As long as
    we can observe "now" with decent accuracy then we can collect enough
    samples to infer the exact arrival time, even though there is jitter
    in the observation process.<br>
    <br>
    Key question is whether a) initial bit is delivered with precision
    (you confirmed yes) and b) subsequent bits are also delivered with
    low jitter?&nbsp; Can you confirm/deny b)?<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>No, the USB "timing" is equivalent of white noise.&nbsp;&nbsp; The
          timestamp of the USB will be 0-1mS from when the real
          interrupt occurs with no way of calculating or predicting it.<br>
        </div>
      </div>
    </blockquote>
    <br>
    What process causes this?&nbsp; Once the USB bus wakes up and polls the
    device, where does the data go for the rest of the time before
    delivering it to the operating system?&nbsp; Generally buffering things
    is tricky and expensive so I would have expected a much simpler
    algorithm where the USB bus wakes up occasionally and simply
    delivers whatever is waiting at that point - as such we can measure
    the wakeup event, it's "now".<br>
    <br>
    <br>
    Thanks for your insight<br>
    <br>
    Ed W<br>
  </body>
</html>

--------------070703070500050100020407--


From MAILER-DAEMON Mon May 07 14:53:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRT46-0005bq-Lt
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 14:53:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54498)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRT43-0005bg-Si
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:53:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRT41-0000WD-72
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:53:43 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:53982)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRT40-0000Tq-Sq
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 14:53:41 -0400
Received: by obbwd20 with SMTP id wd20so10448776obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 11:53:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=GqHg2d6jJJaih2WFeJecI4jZ+r3MNkI5oW2uzNdwIxk=;
	b=KYewHoHJ1LDaPWCHsssBd3t5YbUtqYUTi5xvL9jGV2Esr20F+k7Dw1F9D3yEvDamAT
	JTY9LbjwHAWumXBzc+38SLrXQr0Qfb2vP5sN33HScrkrTPaSFmQbPKzeMTc/V3Z6cE8C
	PfA17sjTjWnAI0K6nt+9OYTK9hJdtTSU7/fq2ShcYuWrms3gHAZ87sy8IdcXHsImimKQ
	TnEcxEMD2ayBsFcYSgHIOx9ReVtT3ehwFIjezFkqqU45Q3yxpnQYEZ3DTGFfZfyEe6+p
	7g6tE5nDir/Ef5PIfLBVfpQoWMAoAEr4v4ot0uIQz6001Y7OZKNFiI7wnzEWo6nHSQel
	Emzw==
Received: by 10.182.167.35 with SMTP id zl3mr4894311obb.27.1336416818926; Mon,
	07 May 2012 11:53:38 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Mon, 7 May 2012 11:53:18 -0700 (PDT)
In-Reply-To: <4FA815C1.7080201@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<20120507104842.155f89c1.gem@rellim.com>
	<4FA815C1.7080201@wildgooses.com>
From: tz <thomas@mich.com>
Date: Mon, 7 May 2012 14:53:18 -0400
X-Google-Sender-Auth: vxI6Preakdo4h6rGI6v8bCdUjaE
Message-ID: <CAFv7OiiMP=8E21T0TuKvwFt-ZaqMM_7PVxwe3gV+XNtxYvKGWA@mail.gmail.com>
To: Ed W <lists@wildgooses.com>
Content-Type: multipart/alternative; boundary=e89a8f839b09c392f604bf76c97e
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 18:53:46 -0000

--e89a8f839b09c392f604bf76c97e
Content-Type: text/plain; charset=ISO-8859-1

On Mon, May 7, 2012 at 2:34 PM, Ed W <lists@wildgooses.com> wrote:

> Hi
>
>
>  Hi, Could Eric or similar give me a confirmation on the current gpsd
>>> nmea time calculation?
>>>
>> I'll try.
>>
>>  My understanding is that you take the final GPZDA sentence, then work
>>> *back* the timestamp of the initial $ by counting the number of
>>> characters divided by baud rate?
>>>
>> Nope, nothing anywhere near so fancy.  And since the start of gps
>> sentences is so jittery there is no point to trying except for a
>> few special case GPS.
>>
>
> You have said how it *doesn't* work, but not how it *does* work here?
>

If it has a PPS output, you can put it and the RxD on an oscilloscope and
measure the jitter.  The problem is GPSD itself is semi-device-agnostic, so
it can't tell if you've attached a SkyTraq or one of the jittery devices.


> Any chance of clarifying the current method of calculating NMEA time
> (presumably via ZDA sentence)?
>

I think it needs the RMC and/or the GGA in order to get an indication if it
is locked (or other info required for GPSD to work).  The ZDA might be the
first if alone, but if RMC is there it is the PPS synced sentence.  It
won't send the packet to NTP until it gets  a full set of sentences, and
ZDA alone is not sufficient.

Note also that we seem to have clarification now that at least several of
> the Venus chipsets has PPS accurate ZDA sentences.  ie we have in the wild
> cheap devices with working PPS right now
>
>  The reason for asking is that my Venus6 + CP210x has NMEA time that
>>> appears to measure almost as accurately as a theoretical PPS over
>>> USB.
>>>
>> Until the CP210x kernel driver is fixed there is no point thinking about
>> any usage of CP210x for timing.
>>
>
> I think we reached the point we are starting to talk past each other now.
>  I know we have a bunch of messages here, but could I ask you to just
> double check this so we don't cover old ground?
>
> To recap my device doesn't have a traditional PPS, so I think we agreed
> some emails further back that the CP210x would gain nothing by implementing
> TIOCMIWAIT?  Additionally I think you confirmed that there are no other
> driver changes which would benefit me, so I dont think the driver needs
> "fixing" at this point?
>

The CP210x would gain if the kernel implemented it - at least if PPS was
attached to a serial control pin, but then you would have to wait for the
kernel driver to be downstreamed into whatever you are running to have the
capability.

Sparkfun's module and SkyTraq's EVK have the PPS pins broken out and they
work.

Near as I can see the situation is:
> - Reading the PPS will only ever poll every 1ms and so won't give you
> better than 1ms accuracy, regardless of implementation of TIOCMIWAIT
> - Reading the serial data will give you $... and based on the number of
> characters in the buffer we can infer a more precise arrival time of the $
> than the granularity of the USB poll.  So the serial port data is
> potentially more accurate if we take the timestamp of the USB poll and from
> that work back to figure out the arrival time of some character during that
> poll?
>

The characters in the input buffer are polled only as often - not more
often but less often if there is a FIFO with a high/low water mark or
timeout - as the PPS.  With a zero-delay for character USB serial chip you
will still get a 1mS minimum jitter.

Taking a timestamp of the USB poll cannot be correlated to the actual
arrival time of the character, at least not with an uncertainty less than
1mS.


> So for your purpose it may be interesting to investigate GPS devices based
> on a Venus chipset.  Accuracy has the potential to be better than PPS...
> (and devices are available)
>
> Ed W
>
>

--e89a8f839b09c392f604bf76c97e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Mon, May 7, 2012 at 2:34 PM, Ed W <sp=
an dir=3D"ltr">&lt;<a href=3D"mailto:lists@wildgooses.com" target=3D"_blank=
">lists@wildgooses.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">

Hi<div class=3D"im"><br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, Could Eric or similar give me a confirmation on the current gpsd<br>
nmea time calculation?<br>
</blockquote>
I&#39;ll try.<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
My understanding is that you take the final GPZDA sentence, then work<br>
*back* the timestamp of the initial $ by counting the number of<br>
characters divided by baud rate?<br>
</blockquote>
Nope, nothing anywhere near so fancy. =A0And since the start of gps<br>
sentences is so jittery there is no point to trying except for a<br>
few special case GPS.<br>
</blockquote>
<br></div>
You have said how it *doesn&#39;t* work, but not how it *does* work here?<b=
r></blockquote><div>=A0<br></div><div>If it has a PPS output, you can put i=
t and the RxD on an oscilloscope and measure the jitter.=A0 The problem is =
GPSD itself is semi-device-agnostic, so it can&#39;t tell if you&#39;ve att=
ached a SkyTraq or one of the jittery devices.<br>

=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Any chance of clarifying the current method of calculating NMEA time (presu=
mably via ZDA sentence)?<br></blockquote><div>=A0<br>I think it needs the R=
MC and/or the GGA in order to get an indication if it is locked (or other i=
nfo required for GPSD to work).=A0 The ZDA might be the first if alone, but=
 if RMC is there it is the PPS synced sentence.=A0 It won&#39;t send the pa=
cket to NTP until it gets=A0 a full set of sentences, and ZDA alone is not =
sufficient.<br>

<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Note also that we seem to have clarification now that at least several of t=
he Venus chipsets has PPS accurate ZDA sentences. =A0ie we have in the wild=
 cheap devices with working PPS right now<br><div class=3D"im">
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The reason for asking is that my Venus6 + CP210x has NMEA time that<br>
appears to measure almost as accurately as a theoretical PPS over<br>
USB.<br>
</blockquote>
Until the CP210x kernel driver is fixed there is no point thinking about<br=
>
any usage of CP210x for timing.<br>
</blockquote>
<br></div>
I think we reached the point we are starting to talk past each other now. =
=A0I know we have a bunch of messages here, but could I ask you to just dou=
ble check this so we don&#39;t cover old ground?<br>
<br>
To recap my device doesn&#39;t have a traditional PPS, so I think we agreed=
 some emails further back that the CP210x would gain nothing by implementin=
g TIOCMIWAIT? =A0Additionally I think you confirmed that there are no other=
 driver changes which would benefit me, so I dont think the driver needs &q=
uot;fixing&quot; at this point?<br>

</blockquote><div>=A0<br>The CP210x would gain if the kernel implemented it=
 - at least if PPS was attached to a serial control pin, but then you would=
 have to wait for the kernel driver to be downstreamed into whatever you ar=
e running to have the capability.<br>

<br>Sparkfun&#39;s module and SkyTraq&#39;s EVK have the PPS pins broken ou=
t and they work.<br><br></div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:=
1ex">


Near as I can see the situation is:<br>
- Reading the PPS will only ever poll every 1ms and so won&#39;t give you b=
etter than 1ms accuracy, regardless of implementation of TIOCMIWAIT<br>
- Reading the serial data will give you $... and based on the number of cha=
racters in the buffer we can infer a more precise arrival time of the $ tha=
n the granularity of the USB poll. =A0So the serial port data is potentiall=
y more accurate if we take the timestamp of the USB poll and from that work=
 back to figure out the arrival time of some character during that poll?<br=
>

</blockquote><div><br>The characters in the input buffer are polled only as=
 often - not more often but less often if there is a FIFO with a high/low w=
ater mark or timeout - as the PPS.=A0 With a zero-delay for character USB s=
erial chip you will still get a 1mS minimum jitter.<br>

<br>Taking a timestamp of the USB poll cannot be correlated to the actual a=
rrival time of the character, at least not with an uncertainty less than 1m=
S.<br>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0p=
t 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


So for your purpose it may be interesting to investigate GPS devices based =
on a Venus chipset. =A0Accuracy has the potential to be better than PPS... =
(and devices are available)<span class=3D"HOEnZb"><font color=3D"#888888"><=
br>


<br>
Ed W<br>
<br>
</font></span></blockquote></div><br>

--e89a8f839b09c392f604bf76c97e--


From MAILER-DAEMON Mon May 07 15:01:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRTBx-0007Wq-R8
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 15:01:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48375)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRTBu-0007WG-7K
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 15:01:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRTBr-00049c-NV
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 15:01:49 -0400
Received: from catbert.rellim.com ([204.17.205.1]:56581)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRTBr-00049K-5r
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 15:01:47 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47J1hSI020940
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 12:01:43 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47J1hSI020940
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336417303; bh=LM6SpsV1bP/FkbFsO3ar2TCOrKrRD4sZPmBdv+Yzc0o=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=QP7KdVUfZmBxA3AuTrEr0eK9qZicQUuEtaORhK+aSq5qmfRjVxMx846M2d22DORyi
	Z30/YwlA5455xx6k9Eilg==
Date: Mon, 7 May 2012 12:01:39 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507120139.11d480b0.gem@rellim.com>
In-Reply-To: <4FA7B2AF.50901@wildgooses.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA6668B.70503@wildgooses.com>
	<20120506130506.3a4f07a1.gem@rellim.com>
	<4FA7B2AF.50901@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/dvOA8WtKgAIo9lwDvrxet8e";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 19:01:51 -0000

--Sig_/dvOA8WtKgAIo9lwDvrxet8e
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Mon, 07 May 2012 12:31:59 +0100
Ed W <lists@wildgooses.com> wrote:

> ...Very hostile answer Gary? What did I say to tick you off?

Sorry, not intentional, just trying to be very clear, and trying to stay
on topic for gpsd. =20

> >> Just to be clear - the above is a waaay more powerful board than
> >> most routers, it's i586 compatible (rather than ARM).  However, it
> >> is probably more expensive than an old Linksys router, and it's
> >> switching capacity is almost certainly lower than a cutting edge
> >> Linksys job.
> > And that is exactly the problem.  They want a common dumb consumer
> > platform becasue they are looking to develop teaks for dumb consumer
> > platorms.
>=20
> Still not quite clear what you are saying here?  First you say you
> can't do diy, then you say that you want to tweak off the shelf
> stuff?

You are confusing three cases.  One case is what the thumbgps project
wants/can do.  A second case is what I want/can do.  Third case is the
gpsd project focuses on.

Case 1: thumbgps needs cheap, off the shelf, totally standard.  No DIY,
and they need it now.

Case 2: I am comfortable building things from scratch.

Case 3: gpsd is software only, but some gpsd people fall in case 1 and
some in case 2.

> At least some interpretations of that are incompatible?

Correct.  Case 1 is very different from case 2.  Case 3 is a mixture of
both.

> Are you saying that you cannot narrow the platform hardware choices?

Case 1: I am saying the thumbgps project has long ago been fixed their
platform in stone.  You need to discuss the reasons for that with them.

Case 2: For myself I'll try anything.

Case 3: gpsd has some of both.

> The front page of the thumbgps platform suggests you are building
> your own 'wrt clone?

Case 1: Not me!  You have to ask them, but that is also my understanding.

Case 2: out of scope.

Case 3: out of scope.

> Note although you are ticking me off for *asking* if DIY is an
> option, your mailing list is full of technical chatter - I think you
> are quite harsh to an outside simply trying to offer some ideas when
> it's really not obvious what the parameters are.  I will stand
> corrected though...

Case 1: If you are interested in the thumbgps and bufferbloat projects
then you really need to direct your questions to them.  All the gpsd
project is doing is helping them with the time needs of their project.
They have explicitely stated DIY is off the table.

Case 2: I have no immediate need, but am curious what you come up with.

Case 3: they few DIY'ers in gpsd are doing their own DIY already.

> >> The bit I was trying to square was that the GPIOs don't currently
> >> have a linux driver which is interrupt triggered.
> >
> > Yup, and the bufferbloat project noted that and explictly decided
> > that to go down that road was to go Yak Shearing.  If such a driver
> > should appear that might be usefull in a future project.
>=20
> Don't understand?  Isn't software on the table?  I thought it was
> only diy hardware which was out of contention?

Case 1: Once again you really need to ask the thumbgps project.  Don't
shoot the messenger.  They have explicitly taken kernel driver changes
off the table.

Case 2: I have no bandwidth left to think about kernel drivers.

Case 3: Kernel driver changes are also out of scope of the gpsd project.

If you feel you can get driver improvements in the kernel we would love
to see it happen.

> I already managed to get the basic GPIO changes into kernel 3.2 to=20
> support this.  Either I or someone else needs to beat me to take the=20
> code from the OLPC modules and turn it into a generic module.  For
> sure it's systems programming, but probably around 100 lines of code
> or so.

Case 1: Unless you get it in the kernel yesterday, too late for this round.
Otherwise out of scope for them.

Case 2: I have no bandwidth left to think about kernel drivers.

Case 3: And out of scope of the gpsd project.

> I do agree it's not perfect hardware though - hence my questions on
> what your requirements were.  Had this been a useful solution I might
> have been inclined to try and help get such a module developed sooner

Case 1: A day late and a dollar short.  The engineering samples meet all
objections and production orders are imminent.  If you wish to explore
this further with them you know where to find them.

Case 2: I have all the hardware I need.

Case 3: gpsd is mostly software hobbyists running on commodity hardware.

OTOH, if you think you have a product, then have at it.  Let us know how
it works out.

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

--Sig_/dvOA8WtKgAIo9lwDvrxet8e
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+oHBYACgkQBmnRqz71OvNKAwCfUinYNclgTYoPTANJhxgP/PR/
kUQAoNI1GYLZbpxuOJq7vyNi1QaWUET1
=4bMW
-----END PGP SIGNATURE-----

--Sig_/dvOA8WtKgAIo9lwDvrxet8e--


From MAILER-DAEMON Mon May 07 15:10:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRTKJ-0000XJ-3v
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 15:10:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60881)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRTKF-0000Wy-55
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 15:10:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRTKC-000809-5m
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 15:10:26 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:38225)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRTKB-0007zz-Pw
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 15:10:24 -0400
Received: by obbwd20 with SMTP id wd20so10469911obb.4
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 12:10:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=GW0pLH8MFB+apBjcgIcYd/3bQlhmXOuJcaIyOJD5WPw=;
	b=FOt1QydVB72KSmU53Vid+5IWLsC9eLwtUFIawEq4derJtqlt+hK3jlhSlekFki35rX
	wxc2ECzqEbEpS9XxI64w8KvsNTgOy2IWL3wkfn2uhV4UgqalG5GMowyDOZayLVdPWqxP
	86DXMM0CXKFa6nGcgmoPmQooXnr/QPIGUvkaPJqAw15z7GIsiuF1kdMBP2Hwu8PMEPuf
	3VbfbBxE5z5pYBY73pFNr3mWyVFKl/ipmwYiBz/JOIf11GmH2XU9alcCNwScjmQVB3vR
	TeOCq8JqK+fK9nUO3BqkOxDGOlUPPN6+1p/I6wMHeI86rM0IBhOH4X4HXF0/VKlwinYi
	0YtA==
Received: by 10.182.183.73 with SMTP id ek9mr5318312obc.15.1336417822003; Mon,
	07 May 2012 12:10:22 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Mon, 7 May 2012 12:10:01 -0700 (PDT)
In-Reply-To: <4FA81911.10204@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<CAFv7Oij7MbcFoi1u6O1B7E+3AWpXQ=NbhnyKmQpfz=cCB4WKDg@mail.gmail.com>
	<4FA7FF48.5090201@wildgooses.com>
	<CAFv7OiiA4UqRRXSG=inFqcC2L1ZbbiZ6O3S7UQPru0xraoJbBA@mail.gmail.com>
	<4FA80960.4090400@wildgooses.com>
	<CAFv7OigGXh79pp7sqZ=pc+ub8PipAudS7XO4uFCVk4_Fbpf8Mg@mail.gmail.com>
	<4FA81911.10204@wildgooses.com>
From: tz <thomas@mich.com>
Date: Mon, 7 May 2012 15:10:01 -0400
X-Google-Sender-Auth: O-hN4dDFD9geil5oSalmYwxYMb8
Message-ID: <CAFv7Oig2pVNLs_Q-yKu9CFR6OQeVzVonKpQsWjxuKPo+ohn2Jw@mail.gmail.com>
To: Ed W <lists@wildgooses.com>
Content-Type: multipart/alternative; boundary=f46d04478a318d524204bf770554
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 19:10:29 -0000

--f46d04478a318d524204bf770554
Content-Type: text/plain; charset=ISO-8859-1

On Mon, May 7, 2012 at 2:48 PM, Ed W <lists@wildgooses.com> wrote:

>  On 07/05/2012 19:04, tz wrote:
>
> On Mon, May 7, 2012 at 1:41 PM, Ed W <lists@wildgooses.com> wrote:
>
>>  Hi
>>
>>
>>  I think I might not be getting my point across.  Assuming more like
>> 4,800 to 38,400 baud then there should be variation of only one character
>> arrival uncertainty to the timestamp of the start of the ZDA sentence.
>> However the end of the sentence could have much larger jitter, up to 1ms
>> (eg consider we read only the very last character and the rest of the
>> buffer is empty)
>>
>> So my jitter is currently 1ms ish, but I believe it should be possible to
>> reduce that to 0.5ms.  Do you agree?
>>
>
> No, because USB "jitter" is random 0-1mS.  It will set the interrupt
> condition when it sees the character arrive, but it has to poll and it only
> polls every 1mS.  There is no way to average it out
>
>
> But my understanding is that we get the data (very quickly) after the poll
> is done.  Therefore we should get a decently accurate timestamp of the end
> of the USB poll.  So the poll event might be quick random, but we should at
> least know when it took place.  Is this correct?
>

The actual time of the USB poll isn't accurate, so any timestamp would have
a builtin error.  Also you don't know when the character actually came in.
It might be starting to come in but incomplete during the current poll, so
it will appear (over) 1mS later at the next poll, or it could have just
been completed and enough housekeeping was done so it came in a few
microseconds before.

>
> So in practice USB polls will take place at intervals from 0.5ms to 1.5ms,
> however, we should be able to timestamp *when* they take place, even if we
> can't predict them in advance.  Seems like this is not a problem in
> practice and possibly beneficial
>

Timestamp with what and how?  The polls are done internally on the "hub"
chip and you don't really know one has occurred except that you see an
interrupt indication for something.  There isn't a "poll" bit accessible in
the driver via ioctl or any other mechanism.  All that is hidden and
buried.

>
>
>
>>  First question though - did I correctly understand the current gpsd
>> algorithm?
>>
>
> Yes, but it creates an offset, It remembers the time of something early
> but it doesn't try to compensate for baud rate, and may remember the end of
> sentence.
>
>
> See I think if you measure the end of the sentence then you get a
> different error than if you measure the start of the sentence.  This is
> because you have an unknown quantisation at the end which isn't present at
> the start (or at least the size of the error is smaller)
>
>
>
>
>> I've done similar experiments.  There is an OFFSET because of the latency
>> to the last sentence, but the jitter is consistent with USB jitter.  115200
>> baud is fast enough that it takes a 10 character difference in the messages
>> to add up to 1mS.  You might want to try 230400, though the Venus meters
>> the characters out at less than full speed.
>>
>> 2) *IF* not just the initial bit, but in fact if every bit of the Venus 6
>> output were of low jitter, then because we collect multiple observations of
>> the serial output via USB, then it should be possible to improve our
>> estimate of the arrival timestamp below the 0.5ms mark.  ie we can observe
>> the number of characters read on each USB timestamp, compare with our
>> predicted number of characters we should be able to get sub ms estimates of
>> the arrival time of a particular character - use that to work back and get
>> the arrival time of the first bit. Note that if feasible, this technique
>> would give better accuracy than PPS over USB !
>>
>
> You cannot measure the error.  It is random and not a normal distribution.
>
>
> Sorry, which error can't you measure?  Also I don't see why you can't so
> can you please explain why you think you can't?
>

 You have an event correlated with the PPS, e.g. the first character of the
first sentence.  That can be visible on an oscilliscope.

In order to timestamp it, you must have something you can do at the far end
to detect it.  (I've toggled one of the other serial port pins in response
in my tests when TIOCMWAIT came back).

On the scope, I can see multiple miliiseconds - variable - of jitter for
any user program including one at nice -20 between either the PPS itself or
the first character, and the line I toggle to indicate it came in.  If the
kernel is doing disk-io or something else intense, any user program won't
get the message until it is unbusy.  You need a time-slice.

If you can go into the kernel itself and timestamp within a hardware
interrupt (on a multicore), you can do high accuracy.  The USB poll is not
an interrupt as such, and timestamping in userland is not going to work
better than 1mS, but there will be outliers.

>
> To recap, my expectation is that if you put it on a scope, the Venus
> chipset will send the initial $ with PPS level precision, and even
> subsequent bit will be delivered with very low jitter at 9,600 baud until
> the end of the ZDA sentence.  Can you please shoot down that expectation if
> it's not true?
>

Yes, on the scope it is precise.  But the USB is imprecise to over a mS
(and isn't correlated), and then there is the kernel housekeeping, task
switching, and whatever else between when the event occurs and the
timestamp is obtained.  You can get close to 1mS using USB on an non-busy
system but not more.

>
> The follow-on is that *if* the per character transmit time is constant and
> low jitter, then it's not a problem that our observation process of those
> characters is high jitter.  As long as we can observe "now" with decent
> accuracy then we can collect enough samples to infer the exact arrival
> time, even though there is jitter in the observation process.
>

We can't observe "now" with a decent accuracy from userland, and even in
the kernel interrupts can be off for a millisecond in bad cases - though
more often it will only be a few microseconds.  But you need the event to
be timestamped correlated to the PPS edge - either PPS signal or character
in the first place.  Over USB that doesn't and won't happen - USB 2.0 can
go to 125uS if you set the bits so it polls at 8MHz.


> Key question is whether a) initial bit is delivered with precision (you
> confirmed yes) and b) subsequent bits are also delivered with low jitter?
> Can you confirm/deny b)?
>
> They OCCUR with that precision.  They are delivered with a precision no
greater than 1mS over USB to the kernel and worse if it is userland.

>   No, the USB "timing" is equivalent of white noise.   The timestamp of
> the USB will be 0-1mS from when the real interrupt occurs with no way of
> calculating or predicting it.
>
>
> What process causes this?  Once the USB bus wakes up and polls the device,
> where does the data go for the rest of the time before delivering it to the
> operating system?  Generally buffering things is tricky and expensive so I
> would have expected a much simpler algorithm where the USB bus wakes up
> occasionally and simply delivers whatever is waiting at that point - as
> such we can measure the wakeup event, it's "now".
>

USB doesn't "wake up".  USB sends an interrupt pol packet over the wirel
every 1 millisecond.  The device responds with a packet indicating whether
there is an interrupt condition or not.  It then gets more info and
possibly characters in response.

The USB Host controls everything and it only polls every 1mS (1.1) from the
USB host chip.  The host chip cannot see anything on the peripheral chip
until it sends a packet to request it.

>
>
> Thanks for your insight
>
> Ed W
>

--f46d04478a318d524204bf770554
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Mon, May 7, 2012 at 2:48 PM, Ed W <sp=
an dir=3D"ltr">&lt;<a href=3D"mailto:lists@wildgooses.com" target=3D"_blank=
">lists@wildgooses.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">


 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000"><div class=3D"im">
    On 07/05/2012 19:04, tz wrote:
    <blockquote type=3D"cite">On Mon, May 7, 2012 at 1:41 PM, Ed W <span di=
r=3D"ltr">&lt;<a href=3D"mailto:lists@wildgooses.com" target=3D"_blank">lis=
ts@wildgooses.com</a>&gt;</span> wrote:<br>
      <div class=3D"gmail_quote">
        <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">
          <div bgcolor=3D"#FFFFFF" text=3D"#000000"> Hi
            <div><br>
              <br>
            </div>
            I think I might not be getting my point across.=A0 Assuming
            more like 4,800 to 38,400 baud then there should be
            variation of only one character arrival uncertainty to the
            timestamp of the start of the ZDA sentence.=A0 However the end
            of the sentence could have much larger jitter, up to 1ms (eg
            consider we read only the very last character and the rest
            of the buffer is empty)<br>
            <br>
            So my jitter is currently 1ms ish, but I believe it should
            be possible to reduce that to 0.5ms.=A0 Do you agree?<br>
          </div>
        </blockquote>
        <div><br>
          No, because USB &quot;jitter&quot; is random 0-1mS.=A0 It will se=
t the
          interrupt condition when it sees the character arrive, but it
          has to poll and it only polls every 1mS.=A0 There is no way to
          average it out<br>
        </div>
      </div>
    </blockquote>
    <br></div>
    But my understanding is that we get the data (very quickly) after
    the poll is done.=A0 Therefore we should get a decently accurate
    timestamp of the end of the USB poll.=A0 So the poll event might be
    quick random, but we should at least know when it took place.=A0 Is
    this correct?<br></div></blockquote><div><br>The actual time of the USB=
 poll isn&#39;t accurate, so any timestamp would have a builtin error.=A0 A=
lso you don&#39;t know when the character actually came in.=A0 It might be =
starting to come in but incomplete during the current poll, so it will appe=
ar (over) 1mS later at the next poll, or it could have just been completed =
and enough housekeeping was done so it came in a few microseconds before.<b=
r>

</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"#FF=
FFFF" text=3D"#000000">
    <br>
    So in practice USB polls will take place at intervals from 0.5ms to
    1.5ms, however, we should be able to timestamp *when* they take
    place, even if we can&#39;t predict them in advance.=A0 Seems like this=
 is
    not a problem in practice and possibly beneficial</div></blockquote><di=
v><br>Timestamp with what and how?=A0 The polls are done internally on the =
&quot;hub&quot; chip and you don&#39;t really know one has occurred except =
that you see an interrupt indication for something.=A0 There isn&#39;t a &q=
uot;poll&quot; bit accessible in the driver via ioctl or any other mechanis=
m.=A0 All that is hidden and buried. <br>

</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"#FF=
FFFF" text=3D"#000000"><div class=3D"im"><br>
    <blockquote type=3D"cite">
      <div class=3D"gmail_quote">
        <div>
          =A0</div>
        <blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor=3D"#FFFFFF" text=3D"#000000"> First question though =
-
            did I correctly understand the current gpsd algorithm? <br>
          </div>
        </blockquote>
        <div><br>
          Yes, but it creates an offset, It remembers the time of
          something early but it doesn&#39;t try to compensate for baud
          rate, and may remember the end of sentence. <br>
        </div>
      </div>
    </blockquote>
    <br></div>
    See I think if you measure the end of the sentence then you get a
    different error than if you measure the start of the sentence.=A0 This
    is because you have an unknown quantisation at the end which isn&#39;t
    present at the start (or at least the size of the error is smaller)<div=
 class=3D"im"><br>
    <br>
    <br>
    <blockquote type=3D"cite">
      <div class=3D"gmail_quote">
        <blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor=3D"#FFFFFF" text=3D"#000000">
            <div>
              <blockquote type=3D"cite">
                <div class=3D"gmail_quote">
                  <div><br>
                    I&#39;ve done similar experiments.=A0 There is an OFFSE=
T
                    because of the latency to the last sentence, but the
                    jitter is consistent with USB jitter.=A0 115200 baud
                    is fast enough that it takes a 10 character
                    difference in the messages to add up to 1mS.=A0 You
                    might want to try 230400, though the Venus meters
                    the characters out at less than full speed.<br>
                  </div>
                </div>
              </blockquote>
              2) *IF* not just the initial bit, but in fact if every bit
              of the Venus 6 output were of low jitter, then because we
              collect multiple observations of the serial output via
              USB, then it should be possible to improve our estimate of
              the arrival timestamp below the 0.5ms mark. =A0ie we can
              observe the number of characters read on each USB
              timestamp, compare with our predicted number of characters
              we should be able to get sub ms estimates of the arrival
              time of a particular character - use that to work back and
              get the arrival time of the first bit. Note that if
              feasible, this technique would give better accuracy than
              PPS over USB !<br>
            </div>
          </div>
        </blockquote>
        <div><br>
          You cannot measure the error.=A0 It is random and not a normal
          distribution.<br>
        </div>
      </div>
    </blockquote>
    <br></div>
    Sorry, which error can&#39;t you measure?=A0 Also I don&#39;t see why y=
ou
    can&#39;t so can you please explain why you think you can&#39;t?<br></d=
iv></blockquote><div><br>=A0You have an event correlated with the PPS, e.g.=
 the first character of the first sentence.=A0 That can be visible on an os=
cilliscope.<br>

<br>In order to timestamp it, you must have something you can do at the far=
 end to detect it.=A0 (I&#39;ve toggled one of the other serial port pins i=
n response in my tests when TIOCMWAIT came back).<br><br>On the scope, I ca=
n see multiple miliiseconds - variable - of jitter for any user program inc=
luding one at nice -20 between either the PPS itself or the first character=
, and the line I toggle to indicate it came in.=A0 If the kernel is doing d=
isk-io or something else intense, any user program won&#39;t get the messag=
e until it is unbusy.=A0 You need a time-slice.<br>

<br>If you can go into the kernel itself and timestamp within a hardware in=
terrupt (on a multicore), you can do high accuracy.=A0 The USB poll is not =
an interrupt as such, and timestamping in userland is not going to work bet=
ter than 1mS, but there will be outliers.<br>

</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"#FF=
FFFF" text=3D"#000000">
    <br>
    To recap, my expectation is that if you put it on a scope, the Venus
    chipset will send the initial $ with PPS level precision, and even
    subsequent bit will be delivered with very low jitter at 9,600 baud
    until the end of the ZDA sentence.=A0 Can you please shoot down that
    expectation if it&#39;s not true?<br></div></blockquote><div><br>Yes, o=
n the scope it is precise.=A0 But the USB is imprecise to over a mS (and is=
n&#39;t correlated), and then there is the kernel housekeeping, task switch=
ing, and whatever else between when the event occurs and the timestamp is o=
btained.=A0 You can get close to 1mS using USB on an non-busy system but no=
t more. <br>

</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;b=
order-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"#FF=
FFFF" text=3D"#000000">
    <br>
    The follow-on is that *if* the per character transmit time is
    constant and low jitter, then it&#39;s not a problem that our
    observation process of those characters is high jitter.=A0 As long as
    we can observe &quot;now&quot; with decent accuracy then we can collect=
 enough
    samples to infer the exact arrival time, even though there is jitter
    in the observation process.<br></div></blockquote><div><br>We can&#39;t=
 observe &quot;now&quot; with a decent accuracy from userland, and even in =
the kernel interrupts can be off for a millisecond in bad cases - though mo=
re often it will only be a few microseconds.=A0 But you need the event to b=
e timestamped correlated to the PPS edge - either PPS signal or character i=
n the first place.=A0 Over USB that doesn&#39;t and won&#39;t happen - USB =
2.0 can go to 125uS if you set the bits so it polls at 8MHz.<br>

=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0pt 0pt 0pt 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor=3D"=
#FFFFFF" text=3D"#000000">
    Key question is whether a) initial bit is delivered with precision
    (you confirmed yes) and b) subsequent bits are also delivered with
    low jitter?=A0 Can you confirm/deny b)?<br><div class=3D"im">
    <br></div></div></blockquote><div>They OCCUR with that precision.=A0 Th=
ey are delivered with a precision no greater than 1mS over USB to the kerne=
l and worse if it is userland.<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">

<div bgcolor=3D"#FFFFFF" text=3D"#000000"><div class=3D"im">
    <blockquote type=3D"cite">
      <div class=3D"gmail_quote">
        <div>No, the USB &quot;timing&quot; is equivalent of white noise.=
=A0=A0 The
          timestamp of the USB will be 0-1mS from when the real
          interrupt occurs with no way of calculating or predicting it.<br>
        </div>
      </div>
    </blockquote>
    <br></div>
    What process causes this?=A0 Once the USB bus wakes up and polls the
    device, where does the data go for the rest of the time before
    delivering it to the operating system?=A0 Generally buffering things
    is tricky and expensive so I would have expected a much simpler
    algorithm where the USB bus wakes up occasionally and simply
    delivers whatever is waiting at that point - as such we can measure
    the wakeup event, it&#39;s &quot;now&quot;.<br></div></blockquote><div>=
<br>USB doesn&#39;t &quot;wake up&quot;.=A0 USB sends an interrupt pol pack=
et over the wirel every 1 millisecond.=A0 The device responds with a packet=
 indicating whether there is an interrupt condition or not.=A0 It then gets=
 more info and possibly characters in response. <br>

<br>The USB Host controls everything and it only polls every 1mS (1.1) from=
 the USB host chip.=A0 The host chip cannot see anything on the peripheral =
chip until it sends a packet to request it.<br></div><blockquote class=3D"g=
mail_quote" style=3D"margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204=
,204,204);padding-left:1ex">

<div bgcolor=3D"#FFFFFF" text=3D"#000000">
    <br>
    <br>
    Thanks for your insight<span class=3D"HOEnZb"><font color=3D"#888888"><=
br>
    <br>
    Ed W<br>
  </font></span></div>

</blockquote></div><br>

--f46d04478a318d524204bf770554--


From MAILER-DAEMON Mon May 07 16:15:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRULO-0001rT-W4
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 16:15:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41934)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRULM-0001rH-CS
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:15:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRULK-00037m-8K
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:15:39 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:52494)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRULJ-00037Q-Qc
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:15:38 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 509ED800073; 
	Mon,  7 May 2012 13:15:35 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Ed W <lists@wildgooses.com>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Ed W <lists@wildgooses.com>
	of "Mon, 07 May 2012 15:52:07 BST." <4FA7E197.9010902@wildgooses.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 07 May 2012 13:15:35 -0700
Message-Id: <20120507201535.509ED800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 20:15:42 -0000


lists@wildgooses.com said:
> I guess I still don't understand the bufferbloat / thumbgps  requirements,
> but either you need a very stable clock local, or you need  a bunch of
> clocks which are sync'ed to each other (across the world).   Problem seems
> to be that unless you all have the same reference (eg gps)  then you could
> all be microsecond "accurate", just all at an offset to  each other? 

The big picture is that the bufferbloat project wants to measure queuing 
delays.

How does time get involved?

After the typical exchange of a pair of NTP packets, you have 4 time stamps:
  the time the request left the client
  the time the request arrived at the server
  the time the response left the server
  the time the response arrived at the client
Those time stamps are local time and will be off by any errors in the system 
clock.

ntpd assumes the network delays are symmetric and computes the clock offset.

If you assume that both clocks are accurate, you can compute the network 
delays.  If you collect data for a while, you can assume that the lowest 
network delays are what you get when the packets don't encounter any queuing 
delays.  Longer delays are due to queuing someplace.

The numbers work out reasonable.  The bufferbloat guys are interested in 
delays of 10s or 100s of ms.  1 ms clocks are good enough to see that.

------------

The next step is that the people who are likely to help collect data for the 
bufferbloat project don't have soldering irons, and the target router does 
have USB.

Eric's PPS mod (add one wire) to a typical GPS "mouse" solves all their 
problems because he's found a vendor that will do the soldering iron level 
work.

----------

> 1) My jitter is slightly higher than expected.  Q: is this related to  the
> way GPSD estimates the arrival time of the first $, ie can I make a  change
> to the gpsd algorithm which would give me 0.5ms precision on my  NMEA time
> (from venus 6 over usb) 

You can collect enough data to analyze that.  Turn off ntpd and gpsd and such so your local clock won't get jerked around.  Or point ntpd to a nearby (LAN) system with a good clock.

Write a hack program to grab data from your GPS unit and log the data and timestamps to a file.  Then play around with graphing the data.  (Poke me offline if you want some starter code.)

-----------

There is another important worm in this area.  The magic phrase is "hanging bridge".

Consider what happens if the clock driving your USB logic gets synchronized to GPS time.  It might always poll the device at exactly the right or wrong time.   When that happens, you can't average out the noise.  Since your local USB clock is probably tweaked by temperature, slow temperature changes are almost guaranteed to tickle this problem.

Short version here (good pictures):
  Motorola GPS M12+ Sawtooth 
  http://www.leapsecond.com/pages/m12/sawtooth.htm

Long story here:
  Tom Clark and Rick Hambly: Timing for VLBI
  http://gpstime.com/files/tow-time2009.pdf

-------------


>> In the context of bufferbloat, accuracy is not a big deal.  We could go
>> through a calibration dance if that helps.

> Can you explain what you mean in more detail?  I get the difference  between
> accuracy, stability, jitter, but not what you mean here? 

Suppose your clock is right-on and mine if off by 13 ms and we are trying to measure network delays.

We exchange packets for a while when our network connections are idle.  Now we know the clocks look like they are off by 13 ms.  Actually, the network routing may be asymmetric which would inject a difference if both clocks were correct and/or modify the difference if the clocks are off.

It doesn't matter as long as it is stable.  The bufferbloat guys are trying to measure queuing delays.  They don't think of it as "clocks are off by 13 ms".  They say "47 ms from me to you" and "60 ms from you to me".  If you now take measurements when real traffic is also flowing, any extra delay times are queuing delays.



-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Mon May 07 16:24:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRUU3-0003Oq-Fb
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 16:24:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48745)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRUU1-0003Oi-Be
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:24:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRUTz-0006u1-On
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:24:36 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:52599)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRUTz-0006rd-Hh
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:24:35 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 05936800073; 
	Mon,  7 May 2012 13:24:33 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: "Gary E. Miller" <gem@rellim.com>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Gary E. Miller" <gem@rellim.com> of "Mon,
	07 May 2012 10:48:42 PDT." <20120507104842.155f89c1.gem@rellim.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 07 May 2012 13:24:32 -0700
Message-Id: <20120507202433.05936800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 20:24:38 -0000


gem@rellim.com said:
> Until the CP210x kernel driver is fixed there is no point thinking about any
> usage of CP210x for timing. 

I think that's misleading.

It's no good for PPS timing.

It might work fine for NMEA timing if the particular GPS device generates 
good timing on its serial port.  Ed says the Venus chip does that.

Does anybody know of low-cost GPS "mice" type devices that use the Venus chip?



-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Mon May 07 16:55:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRUyG-0007s6-RX
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 16:55:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58570)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRUyE-0007s0-Nn
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:55:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRUyC-0002dI-6h
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:55:50 -0400
Received: from catbert.rellim.com ([204.17.205.1]:57496)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRUyB-0002d4-Kn
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:55:48 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47KthVH025986
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 13:55:43 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47KthVH025986
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336424144; bh=etgnQludTQspHbAUncPlpDNG6FKoLoY6cUXSNvSPQE8=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=R7yXhZ196MUVfirwCLJZvBlAKw08BDjsNGneY4psyunjTUnpCM/Fh+CsW4M/IJUF+
	unMlWTXcPLok+unI8/xRw==
Date: Mon, 7 May 2012 13:55:40 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507135540.5c539051.gem@rellim.com>
In-Reply-To: <4FA815C1.7080201@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<20120507104842.155f89c1.gem@rellim.com>
	<4FA815C1.7080201@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/i9jhN2wK/nmm4Bhef7k62UX";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 20:55:52 -0000

--Sig_/i9jhN2wK/nmm4Bhef7k62UX
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Mon, 07 May 2012 19:34:41 +0100
Ed W <lists@wildgooses.com> wrote:

> Hi
>=20
> >> Hi, Could Eric or similar give me a confirmation on the current
> >> gpsd nmea time calculation?
> > I'll try.
> >
> >> My understanding is that you take the final GPZDA sentence, then
> >> work *back* the timestamp of the initial $ by counting the number
> >> of characters divided by baud rate?
> > Nope, nothing anywhere near so fancy.  And since the start of gps
> > sentences is so jittery there is no point to trying except for a
> > few special case GPS.
>=20
> You have said how it *doesn't* work, but not how it *does* work here?

"Use the source, Luke".

My guess is that gpsd takes a timestamp after the entire first sentence
of the new second with a good fix mode on it is decoded.  Since the daily=20
jitter has been so bad on all the units I have seen there has been no=20
effort to make the gpsd measurement better.  It already is far better
than measured jitter.  PPS is the way to go.

> Any chance of clarifying the current method of calculating NMEA time=20
> (presumably via ZDA sentence)?

ZDA does not include fix info, thus it cannot be used to gate time info.
So it is only used to determine the year.  This is all explained in the
code.

> Note also that we seem to have clarification now that at least several
> of the Venus chipsets has PPS accurate ZDA sentences. ie we have in
> the wild cheap devices with working PPS right now

But without fix mode it is unuseable data.

> >> The reason for asking is that my Venus6 + CP210x has NMEA time that
> >> appears to measure almost as accurately as a theoretical PPS over
> >> USB.
> > Until the CP210x kernel driver is fixed there is no point thinking
> > about any usage of CP210x for timing.
>=20
> I think we reached the point we are starting to talk past each other=20
> now.  I know we have a bunch of messages here, but could I ask you to=20
> just double check this so we don't cover old ground?

No need for a double check.  This has been beat to death already on this
and the thumbgps mailing lists.  The CP210x is badly supported under
Linux (and other OS) and thus not of interest to the thumbgps project.

gpsd only supports CP210x for PVT since TIOCMWAIT is broken in the CP210x
kernel driver.

> To recap my device doesn't have a traditional PPS, so I think we
> agreed some emails further back that the CP210x would gain nothing by=20
> implementing TIOCMIWAIT?  Additionally I think you confirmed that
> there are no other driver changes which would benefit me, so I dont
> think the driver needs "fixing" at this point?

If all you need is NMEA time then you are correct.  If you think you
can wring some more stability out of the NMEA time then feel free to
pursue it.  But unless your GPS is dramatically different from others
tested the effort will yield nothing the GR-601W does not already
provide, nor as good as network ntp time.

So, before proceeding, can you link to a local S1 and give us data that
shows your NMEA time is stable to better than 10 milliSec through a day?

> Near as I can see the situation is:
> - Reading the PPS will only ever poll every 1ms and so won't give you=20
> better than 1ms accuracy, regardless of implementation of TIOCMIWAIT

gpsd needs TIOCMWAIT.  So you will not get any PPS with gpsd.  We can
imagine improvements to gpsd that would not require TIOCMWAIT, feel free
to experiment and send patches when it works for you.

> - Reading the serial data will give you $... and based on the number
> of characters in the buffer we can infer a more precise arrival time
> of the $ than the granularity of the USB poll.

Unlikely since USB data is sent as packets, not characters.

And only interesting after you prove your NMEA time is stable.

But feel free to hack away and see if you can make any headway.

> So for your purpose it may be interesting to investigate GPS devices=20
> based on a Venus chipset.  Accuracy has the potential to be better
> than PPS... (and devices are available)

Since the thumbgps project already has a working $30 solution for 0.5
milliSec jitter it gets them nothing they don't already have.  If it
gets you something, then feel free to hack and send patches.

For my purposes, none of this interests me.  I am happy to be seeing 3
or 4 orders of magnitude better with serial PPS.

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

--Sig_/i9jhN2wK/nmm4Bhef7k62UX
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+oNs4ACgkQBmnRqz71OvMZXQCeIeAxHbUhhOZSO65aGBtPqIE9
6ckAnji3GBQ/CXZN76jBHIu+/VJ0nkUT
=ntRy
-----END PGP SIGNATURE-----

--Sig_/i9jhN2wK/nmm4Bhef7k62UX--


From MAILER-DAEMON Mon May 07 16:58:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRV19-0008Pv-Vn
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 16:58:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58984)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRV17-0008P7-In
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:58:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRV15-0003OW-2i
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:58:49 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:56905 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRV14-0003KD-UX
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 16:58:46 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 5388340475; Mon,  7 May 2012 16:58:43 -0400 (EDT)
Date: Mon, 7 May 2012 16:58:43 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507205843.GA21259@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
	<4FA7BDF1.7030708@wildgooses.com> <4FA7CFB2.9080807@tmsw.no>
	<4FA7E197.9010902@wildgooses.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FA7E197.9010902@wildgooses.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 20:58:51 -0000

Ed W <lists@wildgooses.com>:
> I guess I still don't understand the bufferbloat / thumbgps
> requirements, but either you need a very stable clock local, or you
> need a bunch of clocks which are sync'ed to each other (across the
> world).

The latter.  What we're really after is accurate packet transit times.
So it matters less whether the clocks are accurate than whether
they're highly stable to a common timebase. Which in this case is GPS
atomic clock time.

> I might guess that this is the goal of thumbgps - get the offset to
> zero?  However, it appears in principle that you might achieve
> almost the same simply syncing to a carefully chosen pool of stratum
> 1 servers?

But we're not sure we can trust NTP.  That's the whole problem; if bufferbloat
really is inducing very large, very short-period latency spikes, it may be
screwing with the symmetry and statistical-smoothness assumptions that
NTP synchronization relies on.

One of the explicit goals of the Cosmic Backround Bufferbloat Detector is to
sanity-check NTP.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 07 17:06:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRV8p-0001HJ-Im
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 17:06:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57137)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRV8m-0001GM-HQ
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:06:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRV8k-0006Ok-LU
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:06:44 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:57021 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRV8k-0006Oe-H8
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:06:42 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 78ED640475; Mon,  7 May 2012 17:06:39 -0400 (EDT)
Date: Mon, 7 May 2012 17:06:39 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120507210639.GB21259@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<4FA67DE1.3080701@wildgooses.com>
	<20120506220713.GE14699@thyrsus.com> <4FA6F6C1.6020302@gmail.com>
	<20120506154146.69d7d5dc.gem@rellim.com>
	<4FA7BC06.90906@wildgooses.com>
	<20120507113410.12540d8a.gem@rellim.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0"
Content-Disposition: inline
In-Reply-To: <20120507113410.12540d8a.gem@rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 21:06:46 -0000


--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Gary E. Miller <gem@rellim.com>:
> > From eyeballing it, it looks=20
> > straightforward in it's implementation (no idea why it's not in
> > kernel?)
>=20
> Which gets outside the scope of gpsd.  If you can get the kernel driver
> fixed then have at it, until then it is off our plate.

Gary is right.  This is out of scope for GPSD - and, as a practical matter,
we don't want to incur the delays and uncertainties implied by getting a
CP210x fix pushed into the kernel and out to routers.  We can't let that
be critical path.

That said, if you think you can fix the CP2101x driver, go to it.  It
could simplify deployment later on if the UniTraq design (PL2303 +
CP2101x) suddenly became a usable one.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPqDlfrfUW04Qh8RwRAsIHAKCN1/fDGnH/p2gfdobrZkEGhTCTWACfQUWC
vV8cCrDzZ3ltV7Ny3i1iW/w=
=+MKE
-----END PGP SIGNATURE-----

--k+w/mQv8wyuph6w0--


From MAILER-DAEMON Mon May 07 17:14:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRVGJ-0002cu-6y
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 17:14:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54982)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRVGG-0002co-69
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:14:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRVGE-0001Ne-4B
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:14:27 -0400
Received: from mail-wi0-f181.google.com ([209.85.212.181]:43531)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRVGD-0001LX-RP
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:14:26 -0400
Received: by wibhn14 with SMTP id hn14so9916wib.10
	for <gpsd-dev@nongnu.org>; Mon, 07 May 2012 14:14:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=SJCICNn4nTsEKzdJyUkeX3n8f/G9j/8Mq3AsV/WX7LU=;
	b=xkb50V8ATyENigPCMtS8MusBJ6+WQHYqiCekG0YI/MvVSa/WPV3DwbRlv36awOijDX
	KbW5QDvbJ8KXMhTkS8ZLQQZTk2oBX5K3HmI6VW1xnItSFC4EZgkQVeoU1kWRS+MwzSqi
	5njEH8l4jrFV0xPouGeVc76FiOCWeQZVbkCSeF56pXzJKf3l3JucH4m7Ob7yBzrhpwhi
	diI9tM9jkWJK5RJ4Bu7gaS47kDSzfeuJLHpcyZYy9R1UZRShoEvp+HuOGAUHHdeUzxKM
	Yzm/llthduGDxFjGk7jIxXywHU/BjsewWcgD/wWchCUzwyNzJqeMfLc7oXq4Z8SHtJa9
	YwFQ==
MIME-Version: 1.0
Received: by 10.180.105.69 with SMTP id gk5mr44220840wib.3.1336425260529; Mon,
	07 May 2012 14:14:20 -0700 (PDT)
Received: by 10.223.112.66 with HTTP; Mon, 7 May 2012 14:14:20 -0700 (PDT)
In-Reply-To: <20120507205843.GA21259@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
	<4FA7BDF1.7030708@wildgooses.com> <4FA7CFB2.9080807@tmsw.no>
	<4FA7E197.9010902@wildgooses.com>
	<20120507205843.GA21259@thyrsus.com>
Date: Mon, 7 May 2012 14:14:20 -0700
Message-ID: <CAA93jw4nmYRWRpHJm_2EuznM0S+Ta_iwqGW0pCfRS29vFwpFEA@mail.gmail.com>
From: Dave Taht <dave.taht@gmail.com>
To: esr@thyrsus.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.212.181
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 21:14:29 -0000

On Mon, May 7, 2012 at 1:58 PM, Eric S. Raymond <esr@thyrsus.com> wrote:
> Ed W <lists@wildgooses.com>:
>> I guess I still don't understand the bufferbloat / thumbgps
>> requirements, but either you need a very stable clock local, or you
>> need a bunch of clocks which are sync'ed to each other (across the
>> world).
>
> The latter. =A0What we're really after is accurate packet transit times.
> So it matters less whether the clocks are accurate than whether
> they're highly stable to a common timebase. Which in this case is GPS
> atomic clock time.
>
>> I might guess that this is the goal of thumbgps - get the offset to
>> zero? =A0However, it appears in principle that you might achieve
>> almost the same simply syncing to a carefully chosen pool of stratum
>> 1 servers?
>
> But we're not sure we can trust NTP. =A0That's the whole problem; if buff=
erbloat
> really is inducing very large, very short-period latency spikes, it may b=
e
> screwing with the symmetry and statistical-smoothness assumptions that
> NTP synchronization relies on.
>
> One of the explicit goals of the Cosmic Backround Bufferbloat Detector is=
 to
> sanity-check NTP.
> --
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<a href=3D"http://www.catb.org/~esr/">Eric=
 S. Raymond</a>
>

:whew: what a thread!

When eric and I first started talking about this 11 months ago we
stalled out for 9 months on some of the basic problems. Then he
blogged... Going from concept to working hw in the under 60 days since
is astounding.

I've been heads down solving a bunch of other problems of late and can
barely keep up here, but having a plan for actual deployment wasn't
even a remote possibility 60 days ago, and while some of that is
beginning to move, it's going to take a while to sort it out!!!!!

To outline some of that:

0) The intent was to establish a baseline of effectively 'stratum 1'
boxes 'beyond the edge', worldwide to do end to end measurements.

Most measurements done to date are usually to a multitude of central
points. Seeing the interconnects between providers misbehave (or not)
seems useful.

It's also a technique  that scales O(n), which for a change, is
something desirable. :)

We just arbitrarily picked 100 as a good number. More would be better,
2 would be a start.

There would be ongoing measurements of the 'cosmic background' noise
that ntp filters out.
It would be helpful to identify (dynamically) misbehaving ntp servers
as well and get them out of the server pool(s)

Similarly, trustable measurements between a solid ntp server(s)
somewhere would be good...

Theres more to it than this...

1) Establish a partnership with a lab to store/analyze/present the
data - am talking with both mlabs and onelab
2) Find software worth leveraging. At the moment, the leading
candidate is 'scamper'. Multiple other possibilities exist,
suggestions wanted. Take a look at what caida does for visualizations,
for example -
3) Pull something together that could gather, collect, and analyze rawstats=
 data
4) Analyze performance under various loads of the software and hardware.

Several posters here seem to have the assumption that the
hardware/OS/queues in play can't heisenbug the data, and I assure you,
it can....

5) Choose a database backend - leading candidates are map/reduce and
postgres. Suggestions wanted.

There's way more than all that, but having trustable time everywhere
was the first thing required to get anywhere, particularly when doing
comparisons between more than 2 devices at the same time, in a
centralized db.

--=20
Dave T=E4ht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net


From MAILER-DAEMON Mon May 07 17:52:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRVqg-0008KJ-E1
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 17:52:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46758)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRVqd-0008KD-Jt
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:52:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRVqb-0002bq-8A
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:52:03 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:46416)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRVqa-0002bV-Vx
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:52:01 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id EE14D34032D;
	Mon,  7 May 2012 22:51:58 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id ABhkbMMOdPhp; Mon,  7 May 2012 22:51:58 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 66C12340332;
	Mon,  7 May 2012 22:51:58 +0100 (BST)
Message-ID: <4FA843FE.4090300@wildgooses.com>
Date: Mon, 07 May 2012 22:51:58 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<20120507104842.155f89c1.gem@rellim.com>
	<4FA815C1.7080201@wildgooses.com>
	<20120507135540.5c539051.gem@rellim.com>
In-Reply-To: <20120507135540.5c539051.gem@rellim.com>
X-TagToolbar-Keys: D20120507225158028
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 21:52:05 -0000

Hi

>> Any chance of clarifying the current method of calculating NMEA time
>> (presumably via ZDA sentence)?
> ZDA does not include fix info, thus it cannot be used to gate time info.
> So it is only used to determine the year.  This is all explained in the
> code.

Sure, but that is true whether you read the timestamp at the start or 
end of the sentence?  The choice of where to read the timestamp doesn't 
seem relevant to the need to mask duff timestamps?


>> Note also that we seem to have clarification now that at least several
>> of the Venus chipsets has PPS accurate ZDA sentences. ie we have in
>> the wild cheap devices with working PPS right now
> But without fix mode it is unuseable data.

I believe that's already implemented in gpsd? The issue seems to be more 
accurate measuring of the sentence start from what I can see - 
everything else appears to be there?



> If all you need is NMEA time then you are correct.  If you think you
> can wring some more stability out of the NMEA time then feel free to
> pursue it.  But unless your GPS is dramatically different from others
> tested the effort will yield nothing the GR-601W does not already
> provide, nor as good as network ntp time.

??  The "other gps's" have been tested to be giving results to a few 
nanoseconds.  You mean I need MORE accuracy than that?!

Perhaps you mean if my Venus GPS behaves like a Sirf then it's no good?  
I think we beat that to death already - it's not a sirf, it's a venus? 
Others have already confirmed that the behaviour is different

I think it's interesting to the gpsd project that there might be a 
widely available class of GPS that can give PPS resolution data without 
needing the PPS connected?  At the end of the day I see no reason it's 
less accurate to read $ZDA every 1ms than it is to check the status of 
the CTS/DTR pin or whatever?

Additionally if you consider that PPS simply tells you that the pulse 
appeared sometime between the last poll of the USB and now, our time 
accuracy is 1ms.  However, if the GPS reads at a certain baud rate which 
means we should have 0-4 characters in our buffer every 1ms, then the 
knowledge that we read say "$Z" rather than "$ZD" tells us something 
about the time the $ was emitted.  As such it would appear that the 
accuracy of "pulse" can now be measured to the accuracy of a single 
character being emitted, usually this is more accurate than 1ms?



> So, before proceeding, can you link to a local S1 and give us data that
> shows your NMEA time is stable to better than 10 milliSec through a day?

I'm on it.

However, that's measuring gpsd's algorithm, we appear to have already 
proved that the GPS itself issues sentences with PPS level precision.  
Any inaccuracy is due to gpsd


> gpsd needs TIOCMWAIT.

I think we need to tighten the terminology.  *PPS* needs TIOCMIWAIT (by 
the way, you keep dropping the I?).  Gpsd does not appear to need 
TIOCMIWAIT.  Agreed?

> So you will not get any PPS with gpsd.  We can
> imagine improvements to gpsd that would not require TIOCMWAIT, feel free
> to experiment and send patches when it works for you.

Sure - however, are you genuinely not interested to see if we can't get 
these improvements on a whole class of gps devices, not only this new 
one?  Seems cool to me!


>> - Reading the serial data will give you $... and based on the number
>> of characters in the buffer we can infer a more precise arrival time
>> of the $ than the granularity of the USB poll.
> Unlikely since USB data is sent as packets, not characters.

I'm not seeing why you disagree?

Every 1ms we get:

a) Knowledge of whether a PPS pulse was set on the DCD line
b) Knowledge of whether we read a $... which also indicates a PPS pulse

Both seem to be of similar accuracy.  The big potential difference is 
that with a) we only know that this pulse occured somewhere in the last 
1ms.  However, with b) if the baud rate is high enough then we can infer 
where about within the 1ms gap the PPS occured, eg observe:

|1ms|
...$
..$Z
.$ZD
$ZDA

The $ is the point the PPS occurred.  In the above case we learn a 
little about how far through the 1ms gap the PPS occurred.

Remember this is with respect to Venus chipsets where the ZDA sentence 
*is* the same accuracy as the PPS pulse



> Since the thumbgps project already has a working $30 solution for 0.5
> milliSec jitter it gets them nothing they don't already have.  If it
> gets you something, then feel free to hack and send patches.

Sure - I get that.  However, it seems interesting in it's own right to 
increase the accuracy on a bunch of chipsets if it's there for the 
taking.  After all the reason people turn to gpsd rather than roll their 
own is to try and handle the idiosyncracies of a bunch of devices

Also note that the Venus devices are widely available from around $15.  
If they just happen to have 0.5ms jitter as well then this seems like a win?

Cheers

Ed W


From MAILER-DAEMON Mon May 07 17:52:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRVqs-0008Qw-Hs
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 17:52:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46794)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRVqq-0008Qe-87
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:52:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRVqo-0002dx-6f
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:52:15 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:57830 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRVqo-0002dX-2W
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 17:52:14 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 36D2E40475; Mon,  7 May 2012 17:52:10 -0400 (EDT)
Date: Mon, 7 May 2012 17:52:10 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Dave Taht <dave.taht@gmail.com>
Message-ID: <20120507215210.GD21259@thyrsus.com>
References: <20120501151435.4a6a5373.gem@rellim.com>
	<4FA43068.2080606@wildgooses.com>
	<20120504160455.4514ac26.gem@rellim.com>
	<20120506214138.GB14699@thyrsus.com> <4FA6F396.70307@tmsw.no>
	<4FA7BDF1.7030708@wildgooses.com> <4FA7CFB2.9080807@tmsw.no>
	<4FA7E197.9010902@wildgooses.com>
	<20120507205843.GA21259@thyrsus.com>
	<CAA93jw4nmYRWRpHJm_2EuznM0S+Ta_iwqGW0pCfRS29vFwpFEA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAA93jw4nmYRWRpHJm_2EuznM0S+Ta_iwqGW0pCfRS29vFwpFEA@mail.gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 21:52:17 -0000

Dave Taht <dave.taht@gmail.com>:
> When eric and I first started talking about this 11 months ago we
> stalled out for 9 months on some of the basic problems. Then he
> blogged... Going from concept to working hw in the under 60 days since
> is astounding.

In truth, I'm a little astounded myself.  Maybe I really *am* Manfred Macx.

For the rest of you: Manfred Macx is a character in Charles Stross's
novel "Accelerando" who describes himself as a "venture
philanthropist" - wanders around seeding product concepts for free and
connecting people who need each other to make business ideas work.
Charlie once told me, after I voiced a suspicion, that Macx was not in
fact me but was designed as sort of a composite of several people he
knows, two of them being RMS and myself.

Novel here: http://www.jus.uio.no/sisu/accelerando.charles_stross/sisu_manifest.html

> We just arbitrarily picked 100 as a good number. More would be better,
> 2 would be a start.

And I took the scaling issue very seriously.  It's why I zeroed in on
"Plain Jane" and mostly ignored all the clever DIY ideas.

> Several posters here seem to have the assumption that the
> hardware/OS/queues in play can't heisenbug the data, and I assure you,
> it can....

Yup.  Anyone who's done OS-level work ought to have known that going in.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 07 18:01:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRVzZ-00013W-6r
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 18:01:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42085)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRVzV-000132-S4
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 18:01:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRVzU-0006y9-6I
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 18:01:13 -0400
Received: from catbert.rellim.com ([204.17.205.1]:42655)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SRVzT-0006xb-Lx
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 18:01:12 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q47M18et028966
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 7 May 2012 15:01:09 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q47M18et028966
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336428069; bh=HJBI8bm1SRe3DpqyHQyjTiAoBBIAOXFvVq+XakzNFUA=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=jsH2cy1QGlBMU7Grq+6jh/njZTtrmqnDa3fo5uuGU+m+JIrmHdxJlnmjqGj/Yy+T7
	+SlMh1asLKCD6SmRgdhLA==
Date: Mon, 7 May 2012 15:01:05 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120507150105.16c997cc.gem@rellim.com>
In-Reply-To: <4FA843FE.4090300@wildgooses.com>
References: <4FA7EDE4.5040807@wildgooses.com>
	<20120507104842.155f89c1.gem@rellim.com>
	<4FA815C1.7080201@wildgooses.com>
	<20120507135540.5c539051.gem@rellim.com>
	<4FA843FE.4090300@wildgooses.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/koaOWryZrR05wHlINjt1+He";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 07 May 2012 22:01:15 -0000

--Sig_/koaOWryZrR05wHlINjt1+He
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Ed!

On Mon, 07 May 2012 22:51:58 +0100
Ed W <lists@wildgooses.com> wrote:

> Sure, but that is true whether you read the timestamp at the start or=20
> end of the sentence?  The choice of where to read the timestamp
> doesn't seem relevant to the need to mask duff timestamps?

Clearly we are just going around and around the same issue.  If you think
you can improve gpsd, then send patches.  The results from your code
will speak for you.

Since I am already getting 1 nanoSec resolution over serial any results
you get over USB will not be interesting to me.  If you can find someone
that cares then carry on.

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

--Sig_/koaOWryZrR05wHlINjt1+He
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+oRiQACgkQBmnRqz71OvNEugCgr4Cy5BEW6knm8k2BjIFcvrhx
3WkAoMRWAsbAtC3HB4H+XKCQQkpGBe4e
=GZli
-----END PGP SIGNATURE-----

--Sig_/koaOWryZrR05wHlINjt1+He--


From MAILER-DAEMON Mon May 07 22:52:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRaXn-0001W6-Hv
	for mharc-gpsd-dev@gnu.org; Mon, 07 May 2012 22:52:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57415)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRaXk-0001Uo-SZ
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 22:52:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRaXi-0003eI-Vo
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 22:52:52 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:58365)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SRaXi-0003dy-6W
	for gpsd-dev@nongnu.org; Mon, 07 May 2012 22:52:50 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id A6165800073; 
	Mon,  7 May 2012 19:52:44 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Ed W <lists@wildgooses.com>
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from Ed W <lists@wildgooses.com>
	of "Mon, 07 May 2012 22:51:58 BST." <4FA843FE.4090300@wildgooses.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 07 May 2012 19:52:44 -0700
Message-Id: <20120508025244.A6165800073@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 02:52:54 -0000


lists@wildgooses.com said:
> Also note that the Venus devices are widely available from around $15.   If
> they just happen to have 0.5ms jitter as well then this seems like a win? 

Is that the raw chip, or a finished device with antenna and USB connector?  
Retail or wholesale?

I just poked around a bit and didn't find any retail sites selling finished 
devices using Venus chips.  (I didn't try very hard.)  Anybody got a URL?

-------

I like the trick of trying to interpolate USB timings based on the number of 
characters in each block.



-- 
These are my opinions, not necessarily my employer's.  I hate spam.





From MAILER-DAEMON Tue May 08 01:02:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRcYv-0003aZ-Ph
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 01:02:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54627)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRcYs-0003aP-VI
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 01:02:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRcYq-0002nL-R7
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 01:02:10 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:36918 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRcYq-0002n5-NC
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 01:02:08 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id AE2E740475; Tue,  8 May 2012 01:02:03 -0400 (EDT)
Date: Tue, 8 May 2012 01:02:03 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
Message-ID: <20120508050203.GA23585@thyrsus.com>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120507035046.GA16848@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 05:02:12 -0000

Bywater, Rick (SA-1) <rbywater@drs-ts.com>:
> Here is a log of a Coverity run on the head as of this morning.  The gpsd.log 
> contains the output from the cov-build while gpsd.log2 contains the 
> cov-analyze output.

Thank you very much.  I would be delighted to help you complete this analysis
by annotating the code in whatever ways might help.

I might be able to help you achieve your objectives better if I understood why
you're being asked to scan GPSD.  Who needs careful verification of this code,
and why?  (Er, if it helps, I already know it's used in military systems.)

> I was going to attach the full c/ directory that Coverity 
> generates so you could see the issues, but the tgz file was over 12 MB and I 
> was afraid that would be rejected by the mailing list.  If you would like that 
> output and the list server is ok with a 12 MB file, let me know and I will 
> post it.  If the list server will reject that size of an upload, let me know 
> where you would like the results posted and I will get them uploaded.

Please mail them to me at esr@ythyrsus.com.  I don't think my personal
mailserver will barf.

Hm.  I note a link failure due to clock_gettime() reference.  Do you get this
from a regular build, or is it in the Coverity environment only?  If so, is
there an #ifdef I can use to condition out that call?

This is interesting...

Analysis summary report:
------------------------
Files analyzed                  : 86
Total LoC input to cov-analyze  : 72824
Functions analyzed              : 585
Classes/structs analyzed        : 128
Paths analyzed                  : 125590
Time taken by Coverity analysis : 00:01:22
Defect occurrences found        : 45 Total
                                   2 BAD_SIZEOF
                                   2 CHECKED_RETURN
                                   4 CONSTANT_EXPRESSION_RESULT
                                   3 DEADCODE
                                  12 FORWARD_NULL
                                   1 INFINITE_LOOP
                                   1 NEGATIVE_RETURNS
                                   1 NULL_RETURNS
                                   1 OVERRUN_DYNAMIC
                                   3 OVERRUN_STATIC
                                   6 RESOURCE_LEAK
                                   1 REVERSE_INULL
                                   7 UNINIT
                                   1 UNREACHABLE

Exceeded path limit of 5000 paths in 1.88% of functions (normally up to 5% of functions encounter this limitation)

A gross defect rate of 1 per 1618 lines already makes me pretty happy, and it's
likely from my one previous experience of a full scan that some of those are
false positives. Let's see what we can do to filter out the noise, shall we?
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 08 02:54:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SReJr-0008Eh-2w
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 02:54:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57816)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SReJo-0008Eb-4z
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 02:54:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SReJj-00041n-BY
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 02:54:43 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:62086)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SReJj-0003zu-3H
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 02:54:39 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 3A870800070; 
	Mon,  7 May 2012 23:54:36 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: esr@thyrsus.com
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Eric S. Raymond" <esr@thyrsus.com>
	of "Mon, 07 May 2012 16:58:43 EDT." <20120507205843.GA21259@thyrsus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 07 May 2012 23:54:36 -0700
Message-Id: <20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 06:54:45 -0000


esr@thyrsus.com said:
> But we're not sure we can trust NTP.  That's the whole problem; if
> bufferbloat really is inducing very large, very short-period latency spikes,
> it may be screwing with the symmetry and statistical-smoothness assumptions
> that NTP synchronization relies on.

It's pretty obvious that ntpd gets confused if you have a long period of 
asymmetric routing.  I (and probably you) can easily generate that by 
downloading a CD or youtube show.  Probably the worst case is browsing the 
web with a browser that tries to be helpful by loading lots of pictures in 
parallel and/or preloading stuff that you might click, or doing that while 
you have a download going.

My DSL connection sees occasional queuing delays of over 3.5 seconds.

It might be possible to avoid most of the problems with a big enough huffpuff 
parameter and/or appropriate tweaks to other parameters.  I haven't studied 
this area carefully.


> One of the explicit goals of the Cosmic Backround Bufferbloat Detector is to
> sanity-check NTP. 

If you see anything that seems unreasonable, please let me know.  ntpd has a 
huge collection of heuristics (hacks?) that try to filter out all sorts of 
quirks/glitches.  I'm sure there are some cases that will get past the 
current filters.



-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Tue May 08 03:15:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SReeG-0002BF-02
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 03:15:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54785)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRee8-0002B8-Lj
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:15:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRee2-0004NZ-MF
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:15:44 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:38301 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRee2-0004NU-Hz
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:15:38 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id B7BFD40478; Tue,  8 May 2012 03:15:33 -0400 (EDT)
Date: Tue, 8 May 2012 03:15:33 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120508071533.GA24888@thyrsus.com>
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 07:15:50 -0000

Hal Murray <hmurray@megapathdsl.net>:
> > One of the explicit goals of the Cosmic Backround Bufferbloat Detector is to
> > sanity-check NTP. 
> 
> If you see anything that seems unreasonable, please let me know.  ntpd has a 
> huge collection of heuristics (hacks?) that try to filter out all sorts of 
> quirks/glitches.  I'm sure there are some cases that will get past the 
> current filters.

Oh trust me, if we find such phenomenae we are *not* going to be merely
whispering about them - you and every other Internet infrastructure geek
we know will get the A-OOGA A-OOGA red alert muy pronto. :-)
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 08 03:31:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SResw-0006mw-84
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 03:31:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43661)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRess-0006jE-Nj
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:31:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SResm-0002Gq-AR
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:30:58 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:40128)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SResm-0002Ga-4U
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:30:52 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 4673F340317;
	Tue,  8 May 2012 08:30:50 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id HwHsqNsCVv1p; Tue,  8 May 2012 08:30:50 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id E3B61340235;
	Tue,  8 May 2012 08:30:49 +0100 (BST)
Message-ID: <4FA8CBA9.4040504@wildgooses.com>
Date: Tue, 08 May 2012 08:30:49 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Hal Murray <hmurray@megapathdsl.net>
References: <20120508025244.A6165800073@ip-64-139-1-69.sjc.megapath.net>
In-Reply-To: <20120508025244.A6165800073@ip-64-139-1-69.sjc.megapath.net>
X-TagToolbar-Keys: D20120508083049343
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] NMEA time calculation question
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 07:31:00 -0000

On 08/05/2012 03:52, Hal Murray wrote:
> lists@wildgooses.com said:
>> Also note that the Venus devices are widely available from around $15.   If
>> they just happen to have 0.5ms jitter as well then this seems like a win?
> Is that the raw chip, or a finished device with antenna and USB connector?
> Retail or wholesale?
>
> I just poked around a bit and didn't find any retail sites selling finished
> devices using Venus chips.  (I didn't try very hard.)  Anybody got a URL?

It's the URL I gave a few times now:
     http://www.bluenext.co.uk/bluetooth-products/gps.html

I'm unsure if Bluenext are the manufacturer or yet another white label 
retailer though.  Despite the URL they are a Chinese company.  You can 
see the same devices without a label on alibaba and ebay.

I am bundling them with a router we offer.  I have about 50 here in 
stock (ie they exist)

Ed W


From MAILER-DAEMON Tue May 08 03:38:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRf0W-0007gK-GD
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 03:38:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38702)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRf0P-0007f4-I9
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:38:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRf0J-0005OQ-5g
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:38:45 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:37464)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRf0I-0005Mm-Vs
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:38:39 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id BC093340317
	for <gpsd-dev@nongnu.org>; Tue,  8 May 2012 08:38:37 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024) with LMTP id U5gFYbjcArhS for <gpsd-dev@nongnu.org>;
	Tue,  8 May 2012 08:38:37 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 857EA340316
	for <gpsd-dev@nongnu.org>; Tue,  8 May 2012 08:38:37 +0100 (BST)
Message-ID: <4FA8CD7D.2000405@wildgooses.com>
Date: Tue, 08 May 2012 08:38:37 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
In-Reply-To: <20120508071533.GA24888@thyrsus.com>
X-TagToolbar-Keys: D20120508083836971
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 07:38:51 -0000

On 08/05/2012 08:15, Eric S. Raymond wrote:
> Hal Murray<hmurray@megapathdsl.net>:
>>> One of the explicit goals of the Cosmic Backround Bufferbloat Detector is to
>>> sanity-check NTP.
>> If you see anything that seems unreasonable, please let me know.  ntpd has a
>> huge collection of heuristics (hacks?) that try to filter out all sorts of
>> quirks/glitches.  I'm sure there are some cases that will get past the
>> current filters.
> Oh trust me, if we find such phenomenae we are *not* going to be merely
> whispering about them - you and every other Internet infrastructure geek
> we know will get the A-OOGA A-OOGA red alert muy pronto. :-)

I would have expected the kinds of problems you are describing above to 
be more easily studied/tested using models in a lab?  Just turn on the 
various traffic shaping options and you can make your connection appear 
to be dropping packets/arbitrarily slow/turn up congestion.  I have a 
script that we use to pretend to be on an Iridium satellite dialup, ie 
2.4Kbits, ie 300 bytes per second - for sure we test everything over a 
real connection, but it sure is helpful to be able to stress things in 
certain ways

I don't really follow ntp development, but what I really like about 
chrony is every time you "have an idea" Miroslav agrees or disagrees 
with a whole bunch of investigative action and usually a graph or two.  
He really loves to go to the field and show the results!  He is also the 
chap who published some interesting numbers comparing the accuracy and 
offsets of a large number of machines in pool.ntp.org

Good luck

Ed W


From MAILER-DAEMON Tue May 08 03:58:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRfJH-0001kG-0h
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 03:58:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47270)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRfJA-0001if-Vb
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:58:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRfJ5-0005pu-Nz
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:58:08 -0400
Received: from mail-we0-f173.google.com ([74.125.82.173]:51147)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dave.taht@gmail.com>) id 1SRfJ5-0005pM-ES
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 03:58:03 -0400
Received: by werf3 with SMTP id f3so1301532wer.4
	for <gpsd-dev@nongnu.org>; Tue, 08 May 2012 00:58:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=8XzyiWOsBEUmKVHfo9d9FoGp94FaFU9egBcYnLUh5Ps=;
	b=AhuRSLtLlrBHYeA2plRni9QKVnDs/ZxQe1lhhevmkAzZ/IgIS/IxOLqIIP80lc4MWz
	maSfw6SGQhI5UatvJ+EH62C7aETsxegF04xi1o1K01g3aCvvLXs93KTSNptkXQMdutZ9
	0KIVmvNheI4Rlm1Wpm2SEyuHsL17XPbDLm0noBCBFJouhZSB3Js73iRH05enJCIAbh7F
	87FV9oW3EDmyKKYGV+Am0MPfo4R6iQwRSOVPOrdJy5d+NWQZ+73sAwMQfKKuH6TWvQpf
	eTwbxeRMVEGPmF3vKP9PyRNsZjCezVjS2lIYwMYmugfZYnVUAV2rmCBN6NFbOBx5rk7I
	RE5Q==
MIME-Version: 1.0
Received: by 10.180.94.7 with SMTP id cy7mr22153539wib.3.1336463880357; Tue,
	08 May 2012 00:58:00 -0700 (PDT)
Received: by 10.223.112.66 with HTTP; Tue, 8 May 2012 00:58:00 -0700 (PDT)
In-Reply-To: <4FA8CD7D.2000405@wildgooses.com>
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
	<4FA8CD7D.2000405@wildgooses.com>
Date: Tue, 8 May 2012 00:58:00 -0700
Message-ID: <CAA93jw60qLw27rL6uo_o60WiRoJ6XZmX2+WCjBrpfrUn-z717Q@mail.gmail.com>
From: Dave Taht <dave.taht@gmail.com>
To: Ed W <lists@wildgooses.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 07:58:13 -0000

On Tue, May 8, 2012 at 12:38 AM, Ed W <lists@wildgooses.com> wrote:
> On 08/05/2012 08:15, Eric S. Raymond wrote:
>>
>> Hal Murray<hmurray@megapathdsl.net>:
>>>>
>>>> One of the explicit goals of the Cosmic Backround Bufferbloat Detector
>>>> is to
>>>> sanity-check NTP.
>>>
>>> If you see anything that seems unreasonable, please let me know. =A0ntp=
d
>>> has a
>>> huge collection of heuristics (hacks?) that try to filter out all sorts
>>> of
>>> quirks/glitches. =A0I'm sure there are some cases that will get past th=
e
>>> current filters.
>>
>> Oh trust me, if we find such phenomenae we are *not* going to be merely
>> whispering about them - you and every other Internet infrastructure geek
>> we know will get the A-OOGA A-OOGA red alert muy pronto. :-)
>
>
> I would have expected the kinds of problems you are describing above to b=
e
> more easily studied/tested using models in a lab? =A0Just turn on the var=
ious

The internet escaped the lab a long time ago. Yes, lab work is needed.
But for a change, I'd like the reality to be tested, and the lab work
to line up with reality. And the tools used, to be trustable. And the
results, repeatable.

Useful research on real network problems has been lacking of late.

I don't trust the results from nearly any paper I've read written in the la=
st
10 years. And I can back up that, as to why.

> traffic shaping options and you can make your connection appear to be
> dropping packets/arbitrarily slow/turn up congestion. =A0I have a script =
that
> we use to pretend to be on an Iridium satellite dialup, ie 2.4Kbits, ie 3=
00
> bytes per second - for sure we test everything over a real connection, bu=
t
> it sure is helpful to be able to stress things in certain ways
>
> I don't really follow ntp development, but what I really like about chron=
y
> is every time you "have an idea" Miroslav agrees or disagrees with a whol=
e
> bunch of investigative action and usually a graph or two. =A0He really lo=
ves
> to go to the field and show the results! =A0He is also the chap who publi=
shed
> some interesting numbers comparing the accuracy and offsets of a large
> number of machines in pool.ntp.org

we'll chat with him.

>
> Good luck
>
> Ed W
>



--=20
Dave T=E4ht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net


From MAILER-DAEMON Tue May 08 04:33:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRfrn-00083B-Eo
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 04:33:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60715)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRfrl-000835-JN
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 04:33:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRfrg-0004NN-Bw
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 04:33:53 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:39478 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRfrg-0004MR-8G
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 04:33:48 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 9C2BC40478; Tue,  8 May 2012 04:33:43 -0400 (EDT)
Date: Tue, 8 May 2012 04:33:43 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120508083343.GA25255@thyrsus.com>
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
	<4FA8CD7D.2000405@wildgooses.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FA8CD7D.2000405@wildgooses.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 08:33:55 -0000

Ed W <lists@wildgooses.com>:
> I would have expected the kinds of problems you are describing above
> to be more easily studied/tested using models in a lab?

Please tell me you are joking, because otherwise you win the prize for
the fscking stupidest thing ever said on this list.

Models are only as good as their assumptions, and models of systems
with lots of poorly-understood causal linkages (like, say, chaotic
resonance in networks) are notoriously prone to becoming greased
slides to la-la land that damage comprehension rather than aiding it.

So, hell no, we're not going to study models instead of measuring
what's really happening.  That would be idiotic. We're *engineers*,
not charlatans or climatologists (but I repeat myself). Our job is to
deal with *reality*.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 08 04:35:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRftI-0008GS-RH
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 04:35:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36371)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRftB-0008EY-Nx
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 04:35:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRft4-0005YC-Vn
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 04:35:21 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:39500 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRft4-0005Y2-Rm
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 04:35:14 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 9DB3640478; Tue,  8 May 2012 04:35:10 -0400 (EDT)
Date: Tue, 8 May 2012 04:35:10 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Dave Taht <dave.taht@gmail.com>
Message-ID: <20120508083510.GB25255@thyrsus.com>
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
	<4FA8CD7D.2000405@wildgooses.com>
	<CAA93jw60qLw27rL6uo_o60WiRoJ6XZmX2+WCjBrpfrUn-z717Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAA93jw60qLw27rL6uo_o60WiRoJ6XZmX2+WCjBrpfrUn-z717Q@mail.gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 08:35:27 -0000

Dave Taht <dave.taht@gmail.com>:
> I don't trust the results from nearly any paper I've read written in the last
> 10 years. And I can back up that, as to why.

Now I'm curious.  Is it modelitis, or something else?
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 08 06:02:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRhFz-0006CO-Nr
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 06:02:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51393)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRhFt-0006B5-P7
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:02:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRhFo-00007T-QI
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:02:53 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:53047)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRhFo-00007G-KS
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:02:48 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id D914B3402DF;
	Tue,  8 May 2012 11:02:46 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id ruWZW4HxAUmB; Tue,  8 May 2012 11:02:46 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id 87B63340235;
	Tue,  8 May 2012 11:02:46 +0100 (BST)
Message-ID: <4FA8EF46.2050305@wildgooses.com>
Date: Tue, 08 May 2012 11:02:46 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
	<4FA8CD7D.2000405@wildgooses.com>
	<20120508083343.GA25255@thyrsus.com>
In-Reply-To: <20120508083343.GA25255@thyrsus.com>
X-TagToolbar-Keys: D20120508110246071
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 10:02:58 -0000

On 08/05/2012 09:33, Eric S. Raymond wrote:
> Ed W<lists@wildgooses.com>:
>> I would have expected the kinds of problems you are describing above
>> to be more easily studied/tested using models in a lab?
> Please tell me you are joking, because otherwise you win the prize for
> the fscking stupidest thing ever said on this list.

No and I'm getting bored with your overtly hostile attitude.  The idiot 
is the one who thinks that having a repeatable lab situation is of *no 
use* to debugging a random non repeatable real world problem...  I think 
we all get that the real world doesn't match any model - doesn't make 
mathematics an entirely redundant discipline though.


> Models are only as good as their assumptions, and models of systems
> with lots of poorly-understood causal linkages (like, say, chaotic
> resonance in networks) are notoriously prone to becoming greased
> slides to la-la land that damage comprehension rather than aiding it.

Sure - but the real world isn't repeatable, so many people start by 
assuming the problem is spherical and moving in a vacuum...  Once that 
works you can try and deal with the vagueness of real world situations.


> So, hell no, we're not going to study models instead of measuring
> what's really happening.  That would be idiotic.

Yeah, really idiotic...

Well, just remember that the tools you need to process your data are 
based on a bunch of mathematic models...


I guess lets just get back on topic to gpsd since you like to pick 
fights with me and it generally seems to deteriorate to you calling me 
names.  I still owe you some results on the stability of the Venus gps 
NMEA, got some other urgent tasks, but hoping to collect those shortly.

Note to Gary: Chrony has additionally logging I just discovered, if you 
enable "refclocks" in your logging you can dump the uncooked 
measurements from your new PPS gps - this may be interesting for 
plotting stability graphs.  It appears if you just use the statistics 
plot then you are plotting the averaged values


Good luck

Ed W


From MAILER-DAEMON Tue May 08 06:07:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRhKJ-0006t4-Tr
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 06:07:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52654)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRhKC-0006rk-8u
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:07:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRhK7-0002mw-Gq
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:07:19 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:48301)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SRhK7-0002ms-Ag
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:07:15 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id 34B1634032D;
	Tue,  8 May 2012 11:07:14 +0100 (BST)
X-Virus-Scanned: amavisd-new at nippynetworks.com
Received: from mail1.nippynetworks.com ([127.0.0.1])
	by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new,
	port 10024)
	with LMTP id 1X19uuVSebfE; Tue,  8 May 2012 11:07:14 +0100 (BST)
Received: from Ed-Wildgooses-MacBook-Pro.local (unknown [212.69.38.73])
	(Authenticated sender: edward@wildgooses.com)
	by mail1.nippynetworks.com (Postfix) with ESMTPSA id EE696340317;
	Tue,  8 May 2012 11:07:13 +0100 (BST)
Message-ID: <4FA8F051.3090302@wildgooses.com>
Date: Tue, 08 May 2012 11:07:13 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Dave Taht <dave.taht@gmail.com>
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
	<4FA8CD7D.2000405@wildgooses.com>
	<CAA93jw60qLw27rL6uo_o60WiRoJ6XZmX2+WCjBrpfrUn-z717Q@mail.gmail.com>
In-Reply-To: <CAA93jw60qLw27rL6uo_o60WiRoJ6XZmX2+WCjBrpfrUn-z717Q@mail.gmail.com>
X-TagToolbar-Keys: D20120508110713569
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 91.220.24.129
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 10:07:26 -0000

On 08/05/2012 08:58, Dave Taht wrote:
> The internet escaped the lab a long time ago. Yes, lab work is needed.
> But for a change, I'd like the reality to be tested, and the lab work
> to line up with reality. And the tools used, to be trustable. And the
> results, repeatable.

I think we agree except on the point that the real world is repeatable.  
That's the very thing which it isn't in my opinion and where the models 
come in.  Lets not let this deteriorate into postulating the grand 
theory of everything - what I mean by models is usually extracting some 
facet of reality into a repeatable situation and then analysing just 
that piece

Ed W



From MAILER-DAEMON Tue May 08 06:42:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRhsU-00031d-SM
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 06:42:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52457)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRhsR-00030v-JU
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:42:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRhsM-0002AO-NW
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:42:43 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:33563)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SRhsM-00029h-Br
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 06:42:38 -0400
Received: by obbwd20 with SMTP id wd20so11619341obb.4
	for <gpsd-dev@nongnu.org>; Tue, 08 May 2012 03:42:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=NIm0zc2xxErrJ0Ker8/J//RqFW2aPBoxkarORDTUjms=;
	b=Rmbo+u47tsAPNvxUrsFccv72k9T8d9jBYLlCZVQ4kGYHxSHlZgFpuwMsG5BgEkFyR7
	LS55VmqzwywKrPQ0d1JvzNP3gFgHRSpfebuVbu1Pzm7LJBcmVYNzk5mmjop0M2KqLwhe
	vKrkWe4csT3xuL3vZyLlU5bJiOQdTLmyAuuOah2IuPKrzmpJ//y/AzakTAVY1tnlw3Ws
	KQFhCBBoUEayNmpfJHHgb4YlEAmxgH2zlx1HzBKT1EM3YEu0xUuEuzs8G+qybY9TdcOg
	jazib/w7bt1sFHCEjW/jbwYfM7CnGP3CmWG1ncRINMo26FI5ofbjkP3WsTAVys88ebTv
	c+XQ==
MIME-Version: 1.0
Received: by 10.60.0.201 with SMTP id 9mr25920823oeg.59.1336473756339; Tue, 08
	May 2012 03:42:36 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Tue, 8 May 2012 03:42:36 -0700 (PDT)
Received: by 10.182.113.40 with HTTP; Tue, 8 May 2012 03:42:36 -0700 (PDT)
In-Reply-To: <4FA8F051.3090302@wildgooses.com>
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
	<4FA8CD7D.2000405@wildgooses.com>
	<CAA93jw60qLw27rL6uo_o60WiRoJ6XZmX2+WCjBrpfrUn-z717Q@mail.gmail.com>
	<4FA8F051.3090302@wildgooses.com>
Date: Tue, 8 May 2012 06:42:36 -0400
Message-ID: <CAFv7OigjAPuj1PWMW55RS_Cm46BZ_igigiMgwnMH3X0U3eUSUw@mail.gmail.com>
From: tz <tz2026@gmail.com>
To: Ed W <lists@wildgooses.com>
Content-Type: multipart/alternative; boundary=e89a8fb1f68a7f8efc04bf840bf6
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 10:42:45 -0000

--e89a8fb1f68a7f8efc04bf840bf6
Content-Type: text/plain; charset=ISO-8859-1

I think it is something like your attempt to stastically clean up USB
polling jitter - in the case of the real world, we can get statistics and
derive information.

But even more, this is like having weather stations.  Weather cannot be
studied in a lab.  You need thermometers, anemometers, hygrometers, and
barometers scattered over a wide area.  You can calibrate instruments in a
lab, but they aren't useful for observing as there is no weather in a lab.

The delay might vary with time or have something unexpected.  The internet
design has a lot of compensation and error correction which masks problems.
 On May 8, 2012 6:07 AM, "Ed W" <lists@wildgooses.com> wrote:

> On 08/05/2012 08:58, Dave Taht wrote:
>
>> The internet escaped the lab a long time ago. Yes, lab work is needed.
>> But for a change, I'd like the reality to be tested, and the lab work
>> to line up with reality. And the tools used, to be trustable. And the
>> results, repeatable.
>>
>
> I think we agree except on the point that the real world is repeatable.
>  That's the very thing which it isn't in my opinion and where the models
> come in.  Lets not let this deteriorate into postulating the grand theory
> of everything - what I mean by models is usually extracting some facet of
> reality into a repeatable situation and then analysing just that piece
>
> Ed W
>
>
>

--e89a8fb1f68a7f8efc04bf840bf6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>I think it is something like your attempt to stastically clean up USB po=
lling jitter - in the case of the real world, we can get statistics and der=
ive information.</p>
<p>But even more, this is like having weather stations.=A0 Weather cannot b=
e studied in a lab.=A0 You need thermometers, anemometers, hygrometers, and=
 barometers scattered over a wide area.=A0 You can calibrate instruments in=
 a lab, but they aren&#39;t useful for observing as there is no weather in =
a lab.</p>

<p>The delay might vary with time or have something unexpected.=A0 The inte=
rnet design has a lot of compensation and error correction which masks prob=
lems.<br>
</p>
<div class=3D"gmail_quote">On May 8, 2012 6:07 AM, &quot;Ed W&quot; &lt;<a =
href=3D"mailto:lists@wildgooses.com">lists@wildgooses.com</a>&gt; wrote:<br=
 type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 08/05/2012 08:58, Dave Taht wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
The internet escaped the lab a long time ago. Yes, lab work is needed.<br>
But for a change, I&#39;d like the reality to be tested, and the lab work<b=
r>
to line up with reality. And the tools used, to be trustable. And the<br>
results, repeatable.<br>
</blockquote>
<br>
I think we agree except on the point that the real world is repeatable. =A0=
That&#39;s the very thing which it isn&#39;t in my opinion and where the mo=
dels come in. =A0Lets not let this deteriorate into postulating the grand t=
heory of everything - what I mean by models is usually extracting some face=
t of reality into a repeatable situation and then analysing just that piece=
<br>

<br>
Ed W<br>
<br>
<br>
</blockquote></div>

--e89a8fb1f68a7f8efc04bf840bf6--


From MAILER-DAEMON Tue May 08 12:27:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRnGP-00061a-3U
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 12:27:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43714)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRnGL-00060O-UR
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 12:27:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRnGH-0004XW-05
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 12:27:45 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:46457 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SRnGG-0004XF-SV
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 12:27:40 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 7142040478; Tue,  8 May 2012 12:27:35 -0400 (EDT)
Date: Tue, 8 May 2012 12:27:35 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Ed W <lists@wildgooses.com>
Message-ID: <20120508162735.GA27589@thyrsus.com>
References: <esr@thyrsus.com> <20120507205843.GA21259@thyrsus.com>
	<20120508065436.3A870800070@ip-64-139-1-69.sjc.megapath.net>
	<20120508071533.GA24888@thyrsus.com>
	<4FA8CD7D.2000405@wildgooses.com>
	<20120508083343.GA25255@thyrsus.com>
	<4FA8EF46.2050305@wildgooses.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FA8EF46.2050305@wildgooses.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] PPS over USB
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 16:27:47 -0000

Ed W <lists@wildgooses.com>:
> No and I'm getting bored with your overtly hostile attitude. 

Oh, good.  Don't let the door hit you in the ass on the way out.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 08 17:39:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SRs7x-0005C7-1N
	for mharc-gpsd-dev@gnu.org; Tue, 08 May 2012 17:39:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58182)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <littlesavage@rambler.ru>) id 1SRs7u-0005C1-QP
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 17:39:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <littlesavage@rambler.ru>) id 1SRs7t-0007MZ-1n
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 17:39:22 -0400
Received: from mailc.rambler.ru ([81.19.66.27]:19216)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <littlesavage@rambler.ru>) id 1SRs7s-0007MQ-QQ
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 17:39:20 -0400
Received: from ls.orionet.ru (unknown [94.232.59.106])
	(Authenticated sender: littlesavage@rambler.ru)
	by mailc.rambler.ru (Postfix) with ESMTP id 5847D2C34D0
	for <gpsd-dev@nongnu.org>; Wed,  9 May 2012 01:39:17 +0400 (MSK)
Message-ID: <4FA99284.5090500@rambler.ru>
Date: Wed, 09 May 2012 01:39:16 +0400
From: Alexey Illarionov <littlesavage@rambler.ru>
User-Agent: Mozilla/5.0 (X11; FreeBSD i386;
	rv:5.0) Gecko/20110727 Thunderbird/5.0
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <4F2C3CD4.9020209@rambler.ru>
In-Reply-To: <4F2C3CD4.9020209@rambler.ru>
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 81.19.66.27
Subject: Re: [gpsd-dev] [PATCH] subframe decoding fixes
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 21:39:24 -0000

Hi,

On 04.02.2012 00:00, Alexey Illarionov wrote:

> The attached patch fixes decoding of several subframe fields:

Yet another typos.


diff --git a/subframe.c b/subframe.c
index 87eda3c..a670a27 100644
--- a/subframe.c
+++ b/subframe.c
@@ -668,10 +668,10 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,

                 sv = -1;
                 /* current leap seconds */
-               subp->sub4_18.alpha0 = (int8_t)((words[2] >> 16) & 0x0000FF);
+               subp->sub4_18.alpha0 = (int8_t)((words[2] >> 8) & 0x0000FF);
                 subp->sub4_18.d_alpha0 = pow(2.0, -30) * (int)subp->sub4_18.alpha0;
-               subp->sub4_18.alpha1 = (int8_t)((words[2] >>  8) & 0x0000FF);
-               subp->sub4_18.d_alpha1 = pow(2.0, -27) * (int)subp->sub4_18.alpha2;
+               subp->sub4_18.alpha1 = (int8_t)((words[2] >> 0) & 0x0000FF);
+               subp->sub4_18.d_alpha1 = pow(2.0, -27) * (int)subp->sub4_18.alpha1;
                 subp->sub4_18.alpha2 = (int8_t)((words[3] >> 16) & 0x0000FF);
                 subp->sub4_18.d_alpha2 = pow(2.0, -24) * (int)subp->sub4_18.alpha2;
                 subp->sub4_18.alpha3 = (int8_t)((words[3] >>  8) & 0x0000FF);
@@ -680,7 +680,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
                 subp->sub4_18.beta0  = (int8_t)((words[3] >>  0) & 0x0000FF);
                 subp->sub4_18.d_beta0 = pow(2.0, 11) * (int)subp->sub4_18.beta0;
                 subp->sub4_18.beta1  = (int8_t)((words[4] >> 16) & 0x0000FF);
-               subp->sub4_18.d_beta1 = pow(2.0, 14) * (int)subp->sub4_18.beta2;
+               subp->sub4_18.d_beta1 = pow(2.0, 14) * (int)subp->sub4_18.beta1;
                 subp->sub4_18.beta2  = (int8_t)((words[4] >>  8) & 0x0000FF);
                 subp->sub4_18.d_beta2 = pow(2.0, 16) * (int)subp->sub4_18.beta2;
                 subp->sub4_18.beta3  = (int8_t)((words[4] >>  0) & 0x0000FF);
@@ -691,13 +691,13 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
                 subp->sub4_18.d_A1   = pow(2.0,-50) * subp->sub4_18.A1;
                 subp->sub4_18.A0     = (int32_t)((words[6] >>  0) & 0xFFFFFF);
                 subp->sub4_18.A0   <<= 8;
-               subp->sub4_18.A0    |= ((words[7] >> 16) & 0x00FFFF);
+               subp->sub4_18.A0    |= ((words[7] >> 16) & 0x0000FF);
                 subp->sub4_18.d_A0   = pow(2.0,-30) * subp->sub4_18.A0;

                 /* careful WN is 10 bits, but WNt is 8 bits! */
                 /* WNt (Week Number of LSF) */
                 subp->sub4_18.tot    = ((words[7] >> 8) & 0x0000FF);
-               subp->sub4_18.d_tot  = pow(2.0,12) * subp->sub4_18.d_tot;
+               subp->sub4_18.d_tot  = pow(2.0,12) * subp->sub4_18.tot;
                 subp->sub4_18.WNt    = ((words[7] >> 0) & 0x0000FF);
                 subp->sub4_18.leap  = (int8_t)((words[8] >> 16) & 0x0000FF);
                 subp->sub4_18.WNlsf  = ((words[8] >>  8) & 0x0000FF);


From MAILER-DAEMON Wed May 09 03:13:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SS15x-00062e-3q
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 03:13:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57251)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SS15q-00061J-2a
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 03:13:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SS15m-0007aS-Br
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 03:13:49 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:59112 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SS15m-0007YS-7K
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 03:13:46 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 1C6BA40478; Wed,  9 May 2012 03:13:39 -0400 (EDT)
Date: Wed, 9 May 2012 03:13:39 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Alexey Illarionov <littlesavage@rambler.ru>
Message-ID: <20120509071339.GA31424@thyrsus.com>
References: <4F2C3CD4.9020209@rambler.ru>
 <4FA99284.5090500@rambler.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FA99284.5090500@rambler.ru>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] subframe decoding fixes
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 07:13:55 -0000

Alexey Illarionov <littlesavage@rambler.ru>:
> >The attached patch fixes decoding of several subframe fields:
> 
> Yet another typos.

All three bands failed against git head.  Please resync and resubmit.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed May 09 04:33:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SS2LG-00015N-Pz
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 04:33:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45992)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SS2LC-00014y-Uf
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 04:33:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SS2LA-0004ao-HP
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 04:33:46 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:60708 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SS2LA-0004ZI-Dc
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 04:33:44 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id A2DDE40478; Wed,  9 May 2012 04:33:37 -0400 (EDT)
Date: Wed, 9 May 2012 04:33:37 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120509083337.GA31854@thyrsus.com>
References: <esr@thyrsus.com> <20120507043801.GA17127@thyrsus.com>
	<20120507094426.A15C8800073@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120507094426.A15C8800073@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] errors from scons testregress: Trimble-lassen
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 08:33:49 -0000

Hal Murray <hmurray@megapathdsl.net>:
> I tried on a newer system, Fedora 17.  It's got python 2.7.  It gets the same 
> error.

That's really odd - I'm running Python 2.7 here and it doesn't reproduce.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed May 09 12:43:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SS9zI-0006Nh-O7
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 12:43:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51926)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==475370f0692==rbywater@drs-ts.com>)
	id 1SRlV1-0006BZ-Fu
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 10:34:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <btv1==475370f0692==rbywater@drs-ts.com>)
	id 1SRlUz-0000Qb-6O
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 10:34:47 -0400
Received: from smtp.drs-ts.com ([4.79.116.89]:36105)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==475370f0692==rbywater@drs-ts.com>)
	id 1SRlUy-0000Q3-Rj
	for gpsd-dev@nongnu.org; Tue, 08 May 2012 10:34:45 -0400
X-ASG-Debug-ID: 1336487681-032e3c0eb25a2ff0002-tzOsvG
Received: from ts-exchange.ts.drs.master (ts-exchange.ts.drs.master
	[10.60.10.15]) by smtp.drs-ts.com with ESMTP id
	3odhUdGN0HlEO2HP; Tue, 08 May 2012 10:34:41 -0400 (EDT)
X-Barracuda-Envelope-From: rbywater@drs-ts.com
X-ASG-Whitelist: Client
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Tue, 8 May 2012 10:33:54 -0400
X-ASG-Orig-Subj: RE: [gpsd-dev] wsg_separation Issue
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
	micalg=SHA1; boundary="----=_NextPart_000_0278_01CD2D06.10E18040"
Message-ID: <88E85DB4F8A48A4BA90D92ACA3C4561809F8C5AF@ts-exchange.ts.drs.master>
In-Reply-To: <20120508050203.GA23585@thyrsus.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [gpsd-dev] wsg_separation Issue
Thread-Index: Ac0s17gIOV5Ko0MURVuf5yXdRNSQZwASOMPA
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120507035046.GA16848@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
	<20120508050203.GA23585@thyrsus.com>
From: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
To: <esr@thyrsus.com>
X-Barracuda-Connect: ts-exchange.ts.drs.master[10.60.10.15]
X-Barracuda-Start-Time: 1336487681
X-Barracuda-URL: http://4.79.116.89:8000/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at drs-ts.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 4.79.116.89
X-Mailman-Approved-At: Wed, 09 May 2012 12:43:38 -0400
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 14:34:53 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_0278_01CD2D06.10E18040
Content-Type: multipart/mixed;
	boundary="----=_NextPart_001_0279_01CD2D06.10E18040"


------=_NextPart_001_0279_01CD2D06.10E18040
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Eric,

I looked into the clock_gettime issue a bit more.  I am not sure why, but
scons did not configure correctly.  I re-ran it with --config=force and it
built clean.  So, I re-ran Coverity with the corrected build.  You can find
the new results attached.  

It appears that my build failing before prevented scanning of all of the
files as now there are quite a few more issues detected.

Thanks,
Rick

-----Original Message-----
From: Eric S. Raymond [mailto:esr@thyrsus.com] 
Sent: Tuesday, May 08, 2012 1:02 AM
To: Bywater, Rick (SA-1)
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue

Bywater, Rick (SA-1) <rbywater@drs-ts.com>:
> Here is a log of a Coverity run on the head as of this morning.  The 
> gpsd.log contains the output from the cov-build while gpsd.log2 
> contains the cov-analyze output.

Thank you very much.  I would be delighted to help you complete this
analysis by annotating the code in whatever ways might help.

I might be able to help you achieve your objectives better if I understood
why you're being asked to scan GPSD.  Who needs careful verification of this
code, and why?  (Er, if it helps, I already know it's used in military
systems.)

> I was going to attach the full c/ directory that Coverity generates so 
> you could see the issues, but the tgz file was over 12 MB and I was 
> afraid that would be rejected by the mailing list.  If you would like 
> that output and the list server is ok with a 12 MB file, let me know 
> and I will post it.  If the list server will reject that size of an 
> upload, let me know where you would like the results posted and I will get
them uploaded.

Please mail them to me at esr@ythyrsus.com.  I don't think my personal
mailserver will barf.

Hm.  I note a link failure due to clock_gettime() reference.  Do you get
this from a regular build, or is it in the Coverity environment only?  If
so, is there an #ifdef I can use to condition out that call?

This is interesting...

Analysis summary report:
------------------------
Files analyzed                  : 86
Total LoC input to cov-analyze  : 72824
Functions analyzed              : 585
Classes/structs analyzed        : 128
Paths analyzed                  : 125590
Time taken by Coverity analysis : 00:01:22
Defect occurrences found        : 45 Total
                                   2 BAD_SIZEOF
                                   2 CHECKED_RETURN
                                   4 CONSTANT_EXPRESSION_RESULT
                                   3 DEADCODE
                                  12 FORWARD_NULL
                                   1 INFINITE_LOOP
                                   1 NEGATIVE_RETURNS
                                   1 NULL_RETURNS
                                   1 OVERRUN_DYNAMIC
                                   3 OVERRUN_STATIC
                                   6 RESOURCE_LEAK
                                   1 REVERSE_INULL
                                   7 UNINIT
                                   1 UNREACHABLE

Exceeded path limit of 5000 paths in 1.88% of functions (normally up to 5%
of functions encounter this limitation)

A gross defect rate of 1 per 1618 lines already makes me pretty happy, and
it's likely from my one previous experience of a full scan that some of
those are false positives. Let's see what we can do to filter out the noise,
shall we?
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

NOTICE: This e-mail transmission (and/or the attachments accompanying it) may contain confidential or proprietary information belonging to DRS Technologies or the sender. The information is only for the use of the intended recipient. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this information is strictly prohibited. Any unauthorized interception of this transmission is illegal under the law. If you have received this transmission in error, please promptly notify the sender by reply e-mail, and then destroy all copies of the transmission.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior written approval from the U.S. Department of State."

------=_NextPart_001_0279_01CD2D06.10E18040
Content-Type: application/octet-stream;
	name="gpsd.log_retry"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="gpsd.log_retry"

Coverity Build Capture version 6.0.1 on Linux 2.6.32-220.13.1.el6.i686 i686=
=0A=
Internal version numbers: 1.5222:3042, 20120412041511UTC, p-berkeley-push-1=
1376.367=0A=
=0A=
=1B[?1034hscons: Reading SConscript files ...=0A=
Checking for chrpath... yes=0A=
Checking whether the C++ compiler worksyes=0A=
Checking for ncurses... yes=0A=
Checking for libusb-1.0... no=0A=
Checking for C library librt... yes=0A=
Checking for C library libcap... no=0A=
Checking for bluez... no=0A=
Checking for C header file sys/timepps.h... no=0A=
You do not have kernel PPS available.=0A=
Checking for C function daemon()... yes=0A=
Checking for C function strlcpy()... no=0A=
Checking for C function strlcat()... no=0A=
Checking for C function clock_gettime()... yes=0A=
Checking for C library libbluetooth... no=0A=
libbluetooth not found, bluez cannot be enabled.=0A=
Checking for C function pselect()... yes=0A=
Checking that xsltproc can make man pages... yes=0A=
Checking for QtNetwork... yes=0A=
All configuration flags are defaulted.=0A=
scons: done reading SConscript files.=0A=
scons: Building targets ...=0A=
substituter(["jsongen.py"], ["jsongen.py.in"])=0A=
chmod -w jsongen.py=0A=
chmod +x jsongen.py=0A=
rm -f ais_json.i && /usr/bin/python jsongen.py --ais --target=3Dparser > ai=
s_json.i && chmod a-w ais_json.i=0A=
gcc -o ais_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC ais_jso=
n.c=0A=
gcc -o bits.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initi=
alizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-p=
rototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC bits.c=0A=
gcc -o daemon.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC daemon.c=
=0A=
Creating 'gpsd.h'=0A=
gcc -o gpsutils.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gpsutil=
s.c=0A=
gcc -o gpsdclient.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gpsdc=
lient.c=0A=
substituter(["maskaudit.py"], ["maskaudit.py.in"])=0A=
chmod -w maskaudit.py=0A=
chmod +x maskaudit.py=0A=
rm -f gps_maskdump.c && /usr/bin/python maskaudit.py -c . > gps_maskdump.c =
&& chmod a-w gps_maskdump.c=0A=
gcc -o gps_maskdump.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gps=
_maskdump.c=0A=
gcc -o hex.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initia=
lizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-pr=
ototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC hex.c=0A=
gcc -o json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initi=
alizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-p=
rototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC json.c=0A=
gcc -o libgps_core.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_core.c=0A=
gcc -o libgps_dbus.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_dbus.c=0A=
gcc -o libgps_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_json.c=0A=
gcc -o libgps_shm.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libgp=
s_shm.c=0A=
gcc -o libgps_sock.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC libg=
ps_sock.c=0A=
gcc -o netlib.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC netlib.c=
=0A=
gcc -o rtcm2_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC rtcm2=
_json.c=0A=
gcc -o shared_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC shar=
ed_json.c=0A=
gcc -o strl.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initi=
alizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-p=
rototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC strl.c=0A=
g++ -o libgpsmm.os -c -O2 -fPIC libgpsmm.cpp=0A=
g++ -o libgps.so.20.0.0 -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr=
/local/lib -shared -Wl,-Bsymbolic -Wl,-soname=3Dlibgps.so.20 ais_json.os bi=
ts.os daemon.os gpsutils.os gpsdclient.os gps_maskdump.os hex.os json.os li=
bgps_core.os libgps_dbus.os libgps_json.os libgps_shm.os libgps_sock.os net=
lib.os rtcm2_json.os shared_json.os strl.os libgpsmm.os -L. -L/usr/local/li=
b -lrt -lrt=0A=
rm -f libgps.so; ln -s libgps.so.20.0.0 libgps.so=0A=
rm -f libgps.so.20; ln -s libgps.so.20.0.0 libgps.so.20=0A=
rm -f libgps.so.20.0; ln -s libgps.so.20.0.0 libgps.so.20.0=0A=
gcc -o bsd_base64.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC bsd_b=
ase64.c=0A=
gcc -o crc24q.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC crc24q.c=
=0A=
gcc -o gpsd_json.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstr=
ict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC gpsd_j=
son.c=0A=
gcc -o geoid.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC geoid.c=0A=
gcc -o isgps.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC isgps.c=0A=
gcc -o libgpsd_core.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC lib=
gpsd_core.c=0A=
gcc -o net_dgpsip.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC net_d=
gpsip.c=0A=
gcc -o net_gnss_dispatch.os -c -Wextra -Wall -Wno-uninitialized -Wno-missin=
g-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototyp=
es -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPI=
C net_gnss_dispatch.c=0A=
gcc -o net_ntrip.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstr=
ict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC net_nt=
rip.c=0A=
rm -f packet_names.h && sed -e '/^ *\([A-Z][A-Z0-9_]*\),/s// "\1",/' < pack=
et_states.h > packet_names.h && chmod a-w packet_names.h=0A=
gcc -o packet.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC packet.c=
=0A=
gcc -o pseudonmea.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC pseud=
onmea.c=0A=
gcc -o serial.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC serial.c=
=0A=
gcc -o subframe.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC subfram=
e.c=0A=
<lambda>(["leapseconds.cache"], ["leapsecond.py"])=0A=
timebase_h(["timebase.h"], ["leapseconds.cache"])=0A=
gcc -o timebase.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC timebas=
e.c=0A=
gcc -o drivers.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-in=
itializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstric=
t-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC drivers.c=
=0A=
gcc -o driver_aivdm.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_aivdm.c=0A=
gcc -o driver_evermore.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-=
field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes=
 -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC =
driver_evermore.c=0A=
gcc -o driver_garmin.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_garmin.c=0A=
gcc -o driver_garmin_txt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missin=
g-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototyp=
es -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPI=
C driver_garmin_txt.c=0A=
gcc -o driver_geostar.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-f=
ield-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes =
-Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC d=
river_geostar.c=0A=
gcc -o driver_italk.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_italk.c=0A=
gcc -o driver_navcom.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_navcom.c=0A=
gcc -o driver_nmea0183.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-=
field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes=
 -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC =
driver_nmea0183.c=0A=
gcc -o driver_nmea2000.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-=
field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes=
 -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC =
driver_nmea2000.c=0A=
gcc -o driver_oncore.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_oncore.c=0A=
gcc -o driver_rtcm2.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_rtcm2.c=0A=
gcc -o driver_rtcm3.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dri=
ver_rtcm3.c=0A=
gcc -o driver_sirf.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC driv=
er_sirf.c=0A=
gcc -o driver_superstar2.os -c -Wextra -Wall -Wno-uninitialized -Wno-missin=
g-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototyp=
es -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPI=
C driver_superstar2.c=0A=
gcc -o driver_tsip.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC driv=
er_tsip.c=0A=
gcc -o driver_ubx.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC drive=
r_ubx.c=0A=
gcc -o driver_zodiac.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -fPIC dr=
iver_zodiac.c=0A=
gcc -o libgpsd.so.20.0.0 -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//us=
r/local/lib -shared -Wl,-Bsymbolic -Wl,-soname=3Dlibgpsd.so.20 bsd_base64.o=
s crc24q.os gpsd_json.os geoid.os isgps.os libgpsd_core.os net_dgpsip.os ne=
t_gnss_dispatch.os net_ntrip.os packet.os pseudonmea.os serial.os subframe.=
os timebase.os drivers.os driver_aivdm.os driver_evermore.os driver_garmin.=
os driver_garmin_txt.os driver_geostar.os driver_italk.os driver_navcom.os =
driver_nmea0183.os driver_nmea2000.os driver_oncore.os driver_rtcm2.os driv=
er_rtcm3.os driver_sirf.os driver_superstar2.os driver_tsip.os driver_ubx.o=
s driver_zodiac.os -L. -L/usr/local/lib -lrt -lrt=0A=
rm -f libgpsd.so; ln -s libgpsd.so.20.0.0 libgpsd.so=0A=
rm -f libgpsd.so.20; ln -s libgpsd.so.20.0.0 libgpsd.so.20=0A=
rm -f libgpsd.so.20.0; ln -s libgpsd.so.20.0.0 libgpsd.so.20.0=0A=
gcc -o ais_json-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn=
-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork=
 -I/usr/include/QtCore ais_json.c=0A=
g++ -o bits-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-in=
itializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-typ=
e -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork -I/=
usr/include/QtCore bits.c=0A=
g++ -o daemon-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-t=
ype -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork -=
I/usr/include/QtCore daemon.c=0A=
g++ -o gpsutils-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn=
-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork=
 -I/usr/include/QtCore gpsutils.c=0A=
g++ -o gpsdclient-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wretu=
rn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwo=
rk -I/usr/include/QtCore gpsdclient.c=0A=
g++ -o gps_maskdump-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-=
field-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wre=
turn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNet=
work -I/usr/include/QtCore gps_maskdump.c=0A=
g++ -o hex-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-type=
 -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork -I/u=
sr/include/QtCore hex.c=0A=
gcc -o json-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-in=
itializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-typ=
e -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork -I/=
usr/include/QtCore json.c=0A=
g++ -o libgps_core-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-f=
ield-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wret=
urn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetw=
ork -I/usr/include/QtCore libgps_core.c=0A=
g++ -o libgps_dbus-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-f=
ield-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wret=
urn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetw=
ork -I/usr/include/QtCore libgps_dbus.c=0A=
gcc -o libgps_json-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-f=
ield-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wret=
urn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetw=
ork -I/usr/include/QtCore libgps_json.c=0A=
g++ -o libgps_shm-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wretu=
rn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwo=
rk -I/usr/include/QtCore libgps_shm.c=0A=
g++ -o libgps_sock-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-f=
ield-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wret=
urn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetw=
ork -I/usr/include/QtCore libgps_sock.c=0A=
g++ -o netlib-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-t=
ype -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork -=
I/usr/include/QtCore netlib.c=0A=
gcc -o rtcm2_json-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wretu=
rn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwo=
rk -I/usr/include/QtCore rtcm2_json.c=0A=
gcc -o shared_json-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-f=
ield-initializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wret=
urn-type -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetw=
ork -I/usr/include/QtCore shared_json.c=0A=
g++ -o strl-qt.os -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-in=
itializers -Wcast-align -Wmissing-declarations -Wpointer-arith -Wreturn-typ=
e -D_GNU_SOURCE -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNetwork -I/=
usr/include/QtCore strl.c=0A=
g++ -o libgpsmm-qt.os -c -O2 -fPIC -DUSE_QT -DQT_SHARED -I/usr/include/QtNe=
twork -I/usr/include/QtCore libgpsmm.cpp=0A=
g++ -o libQgpsmm.so.20.0.0 -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//=
usr/local/lib -shared -Wl,-Bsymbolic -Wl,-soname=3DlibQgpsmm.so.20 ais_json=
-qt.os bits-qt.os daemon-qt.os gpsutils-qt.os gpsdclient-qt.os gps_maskdump=
-qt.os hex-qt.os json-qt.os libgps_core-qt.os libgps_dbus-qt.os libgps_json=
-qt.os libgps_shm-qt.os libgps_sock-qt.os netlib-qt.os rtcm2_json-qt.os sha=
red_json-qt.os strl-qt.os libgpsmm-qt.os -L. -L/usr/local/lib -lrt -lQtNetw=
ork -lQtCore=0A=
rm -f libQgpsmm.so; ln -s libQgpsmm.so.20.0.0 libQgpsmm.so=0A=
rm -f libQgpsmm.so.20; ln -s libQgpsmm.so.20.0.0 libQgpsmm.so.20=0A=
rm -f libQgpsmm.so.20.0; ln -s libQgpsmm.so.20.0.0 libQgpsmm.so.20.0=0A=
gcc -o gpsd.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initia=
lizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-pr=
ototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread gpsd.c=0A=
gcc -o ntpshm.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread ntpshm.c=
=0A=
gcc -o shmexport.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread shme=
xport.c=0A=
gcc -o dbusexport.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-=
initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstr=
ict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 -pthread dbu=
sexport.c=0A=
gcc -o gpsd -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/lib -=
pthread gpsd.o ntpshm.o shmexport.o dbusexport.o -L. -L/usr/local/lib -lrt =
-lgpsd -lgps -lm=0A=
gcc -o gpsdecode.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 gpsdecode.c=
=0A=
gcc -o gpsdecode -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/=
lib gpsdecode.o -L. -L/usr/local/lib -lrt -lgpsd -lgps -lm=0A=
gcc -o gpsctl.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 gpsctl.c=0A=
gcc -o gpsctl -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/lib=
 gpsctl.o -L. -L/usr/local/lib -lrt -lgpsd -lgps -lm=0A=
gcc -o gpsdctl.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 gpsdctl.c=0A=
gcc -o gpsdctl -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/li=
b gpsdctl.o -L. -L/usr/local/lib -lrt -lgps -lm=0A=
gcc -o gpspipe.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-ini=
tializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict=
-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 gpspipe.c=0A=
gcc -o gpspipe -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/li=
b gpspipe.o -L. -L/usr/local/lib -lrt -lgps -lm=0A=
gcc -o gpxlogger.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-i=
nitializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstri=
ct-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 gpxlogger.c=
=0A=
gcc -o gpxlogger -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/=
lib gpxlogger.o -L. -L/usr/local/lib -lrt -lgps -lm=0A=
gcc -o lcdgps.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 lcdgps.c=0A=
gcc -o lcdgps -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/lib=
 lcdgps.o -L. -L/usr/local/lib -lrt -lgps -lm=0A=
gcc -o cgps.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initia=
lizers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-pr=
ototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 cgps.c=0A=
gcc -o cgps -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/lib c=
gps.o -L. -L/usr/local/lib -lrt -lgps -lm -lncurses=0A=
gcc -o gpsmon.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field-init=
ializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-=
prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 gpsmon.c=0A=
gcc -o monitor_italk.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fie=
ld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -W=
strict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_i=
talk.c=0A=
gcc -o monitor_nmea.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_nm=
ea.c=0A=
gcc -o monitor_oncore.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_=
oncore.c=0A=
gcc -o monitor_sirf.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fiel=
d-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Ws=
trict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_si=
rf.c=0A=
gcc -o monitor_superstar2.o -c -Wextra -Wall -Wno-uninitialized -Wno-missin=
g-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototyp=
es -Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 moni=
tor_superstar2.c=0A=
gcc -o monitor_tnt.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_tnt=
.c=0A=
gcc -o monitor_ubx.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-field=
-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wst=
rict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_ubx=
.c=0A=
gcc -o monitor_garmin.o -c -Wextra -Wall -Wno-uninitialized -Wno-missing-fi=
eld-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -=
Wstrict-prototypes -Wpointer-arith -Wreturn-type -D_GNU_SOURCE -O2 monitor_=
garmin.c=0A=
gcc -o gpsmon -Wl,-rpath=3D/mnt/sdb1/gpsd-head -Wl,-rpath=3D//usr/local/lib=
 gpsmon.o monitor_italk.o monitor_nmea.o monitor_oncore.o monitor_sirf.o mo=
nitor_superstar2.o monitor_tnt.o monitor_ubx.o monitor_garmin.o -L. -L/usr/=
local/lib -lrt -lgpsd -lgps -lncurses -lm=0A=
gcc -pthread -o gpsclient-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -=
fPIC -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fs=
tack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Dat=
om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/=
python2.6 gpsclient.c=0A=
gcc -pthread -o geoid-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -fPIC=
 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack=
-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Datom -=
fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/pyth=
on2.6 geoid.c=0A=
gcc -pthread -o gpsdclient-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 =
-fPIC -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -f=
stack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Da=
tom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include=
/python2.6 gpsdclient.c=0A=
gcc -pthread -o strl-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -fPIC =
-DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-=
protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Datom -f=
asynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/pytho=
n2.6 strl.c=0A=
gcc -pthread -shared -o gps/clienthelpers.so gpsclient-py_2_6_6_final_0.so =
geoid-py_2_6_6_final_0.so gpsdclient-py_2_6_6_final_0.so strl-py_2_6_6_fina=
l_0.so -L. -L/usr/local/lib -lrt=0A=
gcc -pthread -o gpspacket-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -=
fPIC -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fs=
tack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Dat=
om -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/=
python2.6 gpspacket.c=0A=
gcc -pthread -o packet-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -fPI=
C -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstac=
k-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Datom =
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/pyt=
hon2.6 packet.c=0A=
gcc -pthread -o isgps-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -fPIC=
 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack=
-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Datom -=
fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/pyth=
on2.6 isgps.c=0A=
gcc -pthread -o driver_rtcm2-py_2_6_6_final_0.so -c -fno-strict-aliasing -O=
2 -fPIC -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions =
-fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=
=3Datom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/inc=
lude/python2.6 driver_rtcm2.c=0A=
gcc -pthread -o hex-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -fPIC -=
DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-p=
rotector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Datom -fa=
synchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/python=
2.6 hex.c=0A=
gcc -pthread -o crc24q-py_2_6_6_final_0.so -c -fno-strict-aliasing -O2 -fPI=
C -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstac=
k-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di686 -mtune=3Datom =
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include/pyt=
hon2.6 crc24q.c=0A=
gcc -pthread -shared -o gps/packet.so gpspacket-py_2_6_6_final_0.so packet-=
py_2_6_6_final_0.so isgps-py_2_6_6_final_0.so driver_rtcm2-py_2_6_6_final_0=
.so strl-py_2_6_6_final_0.so hex-py_2_6_6_final_0.so crc24q-py_2_6_6_final_=
0.so -L. -L/usr/local/lib -lrt=0A=
substituter(["gpsd.php"], ["gpsd.php.in"])=0A=
chmod -w gpsd.php=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsctl.xml > gpsctl.1=0A=
Note: Writing gpsctl.1=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsmon.xml > gpsmon.1=0A=
Note: Writing gpsmon.1=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsd_json.xml > gpsd_json.5=0A=
Note: Writing gpsd_json.5=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl libgps.xml > libgps.3=0A=
Note: Writing libgps.3=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl libgpsd.xml > libgpsd.3=0A=
Note: Writing libgpsd.3=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsdecode.xml > gpsdecode.1=0A=
Note: Writing gpsdecode.1=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsdctl.xml > gpsdctl.8=0A=
Note: Writing gpsdctl.8=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl srec.xml > srec.5=0A=
Note: Writing srec.5=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl libgpsmm.xml > libQgpsmm.3=0A=
Note: Writing libgpsmm.3=0A=
Note: Writing libQgpsmm.3 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsd.xml > gpsd.8=0A=
Note: Writing gpsd.8=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl libgpsmm.xml > libgpsmm.3=0A=
Note: Writing libgpsmm.3=0A=
Note: Writing libQgpsmm.3 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpspipe.xml > gpspipe.1=0A=
Note: Writing gpspipe.1=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gps.xml > lcdgps.1=0A=
Note: Writing gps.1=0A=
Note: Writing xgps.1 (soelim stub)=0A=
Note: Writing xgpsspeed.1 (soelim stub)=0A=
Note: Writing cgps.1 (soelim stub)=0A=
Note: Writing lcdgps.1 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gps.xml > gps.1=0A=
Note: Writing gps.1=0A=
Note: Writing xgps.1 (soelim stub)=0A=
Note: Writing xgpsspeed.1 (soelim stub)=0A=
Note: Writing cgps.1 (soelim stub)=0A=
Note: Writing lcdgps.1 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gps.xml > cgps.1=0A=
Note: Writing gps.1=0A=
Note: Writing xgps.1 (soelim stub)=0A=
Note: Writing xgpsspeed.1 (soelim stub)=0A=
Note: Writing cgps.1 (soelim stub)=0A=
Note: Writing lcdgps.1 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gps.xml > xgpsspeed.1=0A=
Note: Writing gps.1=0A=
Note: Writing xgps.1 (soelim stub)=0A=
Note: Writing xgpsspeed.1 (soelim stub)=0A=
Note: Writing cgps.1 (soelim stub)=0A=
Note: Writing lcdgps.1 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gps.xml > xgps.1=0A=
Note: Writing gps.1=0A=
Note: Writing xgps.1 (soelim stub)=0A=
Note: Writing xgpsspeed.1 (soelim stub)=0A=
Note: Writing cgps.1 (soelim stub)=0A=
Note: Writing lcdgps.1 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gps.xml > gegps.1=0A=
Note: Writing gps.1=0A=
Note: Writing xgps.1 (soelim stub)=0A=
Note: Writing xgpsspeed.1 (soelim stub)=0A=
Note: Writing cgps.1 (soelim stub)=0A=
Note: Writing lcdgps.1 (soelim stub)=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpscat.xml > gpscat.1=0A=
Note: Writing gpscat.1=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsfake.xml > gpsfake.1=0A=
Note: Writing gpsfake.1=0A=
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpage=
s/docbook.xsl gpsprof.xml > gpsprof.1=0A=
Note: Writing gpsprof.1=0A=
scons: done building targets.=0A=
107 C/C++ compilation units (99%) are ready for analysis=0A=
The cov-build utility completed successfully.=0A=

------=_NextPart_001_0279_01CD2D06.10E18040
Content-Type: application/octet-stream;
	name="gpsd.log2_retry"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="gpsd.log2_retry"

Coverity Static Analysis for C/C++ version 6.0.1 on Linux 2.6.32-220.13.1.e=
l6.i686 i686=0A=
Internal version numbers: 1.5222:3042, 20120412041511UTC, p-berkeley-push-1=
1376.367=0A=
=0A=
Looking for translation units=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing links for 164 translation units=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing virtual overrides=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing callgraph=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Topologically sorting 1208 functions=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Computing node costs=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Starting analysis run=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
[STATUS] Starting analysis run (types/warnings pass)=0A=
|0----------25-----------50----------75---------100|=0A=
****************************************************=0A=
Analysis summary report:=0A=
------------------------=0A=
Files analyzed                  : 193=0A=
Total LoC input to cov-analyze  : 148903=0A=
Functions analyzed              : 1208=0A=
Classes/structs analyzed        : 524=0A=
Paths analyzed                  : 251567=0A=
Time taken by Coverity analysis : 00:02:05=0A=
Defect occurrences found        : 90 Total=0A=
                                   4 BAD_SIZEOF=0A=
                                   4 CHECKED_RETURN=0A=
                                   8 CONSTANT_EXPRESSION_RESULT=0A=
                                   6 DEADCODE=0A=
                                  24 FORWARD_NULL=0A=
                                   2 INFINITE_LOOP=0A=
                                   2 NEGATIVE_RETURNS=0A=
                                   2 NULL_RETURNS=0A=
                                   2 OVERRUN_DYNAMIC=0A=
                                   6 OVERRUN_STATIC=0A=
                                  11 RESOURCE_LEAK=0A=
                                   2 REVERSE_INULL=0A=
                                   1 SIZEOF_MISMATCH=0A=
                                  14 UNINIT=0A=
                                   2 UNREACHABLE=0A=
=0A=
Exceeded path limit of 5000 paths in 1.82% of functions (normally up to 5% =
of functions encounter this limitation)=0A=

------=_NextPart_001_0279_01CD2D06.10E18040--

------=_NextPart_000_0278_01CD2D06.10E18040
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH
AQAAoIIUHDCCBDYwggMeoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwbzELMAkG
A1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3Qg
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BgkrBgEEAYI3EAQxgaswgagwgZMxCzAJBgNVBAYTAkdCMRsw
GQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQx
GjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMTkwNwYDVQQDEzBDT01PRE8g
Q2xpZW50IEF1dGhlbnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0ECEDf1
40i8m15ye/BTQrLHpoAwgbsGCyqGSIb3DQEJEAILMYGroIGoMIGTMQswCQYD
VQQGEwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQH
EwdTYWxmb3JkMRowGAYDVQQKExFDT01PRE8gQ0EgTGltaXRlZDE5MDcGA1UE
AxMwQ09NT0RPIENsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQgU2VjdXJlIEVt
YWlsIENBAhA39eNIvJtecnvwU0Kyx6aAMA0GCSqGSIb3DQEBAQUABIIBAI3/
F4ZJtQmNmkDH8tCm8gWyrICqR+HfAZXAW9nes4+JRD9q6+ECfnoC9as9IlwG
9mv9GvqYM+pdtKUIWkVTIBBT8ihqbMn+kz25xxNzWOO0QpzQEuGWH2Z++ECd
q/lZnBaNhyajF6d1Mgy9tNB0HY5M7As9RwZ59k6yBbaIqhMuWKdKbxZD84pk
3g/ow6QSylLrjsIYuWgkxg83XfNBUYyzbHD2y/Z2Kyv9YiB/jFGUyD4AhG4H
8eTmbgIGkKZvh+9jlKra+Mcm111fIRHAxUW5DjYrvSTXpDK1vru/6VozquqG
dhp5T/4kwOQDDeJ2yZpynCGM5YH6bhdQtxA4y7sAAAAAAAA=

------=_NextPart_000_0278_01CD2D06.10E18040--


From MAILER-DAEMON Wed May 09 12:43:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SS9zI-0006O9-T0
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 12:43:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50099)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <littlesavage@orionet.ru>) id 1SS3FH-0007r5-RN
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 05:31:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <littlesavage@orionet.ru>) id 1SS3FB-0005kC-4h
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 05:31:43 -0400
Received: from mail.orionet.ru ([94.232.59.36]:58762)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <littlesavage@orionet.ru>) id 1SS3FA-0005jZ-Gp
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 05:31:37 -0400
Received: by mail.orionet.ru (Postfix, from userid 58)
	id 90B502025028; Wed,  9 May 2012 13:31:32 +0400 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orionet.ru; s=dkim;
	t=1336555892; bh=xk1vg7J5CjhmfSlbVnlkrBHQJE+2H7BM8sDmUv185SQ=;
	h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject:
	References:In-Reply-To:Content-Type;
	b=DPiHpYPNqvS2uisYz2lUEOZ5JQ5StCWnp+GKbH3bT77qE5dmp5hz6qw/13cU8wRZ9
	vAK7Y+DVB/BovEecfUg1uRV07gJyVymGl7sIEEf8m62TERbhbd8T7g1St2mH7EJ80L
	R6BVJfAnK/Tx9HGRvkJ53sVDT0NNR4dY30rn/vm4=
Received: from ls.orionet.ru (unknown [94.232.59.106])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: littlesavage@orionet.ru)
	by mail.orionet.ru (Postfix) with ESMTPSA id 696FB2024FA5;
	Wed,  9 May 2012 13:31:29 +0400 (MSK)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orionet.ru; s=dkim;
	t=1336555889; bh=xk1vg7J5CjhmfSlbVnlkrBHQJE+2H7BM8sDmUv185SQ=;
	h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject:
	References:In-Reply-To:Content-Type;
	b=t0ToXt4RRZAGjqBlAUGJmbCoItfx8vKc0sLU2XUKimCj3yfiIavq2hWfLPg4jbMM7
	nyw1r/xlx1kCg8Ex04QDcA+LCzunLdicpQtfCeaBBZaAo7kOvlCJvRPwX36z0RGQyH
	cXtWz+zExCIghdCWS2ccscgKIX2cWV4ZRYMPmzbQ=
Message-ID: <4FAA3971.10905@orionet.ru>
Date: Wed, 09 May 2012 13:31:29 +0400
From: Alexey Illarionov <littlesavage@orionet.ru>
User-Agent: Mozilla/5.0 (X11; FreeBSD i386;
	rv:5.0) Gecko/20110727 Thunderbird/5.0
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4F2C3CD4.9020209@rambler.ru> <4FA99284.5090500@rambler.ru>
	<20120509071339.GA31424@thyrsus.com>
In-Reply-To: <20120509071339.GA31424@thyrsus.com>
Content-Type: multipart/mixed; boundary="------------050400050904070609010908"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 94.232.59.36
X-Mailman-Approved-At: Wed, 09 May 2012 12:43:38 -0400
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] subframe decoding fixes
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: admin@orionet.ru
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 09:31:49 -0000

This is a multi-part message in MIME format.
--------------050400050904070609010908
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

On 09.05.2012 11:13, Eric S. Raymond wrote:

>> Yet another typos.
> All three bands failed against git head.  Please resync and resubmit.

Ok

--------------050400050904070609010908
Content-Type: text/plain;
 name="subframe.c.2.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="subframe.c.2.patch"

diff --git a/subframe.c b/subframe.c
index 87eda3c..a670a27 100644
--- a/subframe.c
+++ b/subframe.c
@@ -668,10 +668,10 @@ gps_mask_t gpsd_interpret_subframe(struct gps_devic=
e_t *session,
=20
 		sv =3D -1;
 		/* current leap seconds */
-		subp->sub4_18.alpha0 =3D (int8_t)((words[2] >> 16) & 0x0000FF);
+		subp->sub4_18.alpha0 =3D (int8_t)((words[2] >> 8) & 0x0000FF);
 		subp->sub4_18.d_alpha0 =3D pow(2.0, -30) * (int)subp->sub4_18.alpha0;
-		subp->sub4_18.alpha1 =3D (int8_t)((words[2] >>  8) & 0x0000FF);
-		subp->sub4_18.d_alpha1 =3D pow(2.0, -27) * (int)subp->sub4_18.alpha2;
+		subp->sub4_18.alpha1 =3D (int8_t)((words[2] >> 0) & 0x0000FF);
+		subp->sub4_18.d_alpha1 =3D pow(2.0, -27) * (int)subp->sub4_18.alpha1;
 		subp->sub4_18.alpha2 =3D (int8_t)((words[3] >> 16) & 0x0000FF);
 		subp->sub4_18.d_alpha2 =3D pow(2.0, -24) * (int)subp->sub4_18.alpha2;
 		subp->sub4_18.alpha3 =3D (int8_t)((words[3] >>  8) & 0x0000FF);
@@ -680,7 +680,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_=
t *session,
 		subp->sub4_18.beta0  =3D (int8_t)((words[3] >>  0) & 0x0000FF);
 		subp->sub4_18.d_beta0 =3D pow(2.0, 11) * (int)subp->sub4_18.beta0;
 		subp->sub4_18.beta1  =3D (int8_t)((words[4] >> 16) & 0x0000FF);
-		subp->sub4_18.d_beta1 =3D pow(2.0, 14) * (int)subp->sub4_18.beta2;
+		subp->sub4_18.d_beta1 =3D pow(2.0, 14) * (int)subp->sub4_18.beta1;
 		subp->sub4_18.beta2  =3D (int8_t)((words[4] >>  8) & 0x0000FF);
 		subp->sub4_18.d_beta2 =3D pow(2.0, 16) * (int)subp->sub4_18.beta2;
 		subp->sub4_18.beta3  =3D (int8_t)((words[4] >>  0) & 0x0000FF);
@@ -691,13 +691,13 @@ gps_mask_t gpsd_interpret_subframe(struct gps_devic=
e_t *session,
 		subp->sub4_18.d_A1   =3D pow(2.0,-50) * subp->sub4_18.A1;
 		subp->sub4_18.A0     =3D (int32_t)((words[6] >>  0) & 0xFFFFFF);
 		subp->sub4_18.A0   <<=3D 8;
-		subp->sub4_18.A0    |=3D ((words[7] >> 16) & 0x00FFFF);
+		subp->sub4_18.A0    |=3D ((words[7] >> 16) & 0x0000FF);
 		subp->sub4_18.d_A0   =3D pow(2.0,-30) * subp->sub4_18.A0;
=20
 		/* careful WN is 10 bits, but WNt is 8 bits! */
 		/* WNt (Week Number of LSF) */
 		subp->sub4_18.tot    =3D ((words[7] >> 8) & 0x0000FF);
-		subp->sub4_18.d_tot  =3D pow(2.0,12) * subp->sub4_18.d_tot;
+		subp->sub4_18.d_tot  =3D pow(2.0,12) * subp->sub4_18.tot;
 		subp->sub4_18.WNt    =3D ((words[7] >> 0) & 0x0000FF);
 		subp->sub4_18.leap  =3D (int8_t)((words[8] >> 16) & 0x0000FF);
 		subp->sub4_18.WNlsf  =3D ((words[8] >>  8) & 0x0000FF);

--------------050400050904070609010908--


From MAILER-DAEMON Wed May 09 13:41:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSAtE-0008Im-3p
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 13:41:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56125)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hart@ntp.org>) id 1SSAt8-0008IG-EA
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 13:41:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hart@ntp.org>) id 1SSAt1-0004qx-UU
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 13:41:21 -0400
Received: from mail2.ntp.org ([149.20.68.6]:62198)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <hart@ntp.org>)
	id 1SSAt1-0004pG-MV
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 13:41:15 -0400
Received: from mail-bk0-f45.google.com ([209.85.214.45])
	by mail2.ntp.org with esmtpsa (TLSv1:RC4-SHA:128)
	(Exim 4.76 (FreeBSD)) (envelope-from <hart@ntp.org>)
	id 1SSAss-0007M2-8z
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:41:07 +0000
Received: by bkwj10 with SMTP id j10so575393bkw.4
	for <gpsd-dev@nongnu.org>; Wed, 09 May 2012 10:40:59 -0700 (PDT)
Received: by 10.204.154.214 with SMTP id p22mr338136bkw.115.1336585259182;
	Wed, 09 May 2012 10:40:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.205.142.146 with HTTP; Wed, 9 May 2012 10:40:38 -0700 (PDT)
In-Reply-To: <88E85DB4F8A48A4BA90D92ACA3C4561809F8C5AF@ts-exchange.ts.drs.master>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120507035046.GA16848@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
	<20120508050203.GA23585@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C5AF@ts-exchange.ts.drs.master>
From: Dave Hart <hart@ntp.org>
Date: Wed, 9 May 2012 17:40:38 +0000
Message-ID: <CAMbSiYDkRt8L0BLQccvpH-6N5PWgTGR8zubg-YU0-+ric56YvA@mail.gmail.com>
To: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-SA-Exim-Connect-IP: 209.85.214.45
X-SA-Exim-Rcpt-To: gpsd-dev@nongnu.org
X-SA-Exim-Mail-From: hart@ntp.org
X-SA-Exim-Version: 4.2
X-SA-Exim-Scanned: Yes (on mail2.ntp.org)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 149.20.68.6
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 17:41:27 -0000

On Tue, May 8, 2012 at 2:33 PM, Bywater, Rick (SA-1)
<rbywater@drs-ts.com> wrote:
> Eric,
>
> I looked into the clock_gettime issue a bit more. =A0I am not sure why, b=
ut
> scons did not configure correctly. =A0I re-ran it with --config=3Dforce a=
nd it
> built clean. =A0So, I re-ran Coverity with the corrected build. =A0You ca=
n find
> the new results attached.

The second logfile had a summary with counts of each class of putative
defect identified, but what's really needed is the blow-by-blow for
each defect giving the line(s) of code involved and the relevant
identifiers (such as variable names for uninitialized use).

Coverity analyzes ntp-dev at one of its highest (pickiest) levels as
part of the Scan initiative, but we don't get detailed reports in text
logs or emails -- we have to sign into a website and drill into each
defect in turn.  It's not as bad as it sounds -- they serve up the
source code as well as the defects in a useful way, and allow
colloboration in comments and tracking (such as marking a defect as a
false positive).

My advice is to try again/harder to work with Coverity to setup or
restore access for key gpsd developers to their Scan portal website,
and if needed, get them tracking your head or at least your release
tarballs -- that is, using automation to build a snapshot every
release or every few days, the results of each archived to dig into
on-demand using the portal.

The human I have dealt with regarding Scan in the past, David Maxwell,
is no longer working for Coverity, based on the bounces
dmaxwell@coverity.com elicits.  http://scan.coverity.com/about.html
has several email aliases you might try instead.

Cheers,
Dave Hart


From MAILER-DAEMON Wed May 09 16:08:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSDBL-0002sA-HJ
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 16:08:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52323)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSDBI-0002s2-Ku
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 16:08:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSDBG-0001sF-Kx
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 16:08:16 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:38269 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSDBG-0001qO-Gd
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 16:08:14 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id C493240478; Wed,  9 May 2012 16:08:06 -0400 (EDT)
Date: Wed, 9 May 2012 16:08:06 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
Message-ID: <20120509200806.GB3730@thyrsus.com>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120507035046.GA16848@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
	<20120508050203.GA23585@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C5AF@ts-exchange.ts.drs.master>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <88E85DB4F8A48A4BA90D92ACA3C4561809F8C5AF@ts-exchange.ts.drs.master>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 20:08:18 -0000

Bywater, Rick (SA-1) <rbywater@drs-ts.com>:
> It appears that my build failing before prevented scanning of all of the
> files as now there are quite a few more issues detected.

I don't see anything that worries me there.  We'll fix it...and then I'm
going to brag even louder about the *real* defect rate. :-)

(That's not just or even mostly ego, by the way. I'm trying to subtly needle
other people into raising their game.)
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed May 09 17:25:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSEOQ-0004Wu-Gq
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 17:25:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34472)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSEOO-0004Wc-PH
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:25:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSEOM-0002Sw-PR
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:25:52 -0400
Received: from smtp1.mail.fcom.ch ([212.60.46.170]:51564)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSEOM-0002Se-Cs
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:25:50 -0400
Received: from smtp1.mail.fcom.ch (localhost [127.0.0.1])
	by smtp1 (Postfix) with ESMTP id 36650359B2
	for <gpsd-dev@nongnu.org>; Wed,  9 May 2012 23:25:46 +0200 (CEST)
Received: from drbeat.li (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by smtp1 (Postfix) with ESMTPS id 09DFB359A5
	for <gpsd-dev@nongnu.org>; Wed,  9 May 2012 23:25:45 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id 26BF717ED0; Wed,  9 May 2012 23:25:43 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Wed,  9 May 2012 23:25:43 +0200
Message-Id: <1336598743-2693-2-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.10
In-Reply-To: <1336598743-2693-1-git-send-email-bbolli@ewanet.ch>
References: <1336598743-2693-1-git-send-email-bbolli@ewanet.ch>
X-AV-Checked: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.60.46.170
Subject: [gpsd-dev] [PATCH 2/2] Fix a signed/unsigned comparison warning.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 21:25:54 -0000

---
 ntpshm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntpshm.c b/ntpshm.c
index 6a6f741..ebbf625 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -451,7 +451,7 @@ static int init_kernel_pps(struct gps_device_t *session) {
     int ldisc = 18;   /* the PPS line discipline */
     pps_params_t pp;
     glob_t globbuf;
-    int i;
+    unsigned int i;
     char pps_num = 0;     /* /dev/pps[pps_num] is our device */
     char path[GPS_PATH_MAX] = "";
 
-- 
1.7.10


From MAILER-DAEMON Wed May 09 17:25:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSEOS-0004bu-Kb
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 17:25:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34482)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSEOQ-0004Ws-7u
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:25:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSEOO-0002T6-CJ
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:25:53 -0400
Received: from smtp2.mail.fcom.ch ([212.60.46.171]:59282)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSEON-0002Sh-Py
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:25:52 -0400
Received: from smtp2.mail.fcom.ch (localhost [127.0.0.1])
	by smtp2 (Postfix) with ESMTP id 9AB3E2D4C5
	for <gpsd-dev@nongnu.org>; Wed,  9 May 2012 23:25:45 +0200 (CEST)
Received: from drbeat.li (217-45-60-212-pool.cable.fcom.ch [212.60.45.217])
	by smtp2 (Postfix) with ESMTPS id 681DD2D4B7
	for <gpsd-dev@nongnu.org>; Wed,  9 May 2012 23:25:45 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id DC3771808A; Wed,  9 May 2012 23:25:43 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Wed,  9 May 2012 23:25:42 +0200
Message-Id: <1336598743-2693-1-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.10
X-AV-Checked: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.60.46.171
Subject: [gpsd-dev] [PATCH 1/2] Typo fixes.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 21:25:55 -0000

---
 gpsd.xml |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gpsd.xml b/gpsd.xml
index fc11387..0307c18 100644
--- a/gpsd.xml
+++ b/gpsd.xml
@@ -154,8 +154,8 @@ commands that edit the daemon's internal device list.</para>
 <term>-b</term>
 <listitem><para>Broken-device-safety mode, otherwise known as
 read-only mode. A few bluetooth and USB receivers lock up or become
-totally inaccessible when probed or reconfigured; thee the hardware
-compatibiklity list on the GPSD project website for details. This
+totally inaccessible when probed or reconfigured; see the hardware
+compatibility list on the GPSD project website for details. This
 switch prevents gpsd from writing to a receiver.  This means that
 <application>gpsd</application> cannot configure the receiver for
 optimal performance, but it also means that
-- 
1.7.10


From MAILER-DAEMON Wed May 09 17:27:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSEPa-0004rt-VK
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 17:27:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34739)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SSEPY-0004oh-0l
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:27:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SSEPW-0002bL-8z
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:27:03 -0400
Received: from ip-64-139-1-69.sjc.megapath.net ([64.139.1.69]:65307)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hmurray@megapathdsl.net>) id 1SSEPW-0002b3-1l
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:27:02 -0400
Received: from shuksan (localhost [127.0.0.1])
	by ip-64-139-1-69.sjc.megapath.net (Postfix) with ESMTP id 59EC3800037; 
	Wed,  9 May 2012 14:26:59 -0700 (PDT)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: esr@thyrsus.com
From: Hal Murray <hmurray@megapathdsl.net>
In-Reply-To: Message from "Eric S. Raymond" <esr@thyrsus.com>
	of "Wed, 09 May 2012 04:33:37 EDT." <20120509083337.GA31854@thyrsus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 09 May 2012 14:26:59 -0700
Message-Id: <20120509212659.59EC3800037@ip-64-139-1-69.sjc.megapath.net>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 64.139.1.69
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] errors from scons testregress: Trimble-lassen
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 21:27:05 -0000


esr@thyrsus.com said:
> That's really odd - I'm running Python 2.7 here and it doesn't reproduce. 

What distribution are you using?

Maybe your 2.7 is slightly different from mine. 

Python 2.7.3 (default, Apr 30 2012, 21:18:10) 
[GCC 4.7.0 20120416 (Red Hat 4.7.0-2)] on linux2


-- 
These are my opinions.  I hate spam.





From MAILER-DAEMON Wed May 09 17:35:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSEXo-0006n5-CX
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 17:35:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38026)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSEXm-0006mz-5t
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:35:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSEXk-0006Bc-2V
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:35:33 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:38730 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSEXj-0006BT-Uw
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:35:31 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 5160740478; Wed,  9 May 2012 17:35:24 -0400 (EDT)
Date: Wed, 9 May 2012 17:35:24 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Hal Murray <hmurray@megapathdsl.net>
Message-ID: <20120509213524.GA4379@thyrsus.com>
References: <esr@thyrsus.com> <20120509083337.GA31854@thyrsus.com>
	<20120509212659.59EC3800037@ip-64-139-1-69.sjc.megapath.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120509212659.59EC3800037@ip-64-139-1-69.sjc.megapath.net>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] errors from scons testregress: Trimble-lassen
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 21:35:35 -0000

Hal Murray <hmurray@megapathdsl.net>:
> 
> esr@thyrsus.com said:
> > That's really odd - I'm running Python 2.7 here and it doesn't reproduce. 
> 
> What distribution are you using?

Ubuntu 11.10
 
> Maybe your 2.7 is slightly different from mine. 
> 
> Python 2.7.3 (default, Apr 30 2012, 21:18:10) 
> [GCC 4.7.0 20120416 (Red Hat 4.7.0-2)] on linux2

Python 2.7.3 (default, Apr 20 2012, 22:39:59) 
[GCC 4.6.3] on linux2
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed May 09 17:44:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSEgd-0000Wz-Py
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 17:44:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58957)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSEgb-0000Ws-4J
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:44:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSEgZ-0001OF-FR
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:44:40 -0400
Received: from catbert.rellim.com ([204.17.205.1]:41766)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSEgY-0001J7-U4
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:44:39 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q49LiHa5015168
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 9 May 2012 14:44:18 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q49LiHa5015168
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336599858; bh=tAeSMF1py7spouSqg1qTepwQbCdxzHxDm03lWnyWsrA=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=RSQ9rXTtk/Ur7CC/RlBf9DTDYyb2eSvYEJP+xdCeGk8w4sV0flsf3dWmtYix7KXXi
	blrf7ow3s4CqNfjs9HvKg==
Date: Wed, 9 May 2012 14:44:14 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120509144414.5813e6f3.gem@rellim.com>
In-Reply-To: <1336598743-2693-2-git-send-email-bbolli@ewanet.ch>
References: <1336598743-2693-1-git-send-email-bbolli@ewanet.ch>
	<1336598743-2693-2-git-send-email-bbolli@ewanet.ch>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/3cMjwB1Zt81de8uUTRxn0.p";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 2/2] Fix a signed/unsigned comparison warning.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 21:44:42 -0000

--Sig_/3cMjwB1Zt81de8uUTRxn0.p
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Beat!

Fix now in git head.  It should really be size_t.

On Wed,  9 May 2012 23:25:43 +0200
Beat Bolli <bbolli@ewanet.ch> wrote:

> ---
>  ntpshm.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> diff --git a/ntpshm.c b/ntpshm.c
> index 6a6f741..ebbf625 100644
> --- a/ntpshm.c
> +++ b/ntpshm.c
> @@ -451,7 +451,7 @@ static int init_kernel_pps(struct gps_device_t
> *session) { int ldisc =3D 18;   /* the PPS line discipline */
>      pps_params_t pp;
>      glob_t globbuf;
> -    int i;
> +    unsigned int i;
>      char pps_num =3D 0;     /* /dev/pps[pps_num] is our device */
>      char path[GPS_PATH_MAX] =3D "";
> =20




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

--Sig_/3cMjwB1Zt81de8uUTRxn0.p
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+q5TEACgkQBmnRqz71OvPOQwCglR7JHC+2o4Ti1TfzDREREMNZ
2eMAnRIqG5S8HByeeLryOFJ85co4DwTA
=T08c
-----END PGP SIGNATURE-----

--Sig_/3cMjwB1Zt81de8uUTRxn0.p--


From MAILER-DAEMON Wed May 09 17:46:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSEiQ-0000uo-AQ
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 17:46:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53809)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSEiN-0000uR-2P
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:46:32 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSEiL-0001k8-91
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:46:30 -0400
Received: from catbert.rellim.com ([204.17.205.1]:38224)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSEiK-0001k2-TT
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 17:46:29 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q49LkOK2015247
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 9 May 2012 14:46:25 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q49LkOK2015247
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336599985; bh=l2BpXRXo2xlcK266zWIxUUDFxBO5agRoTODQGu1Hvn4=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=f+saRRt4HmbMP8X8JlcAj0cvIZGYWxBqyJlqc4ME2Hp/ZMHHVUZ9sVNOsUH3kLSHg
	Yy1Ku/pLu1qG1v5a/cfbw==
Date: Wed, 9 May 2012 14:46:21 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120509144621.4c5cef45.gem@rellim.com>
In-Reply-To: <1336598743-2693-1-git-send-email-bbolli@ewanet.ch>
References: <1336598743-2693-1-git-send-email-bbolli@ewanet.ch>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/9uL4TPDq2OBWmKUupkf7TST";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH 1/2] Typo fixes.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 21:46:32 -0000

--Sig_/9uL4TPDq2OBWmKUupkf7TST
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Beat!

Nice catch.  Fix now in git head.

On Wed,  9 May 2012 23:25:42 +0200
Beat Bolli <bbolli@ewanet.ch> wrote:

> ---
>  gpsd.xml |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>=20
> diff --git a/gpsd.xml b/gpsd.xml
> index fc11387..0307c18 100644
> --- a/gpsd.xml
> +++ b/gpsd.xml
> @@ -154,8 +154,8 @@ commands that edit the daemon's internal device
> list.</para> <term>-b</term>
>  <listitem><para>Broken-device-safety mode, otherwise known as
>  read-only mode. A few bluetooth and USB receivers lock up or become
> -totally inaccessible when probed or reconfigured; thee the hardware
> -compatibiklity list on the GPSD project website for details. This
> +totally inaccessible when probed or reconfigured; see the hardware
> +compatibility list on the GPSD project website for details. This
>  switch prevents gpsd from writing to a receiver.  This means that
>  <application>gpsd</application> cannot configure the receiver for
>  optimal performance, but it also means that




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

--Sig_/9uL4TPDq2OBWmKUupkf7TST
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+q5bAACgkQBmnRqz71OvNNBwCgsRD1CqVcCEzHUMNCQfY1tGsv
gjsAn18dWKdJeeTlc9V1EWbCFJ8vWawS
=R/Wr
-----END PGP SIGNATURE-----

--Sig_/9uL4TPDq2OBWmKUupkf7TST--


From MAILER-DAEMON Wed May 09 18:45:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSFd2-00021R-Ol
	for mharc-gpsd-dev@gnu.org; Wed, 09 May 2012 18:45:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48368)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSFcz-0001ys-8F
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 18:45:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSFcx-0000iC-0c
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 18:45:00 -0400
Received: from catbert.rellim.com ([204.17.205.1]:46376)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SSFcw-0000he-Fw
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 18:44:58 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q49MirjQ017884
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 9 May 2012 15:44:54 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q49MirjQ017884
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1336603495; bh=yMVbELL0IQr4sVnsODOW4asr2sohZ4qybOGg5+aY0+8=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=Gwn8GTf2swKdnud8yfU+ZRTlxoM6rLPslV2JCUVBN1MVqyd6fP9/YyagkmQF8iyXd
	O/FDI9aI0ufq5aVEViYRg==
Date: Wed, 9 May 2012 15:44:50 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: admin@orionet.ru
Message-ID: <20120509154450.1e47b9cc.gem@rellim.com>
In-Reply-To: <4FAA3971.10905@orionet.ru>
References: <4F2C3CD4.9020209@rambler.ru> <4FA99284.5090500@rambler.ru>
	<20120509071339.GA31424@thyrsus.com> <4FAA3971.10905@orionet.ru>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/D76AdR3w6C28lDvH4Yegd55";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: littlesavage@orionet.ru, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] subframe decoding fixes
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 22:45:02 -0000

--Sig_/D76AdR3w6C28lDvH4Yegd55
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Alexey!

On Wed, 09 May 2012 13:31:29 +0400
Alexey Illarionov <littlesavage@orionet.ru> wrote:

> Yet another typos.

Good catch.  Patch now in git head.

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

--Sig_/D76AdR3w6C28lDvH4Yegd55
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+q82UACgkQBmnRqz71OvMP3wCgmJvzValR7FpwjwyC9WPqd/cZ
a64AoOTpyTTAzlYHv20b5un5IFNZOro7
=Lx4g
-----END PGP SIGNATURE-----

--Sig_/D76AdR3w6C28lDvH4Yegd55--


From MAILER-DAEMON Thu May 10 02:40:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSN30-0000cr-OR
	for mharc-gpsd-dev@gnu.org; Thu, 10 May 2012 02:40:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48914)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSN2s-0000ap-Vm
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 02:40:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSN2l-0001ns-Tq
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 02:40:14 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:41189 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSN2l-0001m4-Pt
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 02:40:07 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 8169540478; Thu, 10 May 2012 02:39:54 -0400 (EDT)
Date: Thu, 10 May 2012 02:39:54 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Dave Hart <hart@ntp.org>
Message-ID: <20120510063954.GA12589@thyrsus.com>
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120507035046.GA16848@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
	<20120508050203.GA23585@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C5AF@ts-exchange.ts.drs.master>
	<CAMbSiYDkRt8L0BLQccvpH-6N5PWgTGR8zubg-YU0-+ric56YvA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAMbSiYDkRt8L0BLQccvpH-6N5PWgTGR8zubg-YU0-+ric56YvA@mail.gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: "Bywater, Rick \(SA-1\)" <rbywater@drs-ts.com>, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 10 May 2012 06:40:20 -0000

Dave Hart <hart@ntp.org>:
> Coverity analyzes ntp-dev at one of its highest (pickiest) levels as
> part of the Scan initiative, but we don't get detailed reports in text
> logs or emails -- we have to sign into a website and drill into each
> defect in turn.  It's not as bad as it sounds -- they serve up the
> source code as well as the defects in a useful way, and allow
> colloboration in comments and tracking (such as marking a defect as a
> false positive).

I know.  I got to do it that way once, in 2007, but Coverity has been
difficult and unresponsive since.  
 
> My advice is to try again/harder to work with Coverity to setup or
> restore access for key gpsd developers to their Scan portal website,
> and if needed, get them tracking your head or at least your release
> tarballs -- that is, using automation to build a snapshot every
> release or every few days, the results of each archived to dig into
> on-demand using the portal.

I'd love to have things set up that way, but since 2007 my repeated attempts
to engage Coverity have been fruitless.  I've had severe difficulty with
long delays in getting anyone to answer my mail. I have found the procedures
documentation on their websiteto be scanty and confusing.

> The human I have dealt with regarding Scan in the past, David Maxwell,
> is no longer working for Coverity, based on the bounces
> dmaxwell@coverity.com elicits.

Well, that explains why *he* hasn't answered my mail in months... :-(
He was my last contact there.

>                                 http://scan.coverity.com/about.html
> has several email aliases you might try instead.

I'll try, but previous experience does not fill me with optimism.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu May 10 03:00:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSNMj-0004KP-3g
	for mharc-gpsd-dev@gnu.org; Thu, 10 May 2012 03:00:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32889)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSNMc-0004KE-Pv
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 03:00:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSNMY-0001EX-0v
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 03:00:38 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:41353 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSNMX-0001EK-TJ
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 03:00:33 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 4413D40478; Thu, 10 May 2012 03:00:24 -0400 (EDT)
Date: Thu, 10 May 2012 03:00:24 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Dave Taht <dave.taht@gmail.com>
Message-ID: <20120510070024.GA12704@thyrsus.com>
References: <mailman.391.1336545809.1742.thumbgps-devel@lists.bufferbloat.net>
	<20120509181427.GA2410@thyrsus.com>
	<CAA93jw6DkZTC0rqABOa7YtXDeDCv9mQNowLEGrkzLhssuP28sQ@mail.gmail.com>
	<20120510061943.GB12435@thyrsus.com>
	<CAA93jw5JhLaTxxuTsgnhPqWkqGqTgnOgoQ0sMHxGWsHXEYRsiA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAA93jw5JhLaTxxuTsgnhPqWkqGqTgnOgoQ0sMHxGWsHXEYRsiA@mail.gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org,
	veronica <veronica@navisys.com.tw>, tcf@navisys.com.tw,
	cjy@navisys.com.tw, gloria@navisys.com.tw, lily <lily@navisys.com.tw>
Subject: [gpsd-dev] Improving the GPSD logo?
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 10 May 2012 07:00:43 -0000

Dave Taht <dave.taht@gmail.com>:
> As much as I like tux, gpsd runs on everything, so does codel, so
> we can lose the penguin...

I'm not really attached to the penguin.  The GPSD logo looks the way
it does because I'm not a visual artist - I swiped that image from a
defunct open-source project (some kind of solver library that I only
vaguely remember) removed some obtrusive text from Tux's tummy, and
fixed up some other details.

Trouble is, I haven't thought up anything compelling to replace it -
nor has anyone made a better suggestion.  The Open Source logo is a
flat graphic that wouldn't mix well visually with an image of a GPS
satellite.

Copying this to the GPSD dev list, maybe someone there will have a
creative brainstorm....
--
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu May 10 03:42:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSO1O-0000EU-F0
	for mharc-gpsd-dev@gnu.org; Thu, 10 May 2012 03:42:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46392)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSO1M-0000EH-Ez
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 03:42:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSO1G-0001Hb-ES
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 03:42:44 -0400
Received: from smtp1.mail.fcom.ch ([212.60.46.170]:37720)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SSO1G-0001HI-7V
	for gpsd-dev@nongnu.org; Thu, 10 May 2012 03:42:38 -0400
Received: from smtp1.mail.fcom.ch (localhost [127.0.0.1])
	by smtp1 (Postfix) with ESMTP id 75EA1359C0
	for <gpsd-dev@nongnu.org>; Thu, 10 May 2012 09:42:34 +0200 (CEST)
Received: from drbeat.li (193-32-60-212-pool.cable.fcom.ch [212.60.32.193])
	by smtp1 (Postfix) with ESMTPS id 46331359B1
	for <gpsd-dev@nongnu.org>; Thu, 10 May 2012 09:42:34 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id 7708917F0A; Thu, 10 May 2012 09:42:33 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Thu, 10 May 2012 09:42:33 +0200
Message-Id: <1336635753-3881-1-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.10
X-AV-Checked: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.60.46.170
Subject: [gpsd-dev] [PATCH] Fix a block nesting error in the Garmin driver.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 10 May 2012 07:42:45 -0000

Introduced in commit 470b53e846f13ab1c660cd05fe901d1e801df4e3.
---
 driver_garmin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/driver_garmin.c b/driver_garmin.c
index 1bddabb..b41b3fe 100644
--- a/driver_garmin.c
+++ b/driver_garmin.c
@@ -932,10 +932,10 @@ static bool garmin_usb_detect(struct gps_device_t *session UNUSED)
 	// expect no return packet !?
 
 	return true;
-    }
 #else
 	return false;
 #endif /* HAVE_LIBUSB */
+    }
 #else
     return false;
 #endif /* __linux__ || S_SPLINT_S */
-- 
1.7.10


From MAILER-DAEMON Thu May 10 11:57:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSVkL-0001JY-IB
	for mharc-gpsd-dev@gnu.org; Thu, 10 May 2012 11:57:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38689)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==4764003061c==rbywater@drs-ts.com>)
	id 1SSBtD-0004dY-Iq
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 14:45:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <btv1==4764003061c==rbywater@drs-ts.com>)
	id 1SSBtB-0001NK-3X
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 14:45:31 -0400
Received: from smtp.drs-ts.com ([4.79.116.89]:59205)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btv1==4764003061c==rbywater@drs-ts.com>)
	id 1SSBtA-0001Mn-7s
	for gpsd-dev@nongnu.org; Wed, 09 May 2012 14:45:29 -0400
X-ASG-Debug-ID: 1336589123-032e3c0eb25e7ab0002-tzOsvG
Received: from ts-exchange.ts.drs.master (ts-exchange.ts.drs.master
	[10.60.10.15]) by smtp.drs-ts.com with ESMTP id
	Qe7g2MOF8zeQqWHA; Wed, 09 May 2012 14:45:23 -0400 (EDT)
X-Barracuda-Envelope-From: rbywater@drs-ts.com
X-ASG-Whitelist: Client
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Wed, 9 May 2012 14:45:16 -0400
X-ASG-Orig-Subj: RE: [gpsd-dev] wsg_separation Issue
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
	micalg=SHA1; boundary="----=_NextPart_000_0284_01CD2DF2.4FAF8190"
Message-ID: <88E85DB4F8A48A4BA90D92ACA3C4561809F8C8DB@ts-exchange.ts.drs.master>
In-Reply-To: <CAMbSiYDkRt8L0BLQccvpH-6N5PWgTGR8zubg-YU0-+ric56YvA@mail.gmail.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [gpsd-dev] wsg_separation Issue
Thread-Index: Ac0uCuzRHZ3gn5asSF6GypxJK6CYxQAB/l6g
References: <88E85DB4F8A48A4BA90D92ACA3C4561809F8BF76@ts-exchange.ts.drs.master>
	<20120507035046.GA16848@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C281@ts-exchange.ts.drs.master>
	<20120508050203.GA23585@thyrsus.com>
	<88E85DB4F8A48A4BA90D92ACA3C4561809F8C5AF@ts-exchange.ts.drs.master>
	<CAMbSiYDkRt8L0BLQccvpH-6N5PWgTGR8zubg-YU0-+ric56YvA@mail.gmail.com>
From: "Bywater, Rick (SA-1)" <rbywater@drs-ts.com>
To: "Dave Hart" <hart@ntp.org>
X-Barracuda-Connect: ts-exchange.ts.drs.master[10.60.10.15]
X-Barracuda-Start-Time: 1336589123
X-Barracuda-URL: http://4.79.116.89:8000/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at drs-ts.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 4.79.116.89
X-Mailman-Approved-At: Thu, 10 May 2012 11:57:37 -0400
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 09 May 2012 18:45:33 -0000

This is a multi-part message in MIME format.

------=_NextPart_000_0284_01CD2DF2.4FAF8190
Content-Type: multipart/mixed;
	boundary="----=_NextPart_001_0285_01CD2DF2.4FAF8190"


------=_NextPart_001_0285_01CD2DF2.4FAF8190
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Understood.

I have attached a tarfile which contains the *.errors.xml files which
Coverity generates detailing the issues and locations.  These are the much
less pleasant to work with than their Coverity Integrity Manager web
interface.  However, they do detail the issues and where they are found,
including filename and line number.  So, failing restoration of access to
Coverity's site, you can at least use these to identify and address the
issues.

Thanks,
Rick

-----Original Message-----
From: Dave Hart [mailto:hart@ntp.org]=20
Sent: Wednesday, May 09, 2012 1:41 PM
To: Bywater, Rick (SA-1)
Cc: esr@thyrsus.com; gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] wsg_separation Issue

On Tue, May 8, 2012 at 2:33 PM, Bywater, Rick (SA-1) <rbywater@drs-ts.com>
wrote:
> Eric,
>
> I looked into the clock_gettime issue a bit more. =A0I am not sure why,=
=20
> but scons did not configure correctly. =A0I re-ran it with=20
> --config=3Dforce and it built clean. =A0So, I re-ran Coverity with the=20
> corrected build. =A0You can find the new results attached.

The second logfile had a summary with counts of each class of putative
defect identified, but what's really needed is the blow-by-blow for each
defect giving the line(s) of code involved and the relevant identifiers
(such as variable names for uninitialized use).

Coverity analyzes ntp-dev at one of its highest (pickiest) levels as part of
the Scan initiative, but we don't get detailed reports in text logs or
emails -- we have to sign into a website and drill into each defect in turn.
It's not as bad as it sounds -- they serve up the source code as well as the
defects in a useful way, and allow colloboration in comments and tracking
(such as marking a defect as a false positive).

My advice is to try again/harder to work with Coverity to setup or restore
access for key gpsd developers to their Scan portal website, and if needed,
get them tracking your head or at least your release tarballs -- that is,
using automation to build a snapshot every release or every few days, the
results of each archived to dig into on-demand using the portal.

The human I have dealt with regarding Scan in the past, David Maxwell, is no
longer working for Coverity, based on the bounces dmaxwell@coverity.com
elicits.  http://scan.coverity.com/about.html
has several email aliases you might try instead.

Cheers,
Dave Hart

NOTICE: This e-mail transmission (and/or the attachments accompanying it) m=
ay contain confidential or proprietary information belonging to DRS Technol=
ogies or the sender. The information is only for the use of the intended re=
cipient. If you are not the intended recipient you are hereby notified that=
 any disclosure, copying, distribution or the taking of any action in relia=
nce on the contents of this information is strictly prohibited. Any unautho=
rized interception of this transmission is illegal under the law. If you ha=
ve received this transmission in error, please promptly notify the sender b=
y reply e-mail, and then destroy all copies of the transmission.

"This (document/presentation) may contain technical data as defined in the =
International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of t=
his material is restricted by the Arms Export Control Act (22 U.S.C. 2751 e=
t seq.) and may not be exported to foreign persons without prior written ap=
proval from the U.S. Department of State."

------=_NextPart_001_0285_01CD2DF2.4FAF8190
Content-Type: application/x-compressed;
	name="errors.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="errors.tgz"

H4sIAES5qk8AA+29f3vb1pE2nL/zKdh/unLWoQAc/Kwc90pjt+unrpPG8T7d
7dOLFwRCEmISZAFQsZLX3/2dmQNSkgkQEEAAB/Jot7FMSubgnDlz7pm5Z+ZP
376YvX31vy+///M0TJJVkk4/LBdfHPdLgy/bNOlP+Pr0T6Hb9he67liGYdim
o3+h6cJwxBcT7chyFH5t0sxPJpMvktUqO/RzVe+P9OsZ7frzL58FV2HwPkye
/2mnEM9Ot699+ewiWoTPT5dxdprOz/XTy3U6//oq9Of03ezndBVPg2en9FPw
w5s4yKJV/Bxfn8WrKA1n881yDT+wfefLZ2mwSsLnuqY9O5XffvlslczDJJw/
v/AXafjsdPvXL5+F12GcwZ9LP4qfZ8kG3qRvv3yW+ZfPz/35LI1+DVcXz07x
718+m4dpkERr+qTfvltdv36bJb9d6x9/+8l/H8WXk+wqnOBvTFYXk/UqirMw
maz9xF+G+N1v2sdJlE7STbqOgmi1Sacff/v9vzer7CwJ14sb+e3Hj89O737M
l88WURw+Nxz92Sl99+Wz063Y4Ycs8Z/TL8OL9Bd4/s154Gfh5Sq5eR6vYnik
u6/gb+cb03iDeG/U3Zu6hydbX3822yM0ZbaHd6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Fgq9Kk/nQVpROMwIG5jONVNjkPJ4kEUH9AU7qznHCDnPwO
n3OWhtks8X852cLAJ9Pp9KBl9MopQEcJRNbdoXtUWN6mTrdp6IPMX/zFX/zF
X/zFX/zFX/zFX/zFX/zFX/zFX/zFX/zFX/zFX/yVf/3/xUq3dAD4EQA=

------=_NextPart_001_0285_01CD2DF2.4FAF8190--

------=_NextPart_000_0284_01CD2DF2.4FAF8190
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH
AQAAoIIUHDCCBDYwggMeoAMCAQICAQEwDQYJKoZIhvcNAQEFBQAwbzELMAkG
A1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3Qg
RXh0ZXJuYWwgQ0EgUm9vdDAeFw0wMDA1MzAxMDQ4MzhaFw0yMDA1MzAxMDQ4
MzhaMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQG
A1UECxMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMT
GUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUA
A4IBDwAwggEKAoIBAQC39xoz5vIABC054E5b7R+8bA/Ntfojts7emxEzl6Qp
TH2Tn71KvJPtAxrjj8/lbVBa1pcplFqAsEl62y6V/bjKvzc4LR4+kUGtcFbH
8E8/6DKedMrIkFTpxl8PeJ2aQDwOrGGqXhSPnoehalDc15pOrwWzpnGUnHGz
UGAKxxOdOAeGAqjpqGkmGJCrTLBPI6s6T4TY386f4Wlvu9dC12tE5Met7m1B
X3JacQg3s3llpFmglDf3AC8N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SqGSIb3DQEBAQUABIIBABRG
PQdEoxsEpqq9je4TlIfwhnrbge700C6SqO4EnU7ytTql5RCCGbotg8njBrqb
nU70KyviaNVwmgBGCz1n4kc2wxiTiMkvfsfuEIpikrzOYyys+tohJmqfa/8A
PWKE6hCUoh2wpUMBqrU9BrRNF2DrOH5eZjlgBlpEaaej47c0Gf5YrP4dh3jL
H2FVeGlXNm+QCd0v/+LZuF77wkFvEegOz8h0kL+r6Z3trVnX78/Xf7f/FOco
XX6bpxBotfJL36ssMmnLcI61t7evRvjvZqEewjwR8FWJ3b/ieow/g/cB+Qbc
uVjLRQs/T+0IZi23xPqOtWKcmqmcLT7Y2PZXwdkAAAAAAAA=

------=_NextPart_000_0284_01CD2DF2.4FAF8190--


From MAILER-DAEMON Fri May 11 11:54:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSsB9-0003yB-NT
	for mharc-gpsd-dev@gnu.org; Fri, 11 May 2012 11:54:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45537)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SSsB1-0003wr-Ih
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 11:54:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SSsAv-000340-Qj
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 11:54:43 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:45920)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SSsAv-0002oZ-Gk
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 11:54:37 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id F274D600034
	for <gpsd-dev@nongnu.org>; Fri, 11 May 2012 16:54:05 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WiUFp+l3l-lc for <gpsd-dev@nongnu.org>;
	Fri, 11 May 2012 16:53:53 +0100 (IST)
Received: from [192.168.5.183] (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id C9E6D60001A
	for <gpsd-dev@nongnu.org>; Fri, 11 May 2012 16:53:51 +0100 (IST)
Message-ID: <4FAD3624.9020202@gna.org>
Date: Fri, 11 May 2012 16:54:12 +0100
From: Christian Gagneraud <chgans@gna.org>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120421 Thunderbird/12.0
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: multipart/mixed; boundary="------------010400020601020200030601"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] [PATCH] AIS: Fix JSON writer for the met/hydro message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 11 May 2012 15:54:49 -0000

This is a multi-part message in MIME format.
--------------010400020601020200030601
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

The attached patch fixes some typos in the JSON generation.
I've spotted the errors while testing an AtoN with a PB200 for 
broadcasting met/hydro message (Type 8, DAC 1, FID 31)
Once I'm happy with the results I will propose regression test files for 
this message.

High five!

Chris.

--------------010400020601020200030601
Content-Type: text/x-patch;
 name="ais-fix-json-writer-for-the-me.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="ais-fix-json-writer-for-the-me.patch"

[AIS] Fix JSON writer for the met/hydro message

From: Christian Gagneraud <chris@techworks.ie>


---

 gpsd_json.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


diff --git a/gpsd_json.c b/gpsd_json.c
index d485b1a..f38757b 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -2063,12 +2063,12 @@ void json_aivdm_dump(const struct ais_t *ais,
 		/* layout is almost identical to FID=31 from IMO289 */
 		if (scaled)
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "{\"lat\":%.3f,\"lon\":%.3f,",
+				   "\"lat\":%.3f,\"lon\":%.3f,",
 				   ais->type8.dac1fid31.lat / AIS_LATLON3_SCALE,
 				   ais->type8.dac1fid31.lon / AIS_LATLON3_SCALE);
 		else
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "{\"lat\":%d,\"lon\":%d,",
+				   "\"lat\":%d,\"lon\":%d,",
 				   ais->type8.dac1fid31.lat,
 				   ais->type8.dac1fid31.lon);
 		if (ais->type8.fid == 31)
@@ -2078,7 +2078,7 @@ void json_aivdm_dump(const struct ais_t *ais,
 		(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
 			       "\"timestamp\":\"%02uT%02u:%02uZ\","
 			       "\"wapeed\":%u,\"wgust\":%u,\"wdir\":%u,"
-			       "\"wgustdir\":%u,\"humidity\":%u",
+			       "\"wgustdir\":%u,\"humidity\":%u,",
 			       ais->type8.dac1fid31.day,
 			       ais->type8.dac1fid31.hour,
 			       ais->type8.dac1fid31.minute,
@@ -2112,7 +2112,7 @@ void json_aivdm_dump(const struct ais_t *ais,
 				   ais->type8.dac1fid31.visibility * 0.1);
 		else
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "\"visibility\":%u,:",
+				   "\"visibility\":%u,",
 				   ais->type8.dac1fid31.visibility);
 		if (!scaled)
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
@@ -2120,11 +2120,11 @@ void json_aivdm_dump(const struct ais_t *ais,
 				   ais->type8.dac1fid31.waterlevel);
 		else if (ais->type8.fid == 31)
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "\"waterlevel\":%.1f,:",
+				   "\"waterlevel\":%.1f,",
 				   ais->type8.dac1fid31.waterlevel * 0.01);
 		else
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "\"waterlevel\":%.1f,:",
+				   "\"waterlevel\":%.1f,",
 				   ais->type8.dac1fid31.waterlevel * 0.1);
 
 		if (scaled) {
@@ -2140,7 +2140,7 @@ void json_aivdm_dump(const struct ais_t *ais,
 		    };
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
 				   "\"leveltrend\":\"%s\","
-				   "\"cspeed\":%.1f,\"cdir\":%u"
+				   "\"cspeed\":%.1f,\"cdir\":%u,"
 				   "\"cspeed2\":%.1f,\"cdir2\":%u,\"cdepth2\":%u,"
 				   "\"cspeed3\":%.1f,\"cdir3\":%u,\"cdepth3\":%u,"
 				   "\"waveheight\":%.1f,\"waveperiod\":%u,\"wavedir\":%u,"

--------------010400020601020200030601--


From MAILER-DAEMON Fri May 11 11:57:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSsDt-0004H1-Eb
	for mharc-gpsd-dev@gnu.org; Fri, 11 May 2012 11:57:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45520)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SSsDl-0004GW-Jl
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 11:57:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SSsDf-0003Yl-Q4
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 11:57:33 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:45951)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SSsDf-0003YX-GU
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 11:57:27 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id ECEAF600034
	for <gpsd-dev@nongnu.org>; Fri, 11 May 2012 16:57:25 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 7Q7LluUrC2cw for <gpsd-dev@nongnu.org>;
	Fri, 11 May 2012 16:57:24 +0100 (IST)
Received: from [192.168.5.183] (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id CEB21600007
	for <gpsd-dev@nongnu.org>; Fri, 11 May 2012 16:57:23 +0100 (IST)
Message-ID: <4FAD3704.7030701@gna.org>
Date: Fri, 11 May 2012 16:57:56 +0100
From: Christian Gagneraud <chgans@gna.org>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120421 Thunderbird/12.0
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: multipart/mixed; boundary="------------060800020407060408080202"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] [PATCH] [RESEND] AIS: Fix JSON writer for the met/hydro
	message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 11 May 2012 15:57:39 -0000

This is a multi-part message in MIME format.
--------------060800020407060408080202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Sorry, but i sent the patch without the description and the signature, 
so here it is again.

Chris

Hi,

The attached patch fixes some typos in the JSON generation.
I've spotted the errors while testing an AtoN with a PB200 for 
broadcasting met/hydro message (Type 8, DAC 1, FID 31)
Once I'm happy with the results I will propose regression test files for 
this message.

High five!

Chris.


--------------060800020407060408080202
Content-Type: text/x-patch;
 name="ais-fix-json-writer-for-the-me.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="ais-fix-json-writer-for-the-me.patch"

[AIS] Fix JSON writer for the met/hydro message

This patch fixes some typos in the JSON generation.
I've spotted the error while testing an AtoN with a PB200 for broadcasting met/hydro message (Type 8, DAC 1, FID 31)
Once I'm happy with the results I will propose regression test files for this message.

Signed-off-by: Christian Gagneraud <chgans@gna.org>
---

 gpsd_json.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


diff --git a/gpsd_json.c b/gpsd_json.c
index d485b1a..f38757b 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -2063,12 +2063,12 @@ void json_aivdm_dump(const struct ais_t *ais,
 		/* layout is almost identical to FID=31 from IMO289 */
 		if (scaled)
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "{\"lat\":%.3f,\"lon\":%.3f,",
+				   "\"lat\":%.3f,\"lon\":%.3f,",
 				   ais->type8.dac1fid31.lat / AIS_LATLON3_SCALE,
 				   ais->type8.dac1fid31.lon / AIS_LATLON3_SCALE);
 		else
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "{\"lat\":%d,\"lon\":%d,",
+				   "\"lat\":%d,\"lon\":%d,",
 				   ais->type8.dac1fid31.lat,
 				   ais->type8.dac1fid31.lon);
 		if (ais->type8.fid == 31)
@@ -2078,7 +2078,7 @@ void json_aivdm_dump(const struct ais_t *ais,
 		(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
 			       "\"timestamp\":\"%02uT%02u:%02uZ\","
 			       "\"wapeed\":%u,\"wgust\":%u,\"wdir\":%u,"
-			       "\"wgustdir\":%u,\"humidity\":%u",
+			       "\"wgustdir\":%u,\"humidity\":%u,",
 			       ais->type8.dac1fid31.day,
 			       ais->type8.dac1fid31.hour,
 			       ais->type8.dac1fid31.minute,
@@ -2112,7 +2112,7 @@ void json_aivdm_dump(const struct ais_t *ais,
 				   ais->type8.dac1fid31.visibility * 0.1);
 		else
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "\"visibility\":%u,:",
+				   "\"visibility\":%u,",
 				   ais->type8.dac1fid31.visibility);
 		if (!scaled)
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
@@ -2120,11 +2120,11 @@ void json_aivdm_dump(const struct ais_t *ais,
 				   ais->type8.dac1fid31.waterlevel);
 		else if (ais->type8.fid == 31)
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "\"waterlevel\":%.1f,:",
+				   "\"waterlevel\":%.1f,",
 				   ais->type8.dac1fid31.waterlevel * 0.01);
 		else
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
-				   "\"waterlevel\":%.1f,:",
+				   "\"waterlevel\":%.1f,",
 				   ais->type8.dac1fid31.waterlevel * 0.1);
 
 		if (scaled) {
@@ -2140,7 +2140,7 @@ void json_aivdm_dump(const struct ais_t *ais,
 		    };
 		    (void)snprintf(buf + strlen(buf), buflen - strlen(buf),
 				   "\"leveltrend\":\"%s\","
-				   "\"cspeed\":%.1f,\"cdir\":%u"
+				   "\"cspeed\":%.1f,\"cdir\":%u,"
 				   "\"cspeed2\":%.1f,\"cdir2\":%u,\"cdepth2\":%u,"
 				   "\"cspeed3\":%.1f,\"cdir3\":%u,\"cdepth3\":%u,"
 				   "\"waveheight\":%.1f,\"waveperiod\":%u,\"wavedir\":%u,"

--------------060800020407060408080202--


From MAILER-DAEMON Fri May 11 15:28:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSvVQ-0000Ft-Ph
	for mharc-gpsd-dev@gnu.org; Fri, 11 May 2012 15:28:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43727)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jon.schlueter@gmail.com>) id 1SSvVO-0000Fn-If
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 15:27:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jon.schlueter@gmail.com>) id 1SSvVM-0000rU-UM
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 15:27:58 -0400
Received: from mail-vb0-f45.google.com ([209.85.212.45]:50571)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jon.schlueter@gmail.com>) id 1SSvVM-0000r7-NT
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 15:27:56 -0400
Received: by vbbfn1 with SMTP id fn1so2392743vbb.4
	for <gpsd-dev@nongnu.org>; Fri, 11 May 2012 12:27:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=3AfkER3gxU6HMPLN2bnwG2niHI2rB+iaQou1CmE6LZk=;
	b=wocexr53iDsfXZWe3AK5pjSQWTuXB6941xocWp+uTVVp3QBQBubWZYCW2CQ1TfhfSf
	laXKC6evADWq5e8soOYD1xC4MWfjck93+aH5WotQ+XHDVj+6jBFp4oMW6Gobh73ZvDhH
	4bMvokf285gJsr5dKGxE7f+31BN07oHb85RaDLYWioLVU0g14CLePzY/MqHZTTmJ0Tik
	4vNn+//UbrKal74jmZpCt9qyPkIucNttIBeyK+kPrrfEjdPRoZFZ2dQJJhjMvSN3ksc1
	pnXbVMEWwz7lmN7izP1VB9/mTEDmA6Q+ABYcS5v3wexEZqi6m+iL6ksbR8Z+xKtZHz3S
	4pgg==
MIME-Version: 1.0
Received: by 10.52.75.105 with SMTP id b9mr4650524vdw.26.1336764474278; Fri,
	11 May 2012 12:27:54 -0700 (PDT)
Received: by 10.220.107.201 with HTTP; Fri, 11 May 2012 12:27:54 -0700 (PDT)
Date: Fri, 11 May 2012 15:27:54 -0400
Message-ID: <CAOSy7+-dW3GeFmFdZs4TEGxPZXjz-DxW006FWfvxA73bOfktuQ@mail.gmail.com>
From: Jon Schlueter <jon.schlueter@gmail.com>
To: gpsd-dev list <gpsd-dev@nongnu.org>
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.212.45
Subject: [gpsd-dev]  possible driver_ubx runtime bug introduced
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 11 May 2012 19:27:59 -0000

I was looking back through commits and noticed that the ubx_write
parameters changed even though the commit should have been just a
coverty warning fixup.  This change could result in a very subtle run
time bug in probing/setting up a UBX gps.  I don't have one to check
with but thought I should bring it up on the list.

Jon Schlueter

9d7dc31b595b91aeb258faca459909b0b5b7965e

@@ -714,7 +714,7 @@ static bool ubx_speed(struct gps_device_t *session,
 	usart_mode |= 0x2000;	/* zero value means 1 stop bit */
     putle32(buf, 4, usart_mode);
     putle32(buf, 8, speed);
-    (void)ubx_write(session, 0x06, 0x00, &buf[6], 20);	/* send back
with all other settings intact */
+    (void)ubx_write(session, 0x06, 0x00, buf, sizeof(buf));	/* send
back with all other settings intact */
     /*@ -charint +usedef +compdef */
     return true;
 }

also

dbf6d322945e68fce36afd6dba75ab56d60b0c86

@@ -676,7 +675,7 @@ static void ubx_nmea_mode(struct gps_device_t
*session, int mode)
 	buf[14] |= 0x01;	/* turn on UBX output on this port */
     }
     /*@ -charint +usedef @*/
-    (void)ubx_write(session, 0x06u, 0x00, &buf[6], 20);	/* send back
with all other settings intact */
+    (void)ubx_write(session, 0x06u, 0x00, buf, sizeof(buf));	/* send
back with all other settings intact */
 }


From MAILER-DAEMON Fri May 11 16:57:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SSwtY-0004En-1F
	for mharc-gpsd-dev@gnu.org; Fri, 11 May 2012 16:57:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39853)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSwtV-0004EK-1i
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 16:56:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSwtS-0001CX-Vx
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 16:56:56 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:52856 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SSwtS-0001C9-QJ
	for gpsd-dev@nongnu.org; Fri, 11 May 2012 16:56:54 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id B254F40478; Fri, 11 May 2012 16:56:42 -0400 (EDT)
Date: Fri, 11 May 2012 16:56:42 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Jon Schlueter <jon.schlueter@gmail.com>
Message-ID: <20120511205642.GA21057@thyrsus.com>
References: <CAOSy7+-dW3GeFmFdZs4TEGxPZXjz-DxW006FWfvxA73bOfktuQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAOSy7+-dW3GeFmFdZs4TEGxPZXjz-DxW006FWfvxA73bOfktuQ@mail.gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev list <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] possible driver_ubx runtime bug introduced
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 11 May 2012 20:56:58 -0000

Jon Schlueter <jon.schlueter@gmail.com>:
> I was looking back through commits and noticed that the ubx_write
> parameters changed even though the commit should have been just a
> coverty warning fixup.  This change could result in a very subtle run
> time bug in probing/setting up a UBX gps.  I don't have one to check
> with but thought I should bring it up on the list.
> 
> Jon Schlueter
> 
> 9d7dc31b595b91aeb258faca459909b0b5b7965e
> 
> @@ -714,7 +714,7 @@ static bool ubx_speed(struct gps_device_t *session,
>  	usart_mode |= 0x2000;	/* zero value means 1 stop bit */
>      putle32(buf, 4, usart_mode);
>      putle32(buf, 8, speed);
> -    (void)ubx_write(session, 0x06, 0x00, &buf[6], 20);	/* send back
> with all other settings intact */
> +    (void)ubx_write(session, 0x06, 0x00, buf, sizeof(buf));	/* send
> back with all other settings intact */
>      /*@ -charint +usedef +compdef */
>      return true;
>  }
> 
> also
> 
> dbf6d322945e68fce36afd6dba75ab56d60b0c86
> 
> @@ -676,7 +675,7 @@ static void ubx_nmea_mode(struct gps_device_t
> *session, int mode)
>  	buf[14] |= 0x01;	/* turn on UBX output on this port */
>      }
>      /*@ -charint +usedef @*/
> -    (void)ubx_write(session, 0x06u, 0x00, &buf[6], 20);	/* send back
> with all other settings intact */
> +    (void)ubx_write(session, 0x06u, 0x00, buf, sizeof(buf));	/* send
> back with all other settings intact */
>  }

This semantic change was intentional.  If you look at the definition of buf,

    unsigned char buf[sizeof(session->driver.ubx.original_port_settings)];

and then at the definition of session->driver.ubx.original_port_settings) in
gpsd.h

    unsigned char original_port_settings[20];

it's only 20 characters long.  Thus, the old code would skip 6 chars
from the start of the buffer and write 6 characters from the stack
past the end of the buf auto variable.  This what Coverity rightly
identified as a static buffer overrun.

This code has been broken for a long time.  There's a bug in the TODO
noting that UBX mode change doesn't work and I'm pretty certain this
is why.

I think what happened here was confusion between whole messages and
payloads.  uBlox messages have a six-character prefix (2 header bytes,
message class, message type, 2 bytes of payload length).  The mode-get
response and mode-set messages have 20-character payloads.  

The original-port-settings buffer is supposed to get filled by the
UBX_CFG_PRT response to a query message set when the device is
activated.  What the mode-change and speed-change messages are supposed to 
be doing is taking a copy of those 20 characters of payload, tweaking
some bits, and shipping that.  

The problem Coverity spotted is that the send code was addressing
that buffer as if it were whole-message, not payload!

Now that I look at this again, I think it's still buggy in a subtle way
that would only show up under repeated mode changes.  We shouldn't be
saving *original* settings but *current* settings, and there should be
no buffer copying - we should always tweak the current-settings buffer
and then ship it as payload.  With the present code, two successive
mode or speed changes could restore unwanted state fom the original
settings.

Easily enough fixed.  I'll test this, if my new uBlox-based Macx-1 
does binary mode.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 13 11:49:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1STb2t-0003vd-RF
	for mharc-gpsd-dev@gnu.org; Sun, 13 May 2012 11:49:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34109)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1STb2r-0003tt-Ne
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 11:49:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1STb2p-00079X-Lp
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 11:49:17 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:34596 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1STb2p-00079I-Ht; Sun, 13 May 2012 11:49:15 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 0A18240447; Sun, 13 May 2012 11:48:58 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org
Message-Id: <20120513154859.0A18240447@snark.thyrsus.com>
Date: Sun, 13 May 2012 11:48:58 -0400 (EDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] Feature freeze for 3.6 release
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 13 May 2012 15:49:19 -0000

GPSD now has zero detected defects under Coverity.  Coverity found 13
minor defects on this pass, mostly handle leaks and uninitialized
variables on unusual code paths but including three static buffer
overruns, one in the NTRIP code and two in the rate-change and
speed-change methods of the UBX driver.

An encouraging way to look at this is that since our first Coverity scan
in 2007 we've introduced fewer than three new detectible defects *per
year*. Still, 13 defects is a lot by our usual standards.

Because of this, and the timing of an upcoming Debian freeze, and the
next release of CeroWrt, I want to roll out a snap 3.6 release in the
near future. I don't anticipate any issues with this, as other than
the NMEA2000 support going in what's been going on since 3.5
is minimal bug fixes and cleanup for Coverity and other static analyzers.

Gary, please test with Garmins and PPS and let me know what our status
there is.  (I can check PPS myself now but two checks on the problem
children are better than one.)  All our tests are passing and all of
our fault scanners report zero defects except that we still have false
positives under scan-build; I'll do what I can to reduce those.

I'm calling feature freeze on everything but the NMEA2000 driver,
which is still in beta; we won't be able to really verify that,
anyway, until the author gets his regression tests in place - which
isn't likely to be this release.

The targeted release date will be 20 May.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

"I hold it, that a little rebellion, now and then, is a good thing, and as 
necessary in the political world as storms in the physical."
	-- Thomas Jefferson, Letter to James Madison, January 30, 1787


From MAILER-DAEMON Sun May 13 16:55:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1STfpP-0000We-9o
	for mharc-gpsd-dev@gnu.org; Sun, 13 May 2012 16:55:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50815)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <hits@aol.in>)
	id 1STbtw-0002qe-1B
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 12:44:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hits@aol.in>) id 1STbtu-0007hS-Bn
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 12:44:07 -0400
Received: from imr-mb02.mx.aol.com ([64.12.207.163]:57604)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <hits@aol.in>)
	id 1STbtu-0007h1-5m
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 12:44:06 -0400
Received: from mtaomg-da02.r1000.mx.aol.com (mtaomg-da02.r1000.mx.aol.com
	[172.29.51.138])
	by imr-mb02.mx.aol.com (8.14.1/8.14.1) with ESMTP id q4DGhxbe005301;
	Sun, 13 May 2012 12:43:59 -0400
Received: from core-mqd004b.r1000.mail.aol.com (core-mqd004.r1000.mail.aol.com
	[172.29.195.205])
	by mtaomg-da02.r1000.mx.aol.com (OMAG/Core Interface) with ESMTP id
	986D7E000085; Sun, 13 May 2012 12:43:59 -0400 (EDT)
References: <CAOSy7+-dW3GeFmFdZs4TEGxPZXjz-DxW006FWfvxA73bOfktuQ@mail.gmail.com>
To: jon.schlueter@gmail.com, gpsd-dev@nongnu.org
Content-Transfer-Encoding: quoted-printable
In-Reply-To: <CAOSy7+-dW3GeFmFdZs4TEGxPZXjz-DxW006FWfvxA73bOfktuQ@mail.gmail.com>
X-MB-Message-Source: WebUI
MIME-Version: 1.0
From: hits@aol.in
X-MB-Message-Type: User
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Mailer: AOL Webmail 36049-BASIC
Received: from 116.202.111.3 by webmail-d146.sysops.aol.com (149.174.18.36)
	with HTTP (WebMailUI); Sun, 13 May 2012 12:43:59 -0400
Message-Id: <8CEFF3EBADC219B-2D84-382B1@webmail-d146.sysops.aol.com>
X-Originating-IP: [116.202.111.3]
Date: Sun, 13 May 2012 12:43:59 -0400 (EDT)
x-aol-global-disposition: G
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com;
	s=20110426; t=1336927439;
	bh=/ZugY5W0fCGkBhaPYkrQT8RZTeaRqhUNOSjDL4/eVA8=;
	h=From:To:Subject:Message-Id:Date:MIME-Version:Content-Type;
	b=M5ToiGze1Z3/GHiwfyKTpY3vl+xT5dpWOSCP83ABfx+OaBkSXbhjzrq/yHPYf97Yk
	2pRivCSbI+pzyvFIyhs2Rfa1XIc3rUMvmx/pllgDZrSWpt1svOEIlqPn0NEWYzKWw8
	Tv2JfJZ7+ntuVCAOE0p/FFaJyx8dS5+m1PBnkZ4A=
X-AOL-SCOLL-SCORE: 0:2:294472384:93952408  
X-AOL-SCOLL-URL_COUNT: 0  
x-aol-sid: 3039ac1d338a4fafe4cf3a25
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 64.12.207.163
X-Mailman-Approved-At: Sun, 13 May 2012 16:55:42 -0400
Subject: Re: [gpsd-dev] possible driver_ubx runtime bug introduced
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 13 May 2012 16:44:09 -0000

thanks for the fix .. for some time i was running with this ubx fix=20
manually done . i was goin to point out after some more tests . obvious=20
fix btw ...


-----Original Message-----
From: Jon Schlueter <jon.schlueter@gmail.com>
To: gpsd-dev list <gpsd-dev@nongnu.org>
Sent: Sat, May 12, 2012 12:58 am
Subject: [gpsd-dev]  possible driver_ubx runtime bug introduced

I was looking back through commits and noticed that the ubx_write
parameters changed even though the commit should have been just a
coverty warning fixup.  This change could result in a very subtle run
time bug in probing/setting up a UBX gps.  I don't have one to check
with but thought I should bring it up on the list.

Jon Schlueter

9d7dc31b595b91aeb258faca459909b0b5b7965e

@@ -714,7 +714,7 @@ static bool ubx_speed(struct gps_device_t *session,
 =09usart_mode |=3D 0x2000;=09/* zero value means 1 stop bit */
     putle32(buf, 4, usart_mode);
     putle32(buf, 8, speed);
-    (void)ubx_write(session, 0x06, 0x00, &buf[6], 20);=09/* send back
with all other settings intact */
+    (void)ubx_write(session, 0x06, 0x00, buf, sizeof(buf));=09/* send
back with all other settings intact */
     /*@ -charint +usedef +compdef */
     return true;
 }

also

dbf6d322945e68fce36afd6dba75ab56d60b0c86

@@ -676,7 +675,7 @@ static void ubx_nmea_mode(struct gps_device_t
*session, int mode)
 =09buf[14] |=3D 0x01;=09/* turn on UBX output on this port */
     }
     /*@ -charint +usedef @*/
-    (void)ubx_write(session, 0x06u, 0x00, &buf[6], 20);=09/* send back
with all other settings intact */
+    (void)ubx_write(session, 0x06u, 0x00, buf, sizeof(buf));=09/* send
back with all other settings intact */
 }






From MAILER-DAEMON Sun May 13 17:12:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1STg5P-00045f-WC
	for mharc-gpsd-dev@gnu.org; Sun, 13 May 2012 17:12:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60873)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1STg5N-00044e-AN
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 17:12:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1STg5L-00045T-CR
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 17:12:12 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:36052 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1STg5L-00045N-8f
	for gpsd-dev@nongnu.org; Sun, 13 May 2012 17:12:11 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 9DFD940475; Sun, 13 May 2012 17:11:55 -0400 (EDT)
Date: Sun, 13 May 2012 17:11:55 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: hits@aol.in
Message-ID: <20120513211155.GA3677@thyrsus.com>
References: <CAOSy7+-dW3GeFmFdZs4TEGxPZXjz-DxW006FWfvxA73bOfktuQ@mail.gmail.com>
	<8CEFF3EBADC219B-2D84-382B1@webmail-d146.sysops.aol.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <8CEFF3EBADC219B-2D84-382B1@webmail-d146.sysops.aol.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] possible driver_ubx runtime bug introduced
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 13 May 2012 21:12:14 -0000

hits@aol.in <hits@aol.in>:
> thanks for the fix .. for some time i was running with this ubx fix
> manually done . i was goin to point out after some more tests .
> obvious fix btw ...

Please test git head to check that the rate change and mode change
methods work on your hardware.  I'd like to have an independent check
of that.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 14 16:54:33 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SU2Hp-0007eI-FZ
	for mharc-gpsd-dev@gnu.org; Mon, 14 May 2012 16:54:33 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48300)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SU2Hm-0007Tj-8y
	for gpsd-dev@nongnu.org; Mon, 14 May 2012 16:54:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SU2Hk-00048o-DG
	for gpsd-dev@nongnu.org; Mon, 14 May 2012 16:54:29 -0400
Received: from catbert.rellim.com ([204.17.205.1]:47644)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SU2Hj-00041E-RJ
	for gpsd-dev@nongnu.org; Mon, 14 May 2012 16:54:28 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4EKsBP0029413
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 14 May 2012 13:54:11 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4EKsBP0029413
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1337028852; bh=hg8tMQdoIttkBDtDyB5X4oxwvQyD9MEX5kYLGZOloXU=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=mUG0QTD9SlUQBKPWbCfntl9stj8juKp3/PHQPxDK3kKvD5+zN/gV2G4MNg29LEK1H
	207yCnuCqn4M74xjuYOvQ==
Date: Mon, 14 May 2012 13:54:08 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: gpsd-dev@lists.berlios.de
Message-ID: <20120514135408.341054fb.gem@rellim.com>
In-Reply-To: <CAGHP0p+O_P_S98Y69EOOL28V1Uri0y9F2CPqe2YZEBD-61dbPg@mail.gmail.com>
References: <CAGHP0p+O_P_S98Y69EOOL28V1Uri0y9F2CPqe2YZEBD-61dbPg@mail.gmail.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/qC=g0eu9LVkbfkfXwI+98Z9";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd dev <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] [Gpsd-dev] broken compile on !linux
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 14 May 2012 20:54:31 -0000

--Sig_/qC=g0eu9LVkbfkfXwI+98Z9
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Chris!

Works for me.

I've been testing git head today, no problems so far.

You prolly need to fix your address book.  gpsd-dev is now on
non-gnu.org.

On Mon, 14 May 2012 12:51:03 -0700
Chris Kuethe <chris.kuethe@gmail.com> wrote:

> nmea2000 depends on linux/can.h - this allows me to just type "scons"
> and build. ok to commit?
>=20
> diff --git a/SConstruct b/SConstruct
> index 120d8ef..e01076e 100644
> --- a/SConstruct
> +++ b/SConstruct
> @@ -488,6 +488,14 @@ else:
>      confdefs.append("/* #undef HAVE_SYS_TIMEPPS_H */\n")
>      announce("You do not have kernel PPS available.")
>=20
> +if config.CheckHeader("linux/can.h"):
> +    confdefs.append("#define HAVE_LINUX_CAN_H 1\n")
> +    announce("You have kernel CANbus available.")
> +else:
> +    confdefs.append("/* #undef HAVE_LINUX_CAN_H */\n")
> +    announce("You do not have kernel CANbus available.")
> +    env["nmea2000"] =3D False
> +
>  # check function after libraries, because some function require
> library # for example clock_gettime() require librt on Linux
>  for f in ("daemon", "strlcpy", "strlcat", "clock_gettime"):
>=20
>=20




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

--Sig_/qC=g0eu9LVkbfkfXwI+98Z9
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+xcPIACgkQBmnRqz71OvNisACfS1OOnTsQhU1RkrHpGiFctViy
irUAoJi0pobumgsqWjovWiv/fBIOa6oO
=tDjN
-----END PGP SIGNATURE-----

--Sig_/qC=g0eu9LVkbfkfXwI+98Z9--


From MAILER-DAEMON Tue May 15 05:52:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SUEQT-0003rJ-NX
	for mharc-gpsd-dev@gnu.org; Tue, 15 May 2012 05:52:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52524)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SUEQI-0003nj-O3
	for gpsd-dev@nongnu.org; Tue, 15 May 2012 05:52:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SUEQB-0002Vi-MS
	for gpsd-dev@nongnu.org; Tue, 15 May 2012 05:52:06 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:49380)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SUEQB-0002VH-Do
	for gpsd-dev@nongnu.org; Tue, 15 May 2012 05:51:59 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id AC907600039;
	Tue, 15 May 2012 10:51:56 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id KLIZafaG9OOw; Tue, 15 May 2012 10:51:55 +0100 (IST)
Received: from [192.168.5.183] (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 496BF600033;
	Tue, 15 May 2012 10:51:55 +0100 (IST)
Message-ID: <4FB2275D.7020301@techworks.ie>
Date: Tue, 15 May 2012 10:52:29 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120421 Thunderbird/12.0
MIME-Version: 1.0
To: Russell Nelson <russnelson@gmail.com>, gpsd-dev@nongnu.org
References: <CA+uY=MRx8jJZSKHhNsVbDqv3FwBbK9VjrVU02Uxn2aZ9RZMieg@mail.gmail.com>
In-Reply-To: <CA+uY=MRx8jJZSKHhNsVbDqv3FwBbK9VjrVU02Uxn2aZ9RZMieg@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: Re: [gpsd-dev] [RFC] Add support for Airmar PB200 Weather station
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 15 May 2012 09:52:16 -0000

Hi Russel,

(I'm replying on the list, as it can be of interest to other people.)


On 14/05/12 19:04, Russell Nelson wrote:
> Are you using the WS-USB or an NMEA2000 interface? I'm having trouble
> getting NMEA out of the WS-USB. I get data, but it looks like the wrong
> baud rate ... and yet the WS-USB won't let me change the baud rate,
> grrrrrr.....

No I'm not using this USB converter (it's quite expensive), I simply 
connect the NMEA0183 output to a standard (cheap) RS485/USB converter. 
On the field, our embedded systems have built-in RS485 interface.

I don't have a unit right now, that's why I stopped working on this 
patch set, but I should receive a new one very soon.

Can you tell me a bit more about what you want to do with a PB200 and 
gpsd? Are you interested in having more data enabled out of the PB200?

Chris


-- 
Christian Gagneraud,
Embedded systems engineer.
Techworks Marine
1 Harbour road
Dun Laoghaire
Co. Dublin
Ireland
Tel: + 353 (0) 1 236 5990
Web: http://www.techworks.ie/


From MAILER-DAEMON Wed May 16 04:49:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SUZvg-0004zq-7f
	for mharc-gpsd-dev@gnu.org; Wed, 16 May 2012 04:49:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58122)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SUZva-0004z3-0c
	for gpsd-dev@nongnu.org; Wed, 16 May 2012 04:49:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SUZvO-0008CA-C5
	for gpsd-dev@nongnu.org; Wed, 16 May 2012 04:49:49 -0400
Received: from mail.recluse.de ([217.196.146.213]:43239)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SUZvO-00089a-5W
	for gpsd-dev@nongnu.org; Wed, 16 May 2012 04:49:38 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 5C20627596
	for <gpsd-dev@nongnu.org>; Wed, 16 May 2012 10:49:35 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id Wn4ugm61zUst for <gpsd-dev@nongnu.org>;
	Wed, 16 May 2012 10:49:30 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id 20F9F27572
	for <gpsd-dev@nongnu.org>; Wed, 16 May 2012 10:49:30 +0200 (CEST)
Message-ID: <4FB36A19.7000709@bzed.de>
Date: Wed, 16 May 2012 10:49:29 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.3) Gecko/20120329 Icedove/10.0.3
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Subject: [gpsd-dev] scan-build of gpsd fixed
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 16 May 2012 08:49:54 -0000

Hi,

due to scons trying to help the developer to have a reproducable build
environment by cleaning the environment[1], scan-build did not work at
all since the introduction of scons. As it made me wonder that the gpsd
code didn't show defects for such a long time, I started to dig into it
and made building with non-gcc compilers and scan-build work again
[2][3]. Nightly results should show up at

http://devel.recluse.de/~bzed/scan-build/gpsd

again.


Cheers,

Bernd


[1] Imho that is NOT a build-system's job, it is the developer's
resposibility to find a reproducable way to do builds, using whatever
he needs - for example $variable set in the environment.
[2] http://git.savannah.gnu.org/cgit/gpsd.git/commit/?id=07450186f0a43665bd8e9e8050cbdf8c0c809d0d
[3] http://git.savannah.gnu.org/cgit/gpsd.git/commit/?id=26881d1bc8a7433cdf1b848fdd1e8f092cc73649
-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Thu May 17 12:29:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV3a8-0003Vk-Hb
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 12:29:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51823)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SV3a2-0003Uw-M4
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 12:29:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SV3a1-0005yR-0O
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 12:29:34 -0400
Received: from smtp4.mail.fcom.ch ([212.60.46.173]:52581)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SV3a0-0005xi-QL
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 12:29:32 -0400
Received: from smtp4.mail.fcom.ch (localhost [127.0.0.1])
	by smtp4 (Postfix) with ESMTP id D255A20572
	for <gpsd-dev@nongnu.org>; Thu, 17 May 2012 18:29:25 +0200 (CEST)
Received: from drbeat.li (193-32-60-212-pool.cable.fcom.ch [212.60.32.193])
	by smtp4 (Postfix) with ESMTPS id C197E20566
	for <gpsd-dev@nongnu.org>; Thu, 17 May 2012 18:29:25 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id E47261806A; Thu, 17 May 2012 18:29:24 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Thu, 17 May 2012 18:29:24 +0200
Message-Id: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.10
X-AV-Checked: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.60.46.173
Subject: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 16:29:39 -0000

By advancing the twirly baton only each 11th line, the whole
regress-driver run is sped up by 7% when run over SSH.
---
 gpsfake |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gpsfake b/gpsfake
index cccfb9d..029de3e 100755
--- a/gpsfake
+++ b/gpsfake
@@ -31,10 +31,11 @@ class Baton:
         if os.isatty(self.stream.fileno()):
             if ch:
                 self.stream.write(ch)
-            else:
+                self.stream.flush()
+            elif self.count % 11 == 0:
                 self.stream.write("-/|\\"[self.count % 4])
                 self.stream.write("\010")
-            self.stream.flush()
+                self.stream.flush()
         self.count = self.count + 1
         return
 
-- 
1.7.10


From MAILER-DAEMON Thu May 17 14:29:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV5SB-0002uH-OE
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 14:29:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49720)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV5S8-0002uA-UH
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 14:29:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV5IJ-0004hD-1d
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 14:20:04 -0400
Received: from catbert.rellim.com ([204.17.205.1]:42037)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV5II-0004aP-Bk
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 14:19:22 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4HIJ1sh016250
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 17 May 2012 11:19:02 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4HIJ1sh016250
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1337278742; bh=hNDowq12pVRYG81UXgcZqvAEwgrh/1LhpO45syoQ52M=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=W8DnzmnKa3rf9J8MFCdomJ9GbM8o9Q85qEGhBlSqBmEXE1Zh+ItCsGmx6PSAiK9gV
	o01xAk+naCzrrlUWjaobA==
Date: Thu, 17 May 2012 11:18:41 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120517111841.6c6dd801.gem@rellim.com>
In-Reply-To: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
References: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/iYV2kXAfOnVmBn87xmheSSS";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 18:29:34 -0000

--Sig_/iYV2kXAfOnVmBn87xmheSSS
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Beat!

Cool.  Now in git head.

On Thu, 17 May 2012 18:29:24 +0200
Beat Bolli <bbolli@ewanet.ch> wrote:

> By advancing the twirly baton only each 11th line, the whole
> regress-driver run is sped up by 7% when run over SSH.
> ---
>  gpsfake |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>=20
> diff --git a/gpsfake b/gpsfake
> index cccfb9d..029de3e 100755
> --- a/gpsfake
> +++ b/gpsfake
> @@ -31,10 +31,11 @@ class Baton:
>          if os.isatty(self.stream.fileno()):
>              if ch:
>                  self.stream.write(ch)
> -            else:
> +                self.stream.flush()
> +            elif self.count % 11 =3D=3D 0:
>                  self.stream.write("-/|\\"[self.count % 4])
>                  self.stream.write("\010")
> -            self.stream.flush()
> +                self.stream.flush()
>          self.count =3D self.count + 1
>          return
> =20




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

--Sig_/iYV2kXAfOnVmBn87xmheSSS
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+1QRQACgkQBmnRqz71OvMv2wCeIvYXUsg26BRjI2DjvQhU9CWC
/nMAoJh5zAHAecqeww2BQwcbhSIOvI+h
=v3p5
-----END PGP SIGNATURE-----

--Sig_/iYV2kXAfOnVmBn87xmheSSS--


From MAILER-DAEMON Thu May 17 15:43:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV6bY-0002Gv-Im
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 15:43:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55310)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SV6bV-0002Gn-Pl
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 15:43:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SV6bT-00035f-QS
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 15:43:17 -0400
Received: from mx1.2b3w.ch ([92.42.186.250]:45770)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SV6bT-00035b-Js
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 15:43:15 -0400
Received: from mx1.2b3w.ch (localhost [127.0.0.1])
	by mx1.2b3w.ch (Postfix) with ESMTP id BCA8FC3466;
	Thu, 17 May 2012 21:43:12 +0200 (CEST)
Received: from mcmini.bolli (193-32-60-212-pool.cable.fcom.ch [212.60.32.193])
	by mx1.2b3w.ch (Postfix) with ESMTPSA id 8A15DC345A;
	Thu, 17 May 2012 21:43:12 +0200 (CEST)
Message-ID: <4FB554D0.1090802@ewanet.ch>
Date: Thu, 17 May 2012 21:43:12 +0200
From: Beat Bolli <bbolli@ewanet.ch>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: Terje Mathisen <terje@tmsw.no>
References: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
	<4FB54504.7060808@tmsw.no>
In-Reply-To: <4FB54504.7060808@tmsw.no>
X-Enigmail-Version: 1.4.1
OpenPGP: id=506A903A;
	url=http://drbeat.li/pubkey.asc
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enigE48584176656511873781FCA"
X-Virus-Scanned: ClamAV using ClamSMTP
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 92.42.186.250
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 19:43:19 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigE48584176656511873781FCA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Terje

On 17.05.12 20:35, Terje Mathisen wrote:
> Beat Bolli wrote:
>> By advancing the twirly baton only each 11th line, the whole
>> regress-driver run is sped up by 7% when run over SSH.
>=20
> The idea is good, but I cringe when I see the implementation! :-)
>=20
>> +            elif self.count % 11 =3D=3D 0:
>>                   self.stream.write("-/|\\"[self.count % 4])
>>                   self.stream.write("\010")
>> -            self.stream.flush()
>> +                self.stream.flush()
>>           self.count =3D self.count + 1
>=20
> The "count % 11" operation is _very_ expensive you know, best case it
> will be implemented as a reciprocal multiplication plus
> back-multiplication (via shift&add) and subtraction, but still taking 1=
0
> cycles or so.
>=20
> If implemented as a regular DIV operation we're talking 20-40 cycles.
>=20
> The effect is of course to run the baton _backwards_, at a rate which i=
s
> 1:11 of the original one. If you had used % 13 it would still be going
> forward, but I agree this doesn't really matter. :-)
>=20
> OTOH, what's wrong with something like this:
>=20
>   elif self.count & 15 =3D=3D 0:
>     self.stream.write("-/|\\"[(self.count >> 4) & 3])
>=20
> I.e. run at 1:16, with zero mul or div operations?

Wow, I didn't think my patch would get such scrutiny ;-)

Your version would of course be even faster, but as I explained in the
commit message, the main problem with the original implementation
(before my patch) was the relatively frequent flush() that causes
sending a new SSH packet. This is an I/O-bound problem, not a CPU-bound
one ;-)

At least I thought of using a reduction factor that has no common
divisors with the number of baton states...

Beat
--=20
mail: echo '<bNbolOli@ewaSPnetAM.ch>' | tr -d '[A-S]'
pgp: 0x506A903A; 49D5 794A EA77 F907 764F  D89E 304B 93CF 506A 903A
gsm: 4.7.7.6.0.7.7.9.7.1.4.e164.arpa
icbm: 47.0452 N, 7.2715 E

"It takes love over gold, and mind over matter" -- Dire Straits


--------------enigE48584176656511873781FCA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+1VNAACgkQMEuTz1BqkDrfNwCgheldrWQpx1+XrZf6Sbpc94Iz
ft8AnjbDo4CflI9220j1iZEImNs9attv
=Ggoa
-----END PGP SIGNATURE-----

--------------enigE48584176656511873781FCA--


From MAILER-DAEMON Thu May 17 16:23:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV7Et-0006zI-Fb
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 16:23:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54493)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV7Eq-0006xu-Jq
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 16:23:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV7En-00033P-Ur
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 16:23:56 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:35961 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV7En-00032t-QS
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 16:23:53 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 3C56C40475; Thu, 17 May 2012 16:23:28 -0400 (EDT)
Date: Thu, 17 May 2012 16:23:27 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120517202327.GA14526@thyrsus.com>
References: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
	<20120517111841.6c6dd801.gem@rellim.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1"
Content-Disposition: inline
In-Reply-To: <20120517111841.6c6dd801.gem@rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 20:23:58 -0000


--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Gary E. Miller <gem@rellim.com>:
> Yo Beat!
>=20
> Cool.  Now in git head.

I was going to sent Beat a note mildly chastising him for the magic number
un the patch.  Never, ever do this:

            elif self.count % 11 =3D=3D 0:

Much better is this:

            elif self.count % Baton.SPINNER_INTERVAL =3D=3D 0:

with this:

    # By setting this > 1 we reduce the frequency of the twirl
    # and speed up test runs.
    SPINNER_INTERVAL =3D 11

Always document your assumptions.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPtV4/rfUW04Qh8RwRAtsuAKDx++IxNRBfdq1SzI01pibVLftnCwCcDWGv
M5xC7pOeRCARtTa8kU8sGVk=
=y6vS
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--


From MAILER-DAEMON Thu May 17 16:32:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV7Mq-0007aZ-93
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 16:32:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37668)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV7Mo-0007aR-0E
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 16:32:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV7Ml-0004qe-PT
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 16:32:09 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:36036 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV7Ml-0004qY-LH
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 16:32:07 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id ABD6B40475; Thu, 17 May 2012 16:31:44 -0400 (EDT)
Date: Thu, 17 May 2012 16:31:44 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Beat Bolli <bbolli@ewanet.ch>
Message-ID: <20120517203144.GB14526@thyrsus.com>
References: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
	<4FB54504.7060808@tmsw.no> <4FB554D0.1090802@ewanet.ch>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t"
Content-Disposition: inline
In-Reply-To: <4FB554D0.1090802@ewanet.ch>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 20:32:11 -0000


--mojUlQ0s9EVzWg2t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Beat Bolli <bbolli@ewanet.ch>:
> Hi Terje
>=20
> On 17.05.12 20:35, Terje Mathisen wrote:
> > The "count % 11" operation is _very_ expensive you know,

It's *Python*.  A test tool.  Micro-optimizing at this level makes no
sense - I prefer the clarity of the % operation.  Maintainability,
always think maintainability first. Machine-efficiency gains are
almost[*] never interesting; they get swamped by Moore's Law too quickly.

* Except in well-defined critical paths.

> At least I thought of using a reduction factor that has no common
> divisors with the number of baton states...

*That* property should have been documented.

    # By setting this > 1 we reduce the frequency of the twirl
    # and speed up test runs.  Should be relatively prime to the
    # nunber of baton states, otherwise it will cause beat artifacts
    # in the twirling.
    SPINNER_INTERVAL =3D 11

/me hopes both Terje and Beat will take a lesson here.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--mojUlQ0s9EVzWg2t
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPtWAwrfUW04Qh8RwRAttiAJ9Zohac+GVjqmFBbGAf6/ZkC3sAagCfUBjW
srxedjH+8OoX4yFf7ANBa0E=
=C4fS
-----END PGP SIGNATURE-----

--mojUlQ0s9EVzWg2t--


From MAILER-DAEMON Thu May 17 17:05:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV7tS-0004ci-F1
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 17:05:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41773)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV7tP-0004bc-Qp
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 17:05:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV7tN-0004I8-Tr
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 17:05:51 -0400
Received: from catbert.rellim.com ([204.17.205.1]:50490)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV7tN-0004Fe-Ca
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 17:05:49 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4HL5ejW023756
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 17 May 2012 14:05:40 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4HL5ejW023756
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1337288741; bh=6rBnlHytzliMmLIPNzWHWmxdji6/KGpsH/5fUymE76I=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=aCMdQygQJ7fvvupcliJT7FvCchLTT3fn+iL+Z+o9Hwtkq2Ej+MUhvDrGdW2hzNQrn
	iQS44ydw/g4wynn/gqffg==
Date: Thu, 17 May 2012 14:05:36 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: esr@thyrsus.com
Message-ID: <20120517140536.1a5bee5d.gem@rellim.com>
In-Reply-To: <20120517203144.GB14526@thyrsus.com>
References: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
	<4FB54504.7060808@tmsw.no> <4FB554D0.1090802@ewanet.ch>
	<20120517203144.GB14526@thyrsus.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/T4s8b+GVQpq1oWzO8PS_QY0";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 21:05:53 -0000

--Sig_/T4s8b+GVQpq1oWzO8PS_QY0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Eric!

i was going to make your suggested change.  But found that the regessions
are not working for me at all.

Processing test/daemon/ait250.log...gpsd:ERROR: device open failed: Permiss=
ion denied - retrying read-only
gpsd:ERROR: read-only device open failed: Permission denied
gpsd:ERROR: /dev/pts/3: device activation failed.
gpsd:ERROR: device open failed: Permission denied - retrying read-only
gpsd:ERROR: read-only device open failed: Permission denied
gpsd:ERROR: /dev/pts/3: device activation failed.

Any ideas?

On Thu, 17 May 2012 16:31:44 -0400
"Eric S. Raymond" <esr@thyrsus.com> wrote:

> Beat Bolli <bbolli@ewanet.ch>:
> > Hi Terje
> >=20
> > On 17.05.12 20:35, Terje Mathisen wrote:
> > > The "count % 11" operation is _very_ expensive you know,
>=20
> It's *Python*.  A test tool.  Micro-optimizing at this level makes no
> sense - I prefer the clarity of the % operation.  Maintainability,
> always think maintainability first. Machine-efficiency gains are
> almost[*] never interesting; they get swamped by Moore's Law too
> quickly.
>=20
> * Except in well-defined critical paths.
>=20
> > At least I thought of using a reduction factor that has no common
> > divisors with the number of baton states...
>=20
> *That* property should have been documented.
>=20
>     # By setting this > 1 we reduce the frequency of the twirl
>     # and speed up test runs.  Should be relatively prime to the
>     # nunber of baton states, otherwise it will cause beat artifacts
>     # in the twirling.
>     SPINNER_INTERVAL =3D 11
>=20
> /me hopes both Terje and Beat will take a lesson here.




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

--Sig_/T4s8b+GVQpq1oWzO8PS_QY0
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+1aCMACgkQBmnRqz71OvNNcACeKF4HqaKnwmFBgNJ3OdYXVzSC
0dkAoIPhe5/bkMjeqn1l64u51+icKea/
=hWy3
-----END PGP SIGNATURE-----

--Sig_/T4s8b+GVQpq1oWzO8PS_QY0--


From MAILER-DAEMON Thu May 17 17:38:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV8PB-0000pa-Bt
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 17:38:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38652)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV8P9-0000pQ-8M
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 17:38:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV8P7-0004W6-9s
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 17:38:38 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:36644 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SV8P7-0004Vv-6O
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 17:38:37 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id B064D40475; Thu, 17 May 2012 17:38:13 -0400 (EDT)
Date: Thu, 17 May 2012 17:38:13 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: "Gary E. Miller" <gem@rellim.com>
Message-ID: <20120517213813.GA15840@thyrsus.com>
References: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
	<4FB54504.7060808@tmsw.no> <4FB554D0.1090802@ewanet.ch>
	<20120517203144.GB14526@thyrsus.com>
	<20120517140536.1a5bee5d.gem@rellim.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j"
Content-Disposition: inline
In-Reply-To: <20120517140536.1a5bee5d.gem@rellim.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 21:38:40 -0000


--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Gary E. Miller <gem@rellim.com>:
> i was going to make your suggested change.  But found that the regessions
> are not working for me at all.

Local device permissions problem?  Regressions run just fine here.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

--nFreZHaLTZJo0R7j
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFPtW/FrfUW04Qh8RwRAo4sAJwOs4suhWeWRzY0E+8m9uOAzNaUOgCdFDvW
dyPQ/3Pq5hO6MC9Z+yYvBK0=
=Jh0p
-----END PGP SIGNATURE-----

--nFreZHaLTZJo0R7j--


From MAILER-DAEMON Thu May 17 18:11:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SV8v8-0003zK-Ga
	for mharc-gpsd-dev@gnu.org; Thu, 17 May 2012 18:11:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47130)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV8v5-0003yw-Vc
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 18:11:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV8v4-0003G2-7y
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 18:11:39 -0400
Received: from catbert.rellim.com ([204.17.205.1]:46847)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SV8v3-0003Fo-Ms
	for gpsd-dev@nongnu.org; Thu, 17 May 2012 18:11:38 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4HMBRj0027099
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 17 May 2012 15:11:28 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4HMBRj0027099
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1337292689; bh=BUq/xrCLfHcSuVq3ZP3jeJjGk+U8aYWXPFA6z6R0jQ8=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=MNehx0pSwkZet4pJgkIwSXackLuKG8HyUF1sjEf7zpzqzuOiQRXvjwlw4z+ppOjOD
	+1ZbHW3n0XhyykcHTvV0Q==
Date: Thu, 17 May 2012 15:11:24 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: esr@thyrsus.com
Message-ID: <20120517151124.713e9290.gem@rellim.com>
In-Reply-To: <20120517213813.GA15840@thyrsus.com>
References: <1337272164-18802-1-git-send-email-bbolli@ewanet.ch>
	<4FB54504.7060808@tmsw.no> <4FB554D0.1090802@ewanet.ch>
	<20120517203144.GB14526@thyrsus.com>
	<20120517140536.1a5bee5d.gem@rellim.com>
	<20120517213813.GA15840@thyrsus.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/JhdUIXkWd7iEN.ZPkjJbnG7";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Speed up gpsfake.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 22:11:41 -0000

--Sig_/JhdUIXkWd7iEN.ZPkjJbnG7
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Eric!

On Thu, 17 May 2012 17:38:13 -0400
"Eric S. Raymond" <esr@thyrsus.com> wrote:

> Gary E. Miller <gem@rellim.com>:
> > i was going to make your suggested change.  But found that the
> > regessions are not working for me at all.
>=20
> Local device permissions problem?

Clearly, but this is on a plain vanilla gentoo host.

> Regressions run just fine here.

Does me no good. :-)

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

--Sig_/JhdUIXkWd7iEN.ZPkjJbnG7
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+1d48ACgkQBmnRqz71OvM5OwCgpVphcfDbLC+0CzfdsBojydIo
LQgAoOGtQYRU0lHhIroYDj7B13vb2dWo
=nl6K
-----END PGP SIGNATURE-----

--Sig_/JhdUIXkWd7iEN.ZPkjJbnG7--


From MAILER-DAEMON Sat May 19 10:41:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SVkq7-0007rb-5J
	for mharc-gpsd-dev@gnu.org; Sat, 19 May 2012 10:41:03 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49910)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVkq4-0007rO-4a
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 10:41:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVkq1-0004Vl-Ck
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 10:40:59 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:46333)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVkq1-0004Pp-2n
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 10:40:57 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id B7BDE6006F8
	for <gpsd-dev@nongnu.org>; Sat, 19 May 2012 15:40:51 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id bEWe-F+caGbk for <gpsd-dev@nongnu.org>;
	Sat, 19 May 2012 15:40:50 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 01BBC6006F4
	for <gpsd-dev@nongnu.org>; Sat, 19 May 2012 15:40:49 +0100 (IST)
Message-ID: <4FB7B0F7.80909@techworks.ie>
Date: Sat, 19 May 2012 15:40:55 +0100
From: christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: multipart/mixed; boundary="------------020705060901070702010101"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] AIS: IMO236/289 Met/hydro message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 19 May 2012 14:41:02 -0000

This is a multi-part message in MIME format.
--------------020705060901070702010101
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,

I'm currently working on getting gpsd parse correctly these 2 types of 
messages. I've spotted some errors in the data structure and in the 
decoding that are easy to fix. But as I'm moving forward, I'm facing a 
dilemma.
The dac1fid31 data structure is shared between IMO236 (FID=11) and 
IMO289 (FID=31), which at first makes sense as they are very similar, 
but as you start looking at the lowest level details, there's some 
differences that make awkward if not impossible to manage these 2 
messages with a common structure.

So first, let's review the differences:
1) Only in IMO289:
  - Position accuracy bit
  - Greater visibility bit
=> No big deal, the IMO236 always set them to false

2) Long/Lat:
  - IMO236: latitude comes first, followed by longitude
  - IMO289: longitude comes first, followed by latitude
=> No problems, managed in driver_ais.c, where code is not shared

3) Signed vs unsigned:
  - IMO236: signedness is achieved by subtracting offset on unsigned values
  - IMO289: uses 2's complement for signed value (except water level)
=> Ditto.

4) Data not available:
  - IMO236: all the bits are sets.
  - IMO289: special values are used (usually incompatible with IMO236).
=> That's where the problems start, see below

5) Units/Precision:
  - Water level: 0.1m on 9bits for IMO236, 0.01m on 12 bits for IMO289
=> Managed in driver_ais.c, not a real concern

And now, lets look at which code is currently shared or not:

1) driver_ais.c
Not shared due to message structure incompatibility, IMO236 needs a 
couple of minor fixes, I'm suspecting the IMO289 to require more work.

2) gps_json.c
Code is shared, the non scaled code seems OK as it passes the raw data, 
but the scaled code is wrong because it doesn't deal with the special 
"data not available" values and would happily scale anything, resulting 
in crazy values.

3) ais_json.c
Code is shared, but it uses the IMO289 definitions for "data not 
available", which definitely breaks the IMO236 message.

4) gps.h
The "data not available" codes for IMO236 are missing

So finally, of all these differences, the biggest problem is the "data 
not available" stuff. To fix this problem, I see 2 different approaches:

1) Make the IMO236 low-level code in driver_ais.c mimic the IMO289 one, 
so that the upper layers code can easily be shared.
for example, in driver_ais.c, for IMO236:
----
ais->type8.dac1fid31.airtemp    = UBITS(153, 11)
     - DAC1FID31_AIRTEMP_OFFSET;
/* IMO236: 1447 => IMO289: -1024 */
if (ais->type8.dac1fid31.airtemp == DAC1FID11_AIRTEMP_NOT_AVAILABLE)
    ais->type8.dac1fid31.airtemp = DAC1FID31_AIRTEMP_NOT_AVAILABLE;
----

* pros: Easy to do, allow to maximize the shared code in the upper layer
* cons: The IMO236 structure is actually an IMO236/IMO289 bastard, in 
that it doesn't fully follow the IMO236 specs.

2) Define a new dac1fid11 structure, and have different code at all levels

* pros: Both IMO236 and IMO289 stick to the specs
* cons: More code to write/read/maintain, with some similarities but 
subtle differences.

So the question of the day is: which way should be taken to address this 
issue? I personally think that the #2 is cleaner, but i would have no 
problem taking the path #1

FYI, attached is a diff that illustrates my point (with some minor fixes 
to the IMO236 decoding). As long as I deal with available data and look 
only at raw values, I managed to validate the decoding of live IMO236 
met/hydro message against known-good decodings.

Regards,
Chris

--------------020705060901070702010101
Content-Type: text/x-patch;
 name="ais-imo.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="ais-imo.diff"

[AIS] Fix IMO236 met/hydro message handling

From: Christian Gagneraud <chris@techworks.ie>

This patch fix the message decoding and the JSON writing of the IMO236 Met/Hydro message.
It adds a regression test as well.
I hope to come soon with fixes for the IMO289 version.

Signed-off-by: Christian Gagneraud <chgans@gna.org>
---

 driver_ais.c  |   34 +++++++++++++----
 gps.h         |   25 +++++++++---
 gpsd_json.c   |  116 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 www/AIVDM.txt |    2 -
 4 files changed, 156 insertions(+), 21 deletions(-)


diff --git a/driver_ais.c b/driver_ais.c
index f1fb5be..cd464f8 100644
--- a/driver_ais.c
+++ b/driver_ais.c
@@ -4,10 +4,12 @@
  * See the file AIVDM.txt on the GPSD website for documentation and references.
  * AIVDM de-armoring is handled elsewhere; this is the binary-packet driver.
  *
- * Code for message types 1-15, 18-21, and 24 has been tested against
- * live data with known-good decodings. Code for message types 16-17,
- * 22-23, and 25-27 has not.  The IMO special messages in types 6 and 8
- * are also untested.
+ * Code for message types 1-15, 18-21, and 24 has been tested against live
+ * data with known-good decodings. Code for message types 16-17, 22-23, and
+ * 25-27 has not.
+ * For the special IMO messages (types 6 and 8), only the following have been
+ * tested against know-good decodings:
+ *  - IMO236 met/hydro message: Type=8, DAC=1, FI=11 
  *
  * This file is Copyright (c) 2010 by the GPSD project
  * BSD terms apply: see the file COPYING in the distribution root for details.
@@ -25,8 +27,8 @@
 
 #define DAC1FID31_AIRTEMP_OFFSET		600
 #define DAC1FID31_DEWPOINT_OFFSET		200
-#define DAC1FID31_PRESSURE_OFFSET		800
-#define DAC1FID11_LEVEL_OFFSET			10
+#define DAC1FID31_PRESSURE_OFFSET		-800
+#define DAC1FID11_LEVEL_OFFSET			100
 #define DAC1FID31_LEVEL_OFFSET			100
 #define DAC1FID31_WATERTEMP_OFFSET		100
 
@@ -375,7 +377,23 @@ bool ais_binary_decode(struct ais_t *ais,
 	if (ais->type8.dac == 1)
 	    switch (ais->type8.fid) {
 	    case 11:        /* IMO236 - Meteorological/Hydrological data */
-		/* layout is almost identical to FID=31 from IMO289 */
+		/* Layout is almost identical to FID=31 from IMO289.
+		 * Differences between IMO236 (FID=11) and 289 (FID=31) are:
+		 * Only in IMO289:
+		 *  - Position accuracy bit
+		 *  - Greater visibility bit
+		 * Long/Lat:
+		 *  - IMO236: latitude comes first, followed by longitute
+		 *  - IMO289: longitude comes first, followed by latitude
+		 * Signed vs unsigned:
+		 *  - IMO236: signedness is achived by using offset on unsigned values
+		 *  - IMO289: uses 2's complement for signed value (except water level)
+		 * Data not available:
+		 *  - IMO236: all the bits are sets.
+		 *  - IMO289: special values are used
+		 * Units/Precision:
+		 *  - Water level: 0.1m on 9bits for IMO236, 0.01m on 12 bits for IMO289
+		 */
 		ais->type8.dac1fid31.lat		= SBITS(56, 24);
 		ais->type8.dac1fid31.lon		= SBITS(80, 25);
 		ais->type8.dac1fid31.accuracy       = false;
@@ -386,7 +404,7 @@ bool ais_binary_decode(struct ais_t *ais,
 		ais->type8.dac1fid31.wgust		= UBITS(128, 7);
 		ais->type8.dac1fid31.wdir		= UBITS(135, 9);
 		ais->type8.dac1fid31.wgustdir	= UBITS(144, 9); 
-		ais->type8.dac1fid31.airtemp	= SBITS(153, 11)
+		ais->type8.dac1fid31.airtemp	= UBITS(153, 11)
 		    - DAC1FID31_AIRTEMP_OFFSET;
 		ais->type8.dac1fid31.humidity	= UBITS(164, 7);
 		ais->type8.dac1fid31.dewpoint	= UBITS(171, 10)
diff --git a/gps.h b/gps.h
index b96e143..fd719af 100644
--- a/gps.h
+++ b/gps.h
@@ -1191,37 +1191,46 @@ struct ais_t
 #define DAC1FID31_WIND_NOT_AVAILABLE		127
 		    unsigned int wdir;		/* wind direction */
 		    unsigned int wgustdir;	/* wind gust direction */
+#define DAC1FID11_DIR_NOT_AVAILABLE		511
 #define DAC1FID31_DIR_NOT_AVAILABLE		360
 		    int airtemp;		/* temperature, units 0.1C */
+#define DAC1FID11_AIRTEMP_NOT_AVAILABLE		1447
 #define DAC1FID31_AIRTEMP_NOT_AVAILABLE		-1084
 		    unsigned int humidity;	/* relative humidity, % */
+#define DAC1FID11_HUMIDITY_NOT_AVAILABLE	127
 #define DAC1FID31_HUMIDITY_NOT_AVAILABLE	101
 		    int dewpoint;		/* dew point, units 0.1C */
+#define DAC1FID11_DEWPOINT_NOT_AVAILABLE	823
 #define DAC1FID31_DEWPOINT_NOT_AVAILABLE	501
 		    unsigned int pressure;	/* air pressure, hpa */
+#define DAC1FID11_PRESSURE_NOT_AVAILABLE	1311
 #define DAC1FID31_PRESSURE_NOT_AVAILABLE	511
 #define DAC1FID31_PRESSURE_HIGH			402
 		    unsigned int pressuretend;	/* tendency */
 #define DAC1FID31_PRESSURETREND_NOT_AVAILABLE	3
 		    bool visgreater;            /* visibility greater than */
 		    unsigned int visibility;	/* units 0.1 nautical miles */
+#define DAC1FID11_VISIBILITY_NOT_AVAILABLE	255
 #define DAC1FID31_VISIBILITY_NOT_AVAILABLE	127
 		    int waterlevel;		/* decimeters or cm */
-#define DAC1FID11_WATERLEVEL_NOT_AVAILABLE	4001
+#define DAC1FID11_WATERLEVEL_NOT_AVAILABLE	411
 #define DAC1FID31_WATERLEVEL_NOT_AVAILABLE	40001
 		    unsigned int leveltrend;	/* water level trend code */
 #define DAC1FID31_LEVELTREND_NOT_AVAILABLE	3
-		    unsigned int cspeed;	/* current speed in deciknots */
+		    unsigned int cspeed;	/* surface current speed in deciknots */
 #define DAC1FID31_CSPEED_NOT_AVAILABLE		255
-		    unsigned int cdir;		/* current dir., degrees */
+		    unsigned int cdir;		/* surface current dir., degrees */
+#define DAC1FID11_CDIR_NOT_AVAILABLE		511
 		    unsigned int cspeed2;	/* current speed in deciknots */
 		    unsigned int cdir2;		/* current dir., degrees */
-		    unsigned int cdepth2;	/* measurement depth, 0.1m */
+		    unsigned int cdepth2;	/* measurement depth, m */
+#define DAC1FID11_CDEPTH_NOT_AVAILABLE		31
 #define DAC1FID31_CDEPTH_NOT_AVAILABLE		301
 		    unsigned int cspeed3;	/* current speed in deciknots */
 		    unsigned int cdir3;		/* current dir., degrees */
-		    unsigned int cdepth3;	/* measurement depth, 0.1m */
+		    unsigned int cdepth3;	/* measurement depth, m */
 		    unsigned int waveheight;	/* in decimeters */
+#define DAC1FID11_HEIGHT_NOT_AVAILABLE		255
 #define DAC1FID31_HEIGHT_NOT_AVAILABLE		31
 		    unsigned int waveperiod;	/* in seconds */
 #define DAC1FID31_PERIOD_NOT_AVAILABLE		63
@@ -1232,9 +1241,11 @@ struct ais_t
 		    unsigned int seastate;	/* Beaufort scale, 0-12 */
 #define DAC1FID31_SEASTATE_NOT_AVAILABLE	15
 		    int watertemp;		/* units 0.1deg Celsius */
-#define DAC1FID31_PRECIPTYPE_NOT_AVAILABLE	7
+#define DAC1FID11_WATERTEMP_NOT_AVAILABLE	923
 		    unsigned int preciptype;	/* 0-7, enumerated */
-		    unsigned int salinity;	/* units of 0.1% */
+#define DAC1FID31_PRECIPTYPE_NOT_AVAILABLE	7
+		    unsigned int salinity;	/* units of 0.1ppt */
+#define DAC1FID11_SALINITY_NOT_AVAILABLE	511
 #define DAC1FID31_SALINITY_NOT_AVAILABLE	510
 		    bool ice;			/* is there sea ice? */
 		} dac1fid31;

--------------020705060901070702010101--


From MAILER-DAEMON Sat May 19 11:56:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SVm0s-0007eC-BM
	for mharc-gpsd-dev@gnu.org; Sat, 19 May 2012 11:56:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47352)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SVm0p-0007b3-Ai
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 11:56:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SVm0n-0004if-Ei
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 11:56:10 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:47998 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SVm0n-0004iE-AP
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 11:56:09 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id B64FF40475; Sat, 19 May 2012 11:55:39 -0400 (EDT)
Date: Sat, 19 May 2012 11:55:39 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: christian Gagneraud <chris@techworks.ie>
Message-ID: <20120519155539.GA2851@thyrsus.com>
References: <4FB7B0F7.80909@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FB7B0F7.80909@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] AIS: IMO236/289 Met/hydro message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 19 May 2012 15:56:13 -0000

christian Gagneraud <chris@techworks.ie>:
> So the question of the day is: which way should be taken to address
> this issue? I personally think that the #2 is cleaner, but i would
> have no problem taking the path #1

I wrote the present AIS code.  I agree with you, #2 is cleaner and
you should fix it that way.  I'll take a patch.

If you're willing to take over maintaining the AIS code and don't
yet have commit access to the repo, let's fix that.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sat May 19 15:42:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SVpXx-0005Xx-3M
	for mharc-gpsd-dev@gnu.org; Sat, 19 May 2012 15:42:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47089)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVpXu-0005Pp-1o
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 15:42:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVpXs-0003W1-8v
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 15:42:33 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:58888)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVpXs-0003VX-3c
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 15:42:32 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id F1185600742;
	Sat, 19 May 2012 20:42:29 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id C1AurfyRP-wQ; Sat, 19 May 2012 20:42:29 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 02647600740;
	Sat, 19 May 2012 20:42:28 +0100 (IST)
Message-ID: <4FB7F7AB.5080202@techworks.ie>
Date: Sat, 19 May 2012 20:42:35 +0100
From: christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4FB7B0F7.80909@techworks.ie> <20120519155539.GA2851@thyrsus.com>
In-Reply-To: <20120519155539.GA2851@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] AIS: IMO236/289 Met/hydro message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 19 May 2012 19:42:35 -0000

On 05/19/2012 04:55 PM, Eric S. Raymond wrote:
> christian Gagneraud<chris@techworks.ie>:
>> So the question of the day is: which way should be taken to address
>> this issue? I personally think that the #2 is cleaner, but i would
>> have no problem taking the path #1
>
> I wrote the present AIS code.  I agree with you, #2 is cleaner and
> you should fix it that way.  I'll take a patch.

OK, no problem, patch will come soon.

>
> If you're willing to take over maintaining the AIS code and don't
> yet have commit access to the repo, let's fix that.

Why not, thanks. I'm not an AIS guru, but I'm willing to add a couple of 
new messages, improve and fix stuff and add more tests as well.

Chris


From MAILER-DAEMON Sat May 19 22:30:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SVvv3-0007yu-A8
	for mharc-gpsd-dev@gnu.org; Sat, 19 May 2012 22:30:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43493)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVvv0-0007yH-Nx
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 22:30:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVvuz-00023m-0g
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 22:30:50 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:49955)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SVvuy-00023h-RL
	for gpsd-dev@nongnu.org; Sat, 19 May 2012 22:30:48 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id D22A66007A3
	for <gpsd-dev@nongnu.org>; Sun, 20 May 2012 03:30:46 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id YssfYr14MLgS for <gpsd-dev@nongnu.org>;
	Sun, 20 May 2012 03:30:43 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 3ECBE6007A1
	for <gpsd-dev@nongnu.org>; Sun, 20 May 2012 03:30:43 +0100 (IST)
Message-ID: <4FB85759.2000009@techworks.ie>
Date: Sun, 20 May 2012 03:30:49 +0100
From: christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 02:30:52 -0000

Hi all,

I'm trying to run regression tests against sample.aivdm. The test failed 
because regress-driver outputs in JSON format while the check file is in 
DSV format.
I saw that I can generate DSV with devtools/ais.py, but i can't find a 
way to get regress-driver do the same.
Is this regression test supposed to be supported by regress-driver or is 
there another tool for that, or maybe there's some special option to 
pass?  (Grepping DSV in the source tree didn't show any relevant results)

Chris


From MAILER-DAEMON Sun May 20 00:59:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SVyF7-0004cs-Nk
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 00:59:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47469)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SVyF5-0004ci-LQ
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 00:59:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SVyF3-0003Ia-4v
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 00:59:43 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:51702 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SVyF3-0003IL-18
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 00:59:41 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 703F440475; Sun, 20 May 2012 00:59:11 -0400 (EDT)
Date: Sun, 20 May 2012 00:59:11 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: christian Gagneraud <chris@techworks.ie>
Message-ID: <20120520045911.GA22672@thyrsus.com>
References: <4FB85759.2000009@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FB85759.2000009@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 04:59:44 -0000

christian Gagneraud <chris@techworks.ie>:
> I'm trying to run regression tests against sample.aivdm. The test
> failed because regress-driver outputs in JSON format while the check
> file is in DSV format.

'scons aivdm-regress' runs the regression test without error here.

> I saw that I can generate DSV with devtools/ais.py, but i can't find
> a way to get regress-driver do the same.

gpsdecode -c is how you make the DSV format.  Take a look at the
command that scons aivdm-regress generates.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 20 16:47:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWD1v-00050N-Qq
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 16:47:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36058)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWD1r-0004zR-ND
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 16:47:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWD1p-0002Qz-2C
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 16:47:03 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40187)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWD1o-0002Qi-Lv
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 16:47:00 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id F1CFA600880;
	Sun, 20 May 2012 21:46:56 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id htI3GLJJtxHF; Sun, 20 May 2012 21:46:51 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 0AA15600796;
	Sun, 20 May 2012 21:46:50 +0100 (IST)
Message-ID: <4FB95841.5030501@techworks.ie>
Date: Sun, 20 May 2012 21:46:57 +0100
From: christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
In-Reply-To: <20120520045911.GA22672@thyrsus.com>
Content-Type: multipart/mixed; boundary="------------050000070802070205000700"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 20:47:05 -0000

This is a multi-part message in MIME format.
--------------050000070802070205000700
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 05/20/2012 05:59 AM, Eric S. Raymond wrote:
> christian Gagneraud<chris@techworks.ie>:
>> I'm trying to run regression tests against sample.aivdm. The test
>> failed because regress-driver outputs in JSON format while the check
>> file is in DSV format.
>
> 'scons aivdm-regress' runs the regression test without error here.
>
>> I saw that I can generate DSV with devtools/ais.py, but i can't find
>> a way to get regress-driver do the same.
>
> gpsdecode -c is how you make the DSV format.  Take a look at the
> command that scons aivdm-regress generates.

Hi Eric,

Thank you very much for the details.
As I'm almost done with the DAC1/FID11 stuff, I decided to add 2 
sentences in test/sample.aivdm and update test/sample.aivdm.chk 
accordingly, then I wanted to update
test/synthetic-ais.json and test/synthetic-ais.json.chk, and i'm now 
facing some issues.
In this file it is said:
# Synthetic test load designed to exercise the AIS JSON parser
# These are JSON dumps of the packets in the Schwehr testload,
# via gpsdecode -j -u <test/sample.aivdm

So I tried to update it with the given command, but there's quite some 
differences (apart for my 2 new sentences):
- All entries are different because of an added field: "device":"stdin"
- 2 Type8/DAC366/FID22 are replaced with 2 DAC366/FID56:
   - For the first one, only the FID number is different (same payload, 
MMSI, ...)
   - For the second one, MMSI, FID and payload are all different
- A type 15 have been added
- A type 24 have been replaced by another type 24
- A type 24 have been added
- 2 type 5 have been addded

Attached is a diff, after removing the extra "device":"stdin" for clarity.

I don't see what i can do for the added sentence other than updating the 
file. But the 2 Type8/DAC366/FID22 look suspicious to me. What do you think?

In the mean time, I've just updated synthetic-ais.json and 
test/synthetic-ais.json.chk with my 2 new sentences so that i can test 
the JSON idempotency.

Regards,
Chris

--------------050000070802070205000700
Content-Type: text/x-patch;
 name="synthetic-ais.json.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="synthetic-ais.json.diff"

LS0tIHRlc3Qvc3ludGhldGljLWFpcy5qc29uCTIwMTItMDUtMjAgMTQ6MTk6MDkuODk1Njkx
MDg5ICswMTAwCisrKyAvdG1wLzEJMjAxMi0wNS0yMCAyMToyMDowMy4xMzU3NjY3NjQgKzAx
MDAKQEAgLTEsMTAgKzEsMyBAQAotIyBTeW50aGV0aWMgdGVzdCBsb2FkIGRlc2lnbmVkIHRv
IGV4ZXJjaXNlIHRoZSBBSVMgSlNPTiBwYXJzZXIKLSMgVGhlc2UgYXJlIEpTT04gZHVtcHMg
b2YgdGhlIHBhY2tldHMgaW4gdGhlIFNjaHdlaHIgdGVzdGxvYWQsCi0jIHZpYSBncHNkZWNv
ZGUgLWogLXUgPHRlc3Qvc2FtcGxlLmFpdmRtLAotIwotIyBUaGlzIGZpbGUgaXMgQ29weXJp
Z2h0IChjKSAyMDEwIGJ5IHRoZSBHUFNEIHByb2plY3QKLSMgQlNEIHRlcm1zIGFwcGx5OiBz
ZWUgdGhlIGZpbGUgQ09QWUlORyBpbiB0aGUgZGlzdHJpYnV0aW9uIHJvb3QgZm9yIGRldGFp
bHMuCi0jCiB7ImNsYXNzIjoiQUlTIiwidHlwZSI6MSwicmVwZWF0IjowLCJtbXNpIjozNzE3
OTgwMDAsInNjYWxlZCI6ZmFsc2UsInN0YXR1cyI6MCwidHVybiI6LTEyNywic3BlZWQiOjEy
MywiYWNjdXJhY3kiOnRydWUsImxvbiI6LTc0MDM3MjMwLCJsYXQiOjI5MDI4OT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AwLTAwVDI0OjYwWiIsImRyYXVnaHQiOjIwLCJk
ZXN0aW5hdGlvbiI6IiIsImR0ZSI6MH0NCg==
--------------050000070802070205000700--


From MAILER-DAEMON Sun May 20 18:20:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWETo-000182-3l
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 18:20:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38740)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWETl-00017L-VH
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:19:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWETj-0002wk-Ur
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:19:57 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:55128 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWETj-0002wK-RD
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:19:55 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id DF73C40475; Sun, 20 May 2012 18:19:25 -0400 (EDT)
Date: Sun, 20 May 2012 18:19:25 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: christian Gagneraud <chris@techworks.ie>
Message-ID: <20120520221925.GA27910@thyrsus.com>
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
	<4FB95841.5030501@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FB95841.5030501@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 22:19:59 -0000

christian Gagneraud <chris@techworks.ie>:
> In this file it is said:
> # Synthetic test load designed to exercise the AIS JSON parser
> # These are JSON dumps of the packets in the Schwehr testload,
> # via gpsdecode -j -u <test/sample.aivdm
> 
> So I tried to update it with the given command, but there's quite
> some differences (apart for my 2 new sentences):
> - All entries are different because of an added field: "device":"stdin"
> - 2 Type8/DAC366/FID22 are replaced with 2 DAC366/FID56:
>   - For the first one, only the FID number is different (same
> payload, MMSI, ...)
>   - For the second one, MMSI, FID and payload are all different
> - A type 15 have been added
> - A type 24 have been replaced by another type 24
> - A type 24 have been added
> - 2 type 5 have been addded
> 
> Attached is a diff, after removing the extra "device":"stdin" for clarity.

I think what's going on here is that, yes, I originally generated the
idempotency test from the Schwehr test load, but the Schwehr test load
later changed and this file didn't.  That's not really a problem;
they're not actually coupled, I just thought it was a good way
to generate random AIS-JSON with real-world characteristics and
decent test coverage.

> I don't see what i can do for the added sentence other than updating
> the file. But the 2 Type8/DAC366/FID22 look suspicious to me. What
> do you think?

Hm, those are proably just the two Type 8s in the Schwehr test load.
Back when I put it together it I think I wasn't yet doing anything 
special with extension IMO messages.

What I'd say is this: Just add your test sentences to sample.avdm for
now. We'll treat updating the idempotency test as a separate problem.

> In the mean time, I've just updated synthetic-ais.json and
> test/synthetic-ais.json.chk with my 2 new sentences so that i can
> test the JSON idempotency.

Patch not applied yet.  I'd rather update the test loads once you think
your new code is in good shape.

I was going to release 3.6 today.  How soon do you think you'll have
your patch ready?
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 20 18:24:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWEYI-0001RQ-JQ
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 18:24:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39188)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWEYG-0001RJ-Dm
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:24:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWEYE-0003n3-OK
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:24:35 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:52562)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWEYE-0003my-ID
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:24:34 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id D35DE600899;
	Sun, 20 May 2012 23:24:25 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id OZ2FwnAEbGXk; Sun, 20 May 2012 23:24:17 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 7B783600767;
	Sun, 20 May 2012 23:24:15 +0100 (IST)
Message-ID: <4FB96F10.5040503@techworks.ie>
Date: Sun, 20 May 2012 23:24:16 +0100
From: christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
	<4FB95841.5030501@techworks.ie>
	<20120520221925.GA27910@thyrsus.com>
In-Reply-To: <20120520221925.GA27910@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 22:24:37 -0000

On 05/20/2012 11:19 PM, Eric S. Raymond wrote:
> christian Gagneraud<chris@techworks.ie>:
[snip]
>> In the mean time, I've just updated synthetic-ais.json and
>> test/synthetic-ais.json.chk with my 2 new sentences so that i can
>> test the JSON idempotency.
>
> Patch not applied yet.  I'd rather update the test loads once you think
> your new code is in good shape.
>
> I was going to release 3.6 today.  How soon do you think you'll have
> your patch ready?

Oops, I've just commit the whole IMO236 stuff right now. I hope I didn't 
do anything wrong, I made sure all the regression test pass thought.
Please let me know.

Chris


From MAILER-DAEMON Sun May 20 18:52:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWEzI-0003p8-Hv
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 18:52:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51386)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWEzF-0003ov-H5
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:52:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWEzD-0000b2-C0
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:52:29 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:39421)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWEzD-0000R7-5K
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 18:52:27 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 519846008AA
	for <gpsd-dev@nongnu.org>; Sun, 20 May 2012 23:52:03 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Mvwq6D+Sm5Gh for <gpsd-dev@nongnu.org>;
	Sun, 20 May 2012 23:52:02 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id 3C7CA6008A8
	for <gpsd-dev@nongnu.org>; Sun, 20 May 2012 23:52:02 +0100 (IST)
From: Christian Gagneraud <chgans@gna.org>
To: gpsd-dev@nongnu.org
Date: Sun, 20 May 2012 23:52:47 +0100
Message-ID: <20120520225247.5249.6916.stgit@pluton.site>
User-Agent: StGIT/0.14.3
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] [PATCH] Fix attitude documentation.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 22:52:31 -0000

This patch was laying around in my tree, it fixes some typos in the attitude structure documentation.

Signed-off-by: Christian Gagneraud <chgans@gna.org>
---

 gpsd_json.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gpsd_json.xml b/gpsd_json.xml
index f8c3f86..cf2c37c 100644
--- a/gpsd_json.xml
+++ b/gpsd_json.xml
@@ -659,7 +659,8 @@ may be reported or not depending on the specific device type.</para>
 	<entry>dip</entry>
 	<entry>No</entry>
 	<entry>numeric</entry>
-        <entry>Roll in degrees.</entry>
+        <entry>Local magnedic inclination, degrees, positive when the magnetic
+field points downward (into the Earth).</entry>
 </row>
 <row>
 	<entry>mag_len</entry>
@@ -686,7 +687,7 @@ may be reported or not depending on the specific device type.</para>
         <entry>Z component of magnetic field strength.</entry>
 </row>
 <row>
-	<entry>mag_len</entry>
+	<entry>acc_len</entry>
 	<entry>No</entry>
 	<entry>numeric</entry>
         <entry>Scalar acceleration.</entry>



From MAILER-DAEMON Sun May 20 19:00:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWF7Q-0004y1-9y
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 19:00:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39278)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWF7N-0004x3-BF
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:00:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWF7L-00022p-HJ
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:00:52 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:55714 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWF7L-00022Q-Cv
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:00:51 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id C46C040475; Sun, 20 May 2012 19:00:21 -0400 (EDT)
Date: Sun, 20 May 2012 19:00:21 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: christian Gagneraud <chris@techworks.ie>
Message-ID: <20120520230021.GA30472@thyrsus.com>
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
	<4FB95841.5030501@techworks.ie>
	<20120520221925.GA27910@thyrsus.com>
	<4FB96F10.5040503@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FB96F10.5040503@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 23:00:54 -0000

christian Gagneraud <chris@techworks.ie>:
> Oops, I've just commit the whole IMO236 stuff right now. I hope I
> didn't do anything wrong, I made sure all the regression test pass
> thought.
> Please let me know.

Looks good - I was going to write you to compliment you on the new
test load.  Well added and well documented.  Do you have anything else
you want to get in before 3.6?
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 20 19:06:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWFCY-0005n2-RM
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 19:06:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55358)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWFCV-0005mj-Tf
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:06:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWFCU-0003J3-A7
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:06:11 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:37574)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWFCU-0003It-3h
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:06:10 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 1166F6008AF;
	Mon, 21 May 2012 00:06:06 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id XttGvgJZSDNF; Mon, 21 May 2012 00:06:04 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id A97516008AD;
	Mon, 21 May 2012 00:06:04 +0100 (IST)
Message-ID: <4FB978E4.8090004@techworks.ie>
Date: Mon, 21 May 2012 00:06:12 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
	<4FB95841.5030501@techworks.ie>
	<20120520221925.GA27910@thyrsus.com>
	<4FB96F10.5040503@techworks.ie>
	<20120520230021.GA30472@thyrsus.com>
In-Reply-To: <20120520230021.GA30472@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 23:06:13 -0000

On 05/21/2012 12:00 AM, Eric S. Raymond wrote:
> christian Gagneraud<chris@techworks.ie>:
>> Oops, I've just commit the whole IMO236 stuff right now. I hope I
>> didn't do anything wrong, I made sure all the regression test pass
>> thought.
>> Please let me know.
>
> Looks good - I was going to write you to compliment you on the new
> test load.  Well added and well documented.  Do you have anything else
> you want to get in before 3.6?

No, I'm done for now (It's midnight here! ;)).
I have plan to add a new message, but it will be for next week, no rush!
BTW, I've just send a lost patch that fixes some typo in the 
documentation (unrelated to AIS).

Chris



From MAILER-DAEMON Sun May 20 19:14:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWFKQ-0006bD-Ff
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 19:14:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44031)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWFK4-0006SB-R2
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:14:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWFJl-0004ac-P8
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:14:00 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:55777 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWFJl-0004aI-JQ
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:13:41 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 8453F40475; Sun, 20 May 2012 19:13:12 -0400 (EDT)
Date: Sun, 20 May 2012 19:13:12 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Christian Gagneraud <chris@techworks.ie>
Message-ID: <20120520231312.GA30666@thyrsus.com>
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
	<4FB95841.5030501@techworks.ie>
	<20120520221925.GA27910@thyrsus.com>
	<4FB96F10.5040503@techworks.ie>
	<20120520230021.GA30472@thyrsus.com>
	<4FB978E4.8090004@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FB978E4.8090004@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 23:14:20 -0000

Christian Gagneraud <chris@techworks.ie>:
> >Looks good - I was going to write you to compliment you on the new
> >test load.  Well added and well documented.  Do you have anything else
> >you want to get in before 3.6?
> 
> No, I'm done for now (It's midnight here! ;)).

OK, then, I'll probably ship 3.6 tomorrow.  There may be one more fix
patch relating to NMEA2000 coming in.

> I have plan to add a new message, but it will be for next week, no rush!

Which one?  More generally, how many untested types can you add to our
test coverage?

> BTW, I've just send a lost patch that fixes some typo in the
> documentation (unrelated to AIS).

Taken and merged.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun May 20 19:17:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWFN2-0006wj-Qk
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 19:17:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49411)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWFN0-0006uI-7i
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:17:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWFMy-0005dA-Hv
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 19:17:01 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:55785 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1SWFMy-0005cw-E4; Sun, 20 May 2012 19:17:00 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id E591240475; Sun, 20 May 2012 19:16:30 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org
Message-Id: <20120520231630.E591240475@snark.thyrsus.com>
Date: Sun, 20 May 2012 19:16:30 -0400 (EDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] 3.6 release is imminent
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 20 May 2012 23:17:03 -0000

I plan to ship 3.6 within 48 hours.  This is mainly a cleanup
release intended to get the results of Coverity-scanning the code
into the field, but it aklso debuts our support for NMEA2000.

If you have any urgent bug fixes, please ship them now.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

"...The Bill of Rights is a literal and absolute document. The First
Amendment doesn't say you have a right to speak out unless the
government has a 'compelling interest' in censoring the Internet. The
Second Amendment doesn't say you have the right to keep and bear arms
until some madman plants a bomb. The Fourth Amendment doesn't say you
have the right to be secure from search and seizure unless some FBI
agent thinks you fit the profile of a terrorist. The government has no
right to interfere with any of these freedoms under any circumstances."
	-- Harry Browne, 1996 USA presidential candidate, Libertarian Party


From MAILER-DAEMON Sun May 20 20:07:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWG9o-0002Vz-02
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 20:07:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52974)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWG9l-0002U0-9z
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 20:07:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWG9j-0001BP-DO
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 20:07:24 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:53114)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SWG9j-00019p-6b
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 20:07:23 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 670E96008CC;
	Mon, 21 May 2012 01:07:19 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 8YOW55rSvb+U; Mon, 21 May 2012 01:07:18 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id E46D16008C8;
	Mon, 21 May 2012 01:07:17 +0100 (IST)
Message-ID: <4FB9873E.9020503@techworks.ie>
Date: Mon, 21 May 2012 01:07:26 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
	<4FB95841.5030501@techworks.ie>
	<20120520221925.GA27910@thyrsus.com>
	<4FB96F10.5040503@techworks.ie>
	<20120520230021.GA30472@thyrsus.com>
	<4FB978E4.8090004@techworks.ie>
	<20120520231312.GA30666@thyrsus.com>
In-Reply-To: <20120520231312.GA30666@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 21 May 2012 00:07:26 -0000

On 05/21/2012 12:13 AM, Eric S. Raymond wrote:
> Christian Gagneraud<chris@techworks.ie>:
>>> Looks good - I was going to write you to compliment you on the new
>>> test load.  Well added and well documented.  Do you have anything else
>>> you want to get in before 3.6?
>>
>> No, I'm done for now (It's midnight here! ;)).
>
> OK, then, I'll probably ship 3.6 tomorrow.  There may be one more fix
> patch relating to NMEA2000 coming in.
>
>> I have plan to add a new message, but it will be for next week, no rush!
>
> Which one?  More generally, how many untested types can you add to our
> test coverage?

For now, it will be the only one unfortunately. It is Type 6, DAC=250, 
FI=10. It's for AtoN status message in Ireland and in the UK (w/ 
DAC=235). These are parts of the GLA standards (General Lighthouse 
Authorities).
Again I'm using a Kanaton3 which supports sending this message, giving 
me access to a trusted proprietary decoder and AFAIK Neal Arundale's 
software decodes it as well. I still have to find out what other feature 
this AtoN supports that can be of any help to improve gpsd AIS coverage, 
It has been originally designed for the French marine authorities, but 
it is usable in UK and Ireland as well.

At some point, I would like to start testing the Maritec Telebeacon Type 
1 [1] as I'm a lucky owner of one of these, I might get some interesting 
stuff out of it.

I'm trying to get my hand as well on an AtoN that can send the 
met/hydro, version IMO289, but I can't make any promise on that one.
Manufacturers are just starting to support it in place of the IMO236 one.

>
>> BTW, I've just send a lost patch that fixes some typo in the
>> documentation (unrelated to AIS).
>
> Taken and merged.

Thx,
Chris

[1] http://www.maritec.co.za/tbt1.php


From MAILER-DAEMON Sun May 20 21:43:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWHeL-0002q7-F2
	for mharc-gpsd-dev@gnu.org; Sun, 20 May 2012 21:43:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52997)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWHeI-0002pz-DC
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 21:43:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWHeG-0004Gd-I5
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 21:43:01 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:56202 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWHeG-0004GK-E8
	for gpsd-dev@nongnu.org; Sun, 20 May 2012 21:43:00 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 1414F40475; Sun, 20 May 2012 21:42:30 -0400 (EDT)
Date: Sun, 20 May 2012 21:42:30 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Christian Gagneraud <chris@techworks.ie>
Message-ID: <20120521014229.GB31161@thyrsus.com>
References: <4FB85759.2000009@techworks.ie>
	<20120520045911.GA22672@thyrsus.com>
	<4FB95841.5030501@techworks.ie>
	<20120520221925.GA27910@thyrsus.com>
	<4FB96F10.5040503@techworks.ie>
	<20120520230021.GA30472@thyrsus.com>
	<4FB978E4.8090004@techworks.ie>
	<20120520231312.GA30666@thyrsus.com>
	<4FB9873E.9020503@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FB9873E.9020503@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Running regression tests
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 21 May 2012 01:43:03 -0000

Christian Gagneraud <chris@techworks.ie>:
> >Which one?  More generally, how many untested types can you add to our
> >test coverage?
> 
> For now, it will be the only one unfortunately. It is Type 6,
> DAC=250, FI=10. It's for AtoN status message in Ireland and in the
> UK (w/ DAC=235). These are parts of the GLA standards (General
> Lighthouse Authorities).

That's good to know.

> I'm trying to get my hand as well on an AtoN that can send the
> met/hydro, version IMO289, but I can't make any promise on that one.
> Manufacturers are just starting to support it in place of the IMO236 one.

That's also good to know.  Thanks.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 21 16:55:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWZdE-00005G-9Y
	for mharc-gpsd-dev@gnu.org; Mon, 21 May 2012 16:55:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55638)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SWZd9-0008NY-2h
	for gpsd-dev@nongnu.org; Mon, 21 May 2012 16:55:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SWZd6-0005Zy-EV
	for gpsd-dev@nongnu.org; Mon, 21 May 2012 16:55:02 -0400
Received: from smtp.gentoo.org ([140.211.166.183]:51612)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SWZd6-0005Z4-8d
	for gpsd-dev@nongnu.org; Mon, 21 May 2012 16:55:00 -0400
Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id BCBB21B4008
	for <gpsd-dev@nongnu.org>; Mon, 21 May 2012 20:54:57 +0000 (UTC)
From: Mike Frysinger <vapier@gentoo.org>
To: gpsd-dev@nongnu.org
Date: Mon, 21 May 2012 16:55:56 -0400
Message-Id: <1337633756-15101-1-git-send-email-vapier@gentoo.org>
X-Mailer: git-send-email 1.7.8.6
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 140.211.166.183
Subject: [gpsd-dev] [PATCH] fix building with clock_gettime and newer glibc
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 21 May 2012 20:55:04 -0000

Building with recent glibc versions fails in gpsutils.c due to missing
definitions related to clock_gettime.  This is because we define the
_XOPEN_SOURCE macro, but not to a new enough value.  So set it to a
recent spec value that satisfies both strptime and clock_gettime.

Example build failure with glibc-2.15:
gpsutils.c: In function 'timestamp':
gpsutils.c:299:22: error: storage size of 'ts' isn't known
gpsutils.c:300:14: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
gpsutils.c:300:34: error: 'CLOCK_REALTIME' undeclared (first use in this function)
gpsutils.c:300:34: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 gpsutils.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gpsutils.c b/gpsutils.c
index 523838a..3b4990a 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -5,8 +5,10 @@
  */
 
 /* The strptime prototype is not provided unless explicitly requested.
- *  So add the define that POSIX says to to avoid: */
-#define _XOPEN_SOURCE
+ * We also need to set the value high enough to signal inclusion of
+ * newer features (like clock_gettime).  See the POSIX spec for more info:
+ * http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02_01_02 */
+#define _XOPEN_SOURCE 600
 
 #include <stdio.h>
 #include <time.h>
-- 
1.7.8.6



From MAILER-DAEMON Mon May 21 17:04:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWZmG-0002r0-Me
	for mharc-gpsd-dev@gnu.org; Mon, 21 May 2012 17:04:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40675)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWZmD-0002qr-JZ
	for gpsd-dev@nongnu.org; Mon, 21 May 2012 17:04:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWZmB-0001hW-Ph
	for gpsd-dev@nongnu.org; Mon, 21 May 2012 17:04:25 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:35606 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SWZmB-0001hP-Lh
	for gpsd-dev@nongnu.org; Mon, 21 May 2012 17:04:23 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id E082240475; Mon, 21 May 2012 17:03:51 -0400 (EDT)
Date: Mon, 21 May 2012 17:03:51 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Mike Frysinger <vapier@gentoo.org>
Message-ID: <20120521210351.GA26884@thyrsus.com>
References: <1337633756-15101-1-git-send-email-vapier@gentoo.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1337633756-15101-1-git-send-email-vapier@gentoo.org>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] fix building with clock_gettime and newer
 glibc
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 21 May 2012 21:04:27 -0000

Mike Frysinger <vapier@gentoo.org>:
> Building with recent glibc versions fails in gpsutils.c due to missing
> definitions related to clock_gettime.  This is because we define the
> _XOPEN_SOURCE macro, but not to a new enough value.  So set it to a
> recent spec value that satisfies both strptime and clock_gettime.

Thanks, this has been a persistent annoyance in recent builds.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 22 20:02:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWz2R-0007Pr-2A
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:02:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32982)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2N-0007MU-Jl
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2K-0005gx-SI
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:47 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40972)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2K-0005cA-M1
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:44 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id BB326600F08
	for <gpsd-dev@nongnu.org>; Wed, 23 May 2012 01:02:20 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WuWd9FHdDKu0; Wed, 23 May 2012 01:02:20 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 7300E600EE5;
	Wed, 23 May 2012 01:02:20 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:03:00 +0100
Message-Id: <cover.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <cgagneraud@techworks.ie>
Subject: [gpsd-dev] [RFC 0/3] [AIS] AtoN monitoring message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:02:49 -0000

From: Christian Gagneraud <cgagneraud@techworks.ie>

This is just an RFC, i did not add regression tests yet. It's just built and 
run tested.

At some point, I would like to split the 2 "status bits" into individual 
fields, maybe at the low level or maybe just at the json level, don't know 
yet...

The second patch is not a real fix, but just a quick work-around, without that 
the python script would just crash, the modification i've made just avoid this 
crash, the output of "-d" isn't still quite right...

I'm thinking as well about adding some basic documentation on how to add new 
AIS messages.

While I'm  there, I'm thinking about adding a "AIS message status" to the 
documentation, that would summarise what's decoded or not and what's tested 
or not, and add generated examples of inputs vs output from sample.aivdm[,.chk]

It's getting late, /me going to bed! ;)

PS: Eric, I have no plan to commit anything before you do the release. 

Christian Gagneraud (3):
  [AIS] Add UK/ROI AtoN monitoring data message documentation
  [AIS] Quick and dirty hack. I don't get what's going on here
  [AIS] Add UK/ROI AtoN monitoring data message handling

 devtools/tablegen.py |    2 +-
 driver_ais.c         |   18 +++++++++++++-
 gps.h                |   16 ++++++++++++
 gpsd_json.c          |   23 +++++++++++++++++-
 jsongen.py.in        |   14 +++++++++++
 www/AIVDM.txt        |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 133 insertions(+), 3 deletions(-)

-- 
1.7.7



From MAILER-DAEMON Tue May 22 20:02:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWz2R-0007Rg-Gp
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:02:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33000)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2O-0007Mi-N0
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2M-0005hI-6c
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:48 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40983)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2L-0005cY-Q6
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:46 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id A5283600F0C;
	Wed, 23 May 2012 01:02:22 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id oh8BAms6OmEH; Wed, 23 May 2012 01:02:21 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 424DF600EE5;
	Wed, 23 May 2012 01:02:21 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:03:01 +0100
Message-Id: <56e92035cae80d9a4336239318ebd1b1decca0d9.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] =?utf-8?q?=5BRFC_1/3=5D_=5BAIS=5D_Add_UK/ROI_AtoN_moni?=
	=?utf-8?q?toring_data_message_documentation?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:02:50 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 www/AIVDM.txt |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++=
++++++
 1 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/www/AIVDM.txt b/www/AIVDM.txt
index 2cc5136..6a108ee 100644
--- a/www/AIVDM.txt
+++ b/www/AIVDM.txt
@@ -874,6 +874,8 @@ in use for type 6.
 |   1 | 28 |     | <<IMO289>>  | Standard         | Route info addressed
 |   1 | 30 |     | <<IMO289>>  | Standard         | Text description add=
ressed
 |   1 | 32 |     | <<IMO289>>  | Standard         | Tidal Window
+| 235 | 10 |     | <<IALA-A126>> | In use         | AIS AtoN monitoring =
data (UK)
+| 250 | 10 |     | <<IALA-A126>> | In use         | AIS AtoN monitoring =
data (ROI)
 |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
=20
 DAC/FID pairs are assigned separately per message type.
@@ -1703,6 +1705,62 @@ different bit widths for the latitude and longitud=
e fields.
 The group of fields from longitude on may repeat twice more to convey up=
 to
 three points of tidal information.=20
=20
+=3D=3D=3D=3D AtoN monitoring data (GLA) =3D=3D=3D=3D
+
+This message provides AtoN (Aid to navigation) monitoring data for the A=
toN administration
+
+A message 6 subtype. DAC =3D 235 or 250 FID =3D 10. Fixed length: 136 bi=
ts.
+
+DAC and FI are user configurable, DAC=3D235/FI=3D10 is used in UK, DAC=3D=
250/FI=3D10
+in the Republic Of Ireland.
+
+The interval between the transmission of these messages will be synchron=
ized
+with message 21, although not necessarily at the same reporting rate. If
+Message 21 is not used at a particular site, then the reporting interval
+should be selected to minimise the power requirement of the transponder,
+whilst still providing enough data to enable meaningful diagnostic analy=
sis.
+
+[frame=3D"topbot",options=3D"header"]
+|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
+|Field   |Len |Description       |Member     |T|Units
+|0-5     |  6 |Message Type      |type       |u|Constant: 6
+|6-7     |  2 |Repeat Indicator  |repeat     |u|As in Common Navigation =
Block
+|8-37    | 30 |Source MMSI       |mmsi       |u|9 decimal digits
+|38-39   |  2 |Sequence Number   |seqno      |u|Unsigned integer 0-3
+|40-69   | 30 |Destination MMSI  |dest_mmsi  |u|9 decimal digits
+|70-70   |  1 |Retransmit flag   |retransmit |u|0 =3D no retransmit (def=
ault),
+                                                1 =3D retransmitted
+|71-71   |  1 |Spare                 |          |x|Not used
+|72-81   | 10 |DAC                   |dac       |u|DAC =3D 235 or 250
+|82-87   |  6 |FID                   |fid       |u|FID =3D 10
+|88-97   | 10 |Analogue              |ana_int   |u|0.05=E2=80=93 36V 0.0=
5V step=20
+                                                   Supply voltage to AIS=
 Unit
+                                                   0 =E2=80=93 Not Used
+|98-107  | 10 |Analogue (external #1)|ana_ext1|u|0.05=E2=80=93 36V 0.05V=
 step
+                                               0 =E2=80=93 Not Used
+|108-117 | 10 |Analogue (external #2)|ana_ext2|u|0.05=E2=80=93 36V 0.05V=
 step
+                                               0 =E2=80=93 Not Used
+|118-122 |  5 |Status bits (internal)|stat_int|u|      / 00 =3D no RACON=
 installed
+                                                 4  \ /  01 =3D RACON no=
t monitored
+                                                 3  / \  10 =3D RACON op=
erational
+						       \ 11 =3D RACON ERROR
+                                                       / 00 =3D no light=
 or no monitoring
+                                                 2  \ /  01 =3D Light ON=
=20
+                                                 1  / \  10 =3D Light OF=
F =20
+                                                       \ 11 =3D Light ER=
ROR
+                                                 0        0 =3D Good Hea=
lth, 1 =3D Alarm
+|123-130 |  8 |Status bits (external)|stat_ext|u|7  Digital Input 0=3DOf=
f, 1=3DOn
+                                                 :
+                                                 :
+                                                 0  Digital Input 0=3DOf=
f, 1=3DOn
+|131-131 |  1 |Off position status   |off_position|b|0 =3D On position, =
1 =3D Off position
+|132-135 |  4 |Spare                 |          |x|Not used
+|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
+
+The internal status bits are the same as the 5 LSBs of status bits from
+Message type 21.
+
+
 =3D=3D=3D Type 7: Binary Acknowledge =3D=3D=3D
=20
 Message type 7 is a receipt acknowledgement to the senders of a
@@ -4384,6 +4442,11 @@ Identification System]
   289: Guidance on the Use of AIS Application-Specific Messages=20
   (June 2010)]
=20
+- [[IALA-A126]]=20
+  http://www.ialathree.org/chapo/publications/documentspdf/doc_235_eng.p=
df[IALA
+  Recommendation A-126 On The Use of the Automatic Identification System=
 (AIS)
+  in Marine Aids to Navigation Services
+
 - [[[Schwehr]]] http://schwehr.org/blog/[Kurt Schwehr's weblog]
=20
 - [[[IEC-PAS]]] IEC-PAS 61162-100, "Maritime navigation and
--=20
1.7.7



From MAILER-DAEMON Tue May 22 20:02:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWz2S-0007Vb-QB
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:02:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33010)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2P-0007Mx-Af
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2M-0005hZ-QQ
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:48 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40990)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2M-0005cq-Hf
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:46 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 96F65600F09;
	Wed, 23 May 2012 01:02:23 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id pxX8uQlyYlhz; Wed, 23 May 2012 01:02:23 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 33459600EE5;
	Wed, 23 May 2012 01:02:23 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:03:03 +0100
Message-Id: <f1f0678e36113dec0c47ee9d15f54d530f11afe0.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [RFC 3/3] [AIS] Add UK/ROI AtoN monitoring data message
	handling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:02:51 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 driver_ais.c  |   18 +++++++++++++++++-
 gps.h         |   16 ++++++++++++++++
 gpsd_json.c   |   23 ++++++++++++++++++++++-
 jsongen.py.in |   14 ++++++++++++++
 4 files changed, 69 insertions(+), 2 deletions(-)

diff --git a/driver_ais.c b/driver_ais.c
index 44ee7ef..4ab8c5a 100644
--- a/driver_ais.c
+++ b/driver_ais.c
@@ -178,7 +178,23 @@ bool ais_binary_decode(struct ais_t *ais,
 	ais->type6.fid            = UBITS(82, 6);
 	ais->type6.bitcount       = bitlen - 88;
 	imo = false;
-	if (ais->type6.dac == 1)
+	/* UK and Republic Of Ireland */
+	if (ais->type6.dac == 235 || ais->type6.dac == 250) {
+	    switch (ais->type6.fid) {
+	    case 10:	/* GLA - AtoN monitoring data */
+		ais->type6.dac235fid10.ana_int		= UBITS(88, 10);
+		ais->type6.dac235fid10.ana_ext1		= UBITS(98, 10);
+		ais->type6.dac235fid10.ana_ext2		= UBITS(108, 10);
+		ais->type6.dac235fid10.stat_int		= UBITS(118, 5);
+		ais->type6.dac235fid10.stat_ext		= UBITS(123, 8);
+		ais->type6.dac235fid10.off_position	= UBITS(131, 1);
+		/* skip 4 bits */
+		imo = true;
+	    }
+	    break;
+	}
+	/* International */
+	else if (ais->type6.dac == 1)
 	    switch (ais->type6.fid) {
 	    case 12:	/* IMO236 - Dangerous cargo indication */
 		UCHARS(88, ais->type6.dac1fid12.lastport);
diff --git a/gps.h b/gps.h
index b74ea29..8330fa0 100644
--- a/gps.h
+++ b/gps.h
@@ -967,6 +967,22 @@ struct ais_t
 		char bitdata[(AIS_TYPE6_BINARY_MAX + 7) / 8];
 		/* IMO236 - Dangerous Cargo Indication */
 		struct {
+		    unsigned int type;  /* Message Type */
+		    unsigned int repeat;        /* Repeat Indicator */
+		    unsigned int mmsi;  /* Source MMSI */
+		    unsigned int seqno; /* Sequence Number */
+		    unsigned int dest_mmsi;     /* Destination MMSI */
+		    unsigned int retransmit;    /* Retransmit flag */
+		    unsigned int dac;   /* DAC */
+		    unsigned int fid;   /* FID */
+		    unsigned int ana_int;       /* Analogue */
+		    unsigned int ana_ext1;      /* Analogue (external #1) */
+		    unsigned int ana_ext2;      /* Analogue (external #2) */
+		    unsigned int stat_int;      /* Status bits (internal) */
+		    unsigned int stat_ext;      /* Status bits (external) */
+		    bool off_position;    /* Off position status */
+		} dac235fid10;
+		struct {
 		    char lastport[5+1];		/* Last Port Of Call */
 		    unsigned int lmonth;	/* ETA month */
 		    unsigned int lday;		/* ETA day */
diff --git a/gpsd_json.c b/gpsd_json.c
index 7e8c89e..c9d79f1 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -1807,7 +1807,28 @@ void json_aivdm_dump(const struct ais_t *ais,
 		       ais->type6.dac,
 		       ais->type6.fid);
 	imo = false;
-	if (ais->type6.dac == 1)
+
+	if (ais->type6.dac == 235 || ais->type6.dac == 250) {
+	    switch (ais->type6.fid) {
+	    case 10:	/* GLA - AtoN monitoring data */
+		(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
+			       "\"ana_int\":%u,\"ana_ext1\":%u,"
+			       "\"ana_ext2\":%u,\"stat_int\":%u,\"stat_ext\":%u,"
+			       "\"off_position\":\"%s\"",
+			       ais->type6.dac235fid10.ana_int,
+			       ais->type6.dac235fid10.ana_ext1,
+			       ais->type6.dac235fid10.ana_ext2,
+			       ais->type6.dac235fid10.stat_int,
+			       ais->type6.dac235fid10.stat_ext,
+			       JSON_BOOL(ais->type6.dac235fid10.off_position));
+		if (buf[strlen(buf) - 1] == ',')
+		    buf[strlen(buf)-1] = '\0';
+		(void)strlcat(buf, "]}\r\n,", buflen);
+		imo = true;
+		break;
+	    }
+	}
+	else if (ais->type6.dac == 1)
 	    switch (ais->type6.fid) {
 	    case 12:	/* IMO236 -Dangerous cargo indication */
 		/* some fields have beem merged to an ISO8601 partial date */
diff --git a/jsongen.py.in b/jsongen.py.in
index 86e2169..a9075f8 100644
--- a/jsongen.py.in
+++ b/jsongen.py.in
@@ -95,6 +95,20 @@ ais_specs = (
     "stringbuffered":("data",),
     },
     {
+        "initname" : "json_ais6_fid10",
+        "headers": ("AIS_HEADER", "AIS_TYPE6",),
+        "structname": "ais->type6.dac235fid10",
+        "fieldmap":(
+            # fieldname    type        default
+            ('ana_int',    'uinteger', '0'),
+            ('ana_ext1',   'uinteger', '0'),
+            ('ana_ext2',   'uinteger', '0'),
+            ('stat_int',   'uinteger', '0'),
+            ('stat_ext',   'uinteger', '0'),
+            ('off_position', 'boolean', 'false'),
+        ),
+    },
+    {
     "initname" : "json_ais6_fid12",
     "headers": ("AIS_HEADER","AIS_TYPE6",),
     "structname": "ais->type6.dac1fid12",
-- 
1.7.7



From MAILER-DAEMON Tue May 22 20:02:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWz2R-0007Qh-8s
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:02:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32990)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2O-0007Md-8w
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2M-0005hR-E1
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:47 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40985)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWz2M-0005ca-8D
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:02:46 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id C8A1E600F0D;
	Wed, 23 May 2012 01:02:22 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id MIg0brt08iJx; Wed, 23 May 2012 01:02:22 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 422D2600F09;
	Wed, 23 May 2012 01:02:22 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:03:02 +0100
Message-Id: <cd0765c915eaec0afd75a45bf732f62fb45db823.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [RFC 2/3] [AIS] Quick and dirty hack. I don't get what's
	going on here
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:02:49 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 devtools/tablegen.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/devtools/tablegen.py b/devtools/tablegen.py
index 4a68b8d..16b7a30 100755
--- a/devtools/tablegen.py
+++ b/devtools/tablegen.py
@@ -270,7 +270,7 @@ def make_json_dumper(wfp):
             continue        
         # At end of tuples, or if scaled flag changes, or if next op is array,
         # flush out dump code for a span of fields.
-        if tuples[i+1][1] == None:
+        if i+1 != len(tuples) and tuples[i+1][1] == None: # Doesn't work for array
             endit = r',\"%s\":['
         elif i+1 == len(tuples):
             if not inarray:
-- 
1.7.7



From MAILER-DAEMON Tue May 22 20:44:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWzgK-0005aR-Mc
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:44:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57983)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgI-0005ZQ-61
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgG-0007np-EK
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:01 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:44115)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgG-0007nc-8c
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:00 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id CCE69600EE0;
	Wed, 23 May 2012 01:43:57 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id FSqu6Y2iVIRS; Wed, 23 May 2012 01:43:56 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 2D45D600F14;
	Wed, 23 May 2012 01:43:56 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:44:36 +0100
Message-Id: <cd0765c915eaec0afd75a45bf732f62fb45db823.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [RFC 2/3] [AIS] Quick and dirty hack. I don't get what's
	going on here
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:44:03 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 devtools/tablegen.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/devtools/tablegen.py b/devtools/tablegen.py
index 4a68b8d..16b7a30 100755
--- a/devtools/tablegen.py
+++ b/devtools/tablegen.py
@@ -270,7 +270,7 @@ def make_json_dumper(wfp):
             continue        
         # At end of tuples, or if scaled flag changes, or if next op is array,
         # flush out dump code for a span of fields.
-        if tuples[i+1][1] == None:
+        if i+1 != len(tuples) and tuples[i+1][1] == None: # Doesn't work for array
             endit = r',\"%s\":['
         elif i+1 == len(tuples):
             if not inarray:
-- 
1.7.7



From MAILER-DAEMON Tue May 22 20:44:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWzgL-0005eZ-WD
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:44:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57995)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgI-0005Zd-UG
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgG-0007o3-Hz
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:02 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:44114)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgG-0007nT-8h
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:00 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id AF85E600F0B;
	Wed, 23 May 2012 01:43:58 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 5r+RcPRkj7ne; Wed, 23 May 2012 01:43:57 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 674B2600F15;
	Wed, 23 May 2012 01:43:57 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:44:37 +0100
Message-Id: <f1f0678e36113dec0c47ee9d15f54d530f11afe0.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [RFC 3/3] [AIS] Add UK/ROI AtoN monitoring data message
	handling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:44:04 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 driver_ais.c  |   18 +++++++++++++++++-
 gps.h         |   16 ++++++++++++++++
 gpsd_json.c   |   23 ++++++++++++++++++++++-
 jsongen.py.in |   14 ++++++++++++++
 4 files changed, 69 insertions(+), 2 deletions(-)

diff --git a/driver_ais.c b/driver_ais.c
index 44ee7ef..4ab8c5a 100644
--- a/driver_ais.c
+++ b/driver_ais.c
@@ -178,7 +178,23 @@ bool ais_binary_decode(struct ais_t *ais,
 	ais->type6.fid            = UBITS(82, 6);
 	ais->type6.bitcount       = bitlen - 88;
 	imo = false;
-	if (ais->type6.dac == 1)
+	/* UK and Republic Of Ireland */
+	if (ais->type6.dac == 235 || ais->type6.dac == 250) {
+	    switch (ais->type6.fid) {
+	    case 10:	/* GLA - AtoN monitoring data */
+		ais->type6.dac235fid10.ana_int		= UBITS(88, 10);
+		ais->type6.dac235fid10.ana_ext1		= UBITS(98, 10);
+		ais->type6.dac235fid10.ana_ext2		= UBITS(108, 10);
+		ais->type6.dac235fid10.stat_int		= UBITS(118, 5);
+		ais->type6.dac235fid10.stat_ext		= UBITS(123, 8);
+		ais->type6.dac235fid10.off_position	= UBITS(131, 1);
+		/* skip 4 bits */
+		imo = true;
+	    }
+	    break;
+	}
+	/* International */
+	else if (ais->type6.dac == 1)
 	    switch (ais->type6.fid) {
 	    case 12:	/* IMO236 - Dangerous cargo indication */
 		UCHARS(88, ais->type6.dac1fid12.lastport);
diff --git a/gps.h b/gps.h
index b74ea29..8330fa0 100644
--- a/gps.h
+++ b/gps.h
@@ -967,6 +967,22 @@ struct ais_t
 		char bitdata[(AIS_TYPE6_BINARY_MAX + 7) / 8];
 		/* IMO236 - Dangerous Cargo Indication */
 		struct {
+		    unsigned int type;  /* Message Type */
+		    unsigned int repeat;        /* Repeat Indicator */
+		    unsigned int mmsi;  /* Source MMSI */
+		    unsigned int seqno; /* Sequence Number */
+		    unsigned int dest_mmsi;     /* Destination MMSI */
+		    unsigned int retransmit;    /* Retransmit flag */
+		    unsigned int dac;   /* DAC */
+		    unsigned int fid;   /* FID */
+		    unsigned int ana_int;       /* Analogue */
+		    unsigned int ana_ext1;      /* Analogue (external #1) */
+		    unsigned int ana_ext2;      /* Analogue (external #2) */
+		    unsigned int stat_int;      /* Status bits (internal) */
+		    unsigned int stat_ext;      /* Status bits (external) */
+		    bool off_position;    /* Off position status */
+		} dac235fid10;
+		struct {
 		    char lastport[5+1];		/* Last Port Of Call */
 		    unsigned int lmonth;	/* ETA month */
 		    unsigned int lday;		/* ETA day */
diff --git a/gpsd_json.c b/gpsd_json.c
index 7e8c89e..c9d79f1 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -1807,7 +1807,28 @@ void json_aivdm_dump(const struct ais_t *ais,
 		       ais->type6.dac,
 		       ais->type6.fid);
 	imo = false;
-	if (ais->type6.dac == 1)
+
+	if (ais->type6.dac == 235 || ais->type6.dac == 250) {
+	    switch (ais->type6.fid) {
+	    case 10:	/* GLA - AtoN monitoring data */
+		(void)snprintf(buf + strlen(buf), buflen - strlen(buf),
+			       "\"ana_int\":%u,\"ana_ext1\":%u,"
+			       "\"ana_ext2\":%u,\"stat_int\":%u,\"stat_ext\":%u,"
+			       "\"off_position\":\"%s\"",
+			       ais->type6.dac235fid10.ana_int,
+			       ais->type6.dac235fid10.ana_ext1,
+			       ais->type6.dac235fid10.ana_ext2,
+			       ais->type6.dac235fid10.stat_int,
+			       ais->type6.dac235fid10.stat_ext,
+			       JSON_BOOL(ais->type6.dac235fid10.off_position));
+		if (buf[strlen(buf) - 1] == ',')
+		    buf[strlen(buf)-1] = '\0';
+		(void)strlcat(buf, "]}\r\n,", buflen);
+		imo = true;
+		break;
+	    }
+	}
+	else if (ais->type6.dac == 1)
 	    switch (ais->type6.fid) {
 	    case 12:	/* IMO236 -Dangerous cargo indication */
 		/* some fields have beem merged to an ISO8601 partial date */
diff --git a/jsongen.py.in b/jsongen.py.in
index 86e2169..a9075f8 100644
--- a/jsongen.py.in
+++ b/jsongen.py.in
@@ -95,6 +95,20 @@ ais_specs = (
     "stringbuffered":("data",),
     },
     {
+        "initname" : "json_ais6_fid10",
+        "headers": ("AIS_HEADER", "AIS_TYPE6",),
+        "structname": "ais->type6.dac235fid10",
+        "fieldmap":(
+            # fieldname    type        default
+            ('ana_int',    'uinteger', '0'),
+            ('ana_ext1',   'uinteger', '0'),
+            ('ana_ext2',   'uinteger', '0'),
+            ('stat_int',   'uinteger', '0'),
+            ('stat_ext',   'uinteger', '0'),
+            ('off_position', 'boolean', 'false'),
+        ),
+    },
+    {
     "initname" : "json_ais6_fid12",
     "headers": ("AIS_HEADER","AIS_TYPE6",),
     "structname": "ais->type6.dac1fid12",
-- 
1.7.7



From MAILER-DAEMON Tue May 22 20:44:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWzgO-0005m3-GF
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:44:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58007)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgJ-0005Zm-Ne
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgH-0007oG-3l
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:03 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:44116)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgG-0007ni-Tz
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:01 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id A4C13600F13
	for <gpsd-dev@nongnu.org>; Wed, 23 May 2012 01:43:55 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id rnbpNSJw4xBC; Wed, 23 May 2012 01:43:54 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id C3E4F600F0B;
	Wed, 23 May 2012 01:43:53 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:44:34 +0100
Message-Id: <cover.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <cgagneraud@techworks.ie>
Subject: [gpsd-dev] [RFC 0/3] [AIS] AtoN monitoring message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:44:05 -0000

From: Christian Gagneraud <cgagneraud@techworks.ie>

This is just an RFC, i did not add regression tests yet. It's just built and 
run tested.

At some point, I would like to split the 2 "status bits" into individual 
fields, maybe at the low level or maybe just at the json level, don't know 
yet...

The second patch is not a real fix, but just a quick work-around, without that 
the python script would just crash, the modification i've made just avoid this 
crash, the output of "-d" isn't still quite right...

I'm thinking as well about adding some basic documentation on how to add new 
AIS messages.

While I'm  there, I'm thinking about adding a "AIS message status" to the 
documentation, that would summarise what's decoded or not and what's tested 
or not, and add generated examples of inputs vs output from sample.aivdm[,.chk]

It's getting late, /me going to bed! ;)

PS: Eric, I have no plan to commit anything before you do the release. 

Christian Gagneraud (3):
  [AIS] Add UK/ROI AtoN monitoring data message documentation
  [AIS] Quick and dirty hack. I don't get what's going on here
  [AIS] Add UK/ROI AtoN monitoring data message handling

 devtools/tablegen.py |    2 +-
 driver_ais.c         |   18 +++++++++++++-
 gps.h                |   16 ++++++++++++
 gpsd_json.c          |   23 +++++++++++++++++-
 jsongen.py.in        |   14 +++++++++++
 www/AIVDM.txt        |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 133 insertions(+), 3 deletions(-)

-- 
1.7.7



From MAILER-DAEMON Tue May 22 20:44:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SWzgM-0005fo-BN
	for mharc-gpsd-dev@gnu.org; Tue, 22 May 2012 20:44:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57992)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgI-0005Za-Pr
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgG-0007ny-HK
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:02 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:44111)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SWzgG-0007nS-8W
	for gpsd-dev@nongnu.org; Tue, 22 May 2012 20:44:00 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 5A04C600F09;
	Wed, 23 May 2012 01:43:58 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id s+ldWHxBqTVa; Wed, 23 May 2012 01:43:55 +0100 (IST)
Received: from localhost (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id E8805600F11;
	Wed, 23 May 2012 01:43:54 +0100 (IST)
From: chgans@gna.org
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 01:44:35 +0100
Message-Id: <56e92035cae80d9a4336239318ebd1b1decca0d9.1337731221.git.cgagneraud@techworks.ie>
X-Mailer: git-send-email 1.7.7
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] =?utf-8?q?=5BRFC_1/3=5D_=5BAIS=5D_Add_UK/ROI_AtoN_moni?=
	=?utf-8?q?toring_data_message_documentation?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 00:44:04 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 www/AIVDM.txt |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++=
++++++
 1 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/www/AIVDM.txt b/www/AIVDM.txt
index 2cc5136..6a108ee 100644
--- a/www/AIVDM.txt
+++ b/www/AIVDM.txt
@@ -874,6 +874,8 @@ in use for type 6.
 |   1 | 28 |     | <<IMO289>>  | Standard         | Route info addressed
 |   1 | 30 |     | <<IMO289>>  | Standard         | Text description add=
ressed
 |   1 | 32 |     | <<IMO289>>  | Standard         | Tidal Window
+| 235 | 10 |     | <<IALA-A126>> | In use         | AIS AtoN monitoring =
data (UK)
+| 250 | 10 |     | <<IALA-A126>> | In use         | AIS AtoN monitoring =
data (ROI)
 |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
=20
 DAC/FID pairs are assigned separately per message type.
@@ -1703,6 +1705,62 @@ different bit widths for the latitude and longitud=
e fields.
 The group of fields from longitude on may repeat twice more to convey up=
 to
 three points of tidal information.=20
=20
+=3D=3D=3D=3D AtoN monitoring data (GLA) =3D=3D=3D=3D
+
+This message provides AtoN (Aid to navigation) monitoring data for the A=
toN administration
+
+A message 6 subtype. DAC =3D 235 or 250 FID =3D 10. Fixed length: 136 bi=
ts.
+
+DAC and FI are user configurable, DAC=3D235/FI=3D10 is used in UK, DAC=3D=
250/FI=3D10
+in the Republic Of Ireland.
+
+The interval between the transmission of these messages will be synchron=
ized
+with message 21, although not necessarily at the same reporting rate. If
+Message 21 is not used at a particular site, then the reporting interval
+should be selected to minimise the power requirement of the transponder,
+whilst still providing enough data to enable meaningful diagnostic analy=
sis.
+
+[frame=3D"topbot",options=3D"header"]
+|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
+|Field   |Len |Description       |Member     |T|Units
+|0-5     |  6 |Message Type      |type       |u|Constant: 6
+|6-7     |  2 |Repeat Indicator  |repeat     |u|As in Common Navigation =
Block
+|8-37    | 30 |Source MMSI       |mmsi       |u|9 decimal digits
+|38-39   |  2 |Sequence Number   |seqno      |u|Unsigned integer 0-3
+|40-69   | 30 |Destination MMSI  |dest_mmsi  |u|9 decimal digits
+|70-70   |  1 |Retransmit flag   |retransmit |u|0 =3D no retransmit (def=
ault),
+                                                1 =3D retransmitted
+|71-71   |  1 |Spare                 |          |x|Not used
+|72-81   | 10 |DAC                   |dac       |u|DAC =3D 235 or 250
+|82-87   |  6 |FID                   |fid       |u|FID =3D 10
+|88-97   | 10 |Analogue              |ana_int   |u|0.05=E2=80=93 36V 0.0=
5V step=20
+                                                   Supply voltage to AIS=
 Unit
+                                                   0 =E2=80=93 Not Used
+|98-107  | 10 |Analogue (external #1)|ana_ext1|u|0.05=E2=80=93 36V 0.05V=
 step
+                                               0 =E2=80=93 Not Used
+|108-117 | 10 |Analogue (external #2)|ana_ext2|u|0.05=E2=80=93 36V 0.05V=
 step
+                                               0 =E2=80=93 Not Used
+|118-122 |  5 |Status bits (internal)|stat_int|u|      / 00 =3D no RACON=
 installed
+                                                 4  \ /  01 =3D RACON no=
t monitored
+                                                 3  / \  10 =3D RACON op=
erational
+						       \ 11 =3D RACON ERROR
+                                                       / 00 =3D no light=
 or no monitoring
+                                                 2  \ /  01 =3D Light ON=
=20
+                                                 1  / \  10 =3D Light OF=
F =20
+                                                       \ 11 =3D Light ER=
ROR
+                                                 0        0 =3D Good Hea=
lth, 1 =3D Alarm
+|123-130 |  8 |Status bits (external)|stat_ext|u|7  Digital Input 0=3DOf=
f, 1=3DOn
+                                                 :
+                                                 :
+                                                 0  Digital Input 0=3DOf=
f, 1=3DOn
+|131-131 |  1 |Off position status   |off_position|b|0 =3D On position, =
1 =3D Off position
+|132-135 |  4 |Spare                 |          |x|Not used
+|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
+
+The internal status bits are the same as the 5 LSBs of status bits from
+Message type 21.
+
+
 =3D=3D=3D Type 7: Binary Acknowledge =3D=3D=3D
=20
 Message type 7 is a receipt acknowledgement to the senders of a
@@ -4384,6 +4442,11 @@ Identification System]
   289: Guidance on the Use of AIS Application-Specific Messages=20
   (June 2010)]
=20
+- [[IALA-A126]]=20
+  http://www.ialathree.org/chapo/publications/documentspdf/doc_235_eng.p=
df[IALA
+  Recommendation A-126 On The Use of the Automatic Identification System=
 (AIS)
+  in Marine Aids to Navigation Services
+
 - [[[Schwehr]]] http://schwehr.org/blog/[Kurt Schwehr's weblog]
=20
 - [[[IEC-PAS]]] IEC-PAS 61162-100, "Maritime navigation and
--=20
1.7.7



From MAILER-DAEMON Wed May 23 00:30:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SX3DL-0003t6-L6
	for mharc-gpsd-dev@gnu.org; Wed, 23 May 2012 00:30:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44463)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX3Cy-0003hM-JQ
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 00:30:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX3Cg-00050Q-R6
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 00:30:00 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:45896 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX3Cg-0004zf-Km
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 00:29:42 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 89A8440447; Wed, 23 May 2012 00:29:07 -0400 (EDT)
Date: Wed, 23 May 2012 00:29:07 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: chgans@gna.org
Message-ID: <20120523042907.GA31667@thyrsus.com>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <cover.1337731221.git.cgagneraud@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: Christian Gagneraud <cgagneraud@techworks.ie>, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [RFC 0/3] [AIS] AtoN monitoring message
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 04:30:22 -0000

chgans@gna.org <chgans@gna.org>:
> I'm thinking as well about adding some basic documentation on how to add new 
> AIS messages.
> 
> While I'm  there, I'm thinking about adding a "AIS message status" to the 
> documentation, that would summarise what's decoded or not and what's tested 
> or not, and add generated examples of inputs vs output from sample.aivdm[,.chk]

Both excellent ideas.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed May 23 00:33:05 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SX3Fw-0004io-Vg
	for mharc-gpsd-dev@gnu.org; Wed, 23 May 2012 00:33:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46379)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX3Fu-0004ht-GL
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 00:33:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX3Fs-0006IA-J5
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 00:33:02 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:45920 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX3Fs-0006Hw-EU
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 00:33:00 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 13BA440447; Wed, 23 May 2012 00:32:27 -0400 (EDT)
Date: Wed, 23 May 2012 00:32:27 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: chgans@gna.org
Message-ID: <20120523043226.GB31667@thyrsus.com>
References: <cover.1337731221.git.cgagneraud@techworks.ie>
	<56e92035cae80d9a4336239318ebd1b1decca0d9.1337731221.git.cgagneraud@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <56e92035cae80d9a4336239318ebd1b1decca0d9.1337731221.git.cgagneraud@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [RFC 1/3] [AIS] Add UK/ROI AtoN monitoring data
 message documentation
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 04:33:04 -0000

chgans@gna.org <chgans@gna.org>:
> From: Christian Gagneraud <chgans@gna.org>
>=20
> ---
>  www/AIVDM.txt |   63 +++++++++++++++++++++++++++++++++++++++++++++++++=
+++++++

This is good information, but keeping the internal status fields in a blo=
ck=20
as you did make the spec needlessly hard to undertstand and wouuld obfusc=
ate
the code as well.  Here's what I turned that into:

[frame=3D"topbot",options=3D"header"]
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
|Field   |Len |Description       |Member     |T|Units
|0-5     |  6 |Message Type      |type       |u|Constant: 6
|6-7     |  2 |Repeat Indicator  |repeat     |u|As in Common Navigation B=
lock
|8-37    | 30 |Source MMSI       |mmsi       |u|9 decimal digits
|38-39   |  2 |Sequence Number   |seqno      |u|Unsigned integer 0-3
|40-69   | 30 |Destination MMSI  |dest_mmsi  |u|9 decimal digits
|70-70   |  1 |Retransmit flag   |retransmit |u|0 =3D no retransmit (defa=
ult),
                                                1 =3D retransmitted
|71-71   |  1 |Spare             |           |x|Not used
|72-81   | 10 |DAC               |dac        |u|DAC =3D 235 or 250
|82-87   |  6 |FID               |fid        |u|FID =3D 10
|88-97   | 10 |Analogue          |ana_int    |u|0.05=E2=80=93 36V 0.05V s=
tep=20
                                                Supply voltage to AIS Uni=
t
                                                0 =E2=80=93 Not Used
|98-107  | 10 |Analogue (ext. #1)|ana_ext1   |u|0.05=E2=80=93 36V 0.05V s=
tep
                                                0 =E2=80=93 Not Used
|108-117 | 10 |Analogue (ext. #2)|ana_ext2   |u|0.05=E2=80=93 36V 0.05V s=
tep
                                                0 =E2=80=93 Not Used
|118-119 |  2 |RACON status      |racon      |u|00 =3D no RACON installed
                                                01 =3D RACON not monitore=
d
                                                10 =3D RACON operational
						11 =3D RACON ERROR
|120-121 |  2 |Light status      |light      |u|00 =3D no light or no mon=
itoring
                                                01 =3D Light ON=20
                                                10 =3D Light OFF =20
                                                11 =3D Light ERROR
|122     |  1 |Health            |health     |b|0 =3D Good Health, 1 =3D =
Alarm
|123-130 |  8 |Status (external) |stat_ext   |u|7  Digital Input 0=3DOff,=
 1=3DOn
                                                :
                                                :
                                                0  Digital Input 0=3DOff,=
 1=3DOn
|131-131 |  1 |Position status   |off_pos    |b|0=3DOn position, 1=3DOff =
position
|132-135 |  4 |Spare             |           |x|Not used
|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D

What does the "(GLA)" in the header of that section mean?
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed May 23 03:11:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SX5jD-0007Lk-Le
	for mharc-gpsd-dev@gnu.org; Wed, 23 May 2012 03:11:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56554)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX5is-0007Gi-3m
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 03:11:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX5iU-0000y0-Ae
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 03:11:05 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:47035 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SX5iT-0000xN-Uq
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 03:10:42 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 5CB0440447; Wed, 23 May 2012 03:10:08 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org
Message-Id: <20120523071008.5CB0440447@snark.thyrsus.com>
Date: Wed, 23 May 2012 03:10:08 -0400 (EDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] 3.6 has shipped
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 07:11:26 -0000

The news:

  It's the Fernando Poo Day release.  Code has zero detectible defects
  under Coverity scanning and cppcheck 1.52; this is mainly a cleanup
  release to get those minor fixes into the field.  If a leap-second
  warning is available from GPS subframe information it is passed to
  ntpd. NMEA2000 is now supported via the Linux kernel CAN interface.
  There's a chrpath=no config option for distribution makers, so
  chrpath is no longer a build dependency; see build.txt for
  explanation.

Another major motivation for this release was to get a stable release out
in time for the Debian wheezy and CeroWrt code freezes. That has been
achieved.

Objectives for 3.7:

* NMEA2000 needs some work and cleanup - presently there's an unhappy 
  interaction with the PPS code when CAN is active.

* We've actually got a dev who's doing field testing with the AIS code.
  We're expecting to add support for some UK and Republic of Ireland 
  local message types, significant as there's a lot of maritime
  activity around those islands.

* Get the website fully moved to Savannah.  The holdup here is that I
  want to script their horrifying CVS-based web-update process rather
  than doing it by hand even once, and I haven't shaken loose the time
  to do that yet.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

I do not find in orthodox Christianity one redeeming feature.
	-- Thomas Jefferson


From MAILER-DAEMON Wed May 23 04:40:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SX77H-0001Dn-Bh
	for mharc-gpsd-dev@gnu.org; Wed, 23 May 2012 04:40:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54348)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SX77B-0001D9-ML
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 04:40:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SX776-0004RN-Pz
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 04:40:17 -0400
Received: from mail.recluse.de ([217.196.146.213]:59685)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SX776-0004Qn-Jf
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 04:40:12 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 1B7BF276A0
	for <gpsd-dev@nongnu.org>; Wed, 23 May 2012 10:40:10 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id mV4CzI7tyhnS for <gpsd-dev@nongnu.org>;
	Wed, 23 May 2012 10:40:08 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id 3E0E22769E
	for <gpsd-dev@nongnu.org>; Wed, 23 May 2012 10:40:08 +0200 (CEST)
Message-ID: <4FBCA267.2010603@bzed.de>
Date: Wed, 23 May 2012 10:40:07 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.3) Gecko/20120329 Icedove/10.0.3
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120523071008.5CB0440447@snark.thyrsus.com>
In-Reply-To: <20120523071008.5CB0440447@snark.thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Subject: Re: [gpsd-dev] 3.6 has shipped
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 08:40:22 -0000

On 05/23/2012 09:10 AM, Eric S. Raymond wrote:
> The news:

[...]
> Another major motivation for this release was to get a stable release out
> in time for the Debian wheezy and CeroWrt code freezes. That has been
> achieved.

The other good news item is that gpsd will be build with pps support in
Debian, starting with 3.6. :)


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Wed May 23 10:10:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXCGT-0004jm-L9
	for mharc-gpsd-dev@gnu.org; Wed, 23 May 2012 10:10:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44502)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SXCGJ-0004ex-02
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 10:10:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SXCGB-0002Tf-CQ
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 10:10:02 -0400
Received: from smtp.gentoo.org ([140.211.166.183]:44798)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SXCGB-0002TJ-3H
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 10:09:55 -0400
Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id D8F301B400A
	for <gpsd-dev@nongnu.org>; Wed, 23 May 2012 14:09:51 +0000 (UTC)
From: Mike Frysinger <vapier@gentoo.org>
To: gpsd-dev@nongnu.org
Date: Wed, 23 May 2012 10:11:03 -0400
Message-Id: <1337782263-909-1-git-send-email-vapier@gentoo.org>
X-Mailer: git-send-email 1.7.8.6
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 140.211.166.183
Subject: [gpsd-dev] [PATCH] nmea2000: fix build failures when debugging is
	disabled
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 23 May 2012 14:10:13 -0000

When debugging is disabled, there is no libgps_debuglevel, so building
this driver fails with:
driver_nmea2000.c: In function 'print_data':
driver_nmea2000.c:50:10: error: 'libgps_debuglevel' undeclared (first use in this function)

Add some ifdef to this driver to fix that, and change the return type
of print_data to void since it always returns 0 and no one ever checks
the return value.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 driver_nmea2000.c |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/driver_nmea2000.c b/driver_nmea2000.c
index 1db6686..b3d2734 100644
--- a/driver_nmea2000.c
+++ b/driver_nmea2000.c
@@ -44,8 +44,9 @@ typedef struct PGN
 FILE *logFile = NULL;
 #endif /* of if LOG_FILE */
 
-static int print_data(unsigned char *buffer, int len, PGN *pgn)
+static void print_data(unsigned char *buffer, int len, PGN *pgn)
 {
+#ifdef LIBGPS_DEBUG
     /*@-bufferoverflowhigh@*/
     if ((libgps_debuglevel >= LOG_IO) != 0) {
 	int   l1, l2, ptr;
@@ -67,7 +68,7 @@ static int print_data(unsigned char *buffer, int len, PGN *pgn)
         gpsd_report(LOG_IO,"%s\n", bu);
     }
     /*@+bufferoverflowhigh@*/
-    return(0);
+#endif
 }
 
 static gps_mask_t get_mode(struct gps_device_t *session)
@@ -84,7 +85,7 @@ static gps_mask_t get_mode(struct gps_device_t *session)
 
 static gps_mask_t hnd_059392(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -92,7 +93,7 @@ static gps_mask_t hnd_059392(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_060928(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -100,7 +101,7 @@ static gps_mask_t hnd_060928(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_126208(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -108,7 +109,7 @@ static gps_mask_t hnd_126208(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_126464(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -116,7 +117,7 @@ static gps_mask_t hnd_126464(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_126996(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -124,7 +125,7 @@ static gps_mask_t hnd_126996(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129025(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
 
     /*@-type@*//* splint has a bug here */
@@ -140,7 +141,7 @@ static gps_mask_t hnd_129025(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129026(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
 
     session->driver.nmea2000.sid[0]  =  bu[0];
@@ -161,10 +162,10 @@ static gps_mask_t hnd_126992(unsigned char *bu, int len, PGN *pgn, struct gps_de
     //uint8_t        sid;
     //uint8_t        source;
 
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
 
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
 
     //sid        = bu[0];
@@ -187,7 +188,7 @@ static gps_mask_t hnd_129539(unsigned char *bu, int len, PGN *pgn, struct gps_de
 {
     gps_mask_t mask;
 
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
 
     mask                             = 0;
@@ -222,7 +223,7 @@ static gps_mask_t hnd_129540(unsigned char *bu, int len, PGN *pgn, struct gps_de
 {
     int         l1, l2;
 
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
 
     session->driver.nmea2000.sid[2]           = bu[0];
@@ -261,7 +262,7 @@ static gps_mask_t hnd_129029(unsigned char *bu, int len, PGN *pgn, struct gps_de
 {
     gps_mask_t mask;
 
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
 
     mask                             = 0;
@@ -326,7 +327,7 @@ static gps_mask_t hnd_129029(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129038(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -334,7 +335,7 @@ static gps_mask_t hnd_129038(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129039(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -342,7 +343,7 @@ static gps_mask_t hnd_129039(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129040(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -350,7 +351,7 @@ static gps_mask_t hnd_129040(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129794(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -358,7 +359,7 @@ static gps_mask_t hnd_129794(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129798(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -366,7 +367,7 @@ static gps_mask_t hnd_129798(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129802(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -374,7 +375,7 @@ static gps_mask_t hnd_129802(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129809(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
@@ -382,7 +383,7 @@ static gps_mask_t hnd_129809(unsigned char *bu, int len, PGN *pgn, struct gps_de
 
 static gps_mask_t hnd_129810(unsigned char *bu, int len, PGN *pgn, struct gps_device_t *session)
 {
-    (void)print_data(bu, len, pgn);
+    print_data(bu, len, pgn);
     gpsd_report(LOG_DATA, "pgn %6d(%3d):\n", pgn->pgn, session->driver.nmea2000.unit);
     return(0);
 }
-- 
1.7.8.6



From MAILER-DAEMON Wed May 23 20:56:09 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXMLZ-0006ir-Ag
	for mharc-gpsd-dev@gnu.org; Wed, 23 May 2012 20:56:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41424)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SXMLW-0006ik-Kn
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 20:56:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SXMLU-0005iI-RG
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 20:56:06 -0400
Received: from catbert.rellim.com ([204.17.205.1]:41864)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SXMLU-0005Qc-9O
	for gpsd-dev@nongnu.org; Wed, 23 May 2012 20:56:04 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4O0th7S013178
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 23 May 2012 17:55:44 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4O0th7S013178
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1337820944; bh=nr6Y3TWH/t3kkP0F0zALeapHZlxOIX2HhSVZtwFzen0=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=bMjh1Mts8mP+x+02BgwkI2usSYNkM288KVoggToC6GPYx5G8r5BN7vVh26SKEieMg
	AHBMkVQR1DBhalvbWYZMw==
Date: Wed, 23 May 2012 17:55:39 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Bernd Zeimetz <bernd@bzed.de>
Message-ID: <20120523175539.34100b8c.gem@rellim.com>
In-Reply-To: <4FBCA267.2010603@bzed.de>
References: <20120523071008.5CB0440447@snark.thyrsus.com>
	<4FBCA267.2010603@bzed.de>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/MHBGg2uu..HuZkqs_3LoO5w";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] 3.6 has shipped
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 00:56:07 -0000

--Sig_/MHBGg2uu..HuZkqs_3LoO5w
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Bernd!

On Wed, 23 May 2012 10:40:07 +0200
Bernd Zeimetz <bernd@bzed.de> wrote:

> The other good news item is that gpsd will be build with pps support
> in Debian, starting with 3.6. :)


Cool, just basic PPS (TIOCMWAIT) or also kernel PPS (timepps.h)?

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

--Sig_/MHBGg2uu..HuZkqs_3LoO5w
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk+9hw4ACgkQBmnRqz71OvMNGACgm4VJ6irK7QTwtAKOsa6y53bz
JO4AoJfcYq8sxymzfmg0AAN+L5b0pZzL
=434m
-----END PGP SIGNATURE-----

--Sig_/MHBGg2uu..HuZkqs_3LoO5w--


From MAILER-DAEMON Thu May 24 05:14:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXU7a-0002pZ-C0
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 05:14:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57652)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SXU7Q-0002o2-Ek
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 05:14:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SXU7H-0005C2-Pa
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 05:14:04 -0400
Received: from mail.recluse.de ([217.196.146.213]:54019)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SXU7H-0005B1-Jn
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 05:13:55 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 959B0276D6;
	Thu, 24 May 2012 11:13:52 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id BQe7KduzsEUF; Thu, 24 May 2012 11:13:51 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id EDD4C276C6;
	Thu, 24 May 2012 11:13:50 +0200 (CEST)
Message-ID: <4FBDFBCE.2090203@bzed.de>
Date: Thu, 24 May 2012 11:13:50 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.4) Gecko/20120510 Icedove/10.0.4
MIME-Version: 1.0
To: "Gary E. Miller" <gem@rellim.com>
References: <20120523071008.5CB0440447@snark.thyrsus.com>
	<4FBCA267.2010603@bzed.de> <20120523175539.34100b8c.gem@rellim.com>
In-Reply-To: <20120523175539.34100b8c.gem@rellim.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] 3.6 has shipped
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 09:14:13 -0000

On 05/24/2012 02:55 AM, Gary E. Miller wrote:
> Yo Bernd!
> 
> On Wed, 23 May 2012 10:40:07 +0200
> Bernd Zeimetz <bernd@bzed.de> wrote:
> 
>> The other good news item is that gpsd will be build with pps support
>> in Debian, starting with 3.6. :)
> 
> 
> Cool, just basic PPS (TIOCMWAIT) or also kernel PPS (timepps.h)?

timepps.h fun :) I've packaged pps-tools for that :)


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Thu May 24 13:44:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXc56-0006c1-3s
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 13:44:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34889)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SXc52-0006aj-Cn
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 13:44:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SXc50-0001rT-4L
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 13:44:07 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:41912)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SXc4z-0001o1-9O
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 13:44:06 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id D6D73601438
	for <gpsd-dev@nongnu.org>; Thu, 24 May 2012 18:43:58 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id rkDfWpf0EoVc for <gpsd-dev@nongnu.org>;
	Thu, 24 May 2012 18:43:57 +0100 (IST)
Received: from [192.168.5.183] (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id BFBBF601432
	for <gpsd-dev@nongnu.org>; Thu, 24 May 2012 18:43:57 +0100 (IST)
Message-ID: <4FBE7391.6060100@techworks.ie>
Date: Thu, 24 May 2012 18:44:49 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120421 Thunderbird/12.0
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] [AIS] About offset and scaling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 17:44:09 -0000

Hi Eric, all,

Currently in driver_ais.c an offset is applied for certain message 
fields (IMO 236 and IMO289 met/hydro message), and a scaling is done 
conditionally in gpsd_json.c.
I think it would be better to apply the offset and the scaling in 
gpsd_json.c. Do you have any objection on doing this?
I think it make more sense this way. No scaling means raw data, w/ 
scaling means "engineering" units. As well when comparing gpsd decoding 
again other decoding, it make the task easier as they show the same 
behaviour (raw + scaling/offset applied).

Regards,
Chris



-- 
Christian Gagneraud,
Embedded systems engineer.
Techworks Marine
1 Harbour road
Dun Laoghaire
Co. Dublin
Ireland
Tel: + 353 (0) 1 236 5990
Web: http://www.techworks.ie/


From MAILER-DAEMON Thu May 24 16:07:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXeJj-0005HP-6G
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 16:07:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33539)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXeJh-0005HA-8F
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 16:07:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXeJf-0007Ck-7L
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 16:07:24 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:56180 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXeJf-0007Ba-3L
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 16:07:23 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 0C70240447; Thu, 24 May 2012 16:06:43 -0400 (EDT)
Date: Thu, 24 May 2012 16:06:43 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Christian Gagneraud <chris@techworks.ie>
Message-ID: <20120524200643.GA10152@thyrsus.com>
References: <4FBE7391.6060100@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FBE7391.6060100@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [AIS] About offset and scaling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 20:07:26 -0000

Christian Gagneraud <chris@techworks.ie>:
> Currently in driver_ais.c an offset is applied for certain message
> fields (IMO 236 and IMO289 met/hydro message), and a scaling is done
> conditionally in gpsd_json.c.
> I think it would be better to apply the offset and the scaling in
> gpsd_json.c. Do you have any objection on doing this?
> I think it make more sense this way. No scaling means raw data, w/
> scaling means "engineering" units. As well when comparing gpsd
> decoding again other decoding, it make the task easier as they show
> the same behaviour (raw + scaling/offset applied).

Agreed.  Go for it.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu May 24 16:50:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXezB-00040h-K0
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 16:50:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46581)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXez9-00040S-4D
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 16:50:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXez7-00013a-6a
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 16:50:14 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:56448 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXez7-00012x-2Q
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 16:50:13 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 37DA040447; Thu, 24 May 2012 16:49:35 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org
Message-Id: <20120524204935.37DA040447@snark.thyrsus.com>
Date: Thu, 24 May 2012 16:49:35 -0400 (EDT)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Subject: [gpsd-dev] Where to apply scaling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 20:50:16 -0000

Christian Gagneraud <chris@techworks.ie>:
> Currently in driver_ais.c an offset is applied for certain message
> fields (IMO 236 and IMO289 met/hydro message), and a scaling is done
> conditionally in gpsd_json.c.
> I think it would be better to apply the offset and the scaling in
> gpsd_json.c. Do you have any objection on doing this?

Unfortunately, I thought of an objection. The shm interface.

Because some clients will be reading the AIS report structures
directly from the daemon via shared memory, all *lossless* preparation
of the data (in particular, offset applications) should be done in the
device driver.  This will reduce the number of magic constants that 
client software has to know about.

Lossy transformations (scaling) should continue to be done optionally 
in gpsd_json.c.  
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

The real point of audits is to instill fear, not to extract revenue;
the IRS aims at winning through intimidation and (thereby) getting
maximum voluntary compliance
	-- Paul Strassel, former IRS Headquarters Agent Wall St. Journal 1980


From MAILER-DAEMON Thu May 24 17:12:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXfKU-00018s-00
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 17:12:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40183)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXfFQ-0007Ym-PS
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:07:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXfFO-0008Tb-V5
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:07:04 -0400
Received: from bamboo.leaflabs.net ([69.164.217.230]:50940)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXfFO-0008TC-SC
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:07:02 -0400
Received: from [10.1.10.84] (c-50-138-183-238.hsd1.ma.comcast.net
	[50.138.183.238]) (Authenticated sender: mbolivar@leaflabs.com)
	by bamboo.leaflabs.net (Postfix) with ESMTPSA id E42B934BC3
	for <gpsd-dev@nongnu.org>; Thu, 24 May 2012 21:07:00 +0000 (UTC)
Message-ID: <4FBEA2F1.5030603@leaflabs.com>
Date: Thu, 24 May 2012 17:06:57 -0400
From: Marti Bolivar <mbolivar@leaflabs.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 69.164.217.230
X-Mailman-Approved-At: Thu, 24 May 2012 17:12:16 -0400
Subject: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent
	names.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 21:07:06 -0000

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
---

The current value of GPS_PATH_MAX works for /dev/ttyfoo, but is slightly 
too small to allow using persistent dev names. For example, an ND-100S 
also shows up on my machine as 
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0, 
which requires GPS_PATH_MAX >= 82.

I'm aware of gpsd.rules, but it seems convenient not to require the use 
of additional udev rules.

  gps.h |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gps.h b/gps.h
index 6a4920c..0f4d69e 100644
--- a/gps.h
+++ b/gps.h
@@ -43,7 +43,7 @@ extern "C" {
  #define MAXTAGLEN	8	/* maximum length of sentence tag name */
  #define MAXCHANNELS	72	/* must be > 12 GPS + 12 GLONASS + 2 WAAS */
  #define GPS_PRNMAX	32	/* above this number are SBAS satellites */
-#define GPS_PATH_MAX	64	/* dev files usually have short names */
+#define GPS_PATH_MAX	128	/* dev files usually have short names */
  #define MAXUSERDEVS	4	/* max devices per user */

  /*
-- 
1.7.0.4


From MAILER-DAEMON Thu May 24 17:33:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXfeY-0005Gc-Vd
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 17:33:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54308)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SXfeT-0005GM-N2
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:33:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SXfeP-0001yB-9n
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:32:57 -0400
Received: from mail-ob0-f173.google.com ([209.85.214.173]:37641)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <tz2026@gmail.com>) id 1SXfeP-0001y0-0w
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:32:53 -0400
Received: by obbwd20 with SMTP id wd20so326439obb.4
	for <gpsd-dev@nongnu.org>; Thu, 24 May 2012 14:32:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=3fjQfr8Mfcp2AnXEWAA+VFxPOKJ2HHJBPvIKhFqZDf0=;
	b=dRzotchVibhKnSa2t2myiX20R+LS1snFPsCSertnBH/pRwa5I5rLvbWUdqDKabNd6w
	RQo+/Np+rjP51AryycfgcnmsToBYyyFis4ApnABDuzBuHm84n8Xjzaq4Kg4WiYSl7ZFt
	yhInoxEf5iSxsYCPnZd96ARQ6dNzTnBD7TukAMUiQ4+DBfDDLtRVqOUwQqAcwCkd3dsX
	dU0pjqmXEnlb3URyGG3Vw71BNGmkwTPe3Q8TsyrYyyNEnBF083jLZ62bX76T+KmMlVX5
	H13wkyOGpRG0mQRc60+Xl8hQ5/wMQ2bql0wup/tPi+35aOSZjcoJBExvA4OnNLjxI1FP
	x+Fw==
Received: by 10.182.39.5 with SMTP id l5mr923482obk.11.1337895170223; Thu, 24
	May 2012 14:32:50 -0700 (PDT)
MIME-Version: 1.0
Sender: tz2026@gmail.com
Received: by 10.182.113.40 with HTTP; Thu, 24 May 2012 14:32:29 -0700 (PDT)
In-Reply-To: <4FBEA2F1.5030603@leaflabs.com>
References: <4FBEA2F1.5030603@leaflabs.com>
From: tz <thomas@mich.com>
Date: Thu, 24 May 2012 17:32:29 -0400
X-Google-Sender-Auth: HS7LX0JdXV2fqfCoOc_DiY3Dtw4
Message-ID: <CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
To: Marti Bolivar <mbolivar@leaflabs.com>
Content-Type: multipart/alternative; boundary=f46d044796235e2e6704c0cefe0f
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.173
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent
	names.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 21:33:01 -0000

--f46d044796235e2e6704c0cefe0f
Content-Type: text/plain; charset=ISO-8859-1

Note that this full devicename path is included in the JSON output to
identify the source.

(This was discussed before, and I suggested some ordinal or the file number
returned by open or something, and I said it would bite - there can also be
duplicates, e.g. TCP or UDP connections).

There is no speciific reason to have to know or store a system defined file
path after the device node is opened, but it is being used as part of the
data.

You are changing it to 128 now, but it might need to be 256 later, e.g. the
dev path might get vary long if it models the USB device bus tree and
includes this.  There is no static limit to a full path name, so the real
alternatives are to malloc it (if you are going to store it and not just
point to argv or something) or to store something else.

On Thu, May 24, 2012 at 5:06 PM, Marti Bolivar <mbolivar@leaflabs.com>wrote:

> Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
> ---
>
> The current value of GPS_PATH_MAX works for /dev/ttyfoo, but is slightly
> too small to allow using persistent dev names. For example, an ND-100S also
> shows up on my machine as /dev/serial/by-id/usb-**
> Prolific_Technology_Inc._USB-**Serial_Controller_D-if00-**port0, which
> requires GPS_PATH_MAX >= 82.
>
> I'm aware of gpsd.rules, but it seems convenient not to require the use of
> additional udev rules.
>
>  gps.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gps.h b/gps.h
> index 6a4920c..0f4d69e 100644
> --- a/gps.h
> +++ b/gps.h
> @@ -43,7 +43,7 @@ extern "C" {
>  #define MAXTAGLEN      8       /* maximum length of sentence tag name */
>  #define MAXCHANNELS    72      /* must be > 12 GPS + 12 GLONASS + 2 WAAS
> */
>  #define GPS_PRNMAX     32      /* above this number are SBAS satellites */
> -#define GPS_PATH_MAX   64      /* dev files usually have short names */
> +#define GPS_PATH_MAX   128     /* dev files usually have short names */
>  #define MAXUSERDEVS    4       /* max devices per user */
>
>  /*
> --
> 1.7.0.4
>
>

--f46d044796235e2e6704c0cefe0f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Note that this full devicename path is included in the JSON output to ident=
ify the source.<br><br>(This was discussed before, and I suggested some ord=
inal or the file number returned by open or something, and I said it would =
bite - there can also be duplicates, e.g. TCP or UDP connections).<br>

<br>There is no speciific reason to have to know or store a system defined =
file path after the device node is opened, but it is being used as part of =
the data.<br><br>You are changing it to 128 now, but it might need to be 25=
6 later, e.g. the dev path might get vary long if it models the USB device =
bus tree and includes this.=A0 There is no static limit to a full path name=
, so the real alternatives are to malloc it (if you are going to store it a=
nd not just point to argv or something) or to store something else.<br>

<br><div class=3D"gmail_quote">On Thu, May 24, 2012 at 5:06 PM, Marti Boliv=
ar <span dir=3D"ltr">&lt;<a href=3D"mailto:mbolivar@leaflabs.com" target=3D=
"_blank">mbolivar@leaflabs.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">

Signed-off-by: Marti Bolivar &lt;<a href=3D"mailto:mbolivar@leaflabs.com" t=
arget=3D"_blank">mbolivar@leaflabs.com</a>&gt;<br>
---<br>
<br>
The current value of GPS_PATH_MAX works for /dev/ttyfoo, but is slightly to=
o small to allow using persistent dev names. For example, an ND-100S also s=
hows up on my machine as /dev/serial/by-id/usb-<u></u>Prolific_Technology_I=
nc._USB-<u></u>Serial_Controller_D-if00-<u></u>port0, which requires GPS_PA=
TH_MAX &gt;=3D 82.<br>


<br>
I&#39;m aware of gpsd.rules, but it seems convenient not to require the use=
 of additional udev rules.<br>
<br>
=A0gps.h | =A0 =A02 +-<br>
=A01 files changed, 1 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/gps.h b/gps.h<br>
index 6a4920c..0f4d69e 100644<br>
--- a/gps.h<br>
+++ b/gps.h<br>
@@ -43,7 +43,7 @@ extern &quot;C&quot; {<br>
=A0#define MAXTAGLEN =A0 =A0 =A08 =A0 =A0 =A0 /* maximum length of sentence=
 tag name */<br>
=A0#define MAXCHANNELS =A0 =A072 =A0 =A0 =A0/* must be &gt; 12 GPS + 12 GLO=
NASS + 2 WAAS */<br>
=A0#define GPS_PRNMAX =A0 =A0 32 =A0 =A0 =A0/* above this number are SBAS s=
atellites */<br>
-#define GPS_PATH_MAX =A0 64 =A0 =A0 =A0/* dev files usually have short nam=
es */<br>
+#define GPS_PATH_MAX =A0 128 =A0 =A0 /* dev files usually have short names=
 */<br>
=A0#define MAXUSERDEVS =A0 =A04 =A0 =A0 =A0 /* max devices per user */<br>
<br>
=A0/*<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-- <br>
1.7.0.4<br>
<br>
</font></span></blockquote></div><br>

--f46d044796235e2e6704c0cefe0f--


From MAILER-DAEMON Thu May 24 17:53:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXfyE-0007bV-2L
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 17:53:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59957)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXfyB-0007bL-2F
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:53:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXfy9-0007UU-0u
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:53:18 -0400
Received: from bamboo.leaflabs.net ([69.164.217.230]:57114)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXfy8-0007To-TR
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 17:53:16 -0400
Received: from [10.1.10.84] (c-50-138-183-238.hsd1.ma.comcast.net
	[50.138.183.238]) (Authenticated sender: mbolivar@leaflabs.com)
	by bamboo.leaflabs.net (Postfix) with ESMTPSA id 98E3C34BC3;
	Thu, 24 May 2012 21:53:14 +0000 (UTC)
Message-ID: <4FBEADC7.8020608@leaflabs.com>
Date: Thu, 24 May 2012 17:53:11 -0400
From: Marti Bolivar <mbolivar@leaflabs.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: tz <thomas@mich.com>
References: <4FBEA2F1.5030603@leaflabs.com>
	<CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
In-Reply-To: <CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 69.164.217.230
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent
 names.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 21:53:20 -0000



On 05/24/2012 05:32 PM, tz wrote:
> Note that this full devicename path is included in the JSON output to
> identify the source.

I'm giving gpsd the path to use as argument, so I have to know it 
beforehand.

> (This was discussed before, and I suggested some ordinal or the file number
> returned by open or something, and I said it would bite - there can also be
> duplicates, e.g. TCP or UDP connections).
>
> There is no speciific reason to have to know or store a system defined file
> path after the device node is opened, but it is being used as part of the
> data.
>
> You are changing it to 128 now, but it might need to be 256 later, e.g. the
> dev path might get vary long if it models the USB device bus tree and
> includes this.  There is no static limit to a full path name, so the real
> alternatives are to malloc it (if you are going to store it and not just
> point to argv or something) or to store something else.

I understand (and respect) the no-malloc policy, and I'm not trying to 
give gpsd a case of C programmer's disease. It's just confusing to first 
see encouraging output like this:

gpsd:INFO: stashing device 
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 
at slot 0

Then get strange errors:

gpsd:INFO: opening read-only GPS data source type 0 and at 
'/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Contr'
gpsd:ERROR: device open failed: No such file or directory - retrying 
read-only
gpsd:ERROR: read-only device open failed: No such file or directory
gpsd:ERROR: 
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Contr: device 
activation failed.

I suppose the real fix is to spit out an error immediately if the user 
specifies a path that's longer than GPS_PATH_MAX.

Best,
Marti


From MAILER-DAEMON Thu May 24 18:17:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXgLM-000201-RB
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 18:17:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45910)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXgLK-0001zV-ET
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:17:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXgLI-0005nB-6x
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:17:13 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:56875 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXgLI-0005mv-2h
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:17:12 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 5F89940447; Thu, 24 May 2012 18:16:34 -0400 (EDT)
Date: Thu, 24 May 2012 18:16:34 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: tz <thomas@mich.com>
Message-ID: <20120524221634.GA11117@thyrsus.com>
References: <4FBEA2F1.5030603@leaflabs.com>
	<CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: Marti Bolivar <mbolivar@leaflabs.com>, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent
 names.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 22:17:15 -0000

tz <thomas@mich.com>:
> Note that this full devicename path is included in the JSON output to
> identify the source.
> 
> (This was discussed before, and I suggested some ordinal or the file number
> returned by open or something, and I said it would bite - there can also be
> duplicates, e.g. TCP or UDP connections).

My main reason for rejecting this proposal was that I didn't want the bugs
and maintainence issues associated with implementing yet another layer of
indirection inside gpsd.

Also, I dislike throwing identifying data away for any reason.  If I
ever do that, it is inevitable that some day a client-side programmer
will curse me bexcause this attempt to optimize for shorter transmission
length (or whatever) has stepped directly on his weird use case.  Or
not so weird, even - imagine a gpsd instance connected to several 
RS232 devices with stable names.

I think both these objections are still sound. 

> There is no speciific reason to have to know or store a system defined file
> path after the device node is opened, but it is being used as part of the
> data.

Think of it as the simplest possible identifying cookie for the
device.  Not perfect, but the thought of adding an obfuscating layer
to manage a GPSD-private namespace of magic device-identifying cookies
instead strikes me as, well, perverse - not merely asking for trouble,
but begging for it on bended knees.

> You are changing it to 128 now, but it might need to be 256 later, e.g. the
> dev path might get vary long if it models the USB device bus tree and
> includes this.  There is no static limit to a full path name, so the real
> alternatives are to malloc it (if you are going to store it and not just
> point to argv or something) or to store something else.

This completely fails to bother me.  It's not 1985 any more.  Memory
is cheap, gpsd's data rates are low, and all the economics that said
JSON was a good idea also tells us that trying to micro-optimize this
sort of thing would be just stupid.  A few more 1024-character buffers
would not be a large price to pay.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu May 24 18:18:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXgMc-00027n-4c
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 18:18:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46045)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXgMZ-00027h-NC
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:18:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXgMX-0005vb-Oz
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:18:31 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:56890 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SXgMX-0005vS-KQ
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:18:29 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id CBE5840447; Thu, 24 May 2012 18:17:52 -0400 (EDT)
Date: Thu, 24 May 2012 18:17:52 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Marti Bolivar <mbolivar@leaflabs.com>
Message-ID: <20120524221752.GB11117@thyrsus.com>
References: <4FBEA2F1.5030603@leaflabs.com>
	<CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
	<4FBEADC7.8020608@leaflabs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FBEADC7.8020608@leaflabs.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent
 names.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 22:18:33 -0000

Marti Bolivar <mbolivar@leaflabs.com>:
> I suppose the real fix is to spit out an error immediately if the
> user specifies a path that's longer than GPS_PATH_MAX.

Good idea.  Please write that patch; I'll take it.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu May 24 18:58:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXgyo-0006gG-0V
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 18:58:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44534)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXgyl-0006f6-7K
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:58:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXgyj-0005Z1-K6
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:57:58 -0400
Received: from bamboo.leaflabs.net ([69.164.217.230]:50858)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXgyj-0005Yu-Gg
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 18:57:57 -0400
Received: from [10.1.10.84] (c-50-138-183-238.hsd1.ma.comcast.net
	[50.138.183.238]) (Authenticated sender: mbolivar@leaflabs.com)
	by bamboo.leaflabs.net (Postfix) with ESMTPSA id 6958A34BC3
	for <gpsd-dev@nongnu.org>; Thu, 24 May 2012 22:57:55 +0000 (UTC)
Message-ID: <4FBEBCF0.7060000@leaflabs.com>
Date: Thu, 24 May 2012 18:57:52 -0400
From: Marti Bolivar <mbolivar@leaflabs.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 69.164.217.230
Subject: [gpsd-dev] [PATCH] Don't try to add devices with long paths.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 22:58:00 -0000

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
---
  gpsd.c |    7 +++++++
  1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gpsd.c b/gpsd.c
index 072a044..41b4cbc 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -707,6 +707,13 @@ static bool add_device(const char *device_name)
  {
      struct gps_device_t *devp;
      bool ret = false;
+    /* we can't handle paths longer than GPS_PATH_MAX, so don't try */
+    if (strlen(device_name) >= GPS_PATH_MAX) {
+	gpsd_report(LOG_ERROR,
+		    "ignoring device %s: path length exceeds maximum %d\n",
+		    device_name, GPS_PATH_MAX);
+	return false;
+    }
      /* stash devicename away for probing when the first client connects */
      for (devp = devices; devp < devices + MAXDEVICES; devp++)
  	if (!allocated_device(devp)) {
-- 
1.7.0.4


From MAILER-DAEMON Thu May 24 19:03:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXh4C-0007pg-T4
	for mharc-gpsd-dev@gnu.org; Thu, 24 May 2012 19:03:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46472)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXh4A-0007pa-1x
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 19:03:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXh48-0006ZH-Aj
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 19:03:33 -0400
Received: from bamboo.leaflabs.net ([69.164.217.230]:47942)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbolivar@leaflabs.com>) id 1SXh48-0006ZC-71
	for gpsd-dev@nongnu.org; Thu, 24 May 2012 19:03:32 -0400
Received: from [10.1.10.84] (c-50-138-183-238.hsd1.ma.comcast.net
	[50.138.183.238]) (Authenticated sender: mbolivar@leaflabs.com)
	by bamboo.leaflabs.net (Postfix) with ESMTPSA id 2E16E34BC3;
	Thu, 24 May 2012 23:03:31 +0000 (UTC)
Message-ID: <4FBEBE3F.3030009@leaflabs.com>
Date: Thu, 24 May 2012 19:03:27 -0400
From: Marti Bolivar <mbolivar@leaflabs.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4FBEA2F1.5030603@leaflabs.com>
	<CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
	<4FBEADC7.8020608@leaflabs.com>
	<20120524221752.GB11117@thyrsus.com>
In-Reply-To: <20120524221752.GB11117@thyrsus.com>
Content-Type: multipart/mixed; boundary="------------090103060403030405070600"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 69.164.217.230
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent
 names.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Thu, 24 May 2012 23:03:35 -0000

This is a multi-part message in MIME format.
--------------090103060403030405070600
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit



On 05/24/2012 06:17 PM, Eric S. Raymond wrote:
> Marti Bolivar<mbolivar@leaflabs.com>:
>> I suppose the real fix is to spit out an error immediately if the
>> user specifies a path that's longer than GPS_PATH_MAX.
>
> Good idea.  Please write that patch; I'll take it.

Done (sent in its own thread); scons testregress passes.

Looks like my mailer might have untabified the patch (sorry!), so I've 
attached it here for good measure.

--------------090103060403030405070600
Content-Type: text/x-patch;
 name="0001-Don-t-try-to-add-devices-with-long-paths.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0001-Don-t-try-to-add-devices-with-long-paths.patch"

>From bc9cf995d84a1e3e29cf392406f13995b60136c4 Mon Sep 17 00:00:00 2001
From: Marti Bolivar <mbolivar@leaflabs.com>
Date: Thu, 24 May 2012 18:49:17 -0400
Subject: [PATCH] Don't try to add devices with long paths.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
---
 gpsd.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/gpsd.c b/gpsd.c
index 072a044..41b4cbc 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -707,6 +707,13 @@ static bool add_device(const char *device_name)
 {
     struct gps_device_t *devp;
     bool ret = false;
+    /* we can't handle paths longer than GPS_PATH_MAX, so don't try */
+    if (strlen(device_name) >= GPS_PATH_MAX) {
+	gpsd_report(LOG_ERROR,
+		    "ignoring device %s: path length exceeds maximum %d\n",
+		    device_name, GPS_PATH_MAX);
+	return false;
+    }
     /* stash devicename away for probing when the first client connects */
     for (devp = devices; devp < devices + MAXDEVICES; devp++)
 	if (!allocated_device(devp)) {
-- 
1.7.0.4


--------------090103060403030405070600--


From MAILER-DAEMON Fri May 25 06:07:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SXrQe-0000X9-Qu
	for mharc-gpsd-dev@gnu.org; Fri, 25 May 2012 06:07:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38622)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SXrQY-0000We-FI
	for gpsd-dev@nongnu.org; Fri, 25 May 2012 06:07:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SXrQW-0005nf-CT
	for gpsd-dev@nongnu.org; Fri, 25 May 2012 06:07:22 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:35520)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SXrQW-0005nL-6B
	for gpsd-dev@nongnu.org; Fri, 25 May 2012 06:07:20 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 2240A6015CC;
	Fri, 25 May 2012 11:07:18 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id uGDBUQuCjpe7; Fri, 25 May 2012 11:07:17 +0100 (IST)
Received: from [192.168.5.183] (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 0D7BA6015C9;
	Fri, 25 May 2012 11:07:16 +0100 (IST)
Message-ID: <4FBF5A08.8030402@techworks.ie>
Date: Fri, 25 May 2012 11:08:08 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120421 Thunderbird/12.0
MIME-Version: 1.0
To: "Eric S. Raymond" <esr@thyrsus.com>
References: <20120524204935.37DA040447@snark.thyrsus.com>
In-Reply-To: <20120524204935.37DA040447@snark.thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Where to apply scaling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 25 May 2012 10:07:28 -0000

Hi Eric,

On 24/05/12 21:49, Eric S. Raymond wrote:
> Christian Gagneraud<chris@techworks.ie>:
>> Currently in driver_ais.c an offset is applied for certain message
>> fields (IMO 236 and IMO289 met/hydro message), and a scaling is done
>> conditionally in gpsd_json.c.
>> I think it would be better to apply the offset and the scaling in
>> gpsd_json.c. Do you have any objection on doing this?
>
> Unfortunately, I thought of an objection. The shm interface.
>
> Because some clients will be reading the AIS report structures
> directly from the daemon via shared memory, all *lossless* preparation
> of the data (in particular, offset applications) should be done in the
> device driver.  This will reduce the number of magic constants that
> client software has to know about.

Interpreting the AIS structures requires already lot of foreknowledge, 
there's plenty of enum values and magic constant (data not available).
Enums are not part of the API, but the NOT_AVAILABLE are (def'ed in gps.h).

What about moving these 6 offset constants in gps.h beside their 
XXX_NOT_AVAILABLE? (FID31 needs only 1 constant not 5. I have one commit 
here for FID31 fixes). And while we are here, why not adding the scaling 
factors as well? This way, clients will have all the information to go 
from raw to interpreted data.

Another consequence of doing the offset in the driver is that the gpsd' 
version of the NOT_AVAILABLE values are different from the IMO standards 
(and from the ones documented in AIVDM.txt)

Regards,
Chris

>
> Lossy transformations (scaling) should continue to be done optionally
> in gpsd_json.c.


-- 
Christian Gagneraud,
Embedded systems engineer.
Techworks Marine
1 Harbour road
Dun Laoghaire
Co. Dublin
Ireland
Tel: + 353 (0) 1 236 5990
Web: http://www.techworks.ie/


From MAILER-DAEMON Sat May 26 12:25:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SYJoT-000621-1e
	for mharc-gpsd-dev@gnu.org; Sat, 26 May 2012 12:25:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55321)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <matthew.beckman@compass-sys-inc.com>)
	id 1SXwRy-0005xa-56
	for gpsd-dev@nongnu.org; Fri, 25 May 2012 11:29:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <matthew.beckman@compass-sys-inc.com>)
	id 1SXwRw-0006BB-Jm
	for gpsd-dev@nongnu.org; Fri, 25 May 2012 11:29:09 -0400
Received: from 65-119-126-162.dia.static.qwest.net ([65.119.126.162]:1388
	helo=mail1.compass-sys-inc.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <matthew.beckman@compass-sys-inc.com>)
	id 1SXwRw-0006AW-F6
	for gpsd-dev@nongnu.org; Fri, 25 May 2012 11:29:08 -0400
Received: from spam.compass-sys-inc.com (10.100.234.200 [10.100.234.200])
	by mail1.compass-sys-inc.com (IceWarp 10.3.5) with ESMTP (SSL) id
	JTL14347 for <gpsd-dev@nongnu.org>; Fri, 25 May 2012 10:38:47 -0400
X-ASG-Debug-ID: 1337956729-462a6d060001-tzOsvG
Received: from [10.9.8.100] (174-140-85-073-static.jst.pa.atlanticbb.net
	[174.140.85.73]) by spam.compass-sys-inc.com with ESMTP id
	HhjdciuWUxtT9PAf for <gpsd-dev@nongnu.org>;
	Fri, 25 May 2012 10:38:50 -0400 (EDT)
X-Barracuda-Envelope-From: matthew.beckman@compass-sys-inc.com
X-Barracuda-Apparent-Source-IP: 174.140.85.73
X-Barracuda-AUTH-User: matthew.beckman@compass-sys-inc.com
Message-ID: <4FBF9979.6040101@compass-sys-inc.com>
Date: Fri, 25 May 2012 10:38:49 -0400
From: Matthew Beckman <matthew.beckman@compass-sys-inc.com>
Organization: Compass Systems, Inc.
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-ASG-Orig-Subj: GPALM Almanac messages
Content-Transfer-Encoding: 7bit
X-Barracuda-Connect: 174-140-85-073-static.jst.pa.atlanticbb.net[174.140.85.73]
X-Barracuda-Start-Time: 1337956729
X-Barracuda-URL: http://spam.compass-sys-inc.com:8000/cgi-mod/mark.cgi
X-Virus-Scanned: by bsmtpd at compass-sys-inc.com
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0
	QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.97966
	Rule breakdown below
	pts rule name              description
	---- ----------------------
	--------------------------------------------------
X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+
X-Received-From: 65.119.126.162
X-Mailman-Approved-At: Sat, 26 May 2012 12:25:55 -0400
Subject: [gpsd-dev] GPALM Almanac messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Fri, 25 May 2012 15:29:11 -0000

Has anyone successfully parsed GPALM messages using the NMEA driver? I 
have added a processGPALM function to driver_nmea.c, and I know it is 
being called. I am not quite sure how to populate the gps_data_t 
structure with the almanac information.

Thanks,
Matt



From MAILER-DAEMON Sat May 26 15:07:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SYMKN-00080N-Oc
	for mharc-gpsd-dev@gnu.org; Sat, 26 May 2012 15:07:03 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36784)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SYMKL-0007zN-GW
	for gpsd-dev@nongnu.org; Sat, 26 May 2012 15:07:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SYMKJ-0003is-JO
	for gpsd-dev@nongnu.org; Sat, 26 May 2012 15:07:01 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:56108)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SYMKJ-0003iG-DK
	for gpsd-dev@nongnu.org; Sat, 26 May 2012 15:06:59 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 04378601858
	for <gpsd-dev@nongnu.org>; Sat, 26 May 2012 20:06:57 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 7E9LZaxryEJv for <gpsd-dev@nongnu.org>;
	Sat, 26 May 2012 20:06:56 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id AF9E5601854
	for <gpsd-dev@nongnu.org>; Sat, 26 May 2012 20:06:55 +0100 (IST)
Message-ID: <4FC129CD.8000506@techworks.ie>
Date: Sat, 26 May 2012 20:06:53 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] [AIS] HTML testsuite report
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sat, 26 May 2012 19:07:02 -0000

Hi all,

I wrote a script that parse sample.aivdm and generate an asciidoc 
containing status and details about decoded sentences (sample.aivdm has 
been partially reformatted to be easily parsable).
This is still a WIP, any comments are more than welcome!

HTML output document is available here:
http://www.techworks.ie/pub/chris/gpsd/ais-testsuite.html

Ideas for future enhancement:
- Add TOC
- Add gpsd version somewhere
- Add summary table
- Add scaled decoding along the unscaled ones
- Add CSV decoding too?
- Give the standard names associated to each sample
- Give the message friendly name

Chris


From MAILER-DAEMON Sat May 26 21:03:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SYRtj-0007xa-W4
	for mharc-gpsd-dev@gnu.org; Sat, 26 May 2012 21:03:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53739)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SYRth-0007xT-4m
	for gpsd-dev@nongnu.org; Sat, 26 May 2012 21:03:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SYRte-00079d-5f
	for gpsd-dev@nongnu.org; Sat, 26 May 2012 21:03:52 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:44574)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SYRtd-00079R-SW
	for gpsd-dev@nongnu.org; Sat, 26 May 2012 21:03:50 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 0244B6018AC
	for <gpsd-dev@nongnu.org>; Sun, 27 May 2012 02:03:48 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 3y9WXmvqEiaF for <gpsd-dev@nongnu.org>;
	Sun, 27 May 2012 02:03:45 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 123226018A6
	for <gpsd-dev@nongnu.org>; Sun, 27 May 2012 02:03:44 +0100 (IST)
Message-ID: <4FC17D70.7060700@techworks.ie>
Date: Sun, 27 May 2012 02:03:44 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: multipart/mixed; boundary="------------010203020603030905030105"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Subject: [gpsd-dev] Test coverage
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 27 May 2012 01:03:55 -0000

This is a multi-part message in MIME format.
--------------010203020603030905030105
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Today, I gave a try to gcov and lcov, and the results are encouraging I 
think, this is what I've done:
- 1 coverage report per testsuite run
- 1 coverage report with all the runs

The results when run on a x86 machine can be found here:
http://www.techworks.ie/pub/chris/gpsd/coverage

This is experimental stuff, I'm sure there's some problems here and there.

For the "all" testsuite, I think it is possible to merge all the 
testcases belonging to each other testsuite into a corresponding single 
testcase.
Attached is the diff to SConstruct. After banging my head against the 
wall, I stopped trying to find a nice way to add conditionally 
"--coverage", to LDFLAGS, CFLAGS and CCFLAGS, and went for a less subtle 
one...
I had to change the calls to mktemp as it was complaining about not 
having enough X ...
As well, the coveraging calls is unconditional, this is still 
experimental, thought.

Any comments welcome!

Chris

--------------010203020603030905030105
Content-Type: text/x-patch;
 name="0001-Add-test-coverage-reporting.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="0001-Add-test-coverage-reporting.patch"

>From f0384147eb59144705c851465ec5770b00e28b12 Mon Sep 17 00:00:00 2001
From: Christian Gagneraud <chgans@gna.org>
Date: Sun, 27 May 2012 02:02:10 +0100
Subject: [PATCH] Add test coverage reporting

---
 SConstruct |   90 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 79 insertions(+), 11 deletions(-)

diff --git a/SConstruct b/SConstruct
index 21214ff..b119fe1 100644
--- a/SConstruct
+++ b/SConstruct
@@ -156,6 +156,7 @@ boolopts = (
     ("python",        True,  "build Python support and modules."),
     ("debug",         False, "include debug information in build"),
     ("profiling",     False, "build with profiling enabled"),
+    ("coveraging",    False, "build with code coveraging enabled"),
     ("strip",         True,  "build with stripping of binaries enabled"),
     ("chrpath",       True,  "use chrpath to edit library load paths"),
     )
@@ -254,6 +255,11 @@ def announce(msg):
 # We need to define -D_GNU_SOURCE
 env.Append(CFLAGS='-D_GNU_SOURCE')
 
+# Brute force, take #1
+env.Append(LDFLAGS="--coverage")
+env.Append(LINKFLAGS="--coverage")
+env.Append(SHLINKFLAGS="--coverage")
+env.Append(CPPFLAGS="--coverage")
 
 
 # DESTDIR environment variable means user wants to prefix the installation root.
@@ -282,6 +288,14 @@ if not 'CCFLAGS' in os.environ:
     if env['profiling']:
         env.Append(CCFLAGS=['-pg'])
         env.Append(LDFLAGS=['-pg'])
+    # Should we build with code coveraging?
+    if env['coveraging']:
+        # Unfortunately, it doesn't work! (Solution is brute force #1)
+        # For the py.so brute force #2 *AND* this are needed
+        env.Append(CCFLAGS=['--coverage'])
+        env.Append(CXXFLAGS=['--coverage'])
+        env.Append(LDFLAGS=['--coverage'])
+        pass
     # Should we build with debug symbols?
     if env['debug']:
         env.Append(CCFLAGS=['-g'])
@@ -978,7 +992,8 @@ else:
     ldshared=ldshared.replace('-pie', '')
     python_env.Replace(SHLINKFLAGS=[],
                        LDFLAGS=ldflags,
-                       LINK = ldshared,
+                       # Brute force, take #2
+                       LINK = ldshared + " --coverage",
                        SHLIBPREFIX="",
                        SHLIBSUFFIX=so_ext,
                        CPPPATH=[includepy],
@@ -1323,7 +1338,10 @@ audit = env.Alias('audit',
 
 # Unit-test the bitfield extractor
 bits_regress = Utility('bits-regress', [test_bits], [
-    '$SRCDIR/test_bits --quiet'
+        'lcov -z -d .',
+    '$SRCDIR/test_bits --quiet',
+        'lcov -c -d . -t "bits_test" -o bits_test_bits.lcov',
+        'genhtml -s -o cov/bits -t "Bitfield extractor" bits_*.lcov'
     ])
 
 # Check that all Python modules compile properly 
@@ -1339,8 +1357,15 @@ else:
     python_compilation_regress = None
 
 # Regression-test the daemon
-gps_regress = Utility("gps-regress", [gpsd, python_built_extensions],
-        '$SRCDIR/regress-driver test/daemon/*.log')
+gps_regress = Utility("gps-regress", [gpsd, python_built_extensions], [
+        'for f in $SRCDIR/test/daemon/*.log; do '
+            'lcov -z -d .; '
+            '$SRCDIR/regress-driver $${f};'
+            'name=daemon_`echo $${f##*/}|tr ".-" _`; '
+            'lcov -c -d . -t "$${name}" -o $${name}.lcov; '
+        'done;',
+        'genhtml -s -o cov/daemon -t "Daemon" daemon_*.lcov'
+        ])
 
 # Test that super-raw mode works. Compare each logfile against itself
 # dumped through the daemon running in R=2 mode.  (This test is not
@@ -1360,17 +1385,24 @@ Utility('gps-makeregress', [gpsd, python_built_extensions],
 rtcm_regress = Utility('rtcm-regress', [gpsdecode], [
     '@echo "Testing RTCM decoding..."',
     'for f in $SRCDIR/test/*.rtcm2; do '
+        'lcov -z -d .; '
         'echo "Testing $${f}..."; '
-        'TMPFILE=`mktemp -t gpsd-test-XXXXXXXXXXXXXX.chk`; '
+        'TMPFILE=`mktemp`; '
         '$SRCDIR/gpsdecode -j <$${f} >$${TMPFILE}; '
+        'name=rtcm_`echo $${f##*/}|tr ".-" _`; '
+        'lcov -c -d . -t "$${name}" -o $${name}.lcov; '
         'diff -ub $${f}.chk $${TMPFILE}; '
         'rm -f $${TMPFILE}; '
     'done;',
     '@echo "Testing idempotency of JSON dump/decode for RTCM2"',
-    'TMPFILE=`mktemp -t gpsd-test-XXXXXXXXXXXXXX.chk`; '
+    'lcov -z -d .; ',
+    'TMPFILE=`mktemp`; '
     '$SRCDIR/gpsdecode -e -j <test/synthetic-rtcm2.json >$${TMPFILE}; '
+    'name=rtcm_json_idempotency; '
+    'lcov -c -d . -t "$${name}" -o $${name}.lcov;'
         'grep -v "^#" test/synthetic-rtcm2.json | diff -ub - $${TMPFILE}; '
         'rm -f $${TMPFILE}; ',
+    'genhtml -s -o cov/rtcm -t "RTCM decoder" rtcm_*.lcov'
         ])
 
 # Rebuild the RTCM regression tests.
@@ -1384,17 +1416,24 @@ Utility('rtcm-makeregress', [gpsdecode], [
 aivdm_regress = Utility('aivdm-regress', [gpsdecode], [
     '@echo "Testing AIVDM decoding..."',
     'for f in $SRCDIR/test/*.aivdm; do '
+        'lcov -z -d .; '
         'echo "Testing $${f}..."; '
-        'TMPFILE=`mktemp -t gpsd-test-XXXXXXXXXXXXXX.chk`; '
+        'TMPFILE=`mktemp`; '
         '$SRCDIR/gpsdecode -u -c <$${f} >$${TMPFILE}; '
         'diff -ub $${f}.chk $${TMPFILE}; '
         'rm -f $${TMPFILE}; '
+        'name=`echo aivdm_$${f##*/}|tr ".-" _`; '
+        'lcov -c -d . -o $${name}.lcov -t $${name}; '
     'done;',
+    'lcov -z -d .',
     '@echo "Testing idempotency of JSON dump/decode for AIS"',
-    'TMPFILE=`mktemp -t gpsd-test-XXXXXXXXXXXXXX.chk`; '
+    'TMPFILE=`mktemp`; '
     '$SRCDIR/gpsdecode -e -j <$SRCDIR/test/synthetic-ais.json >$${TMPFILE}; '
         'grep -v "^#" $SRCDIR/test/synthetic-ais.json | diff -ub - $${TMPFILE}; '
         'rm -f $${TMPFILE}; ',
+    'name=aivdm_json_idempotency; '
+    'lcov -c -d . -o $${name}.lcov -t $${name}',
+    'genhtml -s -o cov/aivdm -t "AIVDM decoder" aivdm_*.lcov'
         ])
 
 # Rebuild the AIVDM regression tests.
@@ -1406,8 +1445,11 @@ Utility('aivdm-makeregress', [gpsdecode], [
 
 # Regression-test the packet getter.
 packet_regress = Utility('packet-regress', [test_packet], [
+    'lcov -z -d .',
     '@echo "Testing detection of invalid packets..."',
     '$SRCDIR/test_packet | diff -u $SRCDIR/test/packet.test.chk -',
+    'lcov -c -d . -t "packet_detect_invalid" -o packet_detect_invalid.lcov',
+    'genhtml -s -o cov/packet -t "Packet getter" packet_*.lcov'
     ])
 
 # Rebuild the packet-getter regression test
@@ -1421,25 +1463,40 @@ Utility('geoid-makeregress', [test_geoid], [
 
 # Regression-test the geoid tester.
 geoid_regress = Utility('geoid-regress', [test_geoid], [
+    'lcov -z -d .',
     '@echo "Testing the geoid model..."',
     '$SRCDIR/test_geoid 37.371192 122.014965 | diff -u $SRCDIR/test/geoid.test.chk -',
+    'lcov -c -d . -t geoid_model -o geoid_model.lcov',
+    'genhtml -s -o cov/geoid -t "Geoid" geoid_*.lcov'
     ])
 
 # Regression-test the Maidenhead Locator
 maidenhead_locator_regress = Utility('maidenhead-locator-regress', [], [
+    'lcov -z -d .',
     '@echo "Testing the Maidenhead Locator conversion..."',
     '$SRCDIR/test_maidenhead.py >/dev/null',
+    'lcov -c -d . -t maidenhead_locator_conversion -o maidenhead_locator_conversion.lcov',
+    'genhtml -s -o cov/maidenhead -t "Maidenhead locator" maidenhead_*.lcov'
     ])
 
 # Regression-test the calendar functions
 time_regress = Utility('time-regress', [test_mkgmtime], [
-    '$SRCDIR/test_mkgmtime'
+    'lcov -z -d .',
+    '$SRCDIR/test_mkgmtime;',
+    'lcov -c -d . -t "time_mkgmtime" -o time_mkgmtime.lcov',
+    'genhtml -s -o cov/time -t "Calendar functions" time_*.lcov'
     ])
 
 # Regression test the unpacking code in libgps
 unpack_regress = Utility('unpack-regress', [test_libgps], [
     '@echo "Testing the client-library sentence decoder..."',
-    '$SRCDIR/regress-driver -c $SRCDIR/test/clientlib/*.log',
+    'for f in $SRCDIR/test/clientlib/*.log; do '
+        'lcov -z -d .; '
+        '$SRCDIR/regress-driver -c $${f}; '
+        'name=unpack_`echo $${f##*/}|tr ".-" _`; '
+        'lcov -c -d . -t $${name} -o $${name}.lcov; '
+    'done',
+    'genhtml -s -o cov/unpack -t "Client-library sentence decoder" unpack_*.lcov'
     ])
 
 # Build the regression test for the sentence unpacker
@@ -1450,7 +1507,17 @@ Utility('unpack-makeregress', [test_libgps], [
 
 # Unit-test the JSON parsing
 json_regress = Utility('json-regress', [test_json], [
-    '$SRCDIR/test_json'
+        'lcov -z -d .; ',
+    '$SRCDIR/test_json',
+        'lcov -c -d . -t "json_parsing" -o json_parsing.lcov;'
+    'genhtml -s -o cov/json -t "JSON parsing" json_*.lcov'
+    ])
+
+# Create a all regression test coverage report
+coverage_report = Utility('coverage-report', [], [
+        # RTCM fails, the code isn't instrumented?
+        #'rm -f rtcm_regress_*.lcov',
+        'genhtml -s -o cov/all -t "All" *.lcov'
     ])
 
 # Run a valgrind audit on the daemon  - not in normal tests
@@ -1472,6 +1539,7 @@ check = env.Alias('check', [
     time_regress,
     unpack_regress,
     json_regress,
+    coverage_report
     ])
 
 env.Alias('testregress', check)
-- 
1.7.0.4


--------------010203020603030905030105--


From MAILER-DAEMON Sun May 27 08:27:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SYcZQ-0004rd-S4
	for mharc-gpsd-dev@gnu.org; Sun, 27 May 2012 08:27:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35402)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SYcZN-0004rW-U6
	for gpsd-dev@nongnu.org; Sun, 27 May 2012 08:27:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SYcZM-0005jL-31
	for gpsd-dev@nongnu.org; Sun, 27 May 2012 08:27:37 -0400
Received: from mail.recluse.de ([217.196.146.213]:44917)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SYcZL-0005is-Sk
	for gpsd-dev@nongnu.org; Sun, 27 May 2012 08:27:36 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 3128927748;
	Sun, 27 May 2012 14:27:33 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id y9-32EIk9pZt; Sun, 27 May 2012 14:27:31 +0200 (CEST)
Received: from think.bzed.org (188-195-124-69-dynip.superkabel.de
	[188.195.124.69])
	by mail.recluse.de (Postfix) with ESMTPSA id BB66B27735;
	Sun, 27 May 2012 14:27:30 +0200 (CEST)
Message-ID: <4FC21DB1.7050802@bzed.de>
Date: Sun, 27 May 2012 14:27:29 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.4) Gecko/20120510 Icedove/10.0.4
MIME-Version: 1.0
To: esr@thyrsus.com
References: <20120420103418.A77F040820@snark.thyrsus.com>
	<4F91BDAA.2070101@bzed.de> <20120421054255.GA6607@thyrsus.com>
In-Reply-To: <20120421054255.GA6607@thyrsus.com>
X-Enigmail-Version: 1.4
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Half the port problems are solved;
 seeking help with RTCM2 driver
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Sun, 27 May 2012 12:27:39 -0000

On 04/21/2012 07:42 AM, Eric S. Raymond wrote:
> Bernd Zeimetz <bernd@bzed.de>:
>> Almost all architectures have built the new gpsd upload now. Indeed the
>> italk/trimble and ublox issues are fixed and the najoks + rtcm2 tests still
>> fail.
> 
> As I expected.
> 
> According to your log, we now have failure only on s390, s390x, and sparc.
> I guess that means there are big-endian machines on which the RTCM2 driver
> is working as expected?  (It would be helpful if I had a complete list of the
> architectures on which regression tests are passing.)
> 
> If so, that is good news.  It means the big-endian version of the weird
> structure-overlay hack I used is working.  In turn, that means that 
> the only failures are machines for which the compilers ignore #pragma pack(1).
> 
> I know in a general way how to fix this, but the details will be ugly
> and difficult.

Actually it was easy - I've tried it on s390 only, but I guess it fixes sparc
and s390x, too:

http://git.sv.gnu.org/cgit/gpsd.git/commit/?id=a3f6c603400bb07f2da80aab6850e8a4788287a4



-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Mon May 28 05:38:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SYwPL-0003TN-Jn
	for mharc-gpsd-dev@gnu.org; Mon, 28 May 2012 05:38:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38860)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SYwPJ-0003Sr-0O
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 05:38:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SYwPE-0002YJ-GW
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 05:38:32 -0400
Received: from mailout06.t-online.de ([194.25.134.19]:55516)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SYwPE-0002Y8-70
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 05:38:28 -0400
Received: from fwd02.aul.t-online.de (fwd02.aul.t-online.de )
	by mailout06.t-online.de with smtp 
	id 1SYwPB-0006G6-2d; Mon, 28 May 2012 11:38:25 +0200
Received: from localhost
	(r1-HWgZcrhZAXEZqA8NkIeLjbTRiFPBXwQMQP1eWDobA0d9qbU5cuP8qCqFanrZQeM@[172.20.101.250])
	by fwd02.aul.t-online.de
	with esmtp id 1SYwP4-1GiO0W0; Mon, 28 May 2012 11:38:18 +0200
MIME-Version: 1.0
Received: from 79.131.90.199:12560 by cmpweb59.aul.t-online.de with HTTP/1.1
	(NGCS V4-0-4-0 on API V3-11-7-2)
Date: Mon, 28 May 2012 11:38:18 +0200
To: gpsd-dev@nongnu.org, "Eric S. Raymond" <esr@thyrsus.com>
X-Priority: 3
X-UMS: email
X-Mailer: DTAG NGCS V4-0-4-0
From: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Content-Type: multipart/mixed; boundary="=_12cbc03e7a98556f72a77f1dccd2c4ee"
Message-ID: <1SYwP4-1GiO0W0@fwd02.aul.t-online.de>
X-ID: r1-HWgZcrhZAXEZqA8NkIeLjbTRiFPBXwQMQP1eWDobA0d9qbU5cuP8qCqFanrZQeM@t-dialin.net
X-TOI-MSGID: 3bcfebd6-451d-4414-ae5a-d08dc5fb3bba
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 194.25.134.19
Subject: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
	driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Mon, 28 May 2012 09:38:34 -0000

--=_12cbc03e7a98556f72a77f1dccd2c4ee
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hallo,

here is patch, that keeps the pps thread away from the nmea2000 socket, it do not start the ntpd stuff.

Is this acceptable?

Reinhard

--=_12cbc03e7a98556f72a77f1dccd2c4ee
Content-Type: application/octet-stream; name="patch"
Content-Disposition: attachment; filename="patch"
Content-Transfer-Encoding: base64
Content-Description: 

ZGlmZiAtLWdpdCBhL2dwc2QuYyBiL2dwc2QuYwppbmRleCA0MjA3NzAyLi43ODEyZjYxIDEwMDY0
NAotLS0gYS9ncHNkLmMKKysrIGIvZ3BzZC5jCkBAIC02NjUsNyArNjY1LDEwIEBAIHN0YXRpYyB2
b2lkIGRlYWN0aXZhdGVfZGV2aWNlKHN0cnVjdCBncHNfZGV2aWNlX3QgKmRldmljZSkKICNpZiBk
ZWZpbmVkKFBQU19FTkFCTEUpICYmIGRlZmluZWQoVElPQ01JV0FJVCkKICNlbmRpZiAvKiBkZWZp
bmVkKFBQU19FTkFCTEUpICYmIGRlZmluZWQoV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bc03e7a98556f72a77f1dccd2c4ee--




From MAILER-DAEMON Mon May 28 23:02:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZChj-0005UL-MO
	for mharc-gpsd-dev@gnu.org; Mon, 28 May 2012 23:02:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46562)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZChg-0005Tk-4t
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 23:02:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZChe-0008FJ-5H
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 23:02:35 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:41023 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZChe-0008FD-1I
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 23:02:34 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id AB49240494; Mon, 28 May 2012 23:02:23 -0400 (EDT)
Date: Mon, 28 May 2012 23:02:23 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Matthew Beckman <matthew.beckman@compass-sys-inc.com>
Message-ID: <20120529030223.GA3979@thyrsus.com>
References: <4FBF9979.6040101@compass-sys-inc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FBF9979.6040101@compass-sys-inc.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] GPALM Almanac messages
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 03:02:38 -0000

Matthew Beckman <matthew.beckman@compass-sys-inc.com>:
> Has anyone successfully parsed GPALM messages using the NMEA driver?
> I have added a processGPALM function to driver_nmea.c, and I know it
> is being called. I am not quite sure how to populate the gps_data_t
> structure with the almanac information.

There isn't a clean way to do it within the existing gps_data_t structure.
You'd havev to define a new union member and mask flag and unpack the
data into that.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Mon May 28 23:18:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZCwp-0007lE-6A
	for mharc-gpsd-dev@gnu.org; Mon, 28 May 2012 23:18:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57666)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZCwm-0007kI-IP
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 23:18:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZCwk-0002sa-KZ
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 23:18:12 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:41062 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZCwk-0002sW-GD
	for gpsd-dev@nongnu.org; Mon, 28 May 2012 23:18:10 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id F096D40494; Mon, 28 May 2012 23:18:00 -0400 (EDT)
Date: Mon, 28 May 2012 23:18:00 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Bernd Zeimetz <bernd@bzed.de>
Message-ID: <20120529031800.GB3979@thyrsus.com>
References: <20120420103418.A77F040820@snark.thyrsus.com>
	<4F91BDAA.2070101@bzed.de> <20120421054255.GA6607@thyrsus.com>
	<4FC21DB1.7050802@bzed.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FC21DB1.7050802@bzed.de>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org, Bill Wells <twwells@lavabit.com>
Subject: Re: [gpsd-dev] Half the port problems are solved;
 seeking help with RTCM2 driver
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 03:18:13 -0000

Bernd Zeimetz <bernd@bzed.de>:
> > If so, that is good news.  It means the big-endian version of the weird
> > structure-overlay hack I used is working.  In turn, that means that 
> > the only failures are machines for which the compilers ignore #pragma pack(1).
> > 
> > I know in a general way how to fix this, but the details will be ugly
> > and difficult.
> 
> Actually it was easy - I've tried it on s390 only, but I guess it fixes sparc
> and s390x, too:
> 
> http://git.sv.gnu.org/cgit/gpsd.git/commit/?id=a3f6c603400bb07f2da80aab6850e8a4788287a4

Your words imply that once BIG_ENDIAN_WORDS is set properly, the wacky
structure-overlay hack works perfectly on *every architecture*, regardless
of word length or endianness, including the really odd ones like s390.

That code is mad science, a textbook example on several levels of how
*not* to do portability.  And yet, I got it *right*? I am utterly
astounded....
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 29 03:10:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZGZt-00059l-Fu
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 03:10:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55682)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZGZq-00057L-By
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 03:10:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZGZn-0008Gz-U8
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 03:10:45 -0400
Received: from mail.recluse.de ([217.196.146.213]:60765)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZGZn-0008Gk-KA
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 03:10:43 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 5527A2777B;
	Tue, 29 May 2012 09:10:41 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id JAg-iaiUrXKj; Tue, 29 May 2012 09:10:39 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id BDEE926F98;
	Tue, 29 May 2012 09:10:39 +0200 (CEST)
Message-ID: <4FC4766A.4050800@bzed.de>
Date: Tue, 29 May 2012 09:10:34 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.4) Gecko/20120510 Icedove/10.0.4
MIME-Version: 1.0
To: esr@thyrsus.com
References: <20120420103418.A77F040820@snark.thyrsus.com>
	<4F91BDAA.2070101@bzed.de> <20120421054255.GA6607@thyrsus.com>
	<4FC21DB1.7050802@bzed.de> <20120529031800.GB3979@thyrsus.com>
In-Reply-To: <20120529031800.GB3979@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Cc: gpsd-dev@nongnu.org, Bill Wells <twwells@lavabit.com>
Subject: Re: [gpsd-dev] Half the port problems are solved;
 seeking help with RTCM2 driver
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 07:10:48 -0000

On 05/29/2012 05:18 AM, Eric S. Raymond wrote:
> Bernd Zeimetz <bernd@bzed.de>:
>>> If so, that is good news.  It means the big-endian version of the weird
>>> structure-overlay hack I used is working.  In turn, that means that 
>>> the only failures are machines for which the compilers ignore #pragma pack(1).
>>>
>>> I know in a general way how to fix this, but the details will be ugly
>>> and difficult.
>>
>> Actually it was easy - I've tried it on s390 only, but I guess it fixes sparc
>> and s390x, too:
>>
>> http://git.sv.gnu.org/cgit/gpsd.git/commit/?id=a3f6c603400bb07f2da80aab6850e8a4788287a4
> 
> Your words imply that once BIG_ENDIAN_WORDS is set properly, the wacky
> structure-overlay hack works perfectly on *every architecture*, regardless
> of word length or endianness, including the really odd ones like s390.

well, what I actually wanted to say is that it was easy to fix that code
for all debian related architectures ;)

> That code is mad science, a textbook example on several levels of how
> *not* to do portability.  And yet, I got it *right*? I am utterly
> astounded....

As far as linux and gcc or clang is involved, it seems so.

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Tue May 29 05:02:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZIKF-00006W-Eu
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 05:02:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34036)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIK6-00004s-2T
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:02:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIJz-0000n5-K3
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:02:37 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42556 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIJz-0000mp-Fi
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:02:31 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 476F740494; Tue, 29 May 2012 05:02:21 -0400 (EDT)
Date: Tue, 29 May 2012 05:02:21 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Marti Bolivar <mbolivar@leaflabs.com>
Message-ID: <20120529090221.GA5848@thyrsus.com>
References: <4FBEA2F1.5030603@leaflabs.com>
	<CAFv7OigzwMHoEDdSQYzA5Hy80-_BuR4jCyYU4Jtwv3-8FPOwaQ@mail.gmail.com>
	<4FBEADC7.8020608@leaflabs.com>
	<20120524221752.GB11117@thyrsus.com>
	<4FBEBE3F.3030009@leaflabs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FBEBE3F.3030009@leaflabs.com>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent
 names.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 09:02:46 -0000

Marti Bolivar <mbolivar@leaflabs.com>:
> Looks like my mailer might have untabified the patch (sorry!), so
> I've attached it here for good measure.

It did.  Thanks.  Applied.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 29 05:30:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZIl3-0003EP-Ds
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 05:30:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53802)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIkw-0003D8-Mk
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:30:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIkq-0007YJ-Bj
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:30:22 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42676 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIkq-0007Y8-7b
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:30:16 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 1E59140495; Tue, 29 May 2012 05:30:06 -0400 (EDT)
Date: Tue, 29 May 2012 05:30:06 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Christian Gagneraud <chris@techworks.ie>
Message-ID: <20120529093006.GA6169@thyrsus.com>
References: <4FC129CD.8000506@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FC129CD.8000506@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [AIS] HTML testsuite report
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 09:30:28 -0000

Christian Gagneraud <chris@techworks.ie>:
> I wrote a script that parse sample.aivdm and generate an asciidoc
> containing status and details about decoded sentences (sample.aivdm
> has been partially reformatted to be easily parsable).
> This is still a WIP, any comments are more than welcome!
> 
> HTML output document is available here:
> http://www.techworks.ie/pub/chris/gpsd/ais-testsuite.html
> 
> Ideas for future enhancement:
> - Add TOC
> - Add gpsd version somewhere
> - Add summary table
> - Add scaled decoding along the unscaled ones
> - Add CSV decoding too?
> - Give the standard names associated to each sample
> - Give the message friendly name
> 
> Chris

I find output interesting to look at, but then I am like you
an AIS implementor - which is a pretty uncommon interest.  What
did you have in mind for this script? Was it just generating 
some sort of explanation page for the website?
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 29 05:35:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZIpq-00041Z-QX
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 05:35:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56004)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIpk-0003xr-4a
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:35:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIpf-0000Rr-AJ
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:35:19 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42741 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZIpf-0000RE-3s
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 05:35:15 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 80E3E40494; Tue, 29 May 2012 05:35:05 -0400 (EDT)
Date: Tue, 29 May 2012 05:35:05 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Christian Gagneraud <chris@techworks.ie>
Message-ID: <20120529093505.GB6169@thyrsus.com>
References: <20120524204935.37DA040447@snark.thyrsus.com>
	<4FBF5A08.8030402@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FBF5A08.8030402@techworks.ie>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Where to apply scaling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 09:35:24 -0000

Christian Gagneraud <chris@techworks.ie>:
> Interpreting the AIS structures requires already lot of
> foreknowledge, there's plenty of enum values and magic constant
> (data not available).
> Enums are not part of the API, but the NOT_AVAILABLE are (def'ed in gps.h).
> 
> What about moving these 6 offset constants in gps.h beside their
> XXX_NOT_AVAILABLE? (FID31 needs only 1 constant not 5. I have one
> commit here for FID31 fixes). And while we are here, why not adding
> the scaling factors as well? This way, clients will have all the
> information to go from raw to interpreted data.
> 
> Another consequence of doing the offset in the driver is that the
> gpsd' version of the NOT_AVAILABLE values are different from the IMO
> standards (and from the ones documented in AIVDM.txt)

Hm. Your last paragraph makes a good point - that is confusing.  

I guess you're right and all the scaling ought to be done in one place,
with the scaling constants visible in gps.h.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 29 06:19:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZJWx-00051h-9w
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 06:19:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57611)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SZJWu-00051L-QZ
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 06:19:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SZJWo-0002qq-EU
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 06:19:56 -0400
Received: from mailout10.t-online.de ([194.25.134.21]:47572)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SZJWo-0002q6-7S
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 06:19:50 -0400
Received: from fwd15.aul.t-online.de (fwd15.aul.t-online.de )
	by mailout10.t-online.de with smtp 
	id 1SZJWk-0003s6-RW; Tue, 29 May 2012 12:19:46 +0200
Received: from localhost
	(Tb54vQZlQh3yasqDknwJ-Xhb0wGZqmSNHwPoMb2emhh60Kw2gf5SmIp4pMeikJ5Qpd@[172.20.101.250])
	by fwd15.aul.t-online.de
	with esmtp id 1SZJWa-1s6lLU0; Tue, 29 May 2012 12:19:36 +0200
MIME-Version: 1.0
Received: from 79.131.90.199:22940 by cmpweb57.aul.t-online.de with HTTP/1.1
	(NGCS V4-0-4-0 on API V3-11-7-2)
Date: Tue, 29 May 2012 12:19:36 +0200
To: gpsd-dev@nongnu.org
X-Priority: 3
X-UMS: email
X-Mailer: DTAG NGCS V4-0-4-0
From: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Message-ID: <1SZJWa-1s6lLU0@fwd15.aul.t-online.de>
X-ID: Tb54vQZlQh3yasqDknwJ-Xhb0wGZqmSNHwPoMb2emhh60Kw2gf5SmIp4pMeikJ5Qpd@t-dialin.net
X-TOI-MSGID: 64576d77-e65d-4b65-8ae6-d7b60f12ff33
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 194.25.134.21
Subject: [gpsd-dev] scons audit fails on unbuntu 12.04
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 10:19:58 -0000

Hello,

is there a simple way to get scons audit running on my system again?

Thank you

Reinhard

Here is a log of the output...

ar@umpc:~/gpsd/gpsd$ scons audit
scons: Reading SConscript files ...
Checking if compiler accepts -Wextra ...(cached) yes
Checking if compiler accepts -Wall ...(cached) yes
.......
scons: Building targets ...
Running splint on daemon...
splint -I/usr/include/libusb-1.0 +quiet -exportlocal -redef gpsd.c ntpshm.c shmexport.c dbusexport.c
gpsd.c:9:22: Cannot find include file sys/stat.h on search path:
                .;/usr/include/libusb-1.0;/usr/include;/usr/include
  Preprocessing error. (Use -preproc to inhibit warning)
gpsd.c:10:23: Cannot find include file sys/types.h on search path:
                 .;/usr/include/libusb-1.0;/usr/include;/usr/include
gpsd.c:12:24: Cannot find include file sys/select.h on search path:
                 .;/usr/include/libusb-1.0;/usr/include;/usr/include
gpsd_config.h:269:40: #error "unable to determine endianess!"
   In file included from gpsd.c:45
gps.h:21:23: Cannot find include file sys/types.h on search path:
                .;/usr/include/libusb-1.0;/usr/include;/usr/include
   In file included from gpsd.h:320,
                 from gpsd.c:52
Preprocessing error for file: /home/ar/gpsd/gpsd/gpsd.c
*** Cannot continue.
Running splint on libgpsd...

and so on...




From MAILER-DAEMON Tue May 29 07:28:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZKbG-0004qJ-K3
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 07:28:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50403)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZKbD-0004pi-JA
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 07:28:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZKb8-0003o1-At
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 07:28:27 -0400
Received: from mail.recluse.de ([217.196.146.213]:48590)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZKb8-0003np-13
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 07:28:22 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 2F17427796;
	Tue, 29 May 2012 13:28:20 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id 2Ym5YZl1QM2L; Tue, 29 May 2012 13:28:18 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id 6E27826F98;
	Tue, 29 May 2012 13:28:18 +0200 (CEST)
Message-ID: <4FC4B2CD.9030000@bzed.de>
Date: Tue, 29 May 2012 13:28:13 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.4) Gecko/20120510 Icedove/10.0.4
MIME-Version: 1.0
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
References: <1SZJWa-1s6lLU0@fwd15.aul.t-online.de>
In-Reply-To: <1SZJWa-1s6lLU0@fwd15.aul.t-online.de>
Content-Type: multipart/mixed; boundary="------------010600090302050300060909"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] scons audit fails on unbuntu 12.04
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 11:28:29 -0000

This is a multi-part message in MIME format.
--------------010600090302050300060909
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi,

> is there a simple way to get scons audit running on my system again?

I think what you are seeing here is a bug in the packaging of splint
which doesn't seem to be multiarch-capable (multiarch is more or less
broken in Ubuntu for various reasons anyway).

/usr/include/x86_64-linux-gnu (or whatever your architecture is)
is missing in the include path splint looks at.

As a workaround please apply the attached patch (ESR: please commit it,
I don't have my keys here).

I'll report a bug in Debian, so it might be fixed in Ubuntu one day.

Cheers,

Bernd

> 
> Thank you
> 
> Reinhard
> 
> Here is a log of the output...
> 
> ar@umpc:~/gpsd/gpsd$ scons audit
> scons: Reading SConscript files ...
> Checking if compiler accepts -Wextra ...(cached) yes
> Checking if compiler accepts -Wall ...(cached) yes
> .......
> scons: Building targets ...
> Running splint on daemon...
> splint -I/usr/include/libusb-1.0 +quiet -exportlocal -redef gpsd.c ntpshm.c shmexport.c dbusexport.c
> gpsd.c:9:22: Cannot find include file sys/stat.h on search path:
>                 .;/usr/include/libusb-1.0;/usr/include;/usr/include
>   Preprocessing error. (Use -preproc to inhibit warning)
> gpsd.c:10:23: Cannot find include file sys/types.h on search path:
>                  .;/usr/include/libusb-1.0;/usr/include;/usr/include
> gpsd.c:12:24: Cannot find include file sys/select.h on search path:
>                  .;/usr/include/libusb-1.0;/usr/include;/usr/include
> gpsd_config.h:269:40: #error "unable to determine endianess!"
>    In file included from gpsd.c:45
> gps.h:21:23: Cannot find include file sys/types.h on search path:
>                 .;/usr/include/libusb-1.0;/usr/include;/usr/include
>    In file included from gpsd.h:320,
>                  from gpsd.c:52
> Preprocessing error for file: /home/ar/gpsd/gpsd/gpsd.c
> *** Cannot continue.
> Running splint on libgpsd...
> 
> and so on...
> 
> 
> 


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F

--------------010600090302050300060909
Content-Type: text/x-diff;
 name="0001-Work-around-splint-not-knowing-about-multiarch.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0001-Work-around-splint-not-knowing-about-multiarch.patch"

>From 0793b99f8a857b9e86f95099c2c91dc3218e58e6 Mon Sep 17 00:00:00 2001
From: Bernd Zeimetz <bernd@bzed.de>
Date: Tue, 29 May 2012 13:26:26 +0200
Subject: [PATCH] Work around splint not knowing about multiarch.

---
 SConstruct |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index 429d0b0..98356f5 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1273,7 +1273,12 @@ def Utility(target, source, action):
 
 # Report splint warnings
 # Note: test_bits.c is unsplintable because of the PRI64 macros.
-env['SPLINTOPTS'] = "-I/usr/include/libusb-1.0 +quiet"
+splintopts = "-I/usr/include/libusb-1.0 +quiet"
+# splint does not know about multi-arch, work around that
+ma_status, ma = _getstatusoutput('dpkg-architecture -qDEB_HOST_MULTIARCH')
+if ma_status == 0:
+    splintopts = '-I/usr/include/%s %s' %(ma.strip(),splintopts)
+env['SPLINTOPTS']=splintopts
 
 def Splint(target,sources, description, params):
     return Utility(target,sources+generated_sources,[
-- 
1.7.10


--------------010600090302050300060909--


From MAILER-DAEMON Tue May 29 07:35:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZKhn-0005Z5-Rd
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 07:35:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34591)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZKhg-0005XN-SY
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 07:35:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZKha-0005Gx-Ey
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 07:35:08 -0400
Received: from mail.recluse.de ([217.196.146.213]:46041)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZKha-0005Ah-4U
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 07:35:02 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 72E0827779;
	Tue, 29 May 2012 13:34:59 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id BtGdC3bvAcFa; Tue, 29 May 2012 13:34:58 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id 222B726F98;
	Tue, 29 May 2012 13:34:58 +0200 (CEST)
Message-ID: <4FC4B462.8060105@bzed.de>
Date: Tue, 29 May 2012 13:34:58 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.4) Gecko/20120510 Icedove/10.0.4
MIME-Version: 1.0
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
References: <1SYwP4-1GiO0W0@fwd02.aul.t-online.de>
In-Reply-To: <1SYwP4-1GiO0W0@fwd02.aul.t-online.de>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
	driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 11:35:14 -0000

Hi,

> here is patch, that keeps the pps thread away from the nmea2000 socket, it do not start the ntpd stuff.

I fail to understand why that is necessary - does nmea2000 not ship
timestamps?

Also if I remember right - #if defined is a gcc speciality and not
supported by all compilers, #ifdef just works.


Cheers,

Bernd

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Tue May 29 08:49:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZLs2-0000LP-DE
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 08:49:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56179)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZLrz-0000LG-8H
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 08:49:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZLrr-0008Rq-6f
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 08:49:50 -0400
Received: from mail.recluse.de ([217.196.146.213]:55345)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SZLrr-0008Qz-1G
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 08:49:43 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 4267F2779A;
	Tue, 29 May 2012 14:49:41 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at recluse.de
Received: from mail.recluse.de ([127.0.0.1])
	by mail.recluse.de (mail.recluse.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id ykHMXOmuAZU3; Tue, 29 May 2012 14:49:39 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id 50D9226F9B;
	Tue, 29 May 2012 14:49:39 +0200 (CEST)
Message-ID: <4FC4C5E3.5030309@bzed.de>
Date: Tue, 29 May 2012 14:49:39 +0200
From: Bernd Zeimetz <bernd@bzed.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:10.0.4) Gecko/20120510 Icedove/10.0.4
MIME-Version: 1.0
To: Christian Gagneraud <chgans@gna.org>
References: <20120520225247.5249.6916.stgit@pluton.site>
In-Reply-To: <20120520225247.5249.6916.stgit@pluton.site>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 217.196.146.213
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix attitude documentation.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 12:49:52 -0000

On 05/21/2012 12:52 AM, Christian Gagneraud wrote:
> This patch was laying around in my tree, it fixes some typos in the attitude structure documentation.
> 
> Signed-off-by: Christian Gagneraud <chgans@gna.org>
> ---
> 
>  gpsd_json.xml |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/gpsd_json.xml b/gpsd_json.xml
> index f8c3f86..cf2c37c 100644
> --- a/gpsd_json.xml
> +++ b/gpsd_json.xml
> @@ -659,7 +659,8 @@ may be reported or not depending on the specific device type.</para>
>  	<entry>dip</entry>
>  	<entry>No</entry>
>  	<entry>numeric</entry>
> -        <entry>Roll in degrees.</entry>
> +        <entry>Local magnedic inclination, degrees, positive when the magnetic
-------------------------^^^^^^
s/d/t/

> +field points downward (into the Earth).</entry>
>  </row>
>  <row>
>  	<entry>mag_len</entry>
> @@ -686,7 +687,7 @@ may be reported or not depending on the specific device type.</para>
>          <entry>Z component of magnetic field strength.</entry>
>  </row>
>  <row>
> -	<entry>mag_len</entry>
> +	<entry>acc_len</entry>
>  	<entry>No</entry>
>  	<entry>numeric</entry>
>          <entry>Scalar acceleration.</entry>
> 
> 


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F


From MAILER-DAEMON Tue May 29 12:00:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZOqQ-0005Vt-RZ
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 12:00:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33003)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZOqM-0005Lm-P4
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 12:00:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZOqD-0002vn-RX
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 12:00:22 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:43887 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SZOqD-0002vE-O2
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 12:00:13 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id BB28740494; Tue, 29 May 2012 12:00:02 -0400 (EDT)
Date: Tue, 29 May 2012 12:00:02 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Bernd Zeimetz <bernd@bzed.de>
Message-ID: <20120529160002.GA8246@thyrsus.com>
References: <1SYwP4-1GiO0W0@fwd02.aul.t-online.de> <4FC4B462.8060105@bzed.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4FC4B462.8060105@bzed.de>
Organization: Eric Conspiracy Secret Labs
X-Eric-Conspiracy: There is no conspiracy
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.162.243.5
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
 driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: esr@thyrsus.com
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 16:00:24 -0000

Bernd Zeimetz <bernd@bzed.de>:
> Also if I remember right - #if defined is a gcc speciality and not
> supported by all compilers, #ifdef just works.

No, #if defined() has been standard C for a long time - C89, I think,
though I'm not getting good Google hits to cobfirm this.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue May 29 14:19:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZR0g-0000kQ-CQ
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 14:19:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59679)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZR0d-0000jG-7D
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 14:19:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZR0b-00087T-9h
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 14:19:06 -0400
Received: from catbert.rellim.com ([204.17.205.1]:33533)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZR0a-00083A-P9
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 14:19:05 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4TIIhDS008187
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Tue, 29 May 2012 11:18:43 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4TIIhDS008187
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1338315524; bh=0AAZYyzL51BEruKEFEf2yf+ghw3FbUu9oho2xWWyapQ=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=LOtS8JUL4PHInTVI76ZT6ak7mR/1aWQmv4hhLL/Pg2GkdHxOejlVUrIg6ookD+Dby
	PtLMweZ2x2R9LHv4z/H4g==
Date: Tue, 29 May 2012 11:18:39 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Bernd Zeimetz <bernd@bzed.de>
Message-ID: <20120529111839.4cdad4a8.gem@rellim.com>
In-Reply-To: <4FC4B462.8060105@bzed.de>
References: <1SYwP4-1GiO0W0@fwd02.aul.t-online.de> <4FC4B462.8060105@bzed.de>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/t3l/1NMy1nFpor6.+m=H.4x";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
 driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 18:19:08 -0000

--Sig_/t3l/1NMy1nFpor6.+m=H.4x
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Bernd!

On Tue, 29 May 2012 13:34:58 +0200
Bernd Zeimetz <bernd@bzed.de> wrote:

> > here is patch, that keeps the pps thread away from the nmea2000
> > socket, it do not start the ntpd stuff.
>=20
> I fail to understand why that is necessary - does nmea2000 not ship
> timestamps?

I have not looked at the patch yet, does it turn off ntp support, or
just the PPS support for NMEA2000?



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

--Sig_/t3l/1NMy1nFpor6.+m=H.4x
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk/FEwIACgkQBmnRqz71OvPCHwCgz1Om6Bx6SBKT8hYNTGT20A+A
7fIAn0wFpdnGn0He1k+sJ0oqLXNlYf1w
=5NB3
-----END PGP SIGNATURE-----

--Sig_/t3l/1NMy1nFpor6.+m=H.4x--


From MAILER-DAEMON Tue May 29 14:49:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZRUQ-00069r-1o
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 14:49:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36499)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZRUO-00069V-2g
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 14:49:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZRUH-0004at-Pm
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 14:49:51 -0400
Received: from catbert.rellim.com ([204.17.205.1]:38500)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZRUH-0004aN-8F
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 14:49:45 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4TInfLg009284
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Tue, 29 May 2012 11:49:41 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4TInfLg009284
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1338317382; bh=G1GuakRL2yAeQG2kwKr2ANAnKcmoQilnpmtoOX64bek=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=E2gPNWyvFqD00diS3aC9OD0MEgs1hnA4CICWBasN312CQPpThdRCqktXP6vRnut5O
	QZZtkxDZhGezTEueOI7uQ==
Date: Tue, 29 May 2012 11:49:38 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Message-ID: <20120529114938.2ad3336d.gem@rellim.com>
In-Reply-To: <1SYwP4-1GiO0W0@fwd02.aul.t-online.de>
References: <1SYwP4-1GiO0W0@fwd02.aul.t-online.de>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/UddRj/ZBYOAioOtkzd/4bqT";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
 driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 18:49:53 -0000

--Sig_/UddRj/ZBYOAioOtkzd/4bqT
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Reinhard.Arlt@t-online.de!

On Mon, 28 May 2012 11:38:18 +0200
"Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de> wrote:

> here is patch, that keeps the pps thread away from the nmea2000
> socket, it do not start the ntpd stuff.

I finally got a look at your patch.  Looks to me like it goes too far,
so I would revert it.  This turns off not only PPS but basic ntpd
functionality.  There is no PPS on nmea2000, but there are time
stamps and ntpd can use those.

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

--Sig_/UddRj/ZBYOAioOtkzd/4bqT
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk/FGkQACgkQBmnRqz71OvMdVQCfaRl6BtZjqWQJ/92//ujqlb01
Qq8AoLZQ2/JuIOHpesoPIBRui6GwbQwQ
=uxAb
-----END PGP SIGNATURE-----

--Sig_/UddRj/ZBYOAioOtkzd/4bqT--


From MAILER-DAEMON Tue May 29 17:17:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZTmw-0000WC-MH
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 17:17:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48055)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SZTms-0000Uh-Si
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 17:17:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SZTml-0002ed-La
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 17:17:06 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:49635)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SZTml-0002d0-FB
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 17:16:59 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 9E6F2603229;
	Tue, 29 May 2012 22:16:56 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id g2JlcxwN-3MN; Tue, 29 May 2012 22:16:55 +0100 (IST)
Received: from [192.168.5.183] (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 5BDE2603221;
	Tue, 29 May 2012 22:16:55 +0100 (IST)
Message-ID: <4FC53CC5.4070501@techworks.ie>
Date: Tue, 29 May 2012 22:16:53 +0100
From: Christian Gagneraud <chris@techworks.ie>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120421 Thunderbird/12.0
MIME-Version: 1.0
To: esr@thyrsus.com
References: <20120524204935.37DA040447@snark.thyrsus.com>
	<4FBF5A08.8030402@techworks.ie> <20120529093505.GB6169@thyrsus.com>
In-Reply-To: <20120529093505.GB6169@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] Where to apply scaling
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 21:17:10 -0000

On 29/05/12 10:35, Eric S. Raymond wrote:
> Christian Gagneraud<chris@techworks.ie>:
>> Interpreting the AIS structures requires already lot of
>> foreknowledge, there's plenty of enum values and magic constant
>> (data not available).
>> Enums are not part of the API, but the NOT_AVAILABLE are (def'ed in gps.h).
>>
>> What about moving these 6 offset constants in gps.h beside their
>> XXX_NOT_AVAILABLE? (FID31 needs only 1 constant not 5. I have one
>> commit here for FID31 fixes). And while we are here, why not adding
>> the scaling factors as well? This way, clients will have all the
>> information to go from raw to interpreted data.
>>
>> Another consequence of doing the offset in the driver is that the
>> gpsd' version of the NOT_AVAILABLE values are different from the IMO
>> standards (and from the ones documented in AIVDM.txt)
>
> Hm. Your last paragraph makes a good point - that is confusing.
>
> I guess you're right and all the scaling ought to be done in one place,
> with the scaling constants visible in gps.h.

OK, will do.

Chris


-- 
Christian Gagneraud,
Embedded systems engineer.
Techworks Marine
1 Harbour road
Dun Laoghaire
Co. Dublin
Ireland
Tel: + 353 (0) 1 236 5990
Web: http://www.techworks.ie/


From MAILER-DAEMON Tue May 29 17:26:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZTw8-0002n0-Mf
	for mharc-gpsd-dev@gnu.org; Tue, 29 May 2012 17:26:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38993)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SZTw6-0002lr-9O
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 17:26:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SZTw4-0004qb-It
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 17:26:37 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:45641)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SZTw4-0004dJ-Cn
	for gpsd-dev@nongnu.org; Tue, 29 May 2012 17:26:36 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 1B19960322C;
	Tue, 29 May 2012 22:26:12 +0100 (IST)
X-Virus-Scanned: amavisd-new at techworks.ie
Received: from mailx.techworks.ie ([127.0.0.1])
	by localhost (mailx.techworks.ie [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id DxMymUADPdCP; Tue, 29 May 2012 22:26:11 +0100 (IST)
Received: from [192.168.5.183] (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPSA id DA0B0603221;
	Tue, 29 May 2012 22:26:10 +0100 (IST)
Message-ID: <4FC53EF1.4080909@gna.org>
Date: Tue, 29 May 2012 22:26:09 +0100
From: Christian Gagneraud <chgans@gna.org>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:12.0) Gecko/20120421 Thunderbird/12.0
MIME-Version: 1.0
To: Bernd Zeimetz <bernd@bzed.de>
References: <20120520225247.5249.6916.stgit@pluton.site>
	<4FC4C5E3.5030309@bzed.de>
In-Reply-To: <4FC4C5E3.5030309@bzed.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix attitude documentation.
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Tue, 29 May 2012 21:26:39 -0000

On 29/05/12 13:49, Bernd Zeimetz wrote:
> On 05/21/2012 12:52 AM, Christian Gagneraud wrote:
>> This patch was laying around in my tree, it fixes some typos in the attitude structure documentation.
>>
>> Signed-off-by: Christian Gagneraud<chgans@gna.org>
>> ---
>>
>>   gpsd_json.xml |    5 +++--
>>   1 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/gpsd_json.xml b/gpsd_json.xml
>> index f8c3f86..cf2c37c 100644
>> --- a/gpsd_json.xml
>> +++ b/gpsd_json.xml
>> @@ -659,7 +659,8 @@ may be reported or not depending on the specific device type.</para>
>>   	<entry>dip</entry>
>>   	<entry>No</entry>
>>   	<entry>numeric</entry>
>> -<entry>Roll in degrees.</entry>
>> +<entry>Local magnedic inclination, degrees, positive when the magnetic
> -------------------------^^^^^^
> s/d/t/
>
>> +field points downward (into the Earth).</entry>
>>   </row>
>>   <row>
>>   	<entry>mag_len</entry>
>> @@ -686,7 +687,7 @@ may be reported or not depending on the specific device type.</para>
>>           <entry>Z component of magnetic field strength.</entry>
>>   </row>
>>   <row>
>> -	<entry>mag_len</entry>
>> +	<entry>acc_len</entry>
>>   	<entry>No</entry>
>>   	<entry>numeric</entry>
>>           <entry>Scalar acceleration.</entry>

Fixed, thanks.

Chris

>>
>>
>
>


-- 
Chris


From MAILER-DAEMON Wed May 30 03:14:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZd6l-0005HK-UX
	for mharc-gpsd-dev@gnu.org; Wed, 30 May 2012 03:14:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60521)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SZd6j-0005Gp-9S
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 03:14:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SZd6d-0001PV-Qg
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 03:14:12 -0400
Received: from mailout04.t-online.de ([194.25.134.18]:42672)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SZd6d-0001PM-GP
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 03:14:07 -0400
Received: from fwd00.aul.t-online.de (fwd00.aul.t-online.de )
	by mailout04.t-online.de with smtp 
	id 1SZd6a-0004hN-Tb; Wed, 30 May 2012 09:14:04 +0200
Received: from localhost
	(Eww4YcZGZhycSlTryp8KrjKD89vMtDzcJalwNQfq0hv0Mp+KCSeN3l-9+SgxYgGg4N@[172.20.101.250])
	by fwd00.aul.t-online.de
	with esmtp id 1SZd6Q-0UUVEm0; Wed, 30 May 2012 09:13:54 +0200
MIME-Version: 1.0
Received: from 79.131.81.242:10602 by cmpweb36.aul.t-online.de with HTTP/1.1
	(NGCS V4-0-4-0 on API V3-11-7-2)
In-Reply-To: <20120529114938.2ad3336d.gem@rellim.com>
References: <20120529114938.2ad3336d.gem@rellim.com>
Date: Wed, 30 May 2012 09:13:54 +0200
To: "Gary E. Miller" <gem@rellim.com>
X-Priority: 3
X-UMS: email
X-Mailer: DTAG NGCS V4-0-4-0
From: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Content-Type: multipart/alternative;
	boundary="=_256957c78f67b5bbd96a05ec914426a2"
Message-ID: <1SZd6Q-0UUVEm0@fwd00.aul.t-online.de>
X-ID: Eww4YcZGZhycSlTryp8KrjKD89vMtDzcJalwNQfq0hv0Mp+KCSeN3l-9+SgxYgGg4N@t-dialin.net
X-TOI-MSGID: da0795b6-6e97-4af7-b57e-2b83927b06a2
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 194.25.134.18
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev]
 =?utf-8?q?RFC=3A_Patch_tp_prevent_call_to_ntpd=5Flink?=
 =?utf-8?q?=5F*_for_driver=5Fnmea2000?=
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 30 May 2012 07:14:14 -0000

--=_256957c78f67b5bbd96a05ec914426a2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

Hallo, 

	i know, that i disable ntp support for nmea2000 now. This several two
reasons: 

	-- the usage of ntp with gpsd on the boat has no top priority for me,
the support of more then one GPS device, the AIS transmitter, and
other instruments come first. 

	-- i see no way to test it, i have only one linux machine on the
boat, perhaps you can tell me how to compare the ntp results of a gpsd
using a conventional usb gps (u-blox 5) reciever, and a ntpd on the
gpsd using the information from the nmea2000 bus. 

	-- as nmea2000 is a CAN bus (network), you need support in the CAN
driver and perhaps even in the CAN interface hardware, to  get a good
timestamps. There are own time protocols for CAN, but not part
ofnmea2000 as far as i know. 

	-- i have spend some time trying to understand the interaction of the
pps daemon and the other ntp stuff, but my understanding of the
subsystem is not good enough to make a change here. My understanding
is, the the ntp_link_activate() and ntpd_link_deactivate() only
allocate/free the the shared memory segment for ntp, and then starts
the pps subsystem, that is unusable for nmea2000 as it is today. 

	Question: Does the ntp subsystem (without pps support) work, if there
is only the shared memory segment present? then it is a nice option,
to move my patches into ï»¿ntp_link_activate() and
ntpd_link_deactivate() after allocating/freeing the ntp shared memory
segment. If this works, it will be for shure a far better solution! 

	Reinhard 

	-----Original-Nachricht----- 

	Von: "Gary E. Miller" <gem@rellim.com> 

	An: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de> 

	Cc: gpsd-dev@nongnu.org, "Eric S. Raymond" <esr@thyrsus.com> 

	Betreff: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
driver_nmea2000 

	Datum: Tue, 29 May 2012 20:49:38 +0200 

	Yo Reinhard.Arlt@t-online.de! 

	On Mon, 28 May 2012 11:38:18 +0200 

	"Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de> wrote: 

	> here is patch, that keeps the pps thread away from the nmea2000 

	> socket, it do not start the ntpd stuff. 

	I finally got a look at your patch.  Looks to me like it goes too
far, 

	so I would revert it.  This turns off not only PPS but basic ntpd 

	functionality.  There is no PPS on nmea2000, but there are time 

	stamps and ntpd can use those. 

	RGDS 

	GARY 

	---------------------------------------------------------------------------


	Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701


	gem@rellim.com  Tel:+1(541)382-8588
--=_256957c78f67b5bbd96a05ec914426a2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html><head><title></title><meta http-equiv=3D"Content-Type" content=3D"tex=
t/html; charset=3DUTF-8"/></head><body><p style=3D"margin: 0px;">Hallo,</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">i know, that i disable ntp support for nmea2000 n=
ow. This several two reasons:</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">-- the usage of ntp with gpsd on the boat has no =
top priority for me, the support of more then one GPS device, the AIS trans=
mitter, and other instruments come first.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">-- i see no way to test it, i have only one linux=
 machine on the boat, perhaps you can tell me how to compare the ntp result=
s of a gpsd using a conventional usb gps (u-blox 5) reciever, and a ntpd on=
 the gpsd using the information from the nmea2000 bus.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">-- as nmea2000 is a CAN bus (network), you need s=
upport in the CAN&nbsp;driver and perhaps even in the CAN interface&nbsp;ha=
rdware, to  get a good timestamps.&nbsp;There are own time&nbsp;protocols f=
or CAN, but not part ofnmea2000 as far as i know.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">-- i have spend some time trying to understand th=
e interaction of the pps daemon and the other ntp stuff, but my understandi=
ng of the subsystem is not good enough to make a change here. My understand=
ing is, the the ntp_link_activate() and ntpd_link_deactivate() only allocat=
e/free the the shared memory segment for ntp, and then starts the pps subsy=
stem, that is unusable for nmea2000 as it is today.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">Question: Does the ntp subsystem (without pps sup=
port) work, if there is only the shared memory segment present? then it is =
a nice option, to move my patches into&nbsp;=EF=BB=BFntp_link_activate() an=
d&nbsp;ntpd_link_deactivate() after allocating/freeing the ntp shared memor=
y segment. If this works, it will be for shure a far better solution!</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">Reinhard</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">-----Original-Nachricht-----</p>
<p style=3D"margin: 0px;">Von: "Gary E. Miller" &lt;gem@rellim.com&gt;</p>
<p style=3D"margin: 0px;">An: "Reinhard.Arlt@t-online.de" &lt;Reinhard.Arlt=
@t-online.de&gt;</p>
<p style=3D"margin: 0px;">Cc: gpsd-dev@nongnu.org, "Eric S. Raymond" &lt;es=
r@thyrsus.com&gt;</p>
<p style=3D"margin: 0px;">Betreff: Re: [gpsd-dev] RFC: Patch tp prevent cal=
l to ntpd_link_* for driver_nmea2000</p>
<p style=3D"margin: 0px;">Datum: Tue, 29 May 2012 20:49:38 +0200</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">Yo Reinhard.Arlt@t-online.de!</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">On Mon, 28 May 2012 11:38:18 +0200</p>
<p style=3D"margin: 0px;">"Reinhard.Arlt@t-online.de" &lt;Reinhard.Arlt@t-o=
nline.de&gt; wrote:</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">&gt; here is patch, that keeps the pps thread awa=
y from the nmea2000</p>
<p style=3D"margin: 0px;">&gt; socket, it do not start the ntpd stuff.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">I finally got a look at your patch.  Looks to me =
like it goes too far,</p>
<p style=3D"margin: 0px;">so I would revert it.  This turns off not only PP=
S but basic ntpd</p>
<p style=3D"margin: 0px;">functionality.  There is no PPS on nmea2000, but =
there are time</p>
<p style=3D"margin: 0px;">stamps and ntpd can use those.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">RGDS</p>
<p style=3D"margin: 0px;">GARY</p>
<p style=3D"margin: 0px;">-------------------------------------------------=
--------------------------</p>
<p style=3D"margin: 0px;">Gary E. Miller Rellim 109 NW Wilmington Ave., Sui=
te E, Bend, OR 97701</p>
<p style=3D"margin: 0px;">gem@rellim.com  Tel:+1(541)382-8588</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">&nbsp;</p></body></html>
--=_256957c78f67b5bbd96a05ec914426a2--




From MAILER-DAEMON Wed May 30 03:25:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZdHQ-0000N4-H0
	for mharc-gpsd-dev@gnu.org; Wed, 30 May 2012 03:25:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52131)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZdHN-0000Mh-7V
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 03:25:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZdHL-0004Mb-CA
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 03:25:12 -0400
Received: from catbert.rellim.com ([204.17.205.1]:50022)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZdHK-0004MM-Qi
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 03:25:11 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4U7P7Zh020691
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 30 May 2012 00:25:07 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4U7P7Zh020691
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1338362707; bh=P0CCya7umbhWaz6KHBqghzIFYWTFZ+ttevpEYR74JM4=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=NU8Mob93/K1ucmUrz9O6x5k/LTrcokerA7zaPr/fcIrOE7CwFDpL3KxJvYEvvtK/c
	zN4ma1zOdGjGPDz+pA5bA==
Date: Wed, 30 May 2012 00:24:55 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Message-ID: <20120530002455.7baeac64.gem@rellim.com>
In-Reply-To: <1SZd6Q-0UUVEm0@fwd00.aul.t-online.de>
References: <20120529114938.2ad3336d.gem@rellim.com>
	<1SZd6Q-0UUVEm0@fwd00.aul.t-online.de>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_//AYj_qoJwbiRwg5auvXjzAZ";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
 driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 30 May 2012 07:25:14 -0000

--Sig_//AYj_qoJwbiRwg5auvXjzAZ
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Reinhard!

On Wed, 30 May 2012 09:13:54 +0200
"Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de> wrote:

> 	-- the usage of ntp with gpsd on the boat has no top priority
> for me, the support of more then one GPS device, the AIS transmitter,
> and other instruments come first.=20

Just because it does not interest does not give you permission to break
things for others.

> 	-- i see no way to test it, i have only one linux machine on
> the boat, perhaps you can tell me how to compare the ntp results of a
> gpsd using a conventional usb gps (u-blox 5) reciever, and a ntpd on
> the gpsd using the information from the nmea2000 bus.=20

Easy, just send time from both of them and look at "ntpq -p".

> 	-- as nmea2000 is a CAN bus (network), you need support in
> the CAN driver and perhaps even in the CAN interface hardware, to
> get a good timestamps. There are own time protocols for CAN, but not
> part ofnmea2000 as far as i know.=20

Not the point, the timestamps in the nmea2000 GPS messages are what
we are looking for.  If those are not supported then nmea2000 is
useless.

> 	-- i have spend some time trying to understand the
> interaction of the pps daemon and the other ntp stuff, but my
> understanding of the subsystem is not good enough to make a change
> here. My understanding is, the the ntp_link_activate() and
> ntpd_link_deactivate() only allocate/free the the shared memory
> segment for ntp, and then starts the pps subsystem, that is unusable
> for nmea2000 as it is today.=20

Yes, and no.  ntp_link_activate() also enables the basic timestamp
support which should be working for you fine.  You need to look deeper
to disable pps support.  But why do you care to disable PPS support, is
it breaking something for you?  Turning it off buys you nothing.
>=20
> 	Question: Does the ntp subsystem (without pps support) work,
> if there is only the shared memory segment present?

Yes.

> then it is a nice
> option, to move my patches into =EF=BB=BFntp_link_activate() and
> ntpd_link_deactivate() after allocating/freeing the ntp shared memory
> segment. If this works, it will be for shure a far better solution!=20

Possibly, send patches and I'll look at it. =20

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

--Sig_//AYj_qoJwbiRwg5auvXjzAZ
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk/Fy00ACgkQBmnRqz71OvOfQgCgvHHDphwqOmlwNfuIhxMAgZC4
GrMAn2+tMHwLUzFfBYEmBES1gOtGVI7S
=uK2K
-----END PGP SIGNATURE-----

--Sig_//AYj_qoJwbiRwg5auvXjzAZ--


From MAILER-DAEMON Wed May 30 15:34:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZoes-0004dD-7K
	for mharc-gpsd-dev@gnu.org; Wed, 30 May 2012 15:34:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34505)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZoeo-0004ct-Dt
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 15:34:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZoem-0006xV-5j
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 15:34:09 -0400
Received: from catbert.rellim.com ([204.17.205.1]:33272)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZoel-0006vj-Kz
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 15:34:08 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4UJXqHA017428
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 30 May 2012 12:33:53 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4UJXqHA017428
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1338406433; bh=323XcXgiwSEUdln+6aBY3elcyUVQ8uVufz+pjKGHVW8=;
	h=Date:From:To:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=JVzqMCawXHBq2u6bIN1eWK4br0/PRTaM4V1xiy62dtu/pnoJdTOdn72ozK9/UDTkA
	Qj6zDYORVTBZ4tN9mYhmA==
Date: Wed, 30 May 2012 12:33:44 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>, gpsd dev
	<gpsd-dev@nongnu.org>
Message-ID: <20120530123344.521b4da2.gem@rellim.com>
In-Reply-To: <1SZeOR-0fEVgu0@fwd12.aul.t-online.de>
References: <20120530002455.7baeac64.gem@rellim.com>
	<1SZeOR-0fEVgu0@fwd12.aul.t-online.de>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/Hx27H4nunjUwgxDQ.c7Rw9f";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Subject: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
 driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 30 May 2012 19:34:12 -0000

--Sig_/Hx27H4nunjUwgxDQ.c7Rw9f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Yo Reinhard!

Wow, virtually impossible to tell your comments from mine.  In the
future please us standard quoting conventions....

Also, please keep gpsd-dev in the Cc list as others are following along.

To avoid further confusion I have to resort to top posting.

I think I see your problem now, in that the ioctl(TIOCMWAIT) fails on
the CAN device.  So what you need to do is come up with a patch that
stops the PPS thread from startnig but allows the ntpd shared memory
to be allocated.  Should be easy to do.

On Wed, 30 May 2012 10:36:35 +0200
"Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de> wrote:

> Hallo,=20
>=20
> 	-----Original-Nachricht-----=20
>=20
> 	Von: "Gary E. Miller" <gem@rellim.com>=20
>=20
> 	An: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>=20
>=20
> 	Cc: gpsd-dev@nongnu.org, "Eric S. Raymond" <esr@thyrsus.com>=20
>=20
> 	Betreff: Re: [gpsd-dev] RFC: Patch tp prevent call to
> ntpd_link_* for driver_nmea2000=20
>=20
> 	Datum: Wed, 30 May 2012 09:24:55 +0200=20
>=20
> 	Yo Reinhard!=20
>=20
> 	On Wed, 30 May 2012 09:13:54 +0200=20
>=20
> 	"Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
> wrote:=20
>=20
> 	>  -- the usage of ntp with gpsd on the boat has no top
> 	> priority=20
>=20
> 	> for me, the support of more then one GPS device, the AIS
> transmitter,=20
>=20
> 	> and other instruments come first.=20
>=20
> 	Just because it does not interest does not give you
> permission to break=20
>=20
> 	things for others.=20
>=20
> 	Please tell me, what is broken by this patch, except that ntp
> support is not enabled for nmea2000.=20
>=20
> 	>  -- i see no way to test it, i have only one linux machine
> 	> on=20
>=20
> 	> the boat, perhaps you can tell me how to compare the ntp
> 	> results of
> a=20
>=20
> 	> gpsd using a conventional usb gps (u-blox 5) reciever, and
> 	> a ntpd
> on=20
>=20
> 	> the gpsd using the information from the nmea2000 bus.=20
>=20
> 	Easy, just send time from both of them and look at "ntpq -p".=20
>=20
> 	O.K.=20
>=20
> 	>  -- as nmea2000 is a CAN bus (network), you need support in=20
>=20
> 	> the CAN driver and perhaps even in the CAN interface
> 	> hardware, to=20
>=20
> 	> get a good timestamps. There are own time protocols for
> 	> CAN, but
> not=20
>=20
> 	> part ofnmea2000 as far as i know.=20
>=20
> 	Not the point, the timestamps in the nmea2000 GPS messages
> are what=20
>=20
> 	we are looking for.  If those are not supported then nmea2000
> is=20
>=20
> 	useless.=20
>=20
> 	I do not agree, ntp support is needed, but lets do it step by
> step...=20
>=20
> 	>  -- i have spend some time trying to understand the=20
>=20
> 	> interaction of the pps daemon and the other ntp stuff, but
> 	> my=20
>=20
> 	> understanding of the subsystem is not good enough to make a
> 	> change=20
>=20
> 	> here. My understanding is, the the ntp_link_activate() and=20
>=20
> 	> ntpd_link_deactivate() only allocate/free the the shared
> 	> memory=20
>=20
> 	> segment for ntp, and then starts the pps subsystem, that is
> unusable=20
>=20
> 	> for nmea2000 as it is today.=20
>=20
> 	Yes, and no.  ntp_link_activate() also enables the basic
> timestamp=20
>=20
> 	support which should be working for you fine.  You need to
> look deeper=20
>=20
> 	to disable pps support.  But why do you care to disable PPS
> support, is=20
>=20
> 	it breaking something for you?  Turning it off buys you
> nothing.=20
>=20
> 	Because the =20
>=20
> 	ioctl(session->gpsdata.gps_fd, TIOCMIWAIT, PPS_LINE_TIOC)=20
>=20
> 	fails on a CAN socket, and the gpsd_ppsmonitor thread dies,
> there is the bad assumption in this ioctl can be called for every
> interface, if the marco TIOCMIWAIT is defined!=20
>=20
> 	And why start the gpsd_ppsmonitor, if it ides a few seconds
> later...=20
>=20
> 	The error message my confuse other people...=20
>=20
> 	>=20
>=20
> 	>  Question: Does the ntp subsystem (without pps support)
> 	> work,=20
>=20
> 	> if there is only the shared memory segment present?=20
>=20
> 	Yes.=20
>=20
> 	> then it is a nice=20
>=20
> 	> option, to move my patches into =EF=BB=BFntp_link_activate() and=20
>=20
> 	> ntpd_link_deactivate() after allocating/freeing the ntp
> 	> shared
> memory=20
>=20
> 	> segment. If this works, it will be for shure a far better
> 	> solution!
>=20
>=20
> 	Possibly, send patches and I'll look at it.=20
>=20
> 	O.K. i will change this=20
>=20
> 	RGDS=20
>=20
> 	GARY=20
>=20
> 	------------------------------------------------------------------------=
---
>=20
>=20
> 	Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend,
> OR 97701
>=20
>=20
> 	gem@rellim.com  Tel:+1(541)382-8588=20
>=20
> 	Reinhard



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

--Sig_/Hx27H4nunjUwgxDQ.c7Rw9f
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk/GdiAACgkQBmnRqz71OvNrBACfRVQPwhgLBgz2LSSP8yB0czJP
l6oAmgJUg5pth1AcCVycY3WkaxxGOvwF
=wWvq
-----END PGP SIGNATURE-----

--Sig_/Hx27H4nunjUwgxDQ.c7Rw9f--


From MAILER-DAEMON Wed May 30 15:50:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SZout-0006MS-JM
	for mharc-gpsd-dev@gnu.org; Wed, 30 May 2012 15:50:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42926)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZour-0006MG-2E
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 15:50:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZouo-0002P0-UG
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 15:50:44 -0400
Received: from catbert.rellim.com ([204.17.205.1]:46042)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SZouo-0002Oc-62
	for gpsd-dev@nongnu.org; Wed, 30 May 2012 15:50:42 -0400
Received: from localhost (spidey.rellim.com [204.17.205.8])
	(authenticated bits=0)
	by catbert.rellim.com (8.14.5/8.14.5) with ESMTP id q4UJochw017970
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Wed, 30 May 2012 12:50:39 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q4UJochw017970
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1338407439; bh=vf5uXZGs7eDM7jyUg8DAq+3X4PmlDrPGn55rIGPMeSk=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=lRVQ4jFmJoVLGN8wtLWinZDlpj3rg1FJ8Lc0ndelFaX4e9c+iuWr2HHDbq2L4o0J0
	5Mw0/sDbIQfIi1czWar9A==
Date: Wed, 30 May 2012 12:50:35 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Message-ID: <20120530125035.000cb609.gem@rellim.com>
In-Reply-To: <20120530123344.521b4da2.gem@rellim.com>
References: <20120530002455.7baeac64.gem@rellim.com>
	<1SZeOR-0fEVgu0@fwd12.aul.t-online.de>
	<20120530123344.521b4da2.gem@rellim.com>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/QEv5rGEWH71nlXRtvu=yApN";
	protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 204.17.205.1
Cc: gpsd dev <gpsd-dev@nongnu.org>
Subject: Re: [gpsd-dev] RFC: Patch tp prevent call to ntpd_link_* for
 driver_nmea2000
X-BeenThere: gpsd-dev@nongnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <gpsd-dev.nongnu.org>
List-Unsubscribe: <https://lists.nongnu.org/mailman/options/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.nongnu.org/archive/html/gpsd-dev>
List-Post: <mailto:gpsd-dev@nongnu.org>
List-Help: <mailto:gpsd-dev-request@nongnu.org?subject=help>
List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/gpsd-dev>,
	<mailto:gpsd-dev-request@nongnu.org?subject=subscribe>
X-List-Received-Date: Wed, 30 May 2012 19:50:46 -0000

--Sig_/QEv5rGEWH71nlXRtvu=yApN
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Reinhard!

On Wed, 30 May 2012 12:33:44 -0700
"Gary E. Miller" <gem@rellim.com> wrote:

> I think I see your problem now, in that the ioctl(TIOCMWAIT) fails on
> the CAN device.  So what you need to do is come up with a patch that
> stops the PPS thread from startnig but allows the ntpd shared memory
> to be allocated.  Should be easy to do.

Looks like you got it right in patch: =09
	b15fce1a9505cc2ae0bd5c003e3ec7fd95659204

I there are other broken parts in that area, but not your problem.  Someone
has misunderstood the relationship between PPS_ENABLE, and having TIOCMWAIT.
It is supposed to be possible to do PPS w/o TIOCMWAIT if kernel PPS is
enabled, but that has been munged.  The BSD people will have to fix it,=20
if they care.

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

--Sig_/QEv5rGEWH71nlXRtvu=yApN
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk/Geg4ACgkQBmnRqz71OvMoSQCfYUTy5DeuDzKBdIDhSW6NjegN
YpAAoJd9mGyM4AYMeXJufpWNic77KC0W
=FwRo
-----END PGP SIGNATURE-----

--Sig_/QEv5rGEWH71nlXRtvu=yApN--


