From MAILER-DAEMON Tue Apr 03 10:34:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SF4oh-00027Y-EJ
	for mharc-gpsd-dev@gnu.org; Tue, 03 Apr 2012 10:34:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38275)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SF4oa-00027R-Ev
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 10:34:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SF4oU-0002AR-6q
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 10:34:32 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:53058 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SF4oU-0002AB-2b
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 10:34:26 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id B7E0E42E29; Tue,  3 Apr 2012 10:34:02 -0400 (EDT)
Date: Tue, 3 Apr 2012 10:34:02 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Message-ID: <20120403143402.GA7338@thyrsus.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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
Subject: [gpsd-dev] "Plain Jane" timing GPS is working!
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, 03 Apr 2012 14:34:38 -0000

A few minutes ago I received mail from the test engineers at NaviSys.
They have tested the "Plain Jane" concept (take a stock SiRf-III GPS
chip plus PL2303 USB adapter, connect the 1PPS pin on the former to
DCD input on the latter) with GPSD, and are actually seeing PPS pulse
messages in the logs.

The filter in GPSD doesn't like the pulse shape and is rejecting it, but
that can be fixed.  The essential point is that the hardware mod works
exactly as expected and is producing events visible on USB. 

I'm expecting my samples from UniTraq today or tomorrow and may soon have
more good news about our second Plain Jane variant.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue Apr 03 13:41:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SF7jR-0002RG-Rt
	for mharc-gpsd-dev@gnu.org; Tue, 03 Apr 2012 13:41:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39620)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SF7jP-0002Qn-Vz
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 13:41:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SF7jJ-0004o9-M8
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 13:41:23 -0400
Received: from liara.ita.chalmers.se ([129.16.226.167]:21960)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SF7jJ-0004nq-F9
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 13:41:17 -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;
	Tue, 3 Apr 2012 19:20:37 +0200
Date: Tue, 3 Apr 2012 19:20:32 +0200
From: =?ISO-8859-15?Q?H=E5kan_Johansson?= <f96hajo@chalmers.se>
X-X-Sender: htj@bridge1.fy.chalmers.se
To: "Eric S. Raymond" <esr@thyrsus.com>
In-Reply-To: <20120403143402.GA7338@thyrsus.com>
Message-ID: <alpine.DEB.2.00.1204031909530.13879@bridge1.fy.chalmers.se>
References: <20120403143402.GA7338@thyrsus.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="276930926-1169172653-1333473637=:13879"
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: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] "Plain Jane" timing GPS is working!
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, 03 Apr 2012 17:41:25 -0000

--276930926-1169172653-1333473637=:13879
Content-Type: text/plain; charset="ISO-8859-15"; format=flowed
Content-Transfer-Encoding: 8BIT


Is it the pulse shape (i.e. length) or the pulse repetition that gpsd 
rejects?  As I recall, a SiRf-III GPS delivers a PPS pulse that is only 1 
us long, so does not record a full state change, but this is handled.

Timing over USB is distored by the inherent USB polling interval of 1 ms, 
so could make the inter-pulse interval fail those tests.  (They actually 
allow +/-1 ms, so should make it?).  Logfile?

Due to the USB effectively downsampling the measurement to the USB 
'polling clock', such a setup might be prone to seeing jumps.  I.e. if the 
USB polling frequency is close to a multiple of the PPS signal, then it 
for long times drifts slowly (which will not be detected), and then jumps 
one polling cycle.  (Possibly even usable.  Unhandled it could make life 
miserable for chrony/ntp.)

Cheers,
Håkan


On Tue, 3 Apr 2012, Eric S. Raymond wrote:

> A few minutes ago I received mail from the test engineers at NaviSys.
> They have tested the "Plain Jane" concept (take a stock SiRf-III GPS
> chip plus PL2303 USB adapter, connect the 1PPS pin on the former to
> DCD input on the latter) with GPSD, and are actually seeing PPS pulse
> messages in the logs.
>
> The filter in GPSD doesn't like the pulse shape and is rejecting it, but
> that can be fixed.  The essential point is that the hardware mod works
> exactly as expected and is producing events visible on USB.
>
> I'm expecting my samples from UniTraq today or tomorrow and may soon have
> more good news about our second Plain Jane variant.
> --
> 		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
>
>
--276930926-1169172653-1333473637=:13879--


From MAILER-DAEMON Tue Apr 03 15:01:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SF8ya-0007WR-Sx
	for mharc-gpsd-dev@gnu.org; Tue, 03 Apr 2012 15:01:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49867)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SF8yT-0007VR-QH
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 15:01:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SF8yN-0000K8-Eq
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 15:01:01 -0400
Received: from catbert.rellim.com ([204.17.205.1]:53010)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SF8yM-0000IO-NV
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 15:00: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 q33InQ4I014365
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Tue, 3 Apr 2012 11:49:26 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q33InQ4I014365
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1333478967; bh=qTxU9U5psSNIQ9fknZi2lq2JFecnizYtd4yf4/YAk7w=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=gcq0hKnDRk6u6LcjFHf9o0wks0Ke2xjA2H6InkJo01uJtUs5MLkg9XCecNOMZfuku
	Ber/omqeTdjkWuUSkmR3Q==
Date: Tue, 3 Apr 2012 11:49:22 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: =?ISO-8859-1?B?SOVrYW4=?= Johansson <f96hajo@chalmers.se>
Message-ID: <20120403114922.28f4bc81.gem@rellim.com>
In-Reply-To: <alpine.DEB.2.00.1204031909530.13879@bridge1.fy.chalmers.se>
References: <20120403143402.GA7338@thyrsus.com>
	<alpine.DEB.2.00.1204031909530.13879@bridge1.fy.chalmers.se>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.8; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/6jfYlfstmZ6XbxzrSBwjAk1";
	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] "Plain Jane" timing GPS is working!
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, 03 Apr 2012 19:01:07 -0000

--Sig_/6jfYlfstmZ6XbxzrSBwjAk1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yo H=E5kan!

On Tue, 3 Apr 2012 19:20:32 +0200
H=E5kan Johansson <f96hajo@chalmers.se> wrote:

> Is it the pulse shape (i.e. length) or the pulse repetition that gpsd=20
> rejects?  As I recall, a SiRf-III GPS delivers a PPS pulse that is
> only 1 us long, so does not record a full state change, but this is
> handled.

gpsd uses the leading edge of the shorter part of the pulse.  The
trailing edge is rejected as it is meaningless.  Unless the pulse is so
short that the kernel just logs the pulse.  The log messages call that
an 'invisible' pulse.  In that case we only have one event per second.

The case at hand is a 90/10 pulse, and the trailing edge is, of course,
rejected.  That is exactly the proper thing to do and it is working
as designed.

I should change the log message because people freak when they see all
the 'reject' messages.  Any suggestions?

> Timing over USB is distored by the inherent USB polling interval of 1
> ms, so could make the inter-pulse interval fail those tests.  (They
> actually allow +/-1 ms, so should make it?).  Logfile?

Could be, we'll cross that bridge when we get to it.
=20
> Due to the USB effectively downsampling the measurement to the USB=20
> 'polling clock', such a setup might be prone to seeing jumps.  I.e.
> if the USB polling frequency is close to a multiple of the PPS
> signal, then it for long times drifts slowly (which will not be
> detected), and then jumps one polling cycle.  (Possibly even usable.
> Unhandled it could make life miserable for chrony/ntp.)

Past experience shows this is not a problem.  If it crops up we'll
see how we can deal with it.

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

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

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

iEYEARECAAYFAk97RjUACgkQBmnRqz71OvNf5gCgl1meMvI+N3MNf/mMefJfOjy7
ETEAoJIg0yT6HLqyK64Qag43Z0XoWaMS
=Uzgn
-----END PGP SIGNATURE-----

--Sig_/6jfYlfstmZ6XbxzrSBwjAk1--


From MAILER-DAEMON Tue Apr 03 15:45:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SF9ft-0002XQ-O0
	for mharc-gpsd-dev@gnu.org; Tue, 03 Apr 2012 15:45:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48479)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SF9fr-0002WB-Ne
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 15:45:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SF9fq-0003qw-5M
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 15:45:51 -0400
Received: from liara.ita.chalmers.se ([129.16.226.167]:44500)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <f96hajo@chalmers.se>) id 1SF9fp-0003qn-UL
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 15:45: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;
	Tue, 3 Apr 2012 21:45:47 +0200
Date: Tue, 3 Apr 2012 21:44:12 +0200
From: =?ISO-8859-15?Q?H=E5kan_Johansson?= <f96hajo@chalmers.se>
X-X-Sender: htj@bridge1.fy.chalmers.se
To: "Gary E. Miller" <gem@rellim.com>
In-Reply-To: <20120403114922.28f4bc81.gem@rellim.com>
Message-ID: <alpine.DEB.2.00.1204032141420.14963@bridge1.fy.chalmers.se>
References: <20120403143402.GA7338@thyrsus.com>
	<alpine.DEB.2.00.1204031909530.13879@bridge1.fy.chalmers.se>
	<20120403114922.28f4bc81.gem@rellim.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="276930926-929051945-1333482347=:14963"
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: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] "Plain Jane" timing GPS is working!
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, 03 Apr 2012 19:45:52 -0000

--276930926-929051945-1333482347=:14963
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
Content-Transfer-Encoding: 8BIT


> I should change the log message because people freak when they see all
> the 'reject' messages.  Any suggestions?

How about 'ignored'?  Should reduce the fear factor by at least 50 %.
Or even in case the reason is know: 'ignored trailing edge'.

Cheers,
Håkan
--276930926-929051945-1333482347=:14963--


From MAILER-DAEMON Tue Apr 03 17:28:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFBHB-0000Es-Gc
	for mharc-gpsd-dev@gnu.org; Tue, 03 Apr 2012 17:28:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45771)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SFBH9-0000ER-8U
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 17:28:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SFBH7-0007PH-F2
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 17:28:26 -0400
Received: from catbert.rellim.com ([204.17.205.1]:58873)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SFBH6-0007P6-UA
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 17:28: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 q33LSCwm022046
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Tue, 3 Apr 2012 14:28:13 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q33LSCwm022046
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1333488493; bh=RK+cFqDM1JmpJWh2fHo93VzxRs7uDh+DVpEM4boiMLE=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=V1RWltAxziPQ8pZSVKzwKfm8ZCnDhmMq7tjwTIz9cWiQwuCcf+3fKE9UQGvfGvwhA
	/dOg9Zs3RWjV9edDzQpUw==
Date: Tue, 3 Apr 2012 14:28:09 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: =?ISO-8859-1?B?SOVrYW4=?= Johansson <f96hajo@chalmers.se>
Message-ID: <20120403142809.62df4c4c.gem@rellim.com>
In-Reply-To: <alpine.DEB.2.00.1204032141420.14963@bridge1.fy.chalmers.se>
References: <20120403143402.GA7338@thyrsus.com>
	<alpine.DEB.2.00.1204031909530.13879@bridge1.fy.chalmers.se>
	<20120403114922.28f4bc81.gem@rellim.com>
	<alpine.DEB.2.00.1204032141420.14963@bridge1.fy.chalmers.se>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.8; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/29.loN=P6x4gw2kCeMBU3tz";
	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] "Plain Jane" timing GPS is working!
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, 03 Apr 2012 21:28:28 -0000

--Sig_/29.loN=P6x4gw2kCeMBU3tz
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yo H=E5kan!

On Tue, 3 Apr 2012 21:44:12 +0200
H=E5kan Johansson <f96hajo@chalmers.se> wrote:

> > I should change the log message because people freak when they see
> > all the 'reject' messages.  Any suggestions?
>=20
> How about 'ignored'?  Should reduce the fear factor by at least 50 %.
> Or even in case the reason is know: 'ignored trailing edge'.

I see git head is already patched:
	"PPS trailing edge will be ignored\n"

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

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

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

iEYEARECAAYFAk97a2wACgkQBmnRqz71OvMjhACfVC23Ctyhv6Wt2IkyWavza96g
h3cAnik0b0Wywz7q0K2hRO1sb35llEBT
=oUqe
-----END PGP SIGNATURE-----

--Sig_/29.loN=P6x4gw2kCeMBU3tz--


From MAILER-DAEMON Wed Apr 04 09:39:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFQQg-00044Y-8y
	for mharc-gpsd-dev@gnu.org; Wed, 04 Apr 2012 09:39:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33506)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFQQR-00040O-0C
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 09:39:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFQQ9-0008Gh-UN
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 09:39:02 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:33216 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFQQ9-0008Dz-Pr
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 09:38:45 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 6646842E29; Wed,  4 Apr 2012 09:38:15 -0400 (EDT)
Date: Wed, 4 Apr 2012 09:38:15 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?H=E5kan?= Johansson <f96hajo@chalmers.se>
Message-ID: <20120404133815.GB15404@thyrsus.com>
References: <20120403143402.GA7338@thyrsus.com>
	<alpine.DEB.2.00.1204031909530.13879@bridge1.fy.chalmers.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1204031909530.13879@bridge1.fy.chalmers.se>
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: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] "Plain Jane" timing GPS is working!
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, 04 Apr 2012 13:39:17 -0000

H=E5kan Johansson <f96hajo@chalmers.se>:
> Is it the pulse shape (i.e. length) or the pulse repetition that
> gpsd rejects?

I don't know.  The pulse filter code is Gary Miller's and has a lot
of black art in it; I don't understand it at all.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed Apr 04 10:42:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFRPh-0004ks-QY
	for mharc-gpsd-dev@gnu.org; Wed, 04 Apr 2012 10:42:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38643)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kevron_m_rees@linux.intel.com>) id 1SFRPW-0004i7-NN
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 10:42:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <kevron_m_rees@linux.intel.com>) id 1SFRPP-0007kr-Fq
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 10:42:10 -0400
Received: from mga03.intel.com ([143.182.124.21]:5450)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <kevron_m_rees@linux.intel.com>) id 1SFRPP-0007k0-8x
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 10:42:03 -0400
Received: from azsmga001.ch.intel.com ([10.2.17.19])
	by azsmga101.ch.intel.com with ESMTP; 04 Apr 2012 07:41:48 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="127013066"
Received: from linux.jf.intel.com (HELO linux.intel.com) ([10.23.219.25])
	by azsmga001.ch.intel.com with ESMTP; 04 Apr 2012 07:41:48 -0700
Received: from [10.7.197.57] (tripzero-desktop.jf.intel.com [10.7.197.57])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by linux.intel.com (Postfix) with ESMTP id 4A18D6A4007
	for <gpsd-dev@nongnu.org>; Wed,  4 Apr 2012 07:41:47 -0700 (PDT)
Message-ID: <4F7C5DCB.10006@linux.intel.com>
Date: Wed, 04 Apr 2012 07:42:19 -0700
From: Kevron Rees <kevron_m_rees@linux.intel.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:11.0) Gecko/20120313 Thunderbird/11.0
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <4F74DC4F.5000007@linux.intel.com>
In-Reply-To: <4F74DC4F.5000007@linux.intel.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: 143.182.124.21
Subject: Re: [gpsd-dev] trouble with new gpsd API 5
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, 04 Apr 2012 14:42:20 -0000

Looks like the fix was to declare:

struct gps_data_t gps

instead of:

gps_data_t *gps

Strange how this variation caused it to start working.

On 03/29/2012 03:03 PM, Kevron Rees wrote:
> I seem to be having trouble with the new API on Ubuntu 12.04.  I try 
> to open up a connection to gpsd and I get a -1, unknown error.  Here 
> is the relevant code snippit:
>
> #if(GPSD_API_MAJOR_VERSION >= 5)
>     int ret = gps_open("localhost","2947", gps);
>
>     if(ret != 0)
>     {
>         qWarning("failed to open gps");
>         qDebug()<<"return value: "<<ret;
>         (void)fprintf(stderr,"no gpsd running or network error: %d, 
> %s\n",
>                               errno, gps_errstr(errno));
>         return;
>     }
> #else
>     gps = gps_open("localhost","2947");
>
> #endif
>
>     if(gps)
>     {
>         gps_stream(gps, WATCH_ENABLE | WATCH_JSON, NULL);
>
>         QTimer *timer = new QTimer(this);
>         timer->setInterval(1000);
>
>         connect(timer, SIGNAL(timeout()), this, 
> SLOT(updateGpsposition()));
>
>         timer->start();
>     }
>
> The old API still works.  I'm wondering if I'm doing something 
> obviously wrong with the new API.
>
> cheers,
>
>



From MAILER-DAEMON Wed Apr 04 11:17:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFRxs-0007WZ-Ek
	for mharc-gpsd-dev@gnu.org; Wed, 04 Apr 2012 11:17:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39638)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pmaupin@gmail.com>) id 1SF5SG-0004Qj-Kw
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 11:15:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <pmaupin@gmail.com>) id 1SF5SA-0005OL-Bp
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 11:15:32 -0400
Received: from mail-lpp01m010-f45.google.com ([209.85.215.45]:60367)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <pmaupin@gmail.com>) id 1SF5SA-0005Ny-22
	for gpsd-dev@nongnu.org; Tue, 03 Apr 2012 11:15:26 -0400
Received: by lahe6 with SMTP id e6so4984996lah.4
	for <gpsd-dev@nongnu.org>; Tue, 03 Apr 2012 08:15:22 -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=c6V+dZPIYfJFG2GV7vh02Wa4xOvufzPkBpOXxK02OIY=;
	b=FlNwr+jbngYCzSuttAh4JslscAagiC2QwVQyy1Zfh6p8/ULbjp+gygfO1z1MCZP92s
	Ul+BBECk/kutr/g1mFkhTwM6HtN1I9PnEHJfA1uigGd7fl8LRsajeGGm5txnfa/sQNeu
	2Qx3ZdSIkZun4iat63WimPR/ozqmEGHoR6ZKa0Ey/eu+Yl4lsAXH5GqdjfSyHVUgwxtZ
	WuDUPwOlCpSXlP7ZDEMbF/JdyyDQeNvP4nLt9rS127Qs1gLH6Dn6HwWJX6SCNjpHMA5n
	SLdb5lywEZbnB6I0ZGSoA+KnnYxVauaKw3cSBFocQVoSKpaitlrbshgWbHa1hblxWy9w
	Pq9Q==
MIME-Version: 1.0
Received: by 10.152.111.161 with SMTP id ij1mr14475340lab.19.1333466122082;
	Tue, 03 Apr 2012 08:15:22 -0700 (PDT)
Received: by 10.112.83.37 with HTTP; Tue, 3 Apr 2012 08:15:21 -0700 (PDT)
In-Reply-To: <20120403143402.GA7338@thyrsus.com>
References: <20120403143402.GA7338@thyrsus.com>
Date: Tue, 3 Apr 2012 10:15:21 -0500
Message-ID: <CAPz3yKdBjTUCiiddbj2=pGQMUsyC+nxwSSkH3XPocGCuOjSOpg@mail.gmail.com>
From: Patrick Maupin <pmaupin@gmail.com>
To: esr@thyrsus.com
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.215.45
X-Mailman-Approved-At: Wed, 04 Apr 2012 11:17:38 -0400
Cc: thumbgps-devel@lists.bufferbloat.net, gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [Thumbgps-devel] "Plain Jane" timing GPS is working!
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, 03 Apr 2012 15:15:38 -0000

On Tue, Apr 3, 2012 at 9:34 AM, Eric S. Raymond <esr@thyrsus.com> wrote:
> A few minutes ago I received mail from the test engineers at NaviSys.
> They have tested the "Plain Jane" concept (take a stock SiRf-III GPS
> chip plus PL2303 USB adapter, connect the 1PPS pin on the former to
> DCD input on the latter) with GPSD, and are actually seeing PPS pulse
> messages in the logs.

That's great news.  My OCXO order seems to have stalled; I need to
ping the seller about those.  It sounds like people are fairly
confident that the PPS signals are working correctly (not wobbling)
anyway, but I have some other reasons I want to get a precise local
timebase going.

In other news, TI apparently has some new GPS chips.  Haven't
investigated, but would assume the cost of GPS is coming down even
farther soon:

http://newscenter.ti.com/index.php?s=32851&item=127833


From MAILER-DAEMON Wed Apr 04 11:36:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFSG7-0000Z6-AJ
	for mharc-gpsd-dev@gnu.org; Wed, 04 Apr 2012 11:36:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36606)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFSFz-0000YT-Cg
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 11:36:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFSFs-0006P9-LM
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 11:36:22 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:34384 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFSFs-0006P1-HP
	for gpsd-dev@nongnu.org; Wed, 04 Apr 2012 11:36:16 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 4A21442E29; Wed,  4 Apr 2012 11:35:53 -0400 (EDT)
Date: Wed, 4 Apr 2012 11:35:53 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120404153553.GD17461@thyrsus.com>
References: <4F758E2D.6040405@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F758E2D.6040405@inov.pt>
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] NMEA driver's ZDA parsing
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, 04 Apr 2012 15:36:29 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> When my receiver has no position fix I see the following log messages i=
n gpsd:
>=20
> gpsd:WARN: unknown sentence: "$GPZDA,,,,,,*48\x0d\x0a"
> gpsd:WARN: malformed ZDA
>=20
> I think this is misleading to the user, because there is nothing
> wrong with that message.
> It's correctly formatted according with the NMEA 0183 standard (just
> don't report any valid date), so I think that log report should be
> removed.

Changed to "ZDA fields are empty".
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu Apr 05 10:43:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFnuX-0007BF-R5
	for mharc-gpsd-dev@gnu.org; Thu, 05 Apr 2012 10:43:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54635)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFnuR-0007Ak-QJ
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 10:43:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFnuL-0007A6-If
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 10:43:35 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:41086 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFnuL-00079Z-Fc
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 10:43:29 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 2AFC842E29; Thu,  5 Apr 2012 10:43:01 -0400 (EDT)
Date: Thu, 5 Apr 2012 10:43:00 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120405144300.GA26730@thyrsus.com>
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F6B2E91.3060507@inov.pt>
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] [PATCH] Fix on NMEA driver 2D mode
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, 05 Apr 2012 14:43:41 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> Hi Eric,
>=20
> On 21-03-2012 22:12, Eric S. Raymond wrote:
> >Jos=E9 Miguel Gon=E7alves<jose.goncalves@inov.pt>:
> >>While working with a Septentrio PolarRx2 receiver, I've noticed that
> >>I never got 2D fixes with xgps, while the Septentrio proprietary
> >>software told me that it had a fix. I've tracked down the bug to the
> >>GGA processing in the NMEA driver.
> >If you re-patch yours so the test (session->newdata.mode !=3D MODE_2D)
> >is replaced by (session->newdata.mode>  MODE_2D), do you still get fix=
es?
>=20
> No!
>=20
> >I'd like to have a test logfile for this receiver.  Can you supply one=
?
>=20
> Sure. I attach two NMEA log files for this device with a 2D fix. One
> outputting GGA+GSA+GSV+VTG+ZDA+GST (nmea_2d.log) and the other
> outputting all the NMEA messages that the receiver supports
> (nmea_2d_full.log).

>From the full log, I get these fixes with the current GPSD head

"class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22T11=
:22:58.000Z","ept":0.005,"lat":38.737331333,"lon":-9.140637500,"track":0.=
0000,"speed":0.000}
{"class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22T1=
1:22:59.000Z","ept":0.005,"lat":38.737327500,"lon":-9.140636667,"track":0=
.0000,"speed":0.000}
{"class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22T1=
1:23:00.000Z","ept":0.005,"lat":38.737322500,"lon":-9.140635833,"track":3=
39.2000,"speed":0.051}
{"class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22T1=
1:23:01.000Z","ept":0.005,"lat":38.737317833,"lon":-9.140634000,"track":0=
.0000,"speed":0.000}

Is this the expected behavior? Does it fix your problem?
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu Apr 05 11:02:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFoDA-0005Y7-No
	for mharc-gpsd-dev@gnu.org; Thu, 05 Apr 2012 11:02:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56814)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SFoD3-0005Wx-Qi
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 11:02:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SFoCw-0003Rk-UL
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 11:02:49 -0400
Received: from lmv.inov.pt ([146.193.64.2]:58286)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SFoCw-0003QG-JK
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 11:02:42 -0400
Received: from [10.154.0.246] (gtout.inov.pt [146.193.64.254])
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q35F1udU022118;
	Thu, 5 Apr 2012 16:01:56 +0100
Message-ID: <4F7DB3EE.7040300@inov.pt>
Date: Thu, 05 Apr 2012 16:02:06 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt> <20120405144300.GA26730@thyrsus.com>
In-Reply-To: <20120405144300.GA26730@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Thu, 05 Apr 2012 16:01:56 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id
	q35F1udU022118
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix on NMEA driver 2D mode
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, 05 Apr 2012 15:02:55 -0000

On 05-04-2012 15:43, Eric S. Raymond wrote:
> Jos=E9 Miguel Gon=E7alves<jose.goncalves@inov.pt>:
>> Hi Eric,
>>
>> On 21-03-2012 22:12, Eric S. Raymond wrote:
>>> Jos=E9 Miguel Gon=E7alves<jose.goncalves@inov.pt>:
>>>> While working with a Septentrio PolarRx2 receiver, I've noticed that
>>>> I never got 2D fixes with xgps, while the Septentrio proprietary
>>>> software told me that it had a fix. I've tracked down the bug to the
>>>> GGA processing in the NMEA driver.
>>> If you re-patch yours so the test (session->newdata.mode !=3D MODE_2D=
)
>>> is replaced by (session->newdata.mode>   MODE_2D), do you still get f=
ixes?
>> No!
>>
>>> I'd like to have a test logfile for this receiver.  Can you supply on=
e?
>> Sure. I attach two NMEA log files for this device with a 2D fix. One
>> outputting GGA+GSA+GSV+VTG+ZDA+GST (nmea_2d.log) and the other
>> outputting all the NMEA messages that the receiver supports
>> (nmea_2d_full.log).
> > From the full log, I get these fixes with the current GPSD head
>
> "class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22T=
11:22:58.000Z","ept":0.005,"lat":38.737331333,"lon":-9.140637500,"track":=
0.0000,"speed":0.000}
> {"class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22=
T11:22:59.000Z","ept":0.005,"lat":38.737327500,"lon":-9.140636667,"track"=
:0.0000,"speed":0.000}
> {"class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22=
T11:23:00.000Z","ept":0.005,"lat":38.737322500,"lon":-9.140635833,"track"=
:339.2000,"speed":0.051}
> {"class":"TPV","tag":"RMC","device":"stdin","mode":2,"time":"2012-03-22=
T11:23:01.000Z","ept":0.005,"lat":38.737317833,"lon":-9.140634000,"track"=
:0.0000,"speed":0.000}
>
> Is this the expected behavior? Does it fix your problem?

The problem happens when only partial NMEA messages (but enough to supply=
 a PVT)=20
are sent by the receiver, and it's only solved when you use the test=20
(session->newdata.mode !=3D MODE_2D).

Meanwhile, another problem that I've detected is that, when the receiver =
supplies=20
a GBS message, gpsd never uses it because of the time stamp test. In that=
 case I=20
always see the log message "second in $GPGBS error estimates doesn't matc=
h". I had=20
to remove the timestamp test in processGPGBS(), to be able to use the GBS=
 info. I=20
prefer to have accurate error information supplied by the receiver, even =
if with a=20
1 second delay, that one that is extrapolated by gpsd using DOP values.

Regards,
Jos=E9 Gon=E7alves


From MAILER-DAEMON Thu Apr 05 13:34:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFqZc-0002K5-CN
	for mharc-gpsd-dev@gnu.org; Thu, 05 Apr 2012 13:34:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58621)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFqZV-0002JS-55
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 13:34:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFqZN-0000cj-JU
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 13:34:08 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:41374 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFqZN-0000cd-FL
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 13:34:01 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 460E142E29; Thu,  5 Apr 2012 13:33:59 -0400 (EDT)
Date: Thu, 5 Apr 2012 13:33:59 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120405173359.GA3341@thyrsus.com>
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt> <20120405144300.GA26730@thyrsus.com>
	<4F7DB3EE.7040300@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F7DB3EE.7040300@inov.pt>
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] [PATCH] Fix on NMEA driver 2D mode
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, 05 Apr 2012 17:34:15 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> The problem happens when only partial NMEA messages (but enough to
> supply a PVT) are sent by the receiver, and it's only solved when
> you use the test (session->newdata.mode !=3D MODE_2D).

Under what circumstances can this happen? It doesn't seem to occur
with the full log.  Does it happen only when the sentence inventory
emitted is reduced?

I'm reluctant to change that test because doing that would break
functionality on other devices.  If that means we have to attach a
note saying you can't disable sentences and still expect the PolaR2x
to work with GPSD, then that's how it has to be.

> Meanwhile, another problem that I've detected is that, when the
> receiver supplies a GBS message, gpsd never uses it because of the
> time stamp test. In that case I always see the log message "second
> in $GPGBS error estimates doesn't match". I had to remove the
> timestamp test in processGPGBS(), to be able to use the GBS info. I
> prefer to have accurate error information supplied by the receiver,
> even if with a 1 second delay, that one that is extrapolated by gpsd
> using DOP values.

I agree, the reported error estimates are preferable.  This sounds like
the device may be hitting some kind of strange edge case in the NMEA
driver's cycle-detection logic.  Again, the fix here may well be not to
try to reduce the set of sentences omitted.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu Apr 05 14:01:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFr0B-0008Qt-EH
	for mharc-gpsd-dev@gnu.org; Thu, 05 Apr 2012 14:01:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47074)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SFr04-0008QA-1o
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 14:01:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SFqzy-00082C-0e
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 14:01:34 -0400
Received: from lmv.inov.pt ([146.193.64.2]:42494)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SFqzx-000826-MD
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 14:01:29 -0400
Received: from [10.154.0.246] (gtout.inov.pt [146.193.64.254])
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q35I1FiA008444;
	Thu, 5 Apr 2012 19:01:16 +0100
Message-ID: <4F7DDDF5.5090802@inov.pt>
Date: Thu, 05 Apr 2012 19:01:25 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt> <20120405144300.GA26730@thyrsus.com>
	<4F7DB3EE.7040300@inov.pt> <20120405173359.GA3341@thyrsus.com>
In-Reply-To: <20120405173359.GA3341@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Thu, 05 Apr 2012 19:01:16 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id
	q35I1FiA008444
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix on NMEA driver 2D mode
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, 05 Apr 2012 18:01:42 -0000

On 05-04-2012 18:33, Eric S. Raymond wrote:
> Jos=E9 Miguel Gon=E7alves<jose.goncalves@inov.pt>:
>> The problem happens when only partial NMEA messages (but enough to
>> supply a PVT) are sent by the receiver, and it's only solved when
>> you use the test (session->newdata.mode !=3D MODE_2D).
> Under what circumstances can this happen? It doesn't seem to occur
> with the full log.  Does it happen only when the sentence inventory
> emitted is reduced?

I've seen it only with the partial set of messages whose log I've sent pr=
eviously.
I'm not sure if it happens also with the full set (I will test it when I =
have=20
access to the receiver again).

> I'm reluctant to change that test because doing that would break
> functionality on other devices.  If that means we have to attach a
> note saying you can't disable sentences and still expect the PolaR2x
> to work with GPSD, then that's how it has to be.

I don't see how can this break other devices. If you receive a GGA messag=
e with=20
the GPS quality indicator field bigger than 0, it's because you have a va=
lid fix.=20
So, I think it's pretty safe to assume that, if the receiver sends a void=
 altitude=20
field when we have a valid fix, we have a 2D fix.

>> Meanwhile, another problem that I've detected is that, when the
>> receiver supplies a GBS message, gpsd never uses it because of the
>> time stamp test. In that case I always see the log message "second
>> in $GPGBS error estimates doesn't match". I had to remove the
>> timestamp test in processGPGBS(), to be able to use the GBS info. I
>> prefer to have accurate error information supplied by the receiver,
>> even if with a 1 second delay, that one that is extrapolated by gpsd
>> using DOP values.
> I agree, the reported error estimates are preferable.  This sounds like
> the device may be hitting some kind of strange edge case in the NMEA
> driver's cycle-detection logic.  Again, the fix here may well be not to
> try to reduce the set of sentences omitted.

I don't agree. In my opinion (that only recently look at the gpsd's sourc=
es) the=20
problem is on the gpsd's sync philosophy with the NMEA messages and some =
quirks=20
that are needed to assume values for some fields that are not explicitly =
set by=20
some messages.
I think a better approach (that I've used in the past for software that I=
=20
implemented for my company) is to extract only the values explicitly set =
by the=20
NMEA messages and detect the time interval between NMEA batch of messages=
, using=20
that interval to assemble and compute (if possible) values that were not=20
explicitly set in the messages that the receiver provided. This approach =
can have=20
problems with slower baudrate devices that dump a lot of messages, causin=
g the=20
time interval not detectable, but I think nowadays this is really not a p=
roblem,=20
with all devices capable of 9600bps or higher and using USB instead of RS=
-232=20
interfaces.

Regards,
Jos=E9 Gon=E7alves


From MAILER-DAEMON Thu Apr 05 14:28:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFrQQ-0007U1-NN
	for mharc-gpsd-dev@gnu.org; Thu, 05 Apr 2012 14:28:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55860)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFrQN-0007TU-UF
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 14:28:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFrQL-00064f-Az
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 14:28:47 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42021 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFrQL-00064S-6R
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 14:28:45 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 458DD42E29; Thu,  5 Apr 2012 14:28:41 -0400 (EDT)
Date: Thu, 5 Apr 2012 14:28:41 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120405182841.GA3690@thyrsus.com>
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt> <20120405144300.GA26730@thyrsus.com>
	<4F7DB3EE.7040300@inov.pt> <20120405173359.GA3341@thyrsus.com>
	<4F7DDDF5.5090802@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F7DDDF5.5090802@inov.pt>
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] [PATCH] Fix on NMEA driver 2D mode
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, 05 Apr 2012 18:28:49 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> >Under what circumstances can this happen? It doesn't seem to occur
> >with the full log.  Does it happen only when the sentence inventory
> >emitted is reduced?
>=20
> I've seen it only with the partial set of messages whose log I've
> sent previously.  I'm not sure if it happens also with the full set
> (I will test it when I have access to the receiver again).

Please do.

> >I'm reluctant to change that test because doing that would break
> >functionality on other devices.  If that means we have to attach a
> >note saying you can't disable sentences and still expect the PolaR2x
> >to work with GPSD, then that's how it has to be.
>=20
> I don't see how can this break other devices. If you receive a GGA
> message with the GPS quality indicator field bigger than 0, it's
> because you have a valid fix. So, I think it's pretty safe to assume
> that, if the receiver sends a void altitude field when we have a
> valid fix, we have a 2D fix.

But what if a device claims to have fix status but sets mode 1 in a
GSA?  Your change would pass back spurious data.  Don't laugh - I've
seen weirder misbehaviors from real devices.  The NMEA driver is
conservative in its assumptions precisely because we've seen GPSes
fling so much crap up the wire.

> I think a better approach (that I've used in the past for software
> that I implemented for my company) is to extract only the values
> explicitly set by the NMEA messages and detect the time interval
> between NMEA batch of messages, using that interval to assemble and
> compute (if possible) values that were not explicitly set in the
> messages that the receiver provided.

That...sounds like the way the NMEA driver actually works. :-)

You might want to take a closer look at the cycle-detection logic.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu Apr 05 16:06:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFswi-0007eU-Si
	for mharc-gpsd-dev@gnu.org; Thu, 05 Apr 2012 16:06:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40412)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFswf-0007dt-Ln
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 16:06:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFswd-00040U-Sy
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 16:06:13 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42960 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1SFswd-00040I-PD; Thu, 05 Apr 2012 16:06:11 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id C42E942E29; Thu,  5 Apr 2012 16:06:08 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org
Message-Id: <20120405200608.C42E942E29@snark.thyrsus.com>
Date: Thu,  5 Apr 2012 16:06: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] Upcoming gpsd 3.5 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: Thu, 05 Apr 2012 20:06:16 -0000

Bernd Zeimetz has requested that we have a nice stable release shipped
in time for the next Debian freeze in June. While that's a couple of
months out yet, I think it's a good enough reason to ship 3.5 in the
near future in hopes that we can maybe get out one more release
in late May.

The code has been pretty quiescent since 3.4, except for a small cluster of
issues around 1PPS that we think are resolved now.  Chris and Gary
tell me all regression tests and the live tests pass, so I'm putting
us in state yellow (feature freeze, bug fixes only) with a view to 
shipping 3.5 around 12 April.

There are a few known problems which I hope to resolve in the next week:

1. We have two bug reports from a devlist subscriber about the NMEA
   driver's handling of the Septentrio PolaR2x.

2. There are two reports of problems with gpsctl not working. There's
   also Savannah tracker bug #35765: gpsctl should use pselect() where
   available.  I'm going to have to give gpsctl some quality time.
   That code is a chronic trouble spot, alas.

3. Our web content needs to move to a stable location (at Savannah)
   and have the right redirect from Berlios put in place. This means
   I need to write a script that can beat Savannah's bizarre CVS-based
   procedure for updating web content into the right thing.

Please let me know of any other issues that need to be resolved before
the next release as soon as possible.
--
					>>esr>>


From MAILER-DAEMON Thu Apr 05 17:14:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SFu0T-0004AC-SU
	for mharc-gpsd-dev@gnu.org; Thu, 05 Apr 2012 17:14:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41655)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFu0R-00049m-LH
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 17:14:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFu0O-0003bb-Ft
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 17:14:10 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:43675 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SFu0O-0003bL-Bc
	for gpsd-dev@nongnu.org; Thu, 05 Apr 2012 17:14:08 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id D037442E29; Thu,  5 Apr 2012 17:14:05 -0400 (EDT)
Date: Thu, 5 Apr 2012 17:14:05 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Andrew Evdokimov <a.evdokimov@inbox.ru>
Message-ID: <20120405211405.GA6399@thyrsus.com>
References: <E1S5xjM-0007HY-B3.a-evdokimov-inbox-ru@f24.mail.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1S5xjM-0007HY-B3.a-evdokimov-inbox-ru@f24.mail.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] Implementing pselect() in gpsctl (bug #35765) - what
 is wrong with my understanding of code?
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, 05 Apr 2012 21:14:13 -0000

Andrew Evdokimov <a.evdokimov@inbox.ru>:
> Hi all,
> 
> I'm currently working on implementing pselect() for gpsctl (see bug #35765) but have faced some difficulties understanding how this program currently works. gpsctl has the get_packet() function that is supposed to return a packet mask when gpsd_poll() will return one with ONLINE_SET set. Current code is as follows (only significant lines are left):
> 
> {
>     static fd_set rfds;
>     gps_mask_t fieldmask;
>     struct timeval tv;
> 
>     FD_ZERO(&rfds);
>     for (;;) {
> 	FD_CLR(session->gpsdata.gps_fd, &rfds);
> ...
> 	tv.tv_sec = 2;
> 	tv.tv_usec = 0;
> 	errno = 0;
> 	if (select(session->gpsdata.gps_fd + 1, &rfds, NULL, NULL, &tv) == -1) {
> 	    if (errno == EINTR || !FD_ISSET(session->gpsdata.gps_fd, &rfds))
> 		continue;
> 	    gpsd_report(LOG_ERROR, "select %s\n", strerror(errno));
> 	    exit(2);
> 	}
> 
> 	fieldmask = gpsd_poll(session);
> ...
> 	if ((fieldmask &~ ONLINE_SET)!=0)
> 	    return fieldmask;
>     }
> }
> 
> So before entering a for-loop we're zeroing fd_set rfds (OK with
> this), then in a loop we're removing 'session->gpsdata.gps_fd' file
> descriptor from already-empty fd_set and then calling select() with
> 2-seconds timeout that will wait until some of our file descriptors
> will become ready for IO. As soon as rfds does not contain any file
> descriptors the select() call will timeout in 2 seconds passing
> control to gpsd_poll() etc. In other words, select() here is just a
> 2-second sleep. gpsd_poll() does not use our rfds thus at the end of
> a loop we have an empty fd_set which will be cleared of
> session->gpsdata.gps_fd at next iteration etc...
>
> Where am I wrong? I'm new to this project and may not fully
>  understand some internal logic, so please help. Thanks in advance!

Sorry about the belated response.  I think I see what confused you.
The FD_ISSET macro doesn't mutate rfds, just tests to see if 
session->gpsdata.gps_fd is in it.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Fri Apr 06 15:08:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGEWL-00010G-E6
	for mharc-gpsd-dev@gnu.org; Fri, 06 Apr 2012 15:08:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38513)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SGEWI-0000yj-1z
	for gpsd-dev@nongnu.org; Fri, 06 Apr 2012 15:08:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SGEWG-00081s-Er
	for gpsd-dev@nongnu.org; Fri, 06 Apr 2012 15:08:25 -0400
Received: from smtp.gentoo.org ([140.211.166.183]:50967)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <vapier@gentoo.org>) id 1SGEWG-00081T-8r
	for gpsd-dev@nongnu.org; Fri, 06 Apr 2012 15:08:24 -0400
Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id 35EA31B4014
	for <gpsd-dev@nongnu.org>; Fri,  6 Apr 2012 19:08:21 +0000 (UTC)
From: Mike Frysinger <vapier@gentoo.org>
To: gpsd-dev@nongnu.org
Date: Fri,  6 Apr 2012 15:08:25 -0400
Message-Id: <1333739305-19868-1-git-send-email-vapier@gentoo.org>
X-Mailer: git-send-email 1.7.8.5
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 missing strptime prototype
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, 06 Apr 2012 19:08:27 -0000

The strptime prototype is not provided unless explicitly requested.
So add the define that POSIX says to to avoid:

gpsutils.c: In function 'iso8601_to_unix':
gpsutils.c:340:14: warning: implicit declaration of function 'strptime' [-Wimplicit-function-declaration]
gpsutils.c:340:17: warning: assignment makes pointer from integer without a cast [enabled by default]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 gpsutils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gpsutils.c b/gpsutils.c
index a1530ec..cc47d52 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -3,6 +3,8 @@
  * This file is Copyright (c) 2010 by the GPSD project
  * BSD terms apply: see the file COPYING in the distribution root for details.
  */
+#define _XOPEN_SOURCE
+
 #include <stdio.h>
 #include <time.h>
 #include <sys/time.h>
-- 
1.7.8.5



From MAILER-DAEMON Fri Apr 06 15:16:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SGEdt-0001vy-Qt
	for mharc-gpsd-dev@gnu.org; Fri, 06 Apr 2012 15:16:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48749)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SGEdr-0001vh-IE
	for gpsd-dev@nongnu.org; Fri, 06 Apr 2012 15:16:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SGEdp-0001cc-Os
	for gpsd-dev@nongnu.org; Fri, 06 Apr 2012 15:16:15 -0400
Received: from catbert.rellim.com ([204.17.205.1]:48351)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SGEdp-0001c9-8J
	for gpsd-dev@nongnu.org; Fri, 06 Apr 2012 15:16:13 -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 q36JFqKd031270
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Fri, 6 Apr 2012 12:15:53 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q36JFqKd031270
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1333739753; bh=IKJ+8eEUw90h8SxIKqepN/V02Nba6HHu0Yz/NqtrOC0=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=lqudznDWILsQd9sYsil1mwVWlhK0lQSMO2TIxVRlZk2zY2UxpiAeu//mRyupFSb1g
	7t+/WeWdtReGhM25Pxn0Q==
Date: Fri, 6 Apr 2012 12:15:49 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: Mike Frysinger <vapier@gentoo.org>
Message-ID: <20120406121549.0ec8e733.gem@rellim.com>
In-Reply-To: <1333739305-19868-1-git-send-email-vapier@gentoo.org>
References: <1333739305-19868-1-git-send-email-vapier@gentoo.org>
Organization: Rellim
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.8; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
	boundary="Sig_/wsJllTMQ+MstOlHD2lAF5E_";
	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 missing strptime prototype
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, 06 Apr 2012 19:16:16 -0000

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

Yo Mike!

Thanks.  Applied to git head.

On Fri,  6 Apr 2012 15:08:25 -0400
Mike Frysinger <vapier@gentoo.org> wrote:

> The strptime prototype is not provided unless explicitly requested.
> So add the define that POSIX says to to avoid:
>=20
> gpsutils.c: In function 'iso8601_to_unix':
> gpsutils.c:340:14: warning: implicit declaration of function
> 'strptime' [-Wimplicit-function-declaration] gpsutils.c:340:17:
> warning: assignment makes pointer from integer without a cast
> [enabled by default]
>=20
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  gpsutils.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>=20
> diff --git a/gpsutils.c b/gpsutils.c
> index a1530ec..cc47d52 100644
> --- a/gpsutils.c
> +++ b/gpsutils.c
> @@ -3,6 +3,8 @@
>   * This file is Copyright (c) 2010 by the GPSD project
>   * BSD terms apply: see the file COPYING in the distribution root
> for details. */
> +#define _XOPEN_SOURCE
> +
>  #include <stdio.h>
>  #include <time.h>
>  #include <sys/time.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_/wsJllTMQ+MstOlHD2lAF5E_
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

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

iEYEARECAAYFAk9/QOgACgkQBmnRqz71OvM6FACeIp8tO/MpTeAkmFglAfsxZvYn
BzQAoJC8cWhYezdQkWEABYtYAJKuRVN6
=ZM8x
-----END PGP SIGNATURE-----

--Sig_/wsJllTMQ+MstOlHD2lAF5E_--


From MAILER-DAEMON Mon Apr 09 06:06:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHBUT-0007GQ-V6
	for mharc-gpsd-dev@gnu.org; Mon, 09 Apr 2012 06:06:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41409)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SHBUR-0007Em-Ap
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 06:06:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SHBUP-00062J-Kq
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 06:06:26 -0400
Received: from lmv.inov.pt ([146.193.64.2]:57500)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SHBUP-000624-9j
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 06:06:25 -0400
Received: from [192.168.1.75] (89-181-206-214.net.novis.pt [89.181.206.214])
	(authenticated bits=0)
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q39A5jl0001769
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <gpsd-dev@nongnu.org>; Mon, 9 Apr 2012 11:05:45 +0100
Message-ID: <4F82B479.9010704@inov.pt>
Date: Mon, 09 Apr 2012 11:05:45 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Mon, 09 Apr 2012 11:05:45 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id
	q39A5jl0001769
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Subject: [gpsd-dev] RTCM relaying problem
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, 09 Apr 2012 10:06:28 -0000

Working with a RTCM caster I've noticed that not all RTCM packets that=20
gpsd received were relayed to my GPS receiver, what caused DGPS=20
corrections to be intermittently applied or not applied at all. To fix=20
this I needed to apply the following patch to avoid RTCM packet=20
overlapping:


diff --git a/gpsd.c b/gpsd.c
index d8f229b..abdaca1 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1422,7 +1422,7 @@ static void consume_packets(struct gps_device_t=20
*device)
      }
  #endif /* NETFEED_ENABLE */

-    for (fragments =3D 0; ; fragments++) {
+    for (fragments =3D 0; (changed & (RTCM2_SET | RTCM3_SET)) =3D=3D 0;=20
fragments++) {
         changed =3D gpsd_poll(device);

         if (changed =3D=3D ERROR_SET) {


Regards,
Jos=E9 Gon=E7alves


From MAILER-DAEMON Mon Apr 09 08:30:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHDjn-0006UK-HY
	for mharc-gpsd-dev@gnu.org; Mon, 09 Apr 2012 08:30:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51113)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDjl-0006TS-1Y
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:30:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDji-00056L-Ts
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:30:24 -0400
Received: from smtp1.mail.fcom.ch ([212.60.46.170]:55821)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDji-00056B-NP
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:30:22 -0400
Received: from smtp1.mail.fcom.ch (localhost [127.0.0.1])
	by smtp1 (Postfix) with ESMTP id 562EE35AFD
	for <gpsd-dev@nongnu.org>; Mon,  9 Apr 2012 14:30:17 +0200 (CEST)
Received: from drbeat.li (28-32-60-212-pool.cable.fcom.ch [212.60.32.28])
	by smtp1 (Postfix) with ESMTPS id 1A3B035404
	for <gpsd-dev@nongnu.org>; Mon,  9 Apr 2012 14:30:17 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id 9DD8D1807E; Mon,  9 Apr 2012 14:30:16 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Mon,  9 Apr 2012 14:30:15 +0200
Message-Id: <1333974616-9213-1-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.9.5
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 1/2] gpsd.php: Fix OpenStreetMaps map display.
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, 09 Apr 2012 12:30:26 -0000

It looks like a lot more defaults can be used to show a meaningful map.
The Layer.OSM.Osmarender object was undefined.

See http://openlayers.org/dev/examples/osm.html for a basic OSM example.
---
 gpsd.php.in |   30 +++++++++---------------------
 1 file changed, 9 insertions(+), 21 deletions(-)

diff --git a/gpsd.php.in b/gpsd.php.in
index fe23c5d..ec8f52c 100644
--- a/gpsd.php.in
+++ b/gpsd.php.in
@@ -590,40 +590,28 @@ function gen_osm_head() {
 global $GPS;
 return <<<EOT
 <script src="http://openlayers.org/api/OpenLayers.js" type="text/javascript"></script>
-<script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js" type="text/javascript"></script>
 <script type="text/javascript">
     <!--
-    // Create a base icon for all of our markers that specifies the shadow, icon
-    // dimensions, etc.
 function Load() {
 	document.getElementById("map").firstChild.data = "";
-	map = new OpenLayers.Map("map", {
+	var map = new OpenLayers.Map("map", {
 		controls: [
 			new OpenLayers.Control.Navigation(),
 			new OpenLayers.Control.PanZoomBar(),
 			new OpenLayers.Control.ScaleLine(),
 			new OpenLayers.Control.LayerSwitcher()
-		],
-		maxResolution: 156543.0339,
-		numZoomLevels: 20,
-		units: 'm',
-		projection: new OpenLayers.Projection("EPSG:900913"),
-		displayProjection: new OpenLayers.Projection("EPSG:4326")
+		]
 	});
-	var layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
-	map.addLayer(layerMapnik);
+	var layer = new OpenLayers.Layer.OSM("Open Street Map");
+	map.addLayer(layer);
 
-	var layerTilesAtHome = new OpenLayers.Layer.OSM.Osmarender("Osmarender");
-	map.addLayer(layerTilesAtHome);
+	var center = new OpenLayers.LonLat({$GLOBALS['lon']}, {$GLOBALS['lat']})
+		.transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
+	map.setCenter(center, 12);
 
-	center = new OpenLayers.LonLat({$GLOBALS['lon']}, {$GLOBALS['lat']}).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
-
-	markers = new OpenLayers.Layer.Markers( "Markers" );
-	centermarker = new OpenLayers.Marker(center);
-	markers.addMarker(centermarker);
+	var markers = new OpenLayers.Layer.Markers("Markers");
+	markers.addMarker(new OpenLayers.Marker(center));
 	map.addLayer(markers);
-
-	map.setCenter(center, 17);
 }
     -->
     </script>
-- 
1.7.9.5


From MAILER-DAEMON Mon Apr 09 08:30:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHDjo-0006XS-K3
	for mharc-gpsd-dev@gnu.org; Mon, 09 Apr 2012 08:30:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51119)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDjm-0006Tc-00
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:30:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDjk-00056Y-A7
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:30:25 -0400
Received: from smtp1.mail.fcom.ch ([212.60.46.170]:55822)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDjk-00056C-4B
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:30:24 -0400
Received: from smtp1.mail.fcom.ch (localhost [127.0.0.1])
	by smtp1 (Postfix) with ESMTP id 5566235AF8
	for <gpsd-dev@nongnu.org>; Mon,  9 Apr 2012 14:30:17 +0200 (CEST)
Received: from drbeat.li (28-32-60-212-pool.cable.fcom.ch [212.60.32.28])
	by smtp1 (Postfix) with ESMTPS id 29D0735AED
	for <gpsd-dev@nongnu.org>; Mon,  9 Apr 2012 14:30:17 +0200 (CEST)
Received: by drbeat.li (Postfix, from userid 1000)
	id B540217F02; Mon,  9 Apr 2012 14:30:16 +0200 (CEST)
From: Beat Bolli <bbolli@ewanet.ch>
To: gpsd-dev@nongnu.org
Date: Mon,  9 Apr 2012 14:30:16 +0200
Message-Id: <1333974616-9213-2-git-send-email-bbolli@ewanet.ch>
X-Mailer: git-send-email 1.7.9.5
In-Reply-To: <1333974616-9213-1-git-send-email-bbolli@ewanet.ch>
References: <1333974616-9213-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] gpsd.php: Increase the delays before reading
	GPSd's answer.
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, 09 Apr 2012 12:30:27 -0000

This was needed on my Intel Atom server to prevent a stuck PHP script.
---
 gpsd.php.in |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gpsd.php.in b/gpsd.php.in
index ec8f52c..1e32d8e 100644
--- a/gpsd.php.in
+++ b/gpsd.php.in
@@ -88,8 +88,9 @@ if (isset($_GET['imgdata']) && $op == 'view'){
 	if ($testmode){
 		$sock = @fsockopen($server, $port, $errno, $errstr, 2);
 		@fwrite($sock, "?WATCH={\"enable\":true}\n");
-		usleep(100);
+		usleep(1000);
 		@fwrite($sock, "?POLL;\n");
+		usleep(1000);
 		for($tries = 0; $tries < 10; $tries++){
 			$resp = @fread($sock, 2000); # SKY can be pretty big
 			if (preg_match('/{"class":"POLL".+}/i', $resp, $m)){
-- 
1.7.9.5


From MAILER-DAEMON Mon Apr 09 08:41:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHDuC-0008KH-QE
	for mharc-gpsd-dev@gnu.org; Mon, 09 Apr 2012 08:41:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33251)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDuA-0008J9-0K
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:41:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDu7-00014G-Jv
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:41:09 -0400
Received: from mx1.2b3w.ch ([92.42.186.250]:44843)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHDu7-00013B-DK
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 08:41:07 -0400
Received: from mx1.2b3w.ch (localhost [127.0.0.1])
	by mx1.2b3w.ch (Postfix) with ESMTP id EC3EAC345B;
	Mon,  9 Apr 2012 14:41:02 +0200 (CEST)
Received: from mcmini.bolli (28-32-60-212-pool.cable.fcom.ch [212.60.32.28])
	by mx1.2b3w.ch (Postfix) with ESMTPSA id CCB64C345A;
	Mon,  9 Apr 2012 14:41:02 +0200 (CEST)
Message-ID: <4F82D8DB.3050301@ewanet.ch>
Date: Mon, 09 Apr 2012 14:40:59 +0200
From: Beat Bolli <bbolli@ewanet.ch>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: "Eric S. Raymond" <esr@thyrsus.com>
References: <1333974616-9213-1-git-send-email-bbolli@ewanet.ch>
In-Reply-To: <1333974616-9213-1-git-send-email-bbolli@ewanet.ch>
X-Enigmail-Version: 1.4
OpenPGP: id=506A903A;
	url=http://drbeat.li/pubkey.asc
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig00E6713A3E7F83E62C9D69C7"
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 1/2] gpsd.php: Fix OpenStreetMaps map display.
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, 09 Apr 2012 12:41:11 -0000

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

Hi Eric

It would be nice to get these two patches in before 3.5, as without
them, the PHP script doesn't work for me.

Thanks,
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


--------------enig00E6713A3E7F83E62C9D69C7
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+C2N4ACgkQMEuTz1BqkDpOTACgmc6tXrxf8nfi9EULsoEZr5Fc
Q6UAoM+EkCcCcNy+kVK1hPj0VO5W2Gms
=rwmT
-----END PGP SIGNATURE-----

--------------enig00E6713A3E7F83E62C9D69C7--


From MAILER-DAEMON Mon Apr 09 12:41:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHHes-0004Oo-FK
	for mharc-gpsd-dev@gnu.org; Mon, 09 Apr 2012 12:41:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53779)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SHHen-0004Og-Re
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 12:41:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SHHek-0006EH-An
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 12:41:33 -0400
Received: from lmv.inov.pt ([146.193.64.2]:60873)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SHHej-0006E9-NY
	for gpsd-dev@nongnu.org; Mon, 09 Apr 2012 12:41:30 -0400
Received: from [10.154.0.246] (gtout.inov.pt [146.193.64.254])
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q39GfE0h012894;
	Mon, 9 Apr 2012 17:41:14 +0100
Message-ID: <4F83112A.5060700@inov.pt>
Date: Mon, 09 Apr 2012 17:41:14 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt> <20120405144300.GA26730@thyrsus.com>
	<4F7DB3EE.7040300@inov.pt> <20120405173359.GA3341@thyrsus.com>
	<4F7DDDF5.5090802@inov.pt> <20120405182841.GA3690@thyrsus.com>
In-Reply-To: <20120405182841.GA3690@thyrsus.com>
Content-Type: multipart/mixed; boundary="------------050902050208040208040702"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Mon, 09 Apr 2012 17:41:15 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix on NMEA driver 2D mode
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, 09 Apr 2012 16:41:36 -0000

This is a multi-part message in MIME format.
--------------050902050208040208040702
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id q39GfE0h012894

Hi Eric

On 05-04-2012 19:28, Eric S. Raymond wrote:
> Jos=E9 Miguel Gon=E7alves<jose.goncalves@inov.pt>:
>>> Under what circumstances can this happen? It doesn't seem to occur
>>> with the full log.  Does it happen only when the sentence inventory
>>> emitted is reduced?
>>
>> I've seen it only with the partial set of messages whose log I've
>> sent previously.  I'm not sure if it happens also with the full set
>> (I will test it when I have access to the receiver again).
>
> Please do.

The problem does not occur with the full set of NMEA messages. Moreover, =
it does=20
not happen if I add the GLL message to the set of messages that the devic=
e sends.

Nevertheless, is still a bug to me, because with a minimum set of NMEA me=
ssages=20
that can supply PVT information, gpsd is not giving correct information t=
o the=20
user. I attach two logs retrieved with "gpspipe -r -w -t -T %T", the one =
named=20
"gpspipe.log" is retrieved with gpsd git HEAD, while the other (gpspipe_p=
atch.log)=20
has my patch. You can see that with the same kind of fix reported in NMEA=
=20
messages, the first gives a NO FIX, while the second gives a 2D FIX.

>
>>> I'm reluctant to change that test because doing that would break
>>> functionality on other devices.  If that means we have to attach a
>>> note saying you can't disable sentences and still expect the PolaR2x
>>> to work with GPSD, then that's how it has to be.
>>
>> I don't see how can this break other devices. If you receive a GGA
>> message with the GPS quality indicator field bigger than 0, it's
>> because you have a valid fix. So, I think it's pretty safe to assume
>> that, if the receiver sends a void altitude field when we have a
>> valid fix, we have a 2D fix.
>
> But what if a device claims to have fix status but sets mode 1 in a
> GSA?  Your change would pass back spurious data.  Don't laugh - I've
> seen weirder misbehaviors from real devices.  The NMEA driver is
> conservative in its assumptions precisely because we've seen GPSes
> fling so much crap up the wire.

A device that behaves like you describe is not really following the stand=
ard. I=20
understand that you want to support the biggest set of receivers that you=
 can, but=20
I think that you should privilege the ones that behave correctly.

>> I think a better approach (that I've used in the past for software
>> that I implemented for my company) is to extract only the values
>> explicitly set by the NMEA messages and detect the time interval
>> between NMEA batch of messages, using that interval to assemble and
>> compute (if possible) values that were not explicitly set in the
>> messages that the receiver provided.
>
> That...sounds like the way the NMEA driver actually works. :-)
>
> You might want to take a closer look at the cycle-detection logic.

I don't fully understand the logic behind gpsd cycle detection, but the b=
ehaviour=20
of the gpsd output is not the one that I would expect if it followed the =
logic=20
that I described. Exemplifying with an extract of gpspipe_patch.log, I wo=
uld=20
expect that the output of gpspipe instead of this:

16:52:33 :$GPGST,155233.00,2.433,857.453,8.737,26.370,768.240,380.932,110=
2.293*57
16:52:33=20
:{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19=
:07:13.000Z","rms":2.433,"major":857.453,"minor":8.737,"orient":26.370,"l=
at":768.240,"lon":380.932,"alt":1102.293}
16:52:33 :$GPGBS,155233.00,611.550,272.312,817.801,28,0.000,0.000,0.000*6=
0
16:52:33 :{"class":"TPV","tag":"GBS","device":"/dev/ttyUSB0","mode":0}
16:52:33 :$GPGGA,155233.00,3844.04140,N,00908.63184,W,1,03,8.6,,,,,,*43
16:52:33=20
:{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":2,"time":"2012=
-04-09T15:52:33.000Z","ept":0.005,"lat":38.734023333,"lon":-9.143864000,"=
epx":272.312,"epy":611.550,"speed":1.314,"eps":1199.30}
16:52:33 :$GPVTG,327.2,T,321.6,M,0.5,N,1.0,K,A*25
16:52:33 :$GPZDA,155233.00,09,04,2012,,*69
16:52:33 :$GPGSA,A,2,15,27,28,,,,,,,,,,8.6,8.6,*16
16:52:33 :$GPGSV,3,1,11,05,11,171,,09,54,287,,12,29,200,,15,78,345,40*7B
16:52:33 :$GPGSV,3,2,11,17,17,084,,18,36,298,,21,01,264,,22,04,324,*78
16:52:33 :$GPGSV,3,3,11,26,45,105,,27,69,332,45,28,25,044,42*4A
16:52:33=20
:{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":=
5,"el":11,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":287,"ss":0,=
"used":false},{"PRN":12,"el":29,"az":200,"ss":0,"used":false},{"PRN":15,"=
el":78,"az":345,"ss":40,"used":true},{"PRN":17,"el":17,"az":84,"ss":0,"us=
ed":false},{"PRN":18,"el":36,"az":298,"ss":0,"used":false},{"PRN":21,"el"=
:1,"az":264,"ss":0,"used":false},{"PRN":22,"el":4,"az":324,"ss":0,"used":=
false},{"PRN":26,"el":45,"az":105,"ss":0,"used":false},{"PRN":27,"el":69,=
"az":332,"ss":45,"used":true},{"PRN":28,"el":25,"az":44,"ss":42,"used":tr=
ue}]}

would be something like this:

16:52:33 :$GPGST,155233.00,2.433,857.453,8.737,26.370,768.240,380.932,110=
2.293*57
16:52:33 :$GPGBS,155233.00,611.550,272.312,817.801,28,0.000,0.000,0.000*6=
0
16:52:33 :$GPGGA,155233.00,3844.04140,N,00908.63184,W,1,03,8.6,,,,,,*43
16:52:33 :$GPVTG,327.2,T,321.6,M,0.5,N,1.0,K,A*25
16:52:33 :$GPZDA,155233.00,09,04,2012,,*69
16:52:33 :$GPGSA,A,2,15,27,28,,,,,,,,,,8.6,8.6,*16
16:52:33 :$GPGSV,3,1,11,05,11,171,,09,54,287,,12,29,200,,15,78,345,40*7B
16:52:33 :$GPGSV,3,2,11,17,17,084,,18,36,298,,21,01,264,,22,04,324,*78
16:52:33 :$GPGSV,3,3,11,26,45,105,,27,69,332,45,28,25,044,42*4A
16:52:33=20
:{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19=
:07:13.000Z","rms":2.433,"major":857.453,"minor":8.737,"orient":26.370,"l=
at":768.240,"lon":380.932,"alt":1102.293}
16:52:33=20
:{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":2,"time":"2012=
-04-09T15:52:33.000Z","ept":0.005,"lat":38.734023333,"lon":-9.143864000,"=
epx":272.312,"epy":611.550,"speed":1.314,"eps":1199.30}
16:52:33=20
:{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":=
5,"el":11,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":287,"ss":0,=
"used":false},{"PRN":12,"el":29,"az":200,"ss":0,"used":false},{"PRN":15,"=
el":78,"az":345,"ss":40,"used":true},{"PRN":17,"el":17,"az":84,"ss":0,"us=
ed":false},{"PRN":18,"el":36,"az":298,"ss":0,"used":false},{"PRN":21,"el"=
:1,"az":264,"ss":0,"used":false},{"PRN":22,"el":4,"az":324,"ss":0,"used":=
false},{"PRN":26,"el":45,"az":105,"ss":0,"used":false},{"PRN":27,"el":69,=
"az":332,"ss":45,"used":true},{"PRN":28,"el":25,"az":44,"ss":42,"used":tr=
ue}]}


Regards,
Jos=E9 Gon=E7alves

--------------050902050208040208040702
Content-Type: text/x-log;
 name="gpspipe.log"
Content-Disposition: attachment;
 filename="gpspipe.log"
Content-Transfer-Encoding: 7bit

16:49:41 :$GPGST,154941.00,0.314,573.977,11.801,19.882,539.781,195.514,691.021*57
16:49:41 :{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19:02:21.000Z","rms":0.314,"major":573.977,"minor":11.801,"orient":19.882,"lat":539.781,"lon":195.514,"alt":691.021}
16:49:41 :$GPGBS,154941.00,192.185,33.834,207.179,28,0.000,0.000,0.000*5A
16:49:41 :$GPGGA,154941.00,3844.01649,N,00908.61438,W,1,03,10.0,,,,,,*78
16:49:41 :{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":0,"time":"2012-04-09T15:49:41.000Z","ept":0.005}
16:49:41 :$GPVTG,333.9,T,328.3,M,0.7,N,1.3,K,A*26
16:49:41 :$GPZDA,154941.00,09,04,2012,,*66
16:49:41 :$GPGSA,A,2,15,27,28,,,,,,,,,,10.0,10.0,*16
16:49:41 :$GPGSV,3,1,11,05,12,171,,09,54,285,,12,28,200,,15,77,342,41*72
16:49:41 :$GPGSV,3,2,11,17,17,085,,18,36,299,,21,02,265,,22,03,324,*7D
16:49:41 :$GPGSV,3,3,11,26,46,103,,27,69,329,44,28,26,044,38*4A
16:49:41 :{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":5,"el":12,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":285,"ss":0,"used":false},{"PRN":12,"el":28,"az":200,"ss":0,"used":false},{"PRN":15,"el":77,"az":342,"ss":41,"used":true},{"PRN":17,"el":17,"az":85,"ss":0,"used":false},{"PRN":18,"el":36,"az":299,"ss":0,"used":false},{"PRN":21,"el":2,"az":265,"ss":0,"used":false},{"PRN":22,"el":3,"az":324,"ss":0,"used":false},{"PRN":26,"el":46,"az":103,"ss":0,"used":false},{"PRN":27,"el":69,"az":329,"ss":44,"used":true},{"PRN":28,"el":26,"az":44,"ss":38,"used":true}]}
16:49:42 :$GPGST,154942.00,0.118,576.805,11.128,19.906,542.355,196.671,694.620*54
16:49:42 :{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19:02:22.000Z","rms":0.118,"major":576.805,"minor":11.128,"orient":19.906,"lat":542.355,"lon":196.671,"alt":694.620}
16:49:42 :$GPGBS,154942.00,211.265,44.547,237.405,27,0.000,0.000,0.000*57
16:49:42 :$GPGGA,154942.00,3844.01666,N,00908.61445,W,1,03,10.0,,,,,,*7C
16:49:42 :{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":0,"time":"2012-04-09T15:49:42.000Z","ept":0.005}
16:49:42 :$GPVTG,333.5,T,327.9,M,0.7,N,1.3,K,A*2F
16:49:42 :$GPZDA,154942.00,09,04,2012,,*65
16:49:42 :$GPGSA,A,2,15,27,28,,,,,,,,,,10.0,10.0,*16
16:49:42 :$GPGSV,3,1,11,05,12,171,,09,54,285,,12,28,200,,15,77,342,42*71
16:49:42 :$GPGSV,3,2,11,17,17,085,,18,36,299,,21,02,265,,22,03,324,*7D
16:49:42 :$GPGSV,3,3,11,26,46,103,,27,69,329,44,28,26,044,38*4A
16:49:42 :{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":5,"el":12,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":285,"ss":0,"used":false},{"PRN":12,"el":28,"az":200,"ss":0,"used":false},{"PRN":15,"el":77,"az":342,"ss":42,"used":true},{"PRN":17,"el":17,"az":85,"ss":0,"used":false},{"PRN":18,"el":36,"az":299,"ss":0,"used":false},{"PRN":21,"el":2,"az":265,"ss":0,"used":false},{"PRN":22,"el":3,"az":324,"ss":0,"used":false},{"PRN":26,"el":46,"az":103,"ss":0,"used":false},{"PRN":27,"el":69,"az":329,"ss":44,"used":true},{"PRN":28,"el":26,"az":44,"ss":38,"used":true}]}
16:49:43 :$GPGST,154943.00,0.164,579.449,10.579,19.931,544.754,197.778,698.003*51
16:49:43 :{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19:02:23.000Z","rms":0.164,"major":579.449,"minor":10.579,"orient":19.931,"lat":544.754,"lon":197.778,"alt":698.003}
16:49:43 :$GPGBS,154943.00,230.683,54.442,266.874,27,0.000,0.000,0.000*52
16:49:43 :$GPGGA,154943.00,3844.01678,N,00908.61451,W,1,03,10.0,,,,,,*77
16:49:43 :{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":0,"time":"2012-04-09T15:49:43.000Z","ept":0.005}
16:49:43 :$GPVTG,333.2,T,327.7,M,0.7,N,1.4,K,A*21
16:49:43 :$GPZDA,154943.00,09,04,2012,,*64
16:49:43 :$GPGSA,A,2,15,27,28,,,,,,,,,,10.0,10.0,*16
16:49:43 :$GPGSV,3,1,11,05,12,171,,09,54,285,,12,28,200,,15,77,342,41*72
16:49:43 :$GPGSV,3,2,11,17,17,085,,18,36,299,,21,02,265,,22,03,324,*7D
16:49:43 :$GPGSV,3,3,11,26,46,103,,27,69,329,44,28,26,044,38*4A
16:49:43 :{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":5,"el":12,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":285,"ss":0,"used":false},{"PRN":12,"el":28,"az":200,"ss":0,"used":false},{"PRN":15,"el":77,"az":342,"ss":41,"used":true},{"PRN":17,"el":17,"az":85,"ss":0,"used":false},{"PRN":18,"el":36,"az":299,"ss":0,"used":false},{"PRN":21,"el":2,"az":265,"ss":0,"used":false},{"PRN":22,"el":3,"az":324,"ss":0,"used":false},{"PRN":26,"el":46,"az":103,"ss":0,"used":false},{"PRN":27,"el":69,"az":329,"ss":44,"used":true},{"PRN":28,"el":26,"az":44,"ss":38,"used":true}]}


--------------050902050208040208040702
Content-Type: text/x-log;
 name="gpspipe_patch.log"
Content-Disposition: attachment;
 filename="gpspipe_patch.log"
Content-Transfer-Encoding: 7bit

16:52:33 :$GPGST,155233.00,2.433,857.453,8.737,26.370,768.240,380.932,1102.293*57
16:52:33 :{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19:07:13.000Z","rms":2.433,"major":857.453,"minor":8.737,"orient":26.370,"lat":768.240,"lon":380.932,"alt":1102.293}
16:52:33 :$GPGBS,155233.00,611.550,272.312,817.801,28,0.000,0.000,0.000*60
16:52:33 :{"class":"TPV","tag":"GBS","device":"/dev/ttyUSB0","mode":0}
16:52:33 :$GPGGA,155233.00,3844.04140,N,00908.63184,W,1,03,8.6,,,,,,*43
16:52:33 :{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":2,"time":"2012-04-09T15:52:33.000Z","ept":0.005,"lat":38.734023333,"lon":-9.143864000,"epx":272.312,"epy":611.550,"speed":1.314,"eps":1199.30}
16:52:33 :$GPVTG,327.2,T,321.6,M,0.5,N,1.0,K,A*25
16:52:33 :$GPZDA,155233.00,09,04,2012,,*69
16:52:33 :$GPGSA,A,2,15,27,28,,,,,,,,,,8.6,8.6,*16
16:52:33 :$GPGSV,3,1,11,05,11,171,,09,54,287,,12,29,200,,15,78,345,40*7B
16:52:33 :$GPGSV,3,2,11,17,17,084,,18,36,298,,21,01,264,,22,04,324,*78
16:52:33 :$GPGSV,3,3,11,26,45,105,,27,69,332,45,28,25,044,42*4A
16:52:33 :{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":5,"el":11,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":287,"ss":0,"used":false},{"PRN":12,"el":29,"az":200,"ss":0,"used":false},{"PRN":15,"el":78,"az":345,"ss":40,"used":true},{"PRN":17,"el":17,"az":84,"ss":0,"used":false},{"PRN":18,"el":36,"az":298,"ss":0,"used":false},{"PRN":21,"el":1,"az":264,"ss":0,"used":false},{"PRN":22,"el":4,"az":324,"ss":0,"used":false},{"PRN":26,"el":45,"az":105,"ss":0,"used":false},{"PRN":27,"el":69,"az":332,"ss":45,"used":true},{"PRN":28,"el":25,"az":44,"ss":42,"used":true}]}
16:52:34 :$GPGST,155234.00,3.164,850.402,7.420,26.424,761.563,378.497,1094.043*52
16:52:34 :{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19:07:14.000Z","rms":3.164,"major":850.402,"minor":7.420,"orient":26.424,"lat":761.563,"lon":378.497,"alt":1094.043}
16:52:34 :$GPGBS,155234.00,707.251,310.651,935.585,28,0.000,0.000,0.000*60
16:52:34 :{"class":"TPV","tag":"GBS","device":"/dev/ttyUSB0","mode":0}
16:52:34 :$GPGGA,155234.00,3844.04002,N,00908.63171,W,1,03,8.6,,,,,,*49
16:52:34 :{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":2,"time":"2012-04-09T15:52:34.000Z","ept":0.005,"lat":38.734000333,"lon":-9.143861833,"epx":310.651,"epy":707.251,"speed":2.560,"eps":1318.80}
16:52:34 :$GPVTG,327.3,T,321.7,M,0.5,N,1.0,K,A*25
16:52:34 :$GPZDA,155234.00,09,04,2012,,*6E
16:52:34 :$GPGSA,A,2,15,27,28,,,,,,,,,,8.6,8.6,*16
16:52:34 :$GPGSV,3,1,11,05,11,171,,09,54,287,,12,29,200,,15,78,345,40*7B
16:52:34 :$GPGSV,3,2,11,17,18,084,,18,36,298,,21,01,264,,22,04,324,*77
16:52:34 :$GPGSV,3,3,11,26,45,105,,27,69,332,44,28,25,044,42*4B
16:52:34 :{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":5,"el":11,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":287,"ss":0,"used":false},{"PRN":12,"el":29,"az":200,"ss":0,"used":false},{"PRN":15,"el":78,"az":345,"ss":40,"used":true},{"PRN":17,"el":18,"az":84,"ss":0,"used":false},{"PRN":18,"el":36,"az":298,"ss":0,"used":false},{"PRN":21,"el":1,"az":264,"ss":0,"used":false},{"PRN":22,"el":4,"az":324,"ss":0,"used":false},{"PRN":26,"el":45,"az":105,"ss":0,"used":false},{"PRN":27,"el":69,"az":332,"ss":44,"used":true},{"PRN":28,"el":25,"az":44,"ss":42,"used":true}]}
16:52:35 :$GPGST,155235.00,5.207,840.638,3.561,26.503,752.296,375.147,1082.866*5D
16:52:35 :{"class":"GST","tag":"GST","device":"/dev/ttyUSB0","time":"1970-01-02T19:07:15.000Z","rms":5.207,"major":840.638,"minor":3.561,"orient":26.503,"lat":752.296,"lon":375.147,"alt":1082.866}
16:52:35 :$GPGBS,155235.00,881.394,381.264,1153.102,28,0.000,0.000,0.000*50
16:52:35 :{"class":"TPV","tag":"GBS","device":"/dev/ttyUSB0","mode":0}
16:52:35 :$GPGGA,155235.00,3844.03649,N,00908.63111,W,1,03,8.6,,,,,,*40
16:52:35 :{"class":"TPV","tag":"GGA","device":"/dev/ttyUSB0","mode":2,"time":"2012-04-09T15:52:35.000Z","ept":0.005,"lat":38.733941500,"lon":-9.143851833,"epx":381.264,"epy":881.394,"speed":6.589,"eps":1588.64}
16:52:35 :$GPVTG,327.4,T,321.8,M,0.6,N,1.0,K,A*2E
16:52:35 :$GPZDA,155235.00,09,04,2012,,*6F
16:52:35 :$GPGSA,A,2,15,27,28,,,,,,,,,,8.6,8.6,*16
16:52:35 :$GPGSV,3,1,11,05,11,171,,09,54,287,,12,29,200,,15,78,345,40*7B
16:52:35 :$GPGSV,3,2,11,17,18,084,,18,36,298,,21,01,264,,22,04,324,*77
16:52:35 :$GPGSV,3,3,11,26,45,105,,27,69,332,44,28,25,044,42*4B
16:52:35 :{"class":"SKY","tag":"GSV","device":"/dev/ttyUSB0","satellites":[{"PRN":5,"el":11,"az":171,"ss":0,"used":false},{"PRN":9,"el":54,"az":287,"ss":0,"used":false},{"PRN":12,"el":29,"az":200,"ss":0,"used":false},{"PRN":15,"el":78,"az":345,"ss":40,"used":true},{"PRN":17,"el":18,"az":84,"ss":0,"used":false},{"PRN":18,"el":36,"az":298,"ss":0,"used":false},{"PRN":21,"el":1,"az":264,"ss":0,"used":false},{"PRN":22,"el":4,"az":324,"ss":0,"used":false},{"PRN":26,"el":45,"az":105,"ss":0,"used":false},{"PRN":27,"el":69,"az":332,"ss":44,"used":true},{"PRN":28,"el":25,"az":44,"ss":42,"used":true}]}


--------------050902050208040208040702--


From MAILER-DAEMON Tue Apr 10 14:06:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SHfSR-0008Fs-Vc
	for mharc-gpsd-dev@gnu.org; Tue, 10 Apr 2012 14:06:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55463)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHfSK-0008F9-R9
	for gpsd-dev@nongnu.org; Tue, 10 Apr 2012 14:06:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHfSE-0000QL-V4
	for gpsd-dev@nongnu.org; Tue, 10 Apr 2012 14:06:16 -0400
Received: from mx1.2b3w.ch ([92.42.186.250]:52976)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bbolli@ewanet.ch>) id 1SHfSE-0000Pq-Lg
	for gpsd-dev@nongnu.org; Tue, 10 Apr 2012 14:06:10 -0400
Received: from mx1.2b3w.ch (localhost [127.0.0.1])
	by mx1.2b3w.ch (Postfix) with ESMTP id ABC89C3458
	for <gpsd-dev@nongnu.org>; Tue, 10 Apr 2012 20:06:05 +0200 (CEST)
Received: from mcmini.bolli (28-32-60-212-pool.cable.fcom.ch [212.60.32.28])
	by mx1.2b3w.ch (Postfix) with ESMTPSA id 89D01C3455
	for <gpsd-dev@nongnu.org>; Tue, 10 Apr 2012 20:06:05 +0200 (CEST)
Message-ID: <4F84768A.9050101@ewanet.ch>
Date: Tue, 10 Apr 2012 20:06:02 +0200
From: Beat Bolli <bbolli@ewanet.ch>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <20120405200608.C42E942E29@snark.thyrsus.com>
In-Reply-To: <20120405200608.C42E942E29@snark.thyrsus.com>
X-Enigmail-Version: 1.4
OpenPGP: id=506A903A;
	url=http://drbeat.li/pubkey.asc
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig064553D9BBC69EC09984F05F"
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] Upcoming gpsd 3.5 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: Tue, 10 Apr 2012 18:06:22 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig064553D9BBC69EC09984F05F
Content-Type: multipart/mixed;
 boundary="------------030304090007020400030509"

This is a multi-part message in MIME format.
--------------030304090007020400030509
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05.04.12 22:06, Eric S. Raymond wrote:
> Please let me know of any other issues that need to be resolved before
> the next release as soon as possible.

I don't know if this goes under the "need to be resolved" header or not,
but I noticed that the MTK-3301 driver doesn't "stick". The device type
changes after the $PMTK packet as it should, but it reverts to generic
NMEA after the $ character of the next sentence is parsed. See the
attached -D9 log.

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

--------------030304090007020400030509
Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0";
 name="mkt3301.log"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="mkt3301.log"

Z3BzZDpVTks6IFBhY2tldCB0eXBlIDEgYWNjZXB0ZWQgMjkgPSAkUE1USzcwNSxBWE5fMS4z
MCwwMDAwLCwqMjRceDBkXHgwYQpncHNkOlVOSzogUGFja2V0IGRpc2NhcmQgb2YgMjksIGNo
YXJzIHJlbWFpbmluZyBpcyAwID0gJFBNVEs3MDUsQVhOXzEuMzAsMDAwMCwsKjI0XHgwZFx4
MGEsTiwwMDcxNi4yOTU0LEUsMC4wMCwxOTkuODQsMTAwNDEyLCwsRCo2OFx4MGRceDBhMDAw
MCo1M1x4MGRceDBhCmdwc2Q6UkFXOiAvZGV2L3R0eVVTQjAgaXMga25vd24gdG8gYmUgR2Vu
ZXJpYyBOTUVBCmdwc2Q6VU5LOiAvZGV2L3R0eVVTQjAgc2VudCAyOSBuZXcgY2hhcmFjdGVy
cwpncHNkOlJBVzogcGFja2V0IHNuaWZmIG9uIC9kZXYvdHR5VVNCMCBmaW5kcyB0eXBlIDEK
Z3BzZDpSQVc6IHJhdyBwYWNrZXQgb2YgdHlwZSAxLCAyOTokUE1USzcwNSxBWE5fMS4zMCww
MDAwLCwqMjRceDBkXHgwYQpncHNkOklPOiA8PSBHUFM6ICRQTVRLNzA1LEFYTl8xLjMwLDAw
MDAsLCoyNA0KZ3BzZDpXQVJOOiB1bmtub3duIHNlbnRlbmNlOiAiJFBNVEs3MDUsQVhOXzEu
MzAsMDAwMCwsKjI0XHgwZFx4MGEiCmdwc2Q6UFJPRzogZm91bmQgdHJpZ2dlciBzdHJpbmcg
JFBNVEs3MDUsLgpncHNkOlBST0c6IHN3aXRjaF9kcml2ZXIoTVRLLTMzMDEpIGNhbGxlZC4u
LgpncHNkOlBST0c6IHNlbGVjdGluZyBNVEstMzMwMSBkcml2ZXIuLi4KZ3BzZDpEQVRBOiBw
YWNrZXQgZnJvbSAvZGV2L3R0eVVTQjAgd2l0aCB7T05MSU5FfERFVklDRUlEfFBBQ0tFVH0K
Z3BzZDpVTks6IG5vIGJ5dGVzIHJlYWR5Cmdwc2Q6U1BJTjogcGFja2V0X2dldCgpIGZkIDUg
LT4gMCAoMTEpCmdwc2Q6UkFXOiAvZGV2L3R0eVVTQjAgaXMga25vd24gdG8gYmUgTVRLLTMz
MDEKZ3BzZDpVTks6IC9kZXYvdHR5VVNCMCBzZW50IDAgbmV3IGNoYXJhY3RlcnMKZ3BzZDpV
Tks6IHNlbGVjdCB3YWl0cwpncHNkOlNQSU46IHNlbGVjdCgpIHszIDQgNX0gLT4geyA1IH0g
YXQgMTMzNDA3NjMxOS4zMjA5MjIgKGVycm5vIDApCmdwc2Q6VU5LOiBwb2xsaW5nIDUKZ3Bz
ZDpVTks6IFJlYWQgMSBjaGFycyB0byBidWZmZXIgb2Zmc2V0IDAgKHRvdGFsIDEpOiAkUE1U
SzcwNSxBWE5fMS4zMCwwMDAwLCwqMjRceDBkXHgwYSxOLDAwNzE2LjI5NTQsRSwwLjAwLDE5
OS44NCwxMDA0MTIsLCxEKjY4XHgwZFx4MGEwMDAwKjUzXHgwZFx4MGEKZ3BzZDpTUElOOiBw
YWNrZXRfZ2V0KCkgZmQgNSAtPiAxICgwKQpncHNkOlVOSzogMDAwMDExMjg6IGNoYXJhY3Rl
ciAnJCcgWzI0XSwgbmV3IHN0YXRlOiBOTUVBX0RPTExBUgpncHNkOlJBVzogL2Rldi90dHlV
U0IwIGlzIGtub3duIHRvIGJlIE1USy0zMzAxCmdwc2Q6VU5LOiAvZGV2L3R0eVVTQjAgc2Vu
dCAxIG5ldyBjaGFyYWN0ZXJzCmdwc2Q6UkFXOiBwYWNrZXQgc25pZmYgb24gL2Rldi90dHlV
U0IwIGZpbmRzIHR5cGUgMQpncHNkOlBST0c6IHN3aXRjaF9kcml2ZXIoR2VuZXJpYyBOTUVB
KSBjYWxsZWQuLi4KZ3BzZDpQUk9HOiBzZWxlY3RpbmcgR2VuZXJpYyBOTUVBIGRyaXZlci4u
LgpncHNkOlVOSzogc2VsZWN0IHdhaXRzCmdwc2Q6U1BJTjogc2VsZWN0KCkgezMgNCA1fSAt
PiB7IDUgfSBhdCAxMzM0MDc2MzE5LjMyMTkwMSAoZXJybm8gMCkKZ3BzZDpVTks6IHBvbGxp
bmcgNQpncHNkOlVOSzogUmVhZCAxIGNoYXJzIHRvIGJ1ZmZlciBvZmZzZXQgMSAodG90YWwg
Mik6IEdNVEs3MDUsQVhOXzEuMzAsMDAwMCwsKjI0XHgwZFx4MGEsTiwwMDcxNi4yOTU0LEUs
MC4wMCwxOTkuODQsMTAwNDEyLCwsRCo2OFx4MGRceDBhMDAwMCo1M1x4MGRceDBhCmdwc2Q6
U1BJTjogcGFja2V0X2dldCgpIGZkIDUgLT4gMSAoMCkKZ3BzZDpVTks6IDAwMDAxMTI5OiBj
aGFyYWN0ZXIgJ0cnIFs0N10sIG5ldyBzdGF0ZTogTk1FQV9QVUJfTEVBRApncHNkOlJBVzog
L2Rldi90dHlVU0IwIGlzIGtub3duIHRvIGJlIEdlbmVyaWMgTk1FQQpncHNkOlVOSzogL2Rl
di90dHlVU0IwIHNlbnQgMSBuZXcgY2hhcmFjdGVycwpncHNkOlJBVzogcGFja2V0IHNuaWZm
IG9uIC9kZXYvdHR5VVNCMCBmaW5kcyB0eXBlIDEK
--------------030304090007020400030509--

--------------enig064553D9BBC69EC09984F05F
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+Edo0ACgkQMEuTz1BqkDqFDgCeOO+49psrGG6Hewtc3iJv4whe
GCQAoNUTl3gWAokxVAI9o6V7wcKHR7vz
=EJbX
-----END PGP SIGNATURE-----

--------------enig064553D9BBC69EC09984F05F--


From MAILER-DAEMON Thu Apr 12 10:18:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIKqr-0005Jt-Af
	for mharc-gpsd-dev@gnu.org; Thu, 12 Apr 2012 10:18:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41803)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIKqp-0005JB-56
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 10:18:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIKqi-0008QR-V4
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 10:18:18 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:38894 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1SIKqi-0008Q1-Qe; Thu, 12 Apr 2012 10:18:12 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 87A4242E29; Thu, 12 Apr 2012 10:17:56 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Message-Id: <20120412141756.87A4242E29@snark.thyrsus.com>
Date: Thu, 12 Apr 2012 10:17:56 -0400 (EDT)
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
Subject: [gpsd-dev] GPSD 3.5 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: Thu, 12 Apr 2012 14:18:20 -0000

We are condition green and GPSD 3.5 will ship today or tomorrow.  Only
urgent bug fixes are being accepted at this point.

I'm still working on a couple of minor bug reports from Charley Curley
and Jos=C3=A9 Miguel Gon=C3=A7alves.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>

'Faith' means not _wanting_ to know what is true.
	-- Nietzsche, Der Antichrist


From MAILER-DAEMON Thu Apr 12 10:36:45 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIL8f-0006vX-Rl
	for mharc-gpsd-dev@gnu.org; Thu, 12 Apr 2012 10:36:45 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54828)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIL8c-0006ur-Eu
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 10:36:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIL8V-0008K2-J3
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 10:36:42 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:38945 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIL8V-0008Jd-Ek
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 10:36:35 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id A7AE942E29; Thu, 12 Apr 2012 10:36:19 -0400 (EDT)
Date: Thu, 12 Apr 2012 10:36:19 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120412143619.GB22975@thyrsus.com>
References: <4F82B479.9010704@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F82B479.9010704@inov.pt>
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] RTCM relaying problem
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, 12 Apr 2012 14:36:44 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> Working with a RTCM caster I've noticed that not all RTCM packets
> that gpsd received were relayed to my GPS receiver, what caused DGPS
> corrections to be intermittently applied or not applied at all. To
> fix this I needed to apply the following patch to avoid RTCM packet
> overlapping:
>=20
>=20
> diff --git a/gpsd.c b/gpsd.c
> index d8f229b..abdaca1 100644
> --- a/gpsd.c
> +++ b/gpsd.c
> @@ -1422,7 +1422,7 @@ static void consume_packets(struct
> gps_device_t *device)
>      }
>  #endif /* NETFEED_ENABLE */
>=20
> -    for (fragments =3D 0; ; fragments++) {
> +    for (fragments =3D 0; (changed & (RTCM2_SET | RTCM3_SET)) =3D=3D 0=
;
> fragments++) {
>         changed =3D gpsd_poll(device);
>=20
>         if (changed =3D=3D ERROR_SET) {

This code is not correct.  The variable 'changed' is auto and not initial=
ized,
which means random garbage on the stack could cause the loop to fail befo=
re
it is ever set.

But simply patching in an initialization wouldn't be the right thing here=
.
We need to figure out what is actually going on, because if you look at l=
ine
1519 and following you'll see exactly where the RTCM2/RTCM3 case is handl=
ed
*inside the loop this test is terminating*.  Your patch should, according=
ly
have made things worse.  We need to understand why it didn't and incorpor=
ate
that understanding in the eventual fix.=20
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu Apr 12 11:12:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SILgn-0004yu-HB
	for mharc-gpsd-dev@gnu.org; Thu, 12 Apr 2012 11:12:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37128)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SILgk-0004yh-GI
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 11:11:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SILgd-0004Bq-4o
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 11:11:58 -0400
Received: from lmv.inov.pt ([146.193.64.2]:34654)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SILgc-0004BV-Q1
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 11:11:51 -0400
Received: from [10.154.0.246] (gtout.inov.pt [146.193.64.254])
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q3CEuCc2012499;
	Thu, 12 Apr 2012 15:56:12 +0100
Message-ID: <4F86ED15.3050803@inov.pt>
Date: Thu, 12 Apr 2012 15:56:21 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4F82B479.9010704@inov.pt> <20120412143619.GB22975@thyrsus.com>
In-Reply-To: <20120412143619.GB22975@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Thu, 12 Apr 2012 15:56:12 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id
	q3CEuCc2012499
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] RTCM relaying problem
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, 12 Apr 2012 15:12:00 -0000

On 12-04-2012 15:36, Eric S. Raymond wrote:
> Jos=E9 Miguel Gon=E7alves<jose.goncalves@inov.pt>:
>> Working with a RTCM caster I've noticed that not all RTCM packets
>> that gpsd received were relayed to my GPS receiver, what caused DGPS
>> corrections to be intermittently applied or not applied at all. To
>> fix this I needed to apply the following patch to avoid RTCM packet
>> overlapping:
>>
>>
>> diff --git a/gpsd.c b/gpsd.c
>> index d8f229b..abdaca1 100644
>> --- a/gpsd.c
>> +++ b/gpsd.c
>> @@ -1422,7 +1422,7 @@ static void consume_packets(struct
>> gps_device_t *device)
>>       }
>>   #endif /* NETFEED_ENABLE */
>>
>> -    for (fragments =3D 0; ; fragments++) {
>> +    for (fragments =3D 0; (changed&  (RTCM2_SET | RTCM3_SET)) =3D=3D =
0;
>> fragments++) {
>>          changed =3D gpsd_poll(device);
>>
>>          if (changed =3D=3D ERROR_SET) {
> This code is not correct.  The variable 'changed' is auto and not initi=
alized,
> which means random garbage on the stack could cause the loop to fail be=
fore
> it is ever set.
>
> But simply patching in an initialization wouldn't be the right thing he=
re.
> We need to figure out what is actually going on, because if you look at=
 line
> 1519 and following you'll see exactly where the RTCM2/RTCM3 case is han=
dled
> *inside the loop this test is terminating*.  Your patch should, accordi=
ngly
> have made things worse.  We need to understand why it didn't and incorp=
orate
> that understanding in the eventual fix.

You are right about the initialization... my bad.

What I have observed is that the Ntrip caster sends a batch of packets in=
 a row=20
and some of these are overwritten in the gpsd buffering if I don't break =
the=20
consume loop.
In line 1519 you only store the RTCM packet, you don't relay it to the GP=
S=20
receiver. The relay is done in line 2316, which is not reached for every =
RTCM=20
packet received if we don't break the loop.
If you need I can send you additional logs of this problem.

Regards,
Jos=E9 Gon=E7alves



From MAILER-DAEMON Thu Apr 12 12:00:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIMRM-0004l8-Q8
	for mharc-gpsd-dev@gnu.org; Thu, 12 Apr 2012 12:00:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42039)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIMRG-0004V3-77
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 12:00:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIMRD-0001lt-TH
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 12:00:01 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:39456 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIMRD-0001la-O6
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 11:59:59 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id C34F742E29; Thu, 12 Apr 2012 11:59:43 -0400 (EDT)
Date: Thu, 12 Apr 2012 11:59:43 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120412155943.GA23555@thyrsus.com>
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt> <20120405144300.GA26730@thyrsus.com>
	<4F7DB3EE.7040300@inov.pt> <20120405173359.GA3341@thyrsus.com>
	<4F7DDDF5.5090802@inov.pt> <20120405182841.GA3690@thyrsus.com>
	<4F83112A.5060700@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F83112A.5060700@inov.pt>
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] [PATCH] Fix on NMEA driver 2D mode
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, 12 Apr 2012 16:00:07 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> The problem does not occur with the full set of NMEA messages.
> Moreover, it does not happen if I add the GLL message to the set of
> messages that the device sends.

Good.
=20
> A device that behaves like you describe is not really following the
> standard. I understand that you want to support the biggest set of
> receivers that you can, but I think that you should privilege the
> ones that behave correctly.

Sadly, attempting that would be a disaster. The NMEA standard is
proprietary and complex; additionally, while I've never seen it, I
have good reason to believe that it is vague about edge cases and
exceptional conditions.  Thus, "behave correctly" is not necessarily
well-defined even if one can see NMEA 0813 - and I think mamy GPS
implementors never have seen it.  Instead they emulate the behaviors they=
've
seen in other devices, along with the mutations that arose during=20
previous folk transmission.

Under these circumstances, you basically need to code to cope with maximu=
m=20
perversity in what comes up the pipe.

What's your expected gain from reducing the sentence set?  You haven't
given me a good reason to support that yet at the cost of=20
reduced bulletproofing, but perhaps there is one.

> >>I think a better approach (that I've used in the past for software
> >>that I implemented for my company) is to extract only the values
> >>explicitly set by the NMEA messages and detect the time interval
> >>between NMEA batch of messages, using that interval to assemble and
> >>compute (if possible) values that were not explicitly set in the
> >>messages that the receiver provided.
> >
> >That...sounds like the way the NMEA driver actually works. :-)
> >
> >You might want to take a closer look at the cycle-detection logic.
>=20
> I don't fully understand the logic behind gpsd cycle detection, but
> the behaviour of the gpsd output is not the one that I would expect
> if it followed the logic that I described. Exemplifying with an
> extract of gpspipe_patch.log, I would expect that the output of
> gpspipe instead of this:

Ah, I think I understand your confusion.=20

Timestamped sentences are aggregated into a composite report shipped
only on end of cycle, with values filled in as you describe.

But there are some un-timestamped sentences such as GSV groups which
are not treated as part of the regular cycle, with reports shipped
immediately.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Thu Apr 12 12:27:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIMsA-0006ch-I7
	for mharc-gpsd-dev@gnu.org; Thu, 12 Apr 2012 12:27:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42027)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SIMs3-0006bb-Uc
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 12:27:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SIMs1-0001ks-8v
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 12:27:43 -0400
Received: from lmv.inov.pt ([146.193.64.2]:41189)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SIMs0-0001kg-UZ
	for gpsd-dev@nongnu.org; Thu, 12 Apr 2012 12:27:41 -0400
Received: from [10.154.0.246] (gtout.inov.pt [146.193.64.254])
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q3CGRK4U010748;
	Thu, 12 Apr 2012 17:27:21 +0100
Message-ID: <4F870272.2000709@inov.pt>
Date: Thu, 12 Apr 2012 17:27:30 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: esr@thyrsus.com
References: <4F6A20C2.3090908@inov.pt> <20120321221232.GA22792@thyrsus.com>
	<4F6B2E91.3060507@inov.pt> <20120405144300.GA26730@thyrsus.com>
	<4F7DB3EE.7040300@inov.pt> <20120405173359.GA3341@thyrsus.com>
	<4F7DDDF5.5090802@inov.pt> <20120405182841.GA3690@thyrsus.com>
	<4F83112A.5060700@inov.pt> <20120412155943.GA23555@thyrsus.com>
In-Reply-To: <20120412155943.GA23555@thyrsus.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Thu, 12 Apr 2012 17:27:21 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id
	q3CGRK4U010748
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] [PATCH] Fix on NMEA driver 2D mode
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, 12 Apr 2012 16:27:49 -0000

On 12-04-2012 16:59, Eric S. Raymond wrote:
> Jos=E9 Miguel Gon=E7alves<jose.goncalves@inov.pt>:
>> The problem does not occur with the full set of NMEA messages.
>> Moreover, it does not happen if I add the GLL message to the set of
>> messages that the device sends.
> Good.
>
>> A device that behaves like you describe is not really following the
>> standard. I understand that you want to support the biggest set of
>> receivers that you can, but I think that you should privilege the
>> ones that behave correctly.
> Sadly, attempting that would be a disaster. The NMEA standard is
> proprietary and complex; additionally, while I've never seen it, I
> have good reason to believe that it is vague about edge cases and
> exceptional conditions.  Thus, "behave correctly" is not necessarily
> well-defined even if one can see NMEA 0813 - and I think mamy GPS
> implementors never have seen it.  Instead they emulate the behaviors th=
ey've
> seen in other devices, along with the mutations that arose during
> previous folk transmission.

My company has a copy of the standard and I don't think it's vague, at le=
ast in=20
the point we are discussing. But I agree with you that, because of its pr=
oprietary=20
nature, many (if not the majority) of the implementations were made witho=
ut=20
reading the standard, with the implied problems of that.

>
> Under these circumstances, you basically need to code to cope with maxi=
mum
> perversity in what comes up the pipe.
>
> What's your expected gain from reducing the sentence set?  You haven't
> given me a good reason to support that yet at the cost of
> reduced bulletproofing, but perhaps there is one.

I mainly work with low power and low processing embeded systems, so I nor=
mally=20
need to spare every CPU resource that I can. Because of that I normally s=
et my GPS=20
receivers to output only the messages that I need to process.

I think that we can yet be on the safe side and solve this problem arouse=
d with=20
PolaRx2 if we change the test to;

((session->newdata.mode < MODE_NO_FIX) || (session->newdata.mode > MODE_2=
D))

Best regards,
Jos=E9 Gon=E7alves



From MAILER-DAEMON Fri Apr 13 00:15:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIXvR-0007K3-0Z
	for mharc-gpsd-dev@gnu.org; Fri, 13 Apr 2012 00:15:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39175)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIXvO-0007JH-DP
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:15:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIXvL-0003qU-7D
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:15:53 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:45007 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIXvL-0003qO-2y
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:15:51 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 9A61942E29; Fri, 13 Apr 2012 00:15:34 -0400 (EDT)
Date: Fri, 13 Apr 2012 00:15:34 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120413041534.GA31186@thyrsus.com>
References: <4F82B479.9010704@inov.pt> <20120412143619.GB22975@thyrsus.com>
	<4F86ED15.3050803@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F86ED15.3050803@inov.pt>
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] RTCM relaying problem
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, 13 Apr 2012 04:15:56 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> What I have observed is that the Ntrip caster sends a batch of
> packets in a row and some of these are overwritten in the gpsd
> buffering if I don't break the consume loop.
> In line 1519 you only store the RTCM packet, you don't relay it to
> the GPS receiver. The relay is done in line 2316, which is not
> reached for every RTCM packet received if we don't break the loop.
> If you need I can send you additional logs of this problem.

Not necessary - now that you've pointed out the problem I see the failure
mode.  I've changed the code so the RTCM packets are relayed immediately=20
rather than being buffered and shipped later. =20

Please experiment with git head and let me know if the problem is fixed.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Fri Apr 13 00:40:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIYJI-0000ZE-O2
	for mharc-gpsd-dev@gnu.org; Fri, 13 Apr 2012 00:40:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46425)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIYJF-0000XQ-JJ
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:40:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIYJD-0001UC-7y
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:40:33 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:45065 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIYJD-0001U3-3i
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:40:31 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 6C30B42E29; Fri, 13 Apr 2012 00:40:14 -0400 (EDT)
Date: Fri, 13 Apr 2012 00:40:14 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120413044014.GB31242@thyrsus.com>
References: <20120321221232.GA22792@thyrsus.com> <4F6B2E91.3060507@inov.pt>
	<20120405144300.GA26730@thyrsus.com> <4F7DB3EE.7040300@inov.pt>
	<20120405173359.GA3341@thyrsus.com> <4F7DDDF5.5090802@inov.pt>
	<20120405182841.GA3690@thyrsus.com> <4F83112A.5060700@inov.pt>
	<20120412155943.GA23555@thyrsus.com> <4F870272.2000709@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F870272.2000709@inov.pt>
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] [PATCH] Fix on NMEA driver 2D mode
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, 13 Apr 2012 04:40:35 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> >What's your expected gain from reducing the sentence set?  You haven't
> >given me a good reason to support that yet at the cost of
> >reduced bulletproofing, but perhaps there is one.
>=20
> I mainly work with low power and low processing embeded systems, so
> I normally need to spare every CPU resource that I can. Because of
> that I normally set my GPS receivers to output only the messages
> that I need to process.

I thought this was going to be the answer.  And what I tell you in
reply is: don't worry about this.  Even on low-power ARMs, the
processor utilization of the whole serial-device-to-GPSD-to-application=20
pipeline is so low that it doesn't break the noise floor of the
processor-usage profiling.  This has been measured - and it was
negligible even before we went to pselect and got rid of the timeouts.

The overriding fact is that gpsd spends almost all its time in a
select wait.  The bandwidth utilization of the NMEA reports is so
small that at 9600bps and up you can't win anything measurable by
pruning sentences.

I understand the perfectionist drive to reduce traffic to a minimum
but in this case it doesn't gain you anything you will ever be
able to measure.

> I think that we can yet be on the safe side and solve this problem
> aroused with PolaRx2 if we change the test to;
>=20
> ((session->newdata.mode < MODE_NO_FIX) || (session->newdata.mode > MODE=
_2D))

I'll look at it.  I might make such a change if only to bulletproof the=20
code against obessive microtweakers. :-)  But not until after 3.5; I'm
very wary of potentially destabilizing code changes in that driver
especially.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Fri Apr 13 00:51:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SIYTN-0001Xp-RC
	for mharc-gpsd-dev@gnu.org; Fri, 13 Apr 2012 00:51:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55344)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIYTK-0001X9-DP
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:50:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SIYTI-0001BM-CO
	for gpsd-dev@nongnu.org; Fri, 13 Apr 2012 00:50:57 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:45174 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1SIYTI-0001BF-7v; Fri, 13 Apr 2012 00:50:56 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 9A6FE42E29; Fri, 13 Apr 2012 00:50:38 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org
Message-Id: <20120413045038.9A6FE42E29@snark.thyrsus.com>
Date: Fri, 13 Apr 2012 00:50:38 -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.5 release is waiting on one test.
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, 13 Apr 2012 04:51:00 -0000

I've cleared all the bug reports I had pending for 3.5, except I still
don't have the automated procedure for updating Savannah webspace.
I'm not going to hold release on that.

Nothing impedes release now except that I'm hoping Jose Miguel Gonsalves 
will confirm my fix for his RTCM relaying bug.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

There's a tendency today to absolve individuals of
moral responsibility and treat them as victims of
social circumstance.  You buy that, you pay with your
soul.
		-Tom Robbins, Still Life with Woodpecker


From MAILER-DAEMON Sat Apr 14 07:14:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJ0vx-0003YG-4c
	for mharc-gpsd-dev@gnu.org; Sat, 14 Apr 2012 07:14:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57846)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SJ0vu-0003YA-Ia
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 07:14:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SJ0vs-0003Gf-Ss
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 07:14:22 -0400
Received: from lmv.inov.pt ([146.193.64.2]:38549)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SJ0vs-0003GX-Hk
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 07:14:20 -0400
Received: from [192.168.1.75] ([89.181.206.214]) (authenticated bits=0)
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q3EBE4k5015603
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <gpsd-dev@nongnu.org>; Sat, 14 Apr 2012 12:14:05 +0100
Message-ID: <4F895BFC.8010007@inov.pt>
Date: Sat, 14 Apr 2012 12:14:04 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Sat, 14 Apr 2012 12:14:05 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id
	q3EBE4k5015603
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Subject: [gpsd-dev] RTCM relaying problem
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, 14 Apr 2012 11:14:23 -0000

Eric,

You have made a mistake on your patch for this problem. Please apply this=
:

diff --git a/gpsd.c b/gpsd.c
index 4bcc5ca..93264f0 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1531,12 +1531,12 @@ static void consume_packets(struct gps_device_t=20
*device)
  /* *INDENT-OFF* */
              if (dp->device_type->rtcm_writer !=3D NULL) {
                  if (dp->device_type->rtcm_writer(dp,
-                                 (const char *)dp->packet.outbuffer,
-                                 dp->packet.outbuflen) =3D=3D 0)
+                                 (const char *)device->packet.outbuffer,
+                                 device->packet.outbuflen) =3D=3D 0)
                  gpsd_report(LOG_ERROR, "Write to RTCM sink failed\n");
                  else {
                  gpsd_report(LOG_IO, "<=3D DGPS: %zd bytes of RTCM=20
relayed.\n",
-                        dp->packet.outbuflen);
+                        device->packet.outbuflen);
                  }
              }
  /* *INDENT-ON* */

Best regards,
Jos=E9 Gon=E7alves


From MAILER-DAEMON Sat Apr 14 09:36:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJ39D-0005eO-LE
	for mharc-gpsd-dev@gnu.org; Sat, 14 Apr 2012 09:36:15 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40712)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJ39A-0005dL-34
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 09:36:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJ398-0005XC-4a
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 09:36:11 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:53444 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJ398-0005WO-0l
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 09:36:10 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id CEE96406CA; Sat, 14 Apr 2012 09:35:49 -0400 (EDT)
Date: Sat, 14 Apr 2012 09:35:49 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120414133549.GA22057@thyrsus.com>
References: <4F895BFC.8010007@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F895BFC.8010007@inov.pt>
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] RTCM relaying problem
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, 14 Apr 2012 13:36:13 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> You have made a mistake on your patch for this problem.

Ahh, yes.  Thanks for the fix.  That was the last blocker on 3.5 release.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sat Apr 14 09:50:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJ3N9-0007RH-Jf
	for mharc-gpsd-dev@gnu.org; Sat, 14 Apr 2012 09:50:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45975)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJ3N7-0007Qu-Nx
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 09:50:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJ3N6-0001Uz-1I
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 09:50:37 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:53577 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>)
	id 1SJ3N5-0001U6-TB; Sat, 14 Apr 2012 09:50:35 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 587A3406CA; Sat, 14 Apr 2012 09:50:16 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org, gpsd-users@nongnu.org,
Message-Id: <20120414135016.587A3406CA@snark.thyrsus.com>
Date: Sat, 14 Apr 2012 09:50:16 -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] GPSD 3.5 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: Sat, 14 Apr 2012 13:50:39 -0000

GPSD 3.5, with the new {PPS} clock drift message, has shipped.

My intention is for 3.6 to be a short-cycle release, shipping just in
time for the next Debian freeze.

The major planned new feature is NMEA2000 support.  I may also try to
write a client binding in go.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

As war and government prove, insanity is the most contagious of
diseases.	-- Edward Abbey


From MAILER-DAEMON Sat Apr 14 15:23:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJ8Z7-00074c-5d
	for mharc-gpsd-dev@gnu.org; Sat, 14 Apr 2012 15:23:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57961)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SJ8Z4-00074B-Hq
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 15:23:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SJ8Z2-0003N5-Na
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 15:23:18 -0400
Received: from lmv.inov.pt ([146.193.64.2]:50016)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jose.goncalves@inov.pt>) id 1SJ8Z2-0003Mk-Cv
	for gpsd-dev@nongnu.org; Sat, 14 Apr 2012 15:23:16 -0400
Received: from [192.168.1.75] (89-181-206-214.net.novis.pt [89.181.206.214])
	(authenticated bits=0)
	by lmv.inov.pt (8.13.1/8.13.1) with ESMTP id q3EJN3jP014667
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <gpsd-dev@nongnu.org>; Sat, 14 Apr 2012 20:23:03 +0100
Message-ID: <4F89CE97.2090009@inov.pt>
Date: Sat, 14 Apr 2012 20:23:03 +0100
From: =?ISO-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1
	(lmv.inov.pt [146.193.64.2]);
	Sat, 14 Apr 2012 20:23:03 +0100 (WEST)
X-INOV-EmailServer-Information: Please contact the Email service provider for
	more information
X-INOV-EmailServer: Found to be clean
X-INOV-EmailServer-From: jose.goncalves@inov.pt
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by lmv.inov.pt id
	q3EJN3jP014667
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 146.193.64.2
Subject: [gpsd-dev] Build fix for nptshm=False
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, 14 Apr 2012 19:23:19 -0000

Latest git head does not build if ntpshm=3DFalse.

This patch fixes it:

diff --git a/gpsd.h-tail b/gpsd.h-tail
index 1c51846..82385e6 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -217,12 +217,12 @@ struct gps_context_t {
      /* timekeeping */
      time_t start_time;                 /* local time of daemon startup =
*/
      int leap_seconds;                  /* Unix seconds to UTC (GPS-UTC=20
offset) */
-    int leap_notify;                   /* notification state from=20
subframe */
      unsigned short gps_week;            /* GPS week, actually 10 bits *=
/
      double gps_tow;                     /* GPS time of week, actually=20
19 bits */
      int century;                       /* for NMEA-only devices=20
without ZDA */
      int rollovers;                     /* rollovers since start of run =
*/
  #ifdef NTPSHM_ENABLE
+    int leap_notify;                   /* notification state from=20
subframe */
      bool enable_ntpshm;
      /* we need the volatile here to tell the C compiler not to
       * 'optimize' as 'dead code' the writes to SHM */
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 93cb330..efe83b9 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -103,12 +103,12 @@ void gps_context_init(struct gps_context_t *context=
)
         .fixcnt         =3D 0,
         .start_time     =3D 0,
         .leap_seconds   =3D 0,
-       .leap_notify    =3D LEAP_NOWARNING,
         .gps_week       =3D 0,
         .gps_tow        =3D 0,
         .century        =3D 0,
         .rollovers      =3D 0,
  #ifdef NTPSHM_ENABLE
+       .leap_notify    =3D LEAP_NOWARNING,
         .enable_ntpshm  =3D false,
         .shmTime        =3D {0},
         .shmTimeInuse   =3D {0},

Jos=E9 Gon=E7alves


From MAILER-DAEMON Sun Apr 15 02:17:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SJIlh-0003zA-P4
	for mharc-gpsd-dev@gnu.org; Sun, 15 Apr 2012 02:17:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59075)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJIlf-0003yV-Dp
	for gpsd-dev@nongnu.org; Sun, 15 Apr 2012 02:17:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJIlc-0003ah-PZ
	for gpsd-dev@nongnu.org; Sun, 15 Apr 2012 02:16:58 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:58336 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SJIlc-0003aR-MH
	for gpsd-dev@nongnu.org; Sun, 15 Apr 2012 02:16:56 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id E2E16406CA; Sun, 15 Apr 2012 02:16:35 -0400 (EDT)
Date: Sun, 15 Apr 2012 02:16:35 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: =?iso-8859-1?Q?Jos=E9_Miguel_Gon=E7alves?= <jose.goncalves@inov.pt>
Message-ID: <20120415061635.GA30542@thyrsus.com>
References: <4F89CE97.2090009@inov.pt>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <4F89CE97.2090009@inov.pt>
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] Build fix for nptshm=False
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, 15 Apr 2012 06:17:00 -0000

Jos=E9 Miguel Gon=E7alves <jose.goncalves@inov.pt>:
> Latest git head does not build if ntpshm=3DFalse.
>=20
> This patch fixes it:

Merged, thanks.
--=20
		<a href=3D"http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Tue Apr 17 02:32:10 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SK1xR-0007QY-W8
	for mharc-gpsd-dev@gnu.org; Tue, 17 Apr 2012 02:32:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40256)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SK1xM-0007QR-2X
	for gpsd-dev@nongnu.org; Tue, 17 Apr 2012 02:32:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SK1xG-0007Oj-PG
	for gpsd-dev@nongnu.org; Tue, 17 Apr 2012 02:32:03 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:54986 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SK1xG-0007OD-KK
	for gpsd-dev@nongnu.org; Tue, 17 Apr 2012 02:31:58 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 6129D40820; Tue, 17 Apr 2012 02:31:51 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org
Message-Id: <20120417063151.6129D40820@snark.thyrsus.com>
Date: Tue, 17 Apr 2012 02:31: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] Port problems in certain gpsd drivers
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, 17 Apr 2012 06:32:08 -0000

This mail is directed to GPSD driver maintainers.  Some of our
binary-GPS driver have port problems on certain architectures. 
I want to get this fixed for 3.6.

The drivers in question are: italk, ntrip, tsip, ublox, and rtcm2.
The architectures on which we have detected port problems are armel,
armhf, mips, powerpc, ppc64, s390, s390x, and sparc.

This is the (slightly filtered) output of a script that runs the GPSD
regression tests on all architectures.  Some duplicative portions have
been removed for clarity.

armel.log:    italk-binary.log.chk	        2012-03-05 00:12:52
armel.log:    trimble-lassen_iq-3dfix.log.chk	2012-03-05 00:13:35
armel.log:    trimble-lassen_iq.log.chk	        2012-03-05 00:13:38
armel.log:    uBlox-aek-4t.log.chk	        2012-03-05 00:13:40
armel.log:    uBlox-lea-4t.log.chk	        2012-03-05 00:13:45
armhf.log:    italk-binary.log.chk	        2012-03-05 00:12:52
armhf.log:    trimble-lassen_iq-3dfix.log.chk	2012-03-05 00:13:35
armhf.log:    trimble-lassen_iq.log.chk	        2012-03-05 00:13:38
armhf.log:    uBlox-aek-4t.log.chk	        2012-03-05 00:13:40
armhf.log:    uBlox-lea-4t.log.chk	        2012-03-05 00:13:45
mips.log:     naujoks-ntrip.log.chk	        2012-03-05 00:13:03
mips.log:     naujoks-rtcm2.log.chk	        2012-03-05 00:13:04
mips.log:     rtcm2.log.chk	                2012-03-05 00:13:17
powerpc.log:  italk-binary.log.chk	        2012-03-05 00:12:52
powerpc.log:  trimble-lassen_iq-3dfix.log.chk   2012-03-05 00:13:35
powerpc.log:  trimble-lassen_iq.log.chk         2012-03-05 00:13:38
powerpc.log:  uBlox-aek-4t.log.chk	        2012-03-05 00:13:40
powerpc.log:  uBlox-lea-4t.log.chk	        2012-03-05 00:13:45
ppc64.log:    italk-binary.log.chk	        2012-03-05 00:12:52
ppc64.log:    trimble-lassen_iq-3dfix.log.chk	2012-03-05 00:13:35
ppc64.log:    trimble-lassen_iq.log.chk	        2012-03-05 00:13:38
ppc64.log:    uBlox-aek-4t.log.chk	        2012-03-05 00:13:40
ppc64.log:    uBlox-lea-4t.log.chk	        2012-03-05 00:13:45
s390.log:     italk-binary.log.chk	        2012-03-05 00:12:52
s390.log:     naujoks-ntrip.log.chk	        2012-03-05 00:13:03
s390.log:     naujoks-rtcm2.log.chk             2012-03-05 00:13:04
s390.log:     rtcm2.log.chk                     2012-03-05 00:13:17
s390.log:     trimble-lassen_iq-3dfix.log.chk   2012-03-05 00:13:35
s390.log:     trimble-lassen_iq.log.chk         2012-03-05 00:13:38
s390.log:     uBlox-aek-4t.log.chk              2012-03-05 00:13:40
s390.log:     uBlox-lea-4t.log.chk              2012-03-05 00:13:45
s390x.log:    italk-binary.log.chk              2012-03-05 00:12:52
s390x.log:    naujoks-ntrip.log.chk             2012-03-05 00:13:03
s390x.log:    naujoks-rtcm2.log.chk             2012-03-05 00:13:04
s390x.log:    rtcm2.log.chk                     2012-03-05 00:13:17
s390x.log:    trimble-lassen_iq-3dfix.log.chk   2012-03-05 00:13:35
s390x.log:    trimble-lassen_iq.log.chk         2012-03-05 00:13:38
s390x.log:    uBlox-aek-4t.log.chk              2012-03-05 00:13:40
s390x.log:    uBlox-lea-4t.log.chk              2012-03-05 00:13:45
sparc.log:    naujoks-ntrip.log.chk             2012-03-05 00:13:03
sparc.log:    naujoks-rtcm2.log.chk             2012-03-05 00:13:04
sparc.log:    rtcm2.log.chk                     2012-03-05 00:13:17 

This table has interesting regularities.

Note, first, the absence of any regression failures for the following
drivers: aivdm, evermore, garmin, garmin_txt, geostar, navcom,
nmea183, oncore, rtcm3, sirf, superstar2, and zodiac.  I believe this
tells us that the bits.h macros are sound and our general approach to
driver portability is successful.

Also note that there's a set of 4 test files that cause regression
failures for every architecture in the problem set.

I think what we're seeing here is the result of a small number of
point bugs in the driver coding (for italk, ntrip, tsip, ublox, and
rtcm2) that are triggered by changes in endianness or word length.

If you are responsible for one of these drivers, please audit for
unclean code.  Please communicate with Bernd Zeimetz about how to test
your changes on the Debian porterboxes.  
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

The right of self-defense is the first law of nature: in most
governments it has been the study of rulers to confine this right
within the narrowest limits possible.  Wherever standing armies
are kept up, and when the right of the people to keep and bear
arms is, under any color or pretext whatsoever, prohibited,
liberty, if not already annihilated, is on the brink of
destruction." 
	-- Henry St. George Tucker (in Blackstone's Commentaries)


From MAILER-DAEMON Tue Apr 17 07:53:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SK6yE-0003mJ-82
	for mharc-gpsd-dev@gnu.org; Tue, 17 Apr 2012 07:53:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33764)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SK6y7-0003m4-7c
	for gpsd-dev@nongnu.org; Tue, 17 Apr 2012 07:53:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SK6y1-00036s-35
	for gpsd-dev@nongnu.org; Tue, 17 Apr 2012 07:53:10 -0400
Received: from mail.recluse.de ([217.196.146.213]:54062)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SK6y0-00035j-Sg
	for gpsd-dev@nongnu.org; Tue, 17 Apr 2012 07:53:05 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 1D8D327158
	for <gpsd-dev@nongnu.org>; Tue, 17 Apr 2012 13:53:02 +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 ByvDxmFDGzZj for <gpsd-dev@nongnu.org>;
	Tue, 17 Apr 2012 13:52:57 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id 3858127157
	for <gpsd-dev@nongnu.org>; Tue, 17 Apr 2012 13:52:57 +0200 (CEST)
Message-ID: <4F8D5997.4000607@bzed.de>
Date: Tue, 17 Apr 2012 13:52:55 +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: <20120417063151.6129D40820@snark.thyrsus.com>
In-Reply-To: <20120417063151.6129D40820@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] Port problems in certain gpsd drivers
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, 17 Apr 2012 11:53:17 -0000

Hi,

On 04/17/2012 08:31 AM, Eric S. Raymond wrote:
> I think what we're seeing here is the result of a small number of
> point bugs in the driver coding (for italk, ntrip, tsip, ublox, and
> rtcm2) that are triggered by changes in endianness or word length.

as discussed on irc I don't think that we have endian issues here as the
drivers which fail on armel (little endian arm eabi) also fail on big
endian architectures.
One issue I could imagine is that running a 32bit environment with a
64bit kernel could be an issue. If that is the case it might even be
reproucible on a normal x86_64 box running a 64bit kernel and 32bit
userland.

> If you are responsible for one of these drivers, please audit for
> unclean code.  Please communicate with Bernd Zeimetz about how to test
> your changes on the Debian porterboxes.  

As getting logins on our porterboxes is a bit complicated I would prefer
patches or even better git repositories I can pull from and even better
a short script which builds and tests what you need and I'll send you
the result.

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 Fri Apr 20 06:34:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLBAp-00052k-F4
	for mharc-gpsd-dev@gnu.org; Fri, 20 Apr 2012 06:34:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50065)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLBAj-0004hl-Cz
	for gpsd-dev@nongnu.org; Fri, 20 Apr 2012 06:34:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLBAd-0003wz-Lb
	for gpsd-dev@nongnu.org; Fri, 20 Apr 2012 06:34:36 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:51753 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLBAd-0003wk-HK
	for gpsd-dev@nongnu.org; Fri, 20 Apr 2012 06:34:31 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id A77F040820; Fri, 20 Apr 2012 06:34:18 -0400 (EDT)
From: esr@thyrsus.com (Eric S. Raymond)
To: gpsd-dev@nongnu.org
Message-Id: <20120420103418.A77F040820@snark.thyrsus.com>
Date: Fri, 20 Apr 2012 06:34:18 -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] 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: Fri, 20 Apr 2012 10:34:39 -0000

Hard confirmation will await the scheduled buildd run of GPSD
regression tests on all porterboxes, but I believe from results on I
see on an s390x machine that about half of the port problems I listed
on 17 April are now solved.

It looks like all the regression failures on the italk-binary,
trimble, and uBlox tests were due to a point bug in a very obscure
place; the initializer for our internal geoid separation table was,
inexplicably, declared char even though it contained signed integer
values.  I suspect that the architectures on which these tests failed
were those on which char is unsigned.

It appears that all of the remaining port failures are due to some
strange type punning in the RTCM2 driver.  That module (with the ISGPS
code it uses) is the blackest magic in the GPSD codebase; I
successfully modified it from contributed code, but I don't fully
understand it.

I need help from some very experienced C programmer with lots of
experience in weird bit-bashing and troubleshooting endianness
problems, to check my assumptions and help me fix this. If you're such
a person and up for a challenge, read isgps.c and driver_rtcm2.c and
find me on the #gpsd channel of freenode.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

"Gun control" is a job-safety program for criminals.


From MAILER-DAEMON Fri Apr 20 15:49:09 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLJpN-0005S2-7O
	for mharc-gpsd-dev@gnu.org; Fri, 20 Apr 2012 15:49:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51730)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SLJpJ-0005Ri-R3
	for gpsd-dev@nongnu.org; Fri, 20 Apr 2012 15:49:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SLJpH-0007ze-NZ
	for gpsd-dev@nongnu.org; Fri, 20 Apr 2012 15:49:05 -0400
Received: from mail.recluse.de ([217.196.146.213]:53576)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SLJpH-0007zA-H0
	for gpsd-dev@nongnu.org; Fri, 20 Apr 2012 15:49:03 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 10AA52400C
	for <gpsd-dev@nongnu.org>; Fri, 20 Apr 2012 21:49:01 +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 SuH6kUZbe-rr for <gpsd-dev@nongnu.org>;
	Fri, 20 Apr 2012 21:48:59 +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 6652823FD8
	for <gpsd-dev@nongnu.org>; Fri, 20 Apr 2012 21:48:59 +0200 (CEST)
Message-ID: <4F91BDAA.2070101@bzed.de>
Date: Fri, 20 Apr 2012 21:48:58 +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: <20120420103418.A77F040820@snark.thyrsus.com>
In-Reply-To: <20120420103418.A77F040820@snark.thyrsus.com>
X-Enigmail-Version: 1.4
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
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: Fri, 20 Apr 2012 19:49:07 -0000

On 04/20/2012 12:34 PM, Eric S. Raymond wrote:
> Hard confirmation will await the scheduled buildd run of GPSD
> regression tests on all porterboxes, but I believe from results on I
> see on an s390x machine that about half of the port problems I listed
> on 17 April are now solved.
> 
> It looks like all the regression failures on the italk-binary,
> trimble, and uBlox tests were due to a point bug in a very obscure
> place; the initializer for our internal geoid separation table was,
> inexplicably, declared char even though it contained signed integer
> values.  I suspect that the architectures on which these tests failed
> were those on which char is unsigned.

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.

gpsd_3.5-4_s390.log:--- test/daemon/naujoks-ntrip.log.chk	2012-03-05
00:13:03.000000000 +0000
gpsd_3.5-4_s390.log:--- test/daemon/naujoks-rtcm2.log.chk	2012-03-05
00:13:04.000000000 +0000
gpsd_3.5-4_s390.log:--- test/daemon/rtcm2.log.chk	2012-03-05 00:13:17.000000000
+0000
gpsd_3.5-4_s390x.log:--- test/daemon/naujoks-ntrip.log.chk	2012-03-05
00:13:03.000000000 +0000
gpsd_3.5-4_s390x.log:--- test/daemon/naujoks-rtcm2.log.chk	2012-03-05
00:13:04.000000000 +0000
gpsd_3.5-4_s390x.log:--- test/daemon/rtcm2.log.chk	2012-03-05 00:13:17.000000000
+0000
gpsd_3.5-4_sparc.log:--- test/daemon/naujoks-ntrip.log.chk	2012-03-05
00:13:03.000000000 +0000
gpsd_3.5-4_sparc.log:--- test/daemon/naujoks-rtcm2.log.chk	2012-03-05
00:13:04.000000000 +0000
gpsd_3.5-4_sparc.log:--- test/daemon/rtcm2.log.chk	2012-03-05 00:13:17.000000000
+0000


> 
> It appears that all of the remaining port failures are due to some
> strange type punning in the RTCM2 driver.  That module (with the ISGPS
> code it uses) is the blackest magic in the GPSD codebase; I
> successfully modified it from contributed code, but I don't fully
> understand it.
> 
> I need help from some very experienced C programmer with lots of
> experience in weird bit-bashing and troubleshooting endianness
> problems, to check my assumptions and help me fix this. If you're such
> a person and up for a challenge, read isgps.c and driver_rtcm2.c and
> find me on the #gpsd channel of freenode.


-- 
 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 Sat Apr 21 01:43:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLT6N-0005JF-6f
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 01:43:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56707)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLT6I-0005I6-27
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 01:43:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLT6D-0000To-DG
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 01:43:13 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:57215 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLT6D-0000Th-97
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 01:43:09 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 5BA9740820; Sat, 21 Apr 2012 01:42:55 -0400 (EDT)
Date: Sat, 21 Apr 2012 01:42:55 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Bernd Zeimetz <bernd@bzed.de>
Message-ID: <20120421054255.GA6607@thyrsus.com>
References: <20120420103418.A77F040820@snark.thyrsus.com>
	<4F91BDAA.2070101@bzed.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F91BDAA.2070101@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] 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: Sat, 21 Apr 2012 05:43:18 -0000

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.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sat Apr 21 09:20:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLaF6-0004xR-69
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 09:20:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60727)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg6-0005z0-1K
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007qC-DE
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:29 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40788)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007lQ-6m
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:25 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 6A4115E8905;
	Sat, 21 Apr 2012 11:36:00 +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 Lr8DD3uN8XKn; Sat, 21 Apr 2012 11:35:59 +0100 (IST)
Received: from localhost (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id D372D5E895F;
	Sat, 21 Apr 2012 11:35:58 +0100 (IST)
From: chris@techworks.ie
To: gpsd-dev@nongnu.org
Date: Sat, 21 Apr 2012 10:34:17 +0100
Message-Id: <1335000862-15312-2-git-send-email-chris@techworks.ie>
X-Mailer: git-send-email 1.7.0.4
In-Reply-To: <1335000862-15312-1-git-send-email-chris@techworks.ie>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
X-Mailman-Approved-At: Sat, 21 Apr 2012 09:20:44 -0400
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [PATCH 1/6] Add missing attitude field initialisation in
	NMEA TNTHTM
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, 21 Apr 2012 10:36:34 -0000

From: Christian Gagneraud <chgans@gna.org>

Depth and Temperature are not initialised, causing the JSON output to
report a zero value instead of not reporting them at all
---
 driver_nmea0183.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index e66c4c3..c269180 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -915,6 +915,8 @@ static gps_mask_t processTNTHTM(int c UNUSED, char *field[],
     session->gpsdata.attitude.acc_z = NAN;
     session->gpsdata.attitude.gyro_x = NAN;
     session->gpsdata.attitude.gyro_y = NAN;
+    session->gpsdata.attitude.temp = NAN;
+    session->gpsdata.attitude.depth = NAN;
     mask |= (ATTITUDE_SET);
 
     gpsd_report(LOG_RAW, "time %.3f, heading %lf (%c).\n",
-- 
1.7.0.4



From MAILER-DAEMON Sat Apr 21 09:20:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLaF6-0004yr-Nc
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 09:20:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60739)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg7-0005z1-Ve
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007qK-Du
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:31 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40784)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007lK-72
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:25 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 21C115E8A99;
	Sat, 21 Apr 2012 11:36:00 +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 qIl4CP8OFVpD; Sat, 21 Apr 2012 11:35:59 +0100 (IST)
Received: from localhost (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id BEACD5E8905;
	Sat, 21 Apr 2012 11:35:59 +0100 (IST)
From: chris@techworks.ie
To: gpsd-dev@nongnu.org
Date: Sat, 21 Apr 2012 10:34:18 +0100
Message-Id: <1335000862-15312-3-git-send-email-chris@techworks.ie>
X-Mailer: git-send-email 1.7.0.4
In-Reply-To: <1335000862-15312-1-git-send-email-chris@techworks.ie>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
X-Mailman-Approved-At: Sat, 21 Apr 2012 09:20:44 -0400
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [PATCH 2/6] Add new NMEA talker ID (WI, HC and TI)
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, 21 Apr 2012 10:36:35 -0000

From: Christian Gagneraud <chgans@gna.org>

WI: Weather instrument
HC: Heading, magnetic compass
TI: Turn rate indicator

Asssociated NMEA sentences:
WIMDA, WIMWD, WIMWV, WIVWR, WIVWT, TIROT, HCHDG, HCHDT
---
 packet.c        |   27 +++++++++++++++++++++++++++
 packet_states.h |    3 +++
 2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/packet.c b/packet.c
index 938549d..b025cc8 100644
--- a/packet.c
+++ b/packet.c
@@ -95,6 +95,9 @@ PERMISSIONS
  *      GN -- Mixed GPS and GLONASS data, according to IEIC 61162-1
  *      II -- Integrated Instrumentation (Raytheon's SeaTalk system).
  *      IN -- Integrated Navigation (Garmin uses this).
+ *      WI -- Weather instrument (Airmar PB200, Radio Ocean ROWIND, Vaisala WXT520).
+ *      HC -- Heading/compass (Airmar PB200).
+ *      TI -- Turn indicator (Airmar PB200).
  *      EC -- Electronic Chart Display & Information System (ECDIS)
  *      SD -- Depth Sounder
  *      P  -- Vendor-specific sentence
@@ -324,6 +327,12 @@ static void nextstate(struct gps_packet_t *lexer, unsigned char c)
 	    lexer->state = NMEA_VENDOR_LEAD;
 	else if (c == 'I')	/* Seatalk */
 	    lexer->state = SEATALK_LEAD_1;
+	else if (c == 'W')	/* Weather instrument */
+	    lexer->state = WEATHER_LEAD_1;
+	else if (c == 'H')	/* Heading/compass */
+	    lexer->state = HEADCOMP_LEAD_1;
+	else if (c == 'T')	/* Turn indicator */
+	    lexer->state = TURN_LEAD_1;
 	else if (c == 'A')	/* SiRF Ack */
 	    lexer->state = SIRF_ACK_LEAD_1;
 	else if (c == 'E')	/* ECDIS */
@@ -500,6 +509,24 @@ static void nextstate(struct gps_packet_t *lexer, unsigned char c)
 	else
 	    lexer->state = GROUND_STATE;
 	break;
+    case WEATHER_LEAD_1:
+	if (c == 'I')		/* Weather instrument leader accepted */
+	    lexer->state = NMEA_LEADER_END;
+	else
+	    lexer->state = GROUND_STATE;
+	break;
+    case HEADCOMP_LEAD_1:
+	if (c == 'C')		/* Heading/compass leader accepted */
+	    lexer->state = NMEA_LEADER_END;
+	else
+	    lexer->state = GROUND_STATE;
+	break;
+    case TURN_LEAD_1:
+	if (c == 'I')		/* Turn indicator leader accepted */
+	    lexer->state = NMEA_LEADER_END;
+	else
+	    lexer->state = GROUND_STATE;
+	break;
     case ECDIS_LEAD_1:
 	if (c == 'C')		/* ECDIS leader accepted */
 	    lexer->state = NMEA_LEADER_END;
diff --git a/packet_states.h b/packet_states.h
index 79a134e..454f815 100644
--- a/packet_states.h
+++ b/packet_states.h
@@ -25,6 +25,9 @@
    AIS_LEAD_2,		/* seen I of possible marine AIS message */
 
    SEATALK_LEAD_1,	/* SeaTalk/Garmin packet leader 'I' */
+   WEATHER_LEAD_1,	/* Weather instrument packet leader 'W' */
+   HEADCOMP_LEAD_1,	/* Heading/compass packet leader 'H' */
+   TURN_LEAD_1,		/* Turn indicator packet leader 'T' */
    ECDIS_LEAD_1,	/* ECDIS packet leader 'E' */
    SOUNDER_LEAD_1,	/* Depth sounder packet leader 'S' */
 #endif /* NMEA_ENABLE */
-- 
1.7.0.4



From MAILER-DAEMON Sat Apr 21 09:20:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLaF7-00051j-At
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 09:20:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60741)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg8-0005z2-5N
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg2-0007qp-Mp
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:31 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40808)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg2-0007qX-D3
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:26 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id D546E5E8AB8;
	Sat, 21 Apr 2012 11:36: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 Qb9zVgJg1ahE; Sat, 21 Apr 2012 11:36:02 +0100 (IST)
Received: from localhost (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 2042F5E8AAB;
	Sat, 21 Apr 2012 11:36:02 +0100 (IST)
From: chris@techworks.ie
To: gpsd-dev@nongnu.org
Date: Sat, 21 Apr 2012 10:34:21 +0100
Message-Id: <1335000862-15312-6-git-send-email-chris@techworks.ie>
X-Mailer: git-send-email 1.7.0.4
In-Reply-To: <1335000862-15312-1-git-send-email-chris@techworks.ie>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
X-Mailman-Approved-At: Sat, 21 Apr 2012 09:20:44 -0400
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [PATCH 5/6] Add a wind data structure
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, 21 Apr 2012 10:36:36 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 gps.h         |   23 +++++++++++++++++++++--
 gps_json.h    |    1 +
 gpsd.c        |    2 +-
 gpsd_json.c   |   44 ++++++++++++++++++++++++++++++++++++++++++++
 libgps_json.c |   36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 103 insertions(+), 3 deletions(-)

diff --git a/gps.h b/gps.h
index d4813f5..47d4fe9 100644
--- a/gps.h
+++ b/gps.h
@@ -1526,6 +1526,23 @@ struct attitude_t {
     char yaw_st;
 };
 
+struct wind_t {
+    int speed_type;
+#define WIND_SPEED_UNKNOWN 0
+#define WIND_SPEED_VESSEL  1 /* Speed is relative to the (moving) vessel */
+#define WIND_SPEED_WATER   2 /* Speed is relative to the (moving) water */
+#define WIND_SPEED_GROUND  3 /* Speed is relative to the (fixed) ground */
+    double speed;            /* Meter per second */
+    int dir_type;
+#define WIND_DIR_UNKNOWN   0
+#define WIND_DIR_NORTH     1 /* dir is relative to true north, dir_mag to mag north */
+#define WIND_DIR_HEADING   2 /* dir is relative to the vessel's heading, dir_mag not used */
+#define WIND_DIR_VESSEL    3 /* dir is relative to the vessel's bow/centerline, dir_mag not used */
+#define WIND_DIR_SENSOR    4 /* dir is relative to the sensor, dir_mag not used */
+    double dir;              /* Degree */
+    double dir_mag;          /* Degree */
+};
+
 struct dop_t {
     /* Dilution of precision factors */
     double xdop, ydop, pdop, hdop, vdop, tdop, gdop;
@@ -1642,7 +1659,8 @@ struct gps_data_t {
 #define POLICY_SET	(1llu<<29)
 #define LOGMESSAGE_SET	(1llu<<30)
 #define ERROR_SET	(1llu<<31)
-#define SET_HIGH_BIT	31
+#define WIND_SET	(1llu<<32)
+#define SET_HIGH_BIT	32
     timestamp_t online;		/* NZ if GPS is on line, 0 if not.
 				 *
 				 * Note: gpsd clears this time when sentences
@@ -1693,7 +1711,7 @@ struct gps_data_t {
     char tag[MAXTAGLEN+1];	/* tag of last sentence processed */
 
     /* pack things never reported together to reduce structure size */ 
-#define UNION_SET	(RTCM2_SET|RTCM3_SET|SUBFRAME_SET|AIS_SET|ATTITUDE_SET|VERSION_SET|DEVICELIST_SET|LOGMESSAGE_SET|ERROR_SET|GST_SET|VERSION_SET)
+#define UNION_SET	(RTCM2_SET|RTCM3_SET|SUBFRAME_SET|AIS_SET|ATTITUDE_SET|VERSION_SET|DEVICELIST_SET|LOGMESSAGE_SET|ERROR_SET|GST_SET|VERSION_SET|WIND_SET)
     union {
 	/* unusual forms of sensor data that might come up the pipe */ 
 	struct rtcm2_t	rtcm2;
@@ -1701,6 +1719,7 @@ struct gps_data_t {
 	struct subframe_t subframe;
 	struct ais_t ais;
 	struct attitude_t attitude;
+        struct wind_t wind;
 	struct rawdata_t raw;
 	struct gst_t gst;
 	/* "artificial" structures for various protocol responses */
diff --git a/gps_json.h b/gps_json.h
index 1da124a..e3d13c4 100644
--- a/gps_json.h
+++ b/gps_json.h
@@ -23,6 +23,7 @@ void json_tpv_dump(const struct gps_device_t *,
 void json_noise_dump(const struct gps_data_t *, /*@out@*/char *, size_t);
 void json_sky_dump(const struct gps_data_t *, /*@out@*/char *, size_t);
 void json_att_dump(const struct gps_data_t *, /*@out@*/char *, size_t);
+void json_wind_dump(const struct gps_data_t *, /*@out@*/char *, size_t);
 void json_subframe_dump(const struct gps_data_t *, /*@out@*/ char buf[], size_t);
 void json_device_dump(const struct gps_device_t *, /*@out@*/char *, size_t);
 void json_watch_dump(const struct policy_t *, /*@out@*/char *, size_t);
diff --git a/gpsd.c b/gpsd.c
index 93264f0..8faa025 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1613,7 +1613,7 @@ static void consume_packets(struct gps_device_t *device)
 
 #ifdef SHM_EXPORT_ENABLE
 	if ((changed & (REPORT_IS|GST_SET|SATELLITE_SET|SUBFRAME_SET|
-			ATTITUDE_SET|RTCM2_SET|RTCM3_SET|AIS_SET)) != 0)
+			ATTITUDE_SET|RTCM2_SET|RTCM3_SET|AIS_SET|WIND_SET)) != 0)
 	    shm_update(&context, &device->gpsdata);
 #endif /* SHM_EXPORT_ENABLE */
 
diff --git a/gpsd_json.c b/gpsd_json.c
index f1ecdff..a565837 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -2953,6 +2953,46 @@ void json_att_dump(const struct gps_data_t *gpsdata,
 }
 #endif /* COMPASS_ENABLE */
 
+/* TODO: #ifdef WIND_ENABLE? */
+void json_wind_dump(const struct gps_data_t *gpsdata,
+		   /*@out@*/ char *reply, size_t replylen)
+/* dump the contents of a wind_t structure as JSON */
+{
+    assert(replylen > 2);
+    (void)strlcpy(reply, "{\"class\":\"WIND\",", replylen);
+    (void)snprintf(reply + strlen(reply),
+		   replylen - strlen(reply),
+		   "\"tag\":\"%s\",",
+		   gpsdata->tag[0] != '\0' ? gpsdata->tag : "-");
+    (void)snprintf(reply + strlen(reply),
+		   replylen - strlen(reply),
+		   "\"device\":\"%s\",", gpsdata->dev.path);
+    if (isnan(gpsdata->wind.speed) == 0) {
+	(void)snprintf(reply + strlen(reply),
+		       replylen - strlen(reply),
+		       "\"speed\":%.1f,", gpsdata->wind.speed);
+	(void)snprintf(reply + strlen(reply),
+		       replylen - strlen(reply),
+		       "\"speed_type\":%d,", gpsdata->wind.speed_type);
+    }
+    if (isnan(gpsdata->wind.dir) == 0) {
+	(void)snprintf(reply + strlen(reply),
+		       replylen - strlen(reply),
+		       "\"dir\":%.1f,", gpsdata->wind.dir);
+	if (gpsdata->wind.dir_type == WIND_DIR_NORTH) {
+	    (void)snprintf(reply + strlen(reply),
+			   replylen - strlen(reply),
+			   "\"dir_mag\":\"%.1f\",", gpsdata->wind.dir_mag);
+	}
+	(void)snprintf(reply + strlen(reply),
+		       replylen - strlen(reply),
+		       "\"dir_type\":%d,", gpsdata->wind.dir_type);
+    }
+    if (reply[strlen(reply) - 1] == ',')
+	reply[strlen(reply) - 1] = '\0';	/* trim trailing comma */
+    (void)strlcat(reply, "}\r\n", replylen);
+}
+
 void json_data_report(const gps_mask_t changed,
 		 const struct gps_device_t *session,
 		 const struct policy_t *policy,
@@ -2984,6 +3024,10 @@ void json_data_report(const gps_mask_t changed,
     }
 #endif /* COMPASS_ENABLE */
 
+    if ((changed & WIND_SET) != 0) {
+	json_wind_dump(datap, buf+strlen(buf), buflen-strlen(buf));
+    }
+
 #ifdef RTCM104V2_ENABLE
     if ((changed & RTCM2_SET) != 0) {
 	json_rtcm2_dump(&datap->rtcm2, datap->dev.path,
diff --git a/libgps_json.c b/libgps_json.c
index 1ea7698..e447ec6 100644
--- a/libgps_json.c
+++ b/libgps_json.c
@@ -256,6 +256,35 @@ static int json_att_read(const char *buf, struct gps_data_t *gpsdata,
     return json_read_object(buf, json_attrs_1, endptr);
 }
 
+static int json_wind_read(const char *buf, struct gps_data_t *gpsdata,
+			 /*@null@*/ const char **endptr)
+{
+    /*@ -fullinitblock @*/
+    const struct json_attr_t json_attrs_1[] = {
+	/* *INDENT-OFF* */
+	{"class",    t_check,     .dflt.check = "WIND"},
+	{"device",   t_string,    .addr.string = gpsdata->dev.path,
+			             .len = sizeof(gpsdata->dev.path)},
+	{"tag",      t_string,    .addr.string = gpsdata->tag,
+			             .len = sizeof(gpsdata->tag)},
+	{"speed_type", t_integer, .addr.integer = &gpsdata->wind.speed_type,
+			             .dflt.integer = WIND_SPEED_UNKNOWN},
+	{"speed",    t_real,      .addr.real = &gpsdata->wind.speed,
+			             .dflt.real = NAN},
+	{"dir_type", t_integer,   .addr.integer = &gpsdata->wind.dir_type,
+			             .dflt.integer = WIND_DIR_UNKNOWN},
+	{"dir",      t_real,     .addr.real = &gpsdata->wind.dir,
+			             .dflt.real = NAN},
+	{"dir_mag",  t_real,     .addr.real = &gpsdata->wind.dir_mag,
+			             .dflt.real = NAN},
+	{NULL},
+	/* *INDENT-ON* */
+    };
+    /*@ +fullinitblock @*/
+
+    return json_read_object(buf, json_attrs_1, endptr);
+}
+
 static int json_devicelist_read(const char *buf, struct gps_data_t *gpsdata,
 				/*@null@*/ const char **endptr)
 {
@@ -421,6 +450,13 @@ int libgps_json_unpack(const char *buf,
 	    gpsdata->set |= ATTITUDE_SET;
 	}
 	return status;
+    } else if (STARTSWITH(classtag, "\"class\":\"WIND\"")) {
+	status = json_wind_read(buf, gpsdata, end);
+	if (status == 0) {
+	    gpsdata->set &= ~UNION_SET;
+	    gpsdata->set |= WIND_SET;
+	}
+	return status;
     } else if (STARTSWITH(classtag, "\"class\":\"DEVICES\"")) {
 	status = json_devicelist_read(buf, gpsdata, end);
 	if (status == 0) {
-- 
1.7.0.4



From MAILER-DAEMON Sat Apr 21 09:20:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLaF8-00055H-Br
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 09:20:50 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60744)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg8-0005z3-GW
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007qH-Dp
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:32 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40779)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007kt-6s
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:25 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 555B65E8A1F;
	Sat, 21 Apr 2012 11:35:59 +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 znsIyvaCHRIE; Sat, 21 Apr 2012 11:35:58 +0100 (IST)
Received: from localhost (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 155245E85C4;
	Sat, 21 Apr 2012 11:35:58 +0100 (IST)
From: chris@techworks.ie
To: gpsd-dev@nongnu.org
Date: Sat, 21 Apr 2012 10:34:16 +0100
Message-Id: <1335000862-15312-1-git-send-email-chris@techworks.ie>
X-Mailer: git-send-email 1.7.0.4
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
X-Mailman-Approved-At: Sat, 21 Apr 2012 09:20:44 -0400
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [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: Sat, 21 Apr 2012 10:36:37 -0000

From: Christian Gagneraud <chgans@gna.org>

The Airmar PB200 [1] is a weather station to be installed on boats.
It has built-in GPS, accelerometer, compass, gyro, anemometer, pressure and 
temperature sensor. It has 2 outputs, one for NMEA0183 and one for
NMEA2000 (I've seen the recent addition for NMEA2000, I'm interesting
to make some tests and hacking around). 

It provides quite a lot of information and use the following NMEA sentences:
 - Usual GPS ones
 - TIROT, HCHDG and HCHDT for heading related data
 - WIMWD, WIMWV, WIVWR and WIVWT for wind related data
 - WIMDA for other meteorological data
 - WIXDR for detailed transducer measurements/calculations

This is a WIP, I thought it might be worse to start the review early.
Things I didn't look at yet:
 - Update other tools (xgps, gpspipe, ....)
 - Update the testsuite(s)
 - Update documentation

I naively added a wind data structure, but the WIMDA would require to
add yet another one (and in my case the WIXDR will bring even more
meteo data than the WIMDA). So maybe these two should be merged
together. Though, I didn't do it because there are several ways to
express the wind, both for the wind direction and for the wind speed
can be viewed from different referential frames: the moving boat, the
moving water or the fixed ground, and why not one of these days the
moving air mass (for flying things obviously).

It is likely that I will come one day with yet another structure:
engine. I would like to install my openwrt/gpsd based system on a
boat, and it has two engines that speak NMEA200 only (I let you
imagine how high I jumped off my chair when I saw the new NMEA200 code
coming in... ;))

Notes:
 - There are as well an older model PB100 [2], and a "low cost" model PB150 [3].
   They either use a subset of the PB200 NMEA or slightly different ones.
 - Other weather stations output a subset of the above sentences, I'm aware of and I 
   (use to) use the Vaisala WXT510/520 [4][5] and the Radio Ocean ROWIND [6].

TODO:
 - WIMDA support
 - WIXDR/YXXDR support 
 - PB200 config support (activate sentences and change baudrate)

[1] http://www.airmartechnology.com/uploads/installguide/PB200UserManual.pdf
[2] http://www.airmartechnology.com/uploads/installguide/PB100TechnicalManual_rev1.007.pdf
[3] http://www.riocean.com/ioshop/specs/Airmar_PB150_Manual.pdf
[4] http://s.campbellsci.com/documents/us/manuals/wxt510.pdf
[5] http://s.campbellsci.com/documents/us/manuals/wxt520.pdf

Christian Gagneraud (6):
  Add missing attitude field initialisation in NMEA TNTHTM
  Add new NMEA talker ID (WI, HC and TI)
  Add new fields to the attitude data structure
  Add heading and rate of turn NMEA sentences (HDG, ROT)
  Add a wind data structure
  Add Wind related NMEA sentence (MWD, MWV, VWR, VWT)

 driver_nmea0183.c |  314 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 gps.h             |   28 +++++-
 gps_json.h        |    1 +
 gpsd.c            |    2 +-
 gpsd_json.c       |   59 ++++++++++
 libgps_json.c     |   42 +++++++
 packet.c          |   27 +++++
 packet_states.h   |    3 +
 8 files changed, 473 insertions(+), 3 deletions(-)



From MAILER-DAEMON Sat Apr 21 09:20:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLaF9-00057T-3h
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 09:20:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60753)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg9-0005z5-7n
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007qc-Mz
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:32 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40801)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007nm-DY
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:25 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 9CE3D5E8AB1;
	Sat, 21 Apr 2012 11:36:02 +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 e-csmLXoC-HR; Sat, 21 Apr 2012 11:36:01 +0100 (IST)
Received: from localhost (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 55E895E895F;
	Sat, 21 Apr 2012 11:36:01 +0100 (IST)
From: chris@techworks.ie
To: gpsd-dev@nongnu.org
Date: Sat, 21 Apr 2012 10:34:20 +0100
Message-Id: <1335000862-15312-5-git-send-email-chris@techworks.ie>
X-Mailer: git-send-email 1.7.0.4
In-Reply-To: <1335000862-15312-1-git-send-email-chris@techworks.ie>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
X-Mailman-Approved-At: Sat, 21 Apr 2012 09:20:44 -0400
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [PATCH 4/6] Add heading and rate of turn NMEA sentences
	(HDG, ROT)
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, 21 Apr 2012 10:36:37 -0000

From: Christian Gagneraud <chgans@gna.org>

---
 driver_nmea0183.c |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index a9631cb..d2e45fa 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -770,6 +770,64 @@ static gps_mask_t processGPZDA(int c UNUSED, char *field[],
     return mask;
 }
 
+static gps_mask_t processHDG(int c UNUSED, char *field[],
+				struct gps_device_t *session)
+{
+    /*
+     * $HCHDG,<1>,<2>,<3>,<4>,<5>*hh
+     *
+     * NMEA 0183 standard Heading, Deviation and Variation.
+     *
+     * <1> Magnetic sensor heading, degrees, to the nearest 0.1 degree.
+     * <2> Magnetic deviation, degrees east or west, to the nearest 0.1 degree.
+     * <3> E if field <2> is degrees East, W if field <2> is degrees West
+     * <4> Magnetic variation, degrees east or west, to the nearest 0.1 degree.
+     * <5> E if field <4> is degrees East, W if field <4> is degrees West
+     */
+    gps_mask_t mask;
+    if ((field[3][0] != 'W' && field[3][0] != 'E') ||
+	(field[5][0] != 'W' && field[5][0] != 'E'))
+        return 0;
+    mask = ONLINE_SET;
+
+    session->gpsdata.attitude.heading = safe_atof(field[1]);
+    if (field[3][0] == 'W')
+      session->gpsdata.attitude.mag_dev = -safe_atof(field[2]);
+    else
+      session->gpsdata.attitude.mag_dev = safe_atof(field[2]);
+    if (field[5][0] == 'W')
+      session->gpsdata.attitude.mag_var = -safe_atof(field[4]);
+    else
+      session->gpsdata.attitude.mag_var = safe_atof(field[4]);
+    session->gpsdata.attitude.rot = NAN;
+    session->gpsdata.attitude.mag_st = '\0';
+    session->gpsdata.attitude.pitch = NAN;
+    session->gpsdata.attitude.pitch_st = '\0';
+    session->gpsdata.attitude.roll = NAN;
+    session->gpsdata.attitude.roll_st = '\0';
+    session->gpsdata.attitude.yaw = NAN;
+    session->gpsdata.attitude.yaw_st = '\0';
+    session->gpsdata.attitude.dip = NAN;
+    session->gpsdata.attitude.mag_len = NAN;
+    session->gpsdata.attitude.mag_x = NAN;
+    session->gpsdata.attitude.mag_y = NAN;
+    session->gpsdata.attitude.mag_z = NAN;
+    session->gpsdata.attitude.acc_len = NAN;
+    session->gpsdata.attitude.acc_x = NAN;
+    session->gpsdata.attitude.acc_y = NAN;
+    session->gpsdata.attitude.acc_z = NAN;
+    session->gpsdata.attitude.gyro_x = NAN;
+    session->gpsdata.attitude.gyro_y = NAN;
+    session->gpsdata.attitude.temp = NAN;
+    session->gpsdata.attitude.depth = NAN;
+    mask |= (ATTITUDE_SET);
+
+    gpsd_report(LOG_RAW, "time %.3f, heading %lf.\n",
+		session->newdata.time,
+		session->gpsdata.attitude.heading);
+    return mask;
+}
+
 static gps_mask_t processHDT(int c UNUSED, char *field[],
 				struct gps_device_t *session)
 {
@@ -807,6 +865,57 @@ static gps_mask_t processHDT(int c UNUSED, char *field[],
     session->gpsdata.attitude.acc_z = NAN;
     session->gpsdata.attitude.gyro_x = NAN;
     session->gpsdata.attitude.gyro_y = NAN;
+    session->gpsdata.attitude.temp = NAN;
+    session->gpsdata.attitude.depth = NAN;
+    mask |= (ATTITUDE_SET);
+
+    gpsd_report(LOG_RAW, "time %.3f, heading %lf.\n",
+		session->newdata.time,
+		session->gpsdata.attitude.heading);
+    return mask;
+}
+
+static gps_mask_t processROT(int c UNUSED, char *field[],
+				struct gps_device_t *session)
+{
+    /*
+     * $TIROT,<1>,<2>*hh
+     *
+     * NMEA 0183 standard Rate of Turn.
+     *
+     * <1> Signed rate of turn, degrees per minute, to the nearest 0.1 degree.
+     *     Negative values indicate the bow is turning to port.
+     * <2> Status: A = Data Valid; V = Data Invalid.
+     */
+    gps_mask_t mask;
+    if (field[2][0] != 'V')
+        return 0;
+    mask = ONLINE_SET;
+
+    session->gpsdata.attitude.heading = NAN;
+    session->gpsdata.attitude.mag_dev = NAN;
+    session->gpsdata.attitude.mag_var = NAN;
+    session->gpsdata.attitude.rot = safe_atof(field[1]);
+    session->gpsdata.attitude.mag_st = '\0';
+    session->gpsdata.attitude.pitch = NAN;
+    session->gpsdata.attitude.pitch_st = '\0';
+    session->gpsdata.attitude.roll = NAN;
+    session->gpsdata.attitude.roll_st = '\0';
+    session->gpsdata.attitude.yaw = NAN;
+    session->gpsdata.attitude.yaw_st = '\0';
+    session->gpsdata.attitude.dip = NAN;
+    session->gpsdata.attitude.mag_len = NAN;
+    session->gpsdata.attitude.mag_x = NAN;
+    session->gpsdata.attitude.mag_y = NAN;
+    session->gpsdata.attitude.mag_z = NAN;
+    session->gpsdata.attitude.acc_len = NAN;
+    session->gpsdata.attitude.acc_x = NAN;
+    session->gpsdata.attitude.acc_y = NAN;
+    session->gpsdata.attitude.acc_z = NAN;
+    session->gpsdata.attitude.gyro_x = NAN;
+    session->gpsdata.attitude.gyro_y = NAN;
+    session->gpsdata.attitude.temp = NAN;
+    session->gpsdata.attitude.depth = NAN;
     mask |= (ATTITUDE_SET);
 
     gpsd_report(LOG_RAW, "time %.3f, heading %lf.\n",
@@ -1114,7 +1223,9 @@ gps_mask_t nmea_parse(char *sentence, struct gps_device_t * session)
 	{"VTG", 0,  false, NULL},	/* ignore Velocity Track made Good */
 	{"ZDA", 4,  false, processGPZDA},
 	{"GBS", 7,  false, processGPGBS},
+        {"HDG", 6,  false, processHDG},
         {"HDT", 1,  false, processHDT},
+        {"ROT", 3,  false, processROT},
 	{"DBT", 7,  true,  processDBT},
 #ifdef TNT_ENABLE
 	{"PTNTHTM", 9, false, processTNTHTM},
-- 
1.7.0.4



From MAILER-DAEMON Sat Apr 21 09:20:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLaF7-00053A-R9
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 09:20:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60747)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg8-0005z4-OI
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007qT-GQ
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:32 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40790)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg1-0007m1-7B
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:25 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id DA04E5E89F4;
	Sat, 21 Apr 2012 11:36:00 +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 EaAdlPAWqGEY; Sat, 21 Apr 2012 11:36:00 +0100 (IST)
Received: from localhost (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 97F435E895F;
	Sat, 21 Apr 2012 11:36:00 +0100 (IST)
From: chris@techworks.ie
To: gpsd-dev@nongnu.org
Date: Sat, 21 Apr 2012 10:34:19 +0100
Message-Id: <1335000862-15312-4-git-send-email-chris@techworks.ie>
X-Mailer: git-send-email 1.7.0.4
In-Reply-To: <1335000862-15312-1-git-send-email-chris@techworks.ie>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
X-Mailman-Approved-At: Sat, 21 Apr 2012 09:20:44 -0400
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [PATCH 3/6] Add new fields to the attitude data structure
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, 21 Apr 2012 10:36:36 -0000

From: Christian Gagneraud <chgans@gna.org>

rot:     Rate of Turn
mag_var: Magnetic variation
mag_dev: Magnetic deviation
---
 driver_nmea0183.c |    9 +++++++++
 gps.h             |    3 +++
 gpsd_json.c       |   15 +++++++++++++++
 libgps_json.c     |    6 ++++++
 4 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index c269180..a9631cb 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -786,6 +786,9 @@ static gps_mask_t processHDT(int c UNUSED, char *field[],
     mask = ONLINE_SET;
 
     session->gpsdata.attitude.heading = safe_atof(field[1]);
+    session->gpsdata.attitude.mag_dev = NAN;
+    session->gpsdata.attitude.mag_var = NAN;
+    session->gpsdata.attitude.rot = NAN;
     session->gpsdata.attitude.mag_st = '\0';
     session->gpsdata.attitude.pitch = NAN;
     session->gpsdata.attitude.pitch_st = '\0';
@@ -897,6 +900,9 @@ static gps_mask_t processTNTHTM(int c UNUSED, char *field[],
     mask = ONLINE_SET;
 
     session->gpsdata.attitude.heading = safe_atof(field[1]);
+    session->gpsdata.attitude.mag_dev = NAN;
+    session->gpsdata.attitude.mag_var = NAN;
+    session->gpsdata.attitude.rot = NAN;
     session->gpsdata.attitude.mag_st = *field[2];
     session->gpsdata.attitude.pitch = safe_atof(field[3]);
     session->gpsdata.attitude.pitch_st = *field[4];
@@ -955,6 +961,9 @@ static gps_mask_t processOHPR(int c UNUSED, char *field[],
     mask = ONLINE_SET;
 
     session->gpsdata.attitude.heading = safe_atof(field[1]);
+    session->gpsdata.attitude.mag_dev = NAN;
+    session->gpsdata.attitude.mag_var = NAN;
+    session->gpsdata.attitude.rot = NAN;
     session->gpsdata.attitude.mag_st = '\0';
     session->gpsdata.attitude.pitch = safe_atof(field[2]);
     session->gpsdata.attitude.pitch_st = '\0';
diff --git a/gps.h b/gps.h
index 6baf232..d4813f5 100644
--- a/gps.h
+++ b/gps.h
@@ -1500,6 +1500,9 @@ struct ais_t
 
 struct attitude_t {
     double heading;
+    double mag_dev; /* Magnetic deviation in degree, positive for EAST, negative for WEST */
+    double mag_var; /* Magnetic variation in degree, positive for EAST, negative for WEST */
+    double rot;     /* Rate of turn in degrees per minute, positive for starboard (right), negative for port (left) */
     double pitch;
     double roll;
     double yaw;
diff --git a/gpsd_json.c b/gpsd_json.c
index 0c5e39c..f1ecdff 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -2834,6 +2834,21 @@ void json_att_dump(const struct gps_data_t *gpsdata,
 			   "\"mag_st\":\"%c\",", gpsdata->attitude.mag_st);
 
     }
+    if (isnan(gpsdata->attitude.mag_var) == 0) {
+	(void)snprintf(reply + strlen(reply),
+		       replylen - strlen(reply),
+		       "\"mag_var\":%.2f,", gpsdata->attitude.mag_var);
+    }
+    if (isnan(gpsdata->attitude.mag_dev) == 0) {
+	(void)snprintf(reply + strlen(reply),
+		       replylen - strlen(reply),
+		       "\"mag_dev\":%.2f,", gpsdata->attitude.mag_dev);
+    }
+    if (isnan(gpsdata->attitude.rot) == 0) {
+	(void)snprintf(reply + strlen(reply),
+		       replylen - strlen(reply),
+		       "\"rot\":%.2f,", gpsdata->attitude.rot);
+    }
     if (isnan(gpsdata->attitude.pitch) == 0) {
 	(void)snprintf(reply + strlen(reply),
 		       replylen - strlen(reply),
diff --git a/libgps_json.c b/libgps_json.c
index b53d6da..1ea7698 100644
--- a/libgps_json.c
+++ b/libgps_json.c
@@ -206,6 +206,12 @@ static int json_att_read(const char *buf, struct gps_data_t *gpsdata,
 			             .len = sizeof(gpsdata->tag)},
 	{"heading",  t_real,      .addr.real = &gpsdata->attitude.heading,
 			             .dflt.real = NAN},
+	{"mag_dev",  t_real,      .addr.real = &gpsdata->attitude.mag_dev,
+			             .dflt.real = NAN},
+	{"mag_var",  t_real,      .addr.real = &gpsdata->attitude.mag_var,
+			             .dflt.real = NAN},
+	{"rot",  t_real,      .addr.real = &gpsdata->attitude.rot,
+			             .dflt.real = NAN},
 	{"mag_st",   t_character, .addr.character = &gpsdata->attitude.mag_st},
 	{"pitch",    t_real,      .addr.real = &gpsdata->attitude.pitch,
 			             .dflt.real = NAN},
-- 
1.7.0.4



From MAILER-DAEMON Sat Apr 21 09:20:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLaF9-00058w-I1
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 09:20:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60766)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg9-0005z6-VY
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg2-0007qu-N2
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:33 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:40809)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SLXg2-0007qY-D9
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 06:36:26 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 9966F5E8AAB;
	Sat, 21 Apr 2012 11:36:04 +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 n4+P5IaDe9QU; Sat, 21 Apr 2012 11:36:03 +0100 (IST)
Received: from localhost (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id E8B3C5E895F;
	Sat, 21 Apr 2012 11:36:02 +0100 (IST)
From: chris@techworks.ie
To: gpsd-dev@nongnu.org
Date: Sat, 21 Apr 2012 10:34:22 +0100
Message-Id: <1335000862-15312-7-git-send-email-chris@techworks.ie>
X-Mailer: git-send-email 1.7.0.4
In-Reply-To: <1335000862-15312-1-git-send-email-chris@techworks.ie>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 88.198.36.49
X-Mailman-Approved-At: Sat, 21 Apr 2012 09:20:44 -0400
Cc: Christian Gagneraud <chgans@gna.org>
Subject: [gpsd-dev] [PATCH 6/6] Add Wind related NMEA sentence (MWD, MWV, VWR,
	VWT)
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, 21 Apr 2012 10:36:38 -0000

From: Christian Gagneraud <chgans@gna.org>

For now only MWD and MWV have been tested and manually checked with live data.
Manual check was input NMEA vs output JSON, with NMEA units in knots.
---
 driver_nmea0183.c |  198 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 gps.h             |    2 +
 2 files changed, 197 insertions(+), 3 deletions(-)

diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index d2e45fa..8495468 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -888,7 +888,7 @@ static gps_mask_t processROT(int c UNUSED, char *field[],
      * <2> Status: A = Data Valid; V = Data Invalid.
      */
     gps_mask_t mask;
-    if (field[2][0] != 'V')
+    if (field[2][0] != 'A')
         return 0;
     mask = ONLINE_SET;
 
@@ -918,9 +918,9 @@ static gps_mask_t processROT(int c UNUSED, char *field[],
     session->gpsdata.attitude.depth = NAN;
     mask |= (ATTITUDE_SET);
 
-    gpsd_report(LOG_RAW, "time %.3f, heading %lf.\n",
+    gpsd_report(LOG_RAW, "time %.3f,rate of turn %.1f\n",
 		session->newdata.time,
-		session->gpsdata.attitude.heading);
+		session->gpsdata.attitude.rot);
     return mask;
 }
 
@@ -971,6 +971,194 @@ static gps_mask_t processDBT(int c UNUSED, char *field[],
     return mask;
 }
 
+static gps_mask_t processMWD(int c UNUSED, char *field[],
+				struct gps_device_t *session)
+{
+    /*
+     * $WIMWD,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>*hh
+     *
+     * NMEA 0183 standard Wind Direction and Speed, with respect to north.
+     *
+     * <1> Wind direction, 0.0 to 359.9 degrees True, to the nearest 0.1 degree
+     * <2> T = True
+     * <3> Wind direction, 0.0 to 359.9 degrees Magnetic, to the nearest 0.1 degree
+     * <4> M = Magnetic
+     * <5> Wind speed, knots, to the nearest 0.1 knot.
+     * <6> N = Knots
+     * <7> Wind speed, meters/second, to the nearest 0.1 m/s.
+     * <8> M = Meters/second
+     */
+    gps_mask_t mask;
+    mask = ONLINE_SET;
+
+    session->gpsdata.wind.dir_type = WIND_DIR_NORTH;
+    session->gpsdata.wind.dir = safe_atof(field[1]);
+    session->gpsdata.wind.dir_mag = safe_atof(field[3]);
+    session->gpsdata.wind.speed_type = WIND_SPEED_VESSEL;
+    session->gpsdata.wind.speed = safe_atof(field[7]);
+    mask |= (WIND_SET);
+
+    gpsd_report(LOG_RAW, "wind speed %.1f, wind direction %.1f\n",
+		session->gpsdata.wind.speed,
+		session->gpsdata.wind.dir);
+    return mask;
+}
+
+static gps_mask_t processMWV(int c UNUSED, char *field[],
+				struct gps_device_t *session)
+{
+    /*
+     * $WIMWV,<1>,<2>,<3>,<4>,<5>*hh
+     *
+     * NMEA 0183 standard Wind Speed and Angle, in relation to the vesselâs bow/centerline.
+     *
+     * <1> Wind angle, 0.0 to 359.9 degrees, in relation to the vesselâs bow/centerline, 
+     *     to the nearest 0.1 degree
+     * <2> Reference: 'R' for relative (apparent wind, as felt when standing on the
+     *                                  moving ship)
+     *                'T' for theorical (calculated actual wind, as though the vessel
+     *                                   were stationary)
+     * <3> Wind speed, to the nearest tenth of a unit.
+     * <4> Wind speed units: K = km/hr, M = m/s, N = knots, S = statute miles/hr
+     * <5> Status: A = data valid; V = data invalid
+     */
+    gps_mask_t mask;
+
+    if (field[5][0] != 'A' || (field[2][0] != 'R' && field[2][0] != 'T') ||
+	(field[4][0] != 'K' && field[4][0] != 'M' && field[4][0] != 'N' && 
+	 field[4][0] != 'S'))
+        return 0;
+
+    mask = ONLINE_SET;
+
+    session->gpsdata.wind.dir_type = WIND_DIR_VESSEL;
+    // Is wind angle same as wind direction?
+    session->gpsdata.wind.dir = safe_atof(field[1]);
+    session->gpsdata.wind.dir_mag = NAN;
+    if (field[2][0] == 'R')
+        session->gpsdata.wind.speed_type = WIND_SPEED_VESSEL;
+    else
+        session->gpsdata.wind.speed_type = WIND_SPEED_GROUND;
+    if (field[4][0] == 'M')
+        session->gpsdata.wind.speed = safe_atof(field[3]);
+    else if (field[4][0] == 'K')
+        session->gpsdata.wind.speed = safe_atof(field[3]) / KPH_TO_MPS;
+    else if (field[4][0] == 'N')
+        session->gpsdata.wind.speed = safe_atof(field[3]) / KNOTS_TO_MPS;
+    else if (field[4][0] == 'S')
+        session->gpsdata.wind.speed = safe_atof(field[3]) / MPH_TO_MPS;
+
+    mask |= (WIND_SET);
+
+    gpsd_report(LOG_RAW, "wind speed %.1f, wind direction %.1f\n",
+		session->gpsdata.wind.speed,
+		session->gpsdata.wind.dir);
+    return mask;
+}
+
+static gps_mask_t processVWR(int c UNUSED, char *field[],
+				struct gps_device_t *session)
+{
+    /*
+     * $WIVWR,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>*hh
+     *
+     * NMEA 0183 Relative (Apparent) Wind Speed and Angle. Wind angle in relation
+     * to the vesselâs heading, and wind speed measured relative to the moving vessel.
+     *
+     * <1> Measured wind angle relative to the vessel, 0 to 180Â°, left/right of
+     *     vessel heading, to the nearest 0.1 degree
+     * <2> L = left, or R = right
+     * <3> Measured wind speed, knots, to the nearest 0.1 knot
+     * <4> N = knots
+     * <5> Wind speed, meters per second, to the nearest 0.1 m/s
+     * <6> M = meters per second
+     * <7> Wind speed, km/h, to the nearest km/h
+     * <8> K = km/h
+     *
+     * TODO: Is wind angle same as wind direction?
+     */
+    gps_mask_t mask;
+
+    if ((field[2][0] != 'R' && field[2][0] == 'L') ||
+	field[4][0] != 'N' || field[6][0] != 'M' || field[8][0] != 'K')
+        return 0;
+
+    mask = ONLINE_SET;
+
+    session->gpsdata.wind.dir_type = WIND_DIR_HEADING;
+    session->gpsdata.wind.dir_mag = NAN;
+    if (field[2][0] == 'R')
+      session->gpsdata.wind.dir = safe_atof(field[1]);
+    else
+      session->gpsdata.wind.dir = 180.0 + safe_atof(field[1]);
+    session->gpsdata.wind.speed_type = WIND_SPEED_VESSEL;
+    if (field[5][0] != '\0')
+        session->gpsdata.wind.speed = safe_atof(field[5]);
+    else if (field[3][0] == '\0')
+        session->gpsdata.wind.speed = safe_atof(field[4]) / KNOTS_TO_MPS;
+    else if (field[7][0] == '\0')
+        session->gpsdata.wind.speed = safe_atof(field[8]) / KPH_TO_MPS;
+
+    mask |= (WIND_SET);
+
+    gpsd_report(LOG_RAW, "wind speed %.1f, wind direction %.1f\n",
+		session->gpsdata.wind.speed,
+		session->gpsdata.wind.dir);
+    return mask;
+}
+
+static gps_mask_t processVWT(int c UNUSED, char *field[],
+				struct gps_device_t *session)
+{
+    /*
+     * $WIVWT,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>*hh
+     *
+     * NMEA 0183 True wind angle in relation to the vesselâs heading, and true wind
+     * speed referenced to the water. True wind is the vector sum of the Relative
+     * (apparent) wind vector and the vesselâs velocity vector relative to the water along
+     * the heading line of the vessel. It represents the wind at the vessel if it were
+     * stationary relative to the water and heading in the same direction.
+     *
+     * <1> Calculated wind angle relative to the vessel, 0 to 180Â°, left/right of
+     *     vessel heading, to the nearest 0.1 degree
+     * <2> L = left, or R = right
+     * <3> Calculated wind speed, knots, to the nearest 0.1 knot
+     * <4> N = knots
+     * <5> Wind speed, meters per second, to the nearest 0.1 m/s
+     * <6> M = meters per second
+     * <7> Wind speed, km/h, to the nearest km/h
+     * <8> K = km/h
+     */
+    gps_mask_t mask;
+
+    if ((field[2][0] != 'R' && field[2][0] == 'L') ||
+	field[4][0] != 'N' || field[6][0] != 'M' || field[8][0] != 'K')
+        return 0;
+
+    mask = ONLINE_SET;
+
+    session->gpsdata.wind.dir_type = WIND_DIR_HEADING;
+    session->gpsdata.wind.dir_mag = NAN;
+    if (field[2][0] == 'R')
+      session->gpsdata.wind.dir = safe_atof(field[1]);
+    else
+      session->gpsdata.wind.dir = 180.0 + safe_atof(field[1]);
+    session->gpsdata.wind.speed_type = WIND_SPEED_WATER;
+    if (field[5][0] != '\0')
+        session->gpsdata.wind.speed = safe_atof(field[5]);
+    else if (field[3][0] == '\0')
+        session->gpsdata.wind.speed = safe_atof(field[4]) / KNOTS_TO_MPS;
+    else if (field[7][0] == '\0')
+        session->gpsdata.wind.speed = safe_atof(field[8]) / KPH_TO_MPS;
+
+    mask |= (WIND_SET);
+
+    gpsd_report(LOG_RAW, "wind speed %.1f, wind direction %.1f\n",
+		session->gpsdata.wind.speed,
+		session->gpsdata.wind.dir);
+    return mask;
+}
+
 #ifdef TNT_ENABLE
 static gps_mask_t processTNTHTM(int c UNUSED, char *field[],
 				struct gps_device_t *session)
@@ -1227,6 +1415,10 @@ gps_mask_t nmea_parse(char *sentence, struct gps_device_t * session)
         {"HDT", 1,  false, processHDT},
         {"ROT", 3,  false, processROT},
 	{"DBT", 7,  true,  processDBT},
+	{"MWD", 9,  false,  processMWD},
+	{"MWV", 6,  false,  processMWV},
+	{"VWR", 9,  false,  processVWR},
+	{"VWT", 9,  false,  processVWT},
 #ifdef TNT_ENABLE
 	{"PTNTHTM", 9, false, processTNTHTM},
 #endif /* TNT_ENABLE */
diff --git a/gps.h b/gps.h
index 47d4fe9..82ad835 100644
--- a/gps.h
+++ b/gps.h
@@ -1782,6 +1782,8 @@ extern double wgs84_separation(double, double);
 #define MPS_TO_KPH	3.6		/* Meters per second to klicks/hr */
 #define MPS_TO_MPH	2.2369363	/* Meters/second to miles per hour */
 #define MPS_TO_KNOTS	1.9438445	/* Meters per second to knots */
+#define KPH_TO_MPS      0.27777778      /* Kilometers per hout to meters per second */
+#define MPH_TO_MPS      0.44704         /* Miles per hour to meter per second */
 /* miles and knots are both the international standard versions of the units */
 
 /* angle conversion multipliers */
-- 
1.7.0.4



From MAILER-DAEMON Sat Apr 21 11:23:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLc9u-0007oh-Kr
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 11:23:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41697)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLc9p-0007nj-0a
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 11:23:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLc9k-0001kG-9g
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 11:23:28 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:49231 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SLc9k-0001kB-4j
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 11:23:24 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 9DD7140822; Sat, 21 Apr 2012 11:23:21 -0400 (EDT)
Date: Sat, 21 Apr 2012 11:23:21 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: chris@techworks.ie
Message-ID: <20120421152321.GA4169@thyrsus.com>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1335000862-15312-1-git-send-email-chris@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 <chgans@gna.org>, gpsd-dev@nongnu.org
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
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, 21 Apr 2012 15:23:33 -0000

chris@techworks.ie <chris@techworks.ie>:
> The Airmar PB200 [1] is a weather station to be installed on boats.
> It has built-in GPS, accelerometer, compass, gyro, anemometer, pressure and 
> temperature sensor. It has 2 outputs, one for NMEA0183 and one for
> NMEA2000 (I've seen the recent addition for NMEA2000, I'm interesting
> to make some tests and hacking around). 
> 
> It provides quite a lot of information and use the following NMEA sentences:
>  - Usual GPS ones
>  - TIROT, HCHDG and HCHDT for heading related data
>  - WIMWD, WIMWV, WIVWR and WIVWT for wind related data
>  - WIMDA for other meteorological data
>  - WIXDR for detailed transducer measurements/calculations
> 
> This is a WIP, I thought it might be worse to start the review early.
> Things I didn't look at yet:
>  - Update other tools (xgps, gpspipe, ....)
>  - Update the testsuite(s)
>  - Update documentation
> 
> I naively added a wind data structure, but the WIMDA would require to
> add yet another one (and in my case the WIXDR will bring even more
> meteo data than the WIMDA). So maybe these two should be merged
> together. Though, I didn't do it because there are several ways to
> express the wind, both for the wind direction and for the wind speed
> can be viewed from different referential frames: the moving boat, the
> moving water or the fixed ground, and why not one of these days the
> moving air mass (for flying things obviously).
> 
> It is likely that I will come one day with yet another structure:
> engine. I would like to install my openwrt/gpsd based system on a
> boat, and it has two engines that speak NMEA200 only (I let you
> imagine how high I jumped off my chair when I saw the new NMEA200 code
> coming in... ;))

I've merged the first two patches, and these patches in general look
good - thorough, clean, and workmanlike.  I encourage you to continue.
But as you note, there are some missing pieces.  Adding a device log
to the regression-test suite is a requirement.  And yes, you do need
to update the documentation.

There's a larger piece missing.  You've written JSON dumping for the
daemon, but you also need to write the JSON parsing for the client
side. That has to be in places before trying to modify cgps and xgps 
to display the new data will make any sense.

I've just written a Hacking Guide section on how to add a sentence
to the supported set.  It's a serious amount of work, and my hat is
off to you for having deduced and done so many of the right things on
your own.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sat Apr 21 13:34:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLeCJ-0004BY-LM
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 13:34:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40056)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLeCG-00041l-Lg
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 13:34:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLeCE-0001DN-LW
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 13:34:08 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:44472)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLeCE-0001DA-Bk
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 13:34:06 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 109065E8D9C
	for <gpsd-dev@nongnu.org>; Sat, 21 Apr 2012 18:34: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 UwoWiq8fLdtT for <gpsd-dev@nongnu.org>;
	Sat, 21 Apr 2012 18:34:01 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id B24145E8D98
	for <gpsd-dev@nongnu.org>; Sat, 21 Apr 2012 18:34:01 +0100 (IST)
Message-ID: <4F92E11C.3050101@techworks.ie>
Date: Sat, 21 Apr 2012 17:32:28 +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 features
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, 21 Apr 2012 17:34:10 -0000

Hi all,

I would like to talk about some AIS features I would like to add to gpsd.

The first feature comes from a need for adding a nice GPS/AIS web 
administration interface to the OpenWRT project.
The second one is more for professional reason, and is unlikely to have 
that many "consumers". But maybe the gpsd project would still be 
interesting.

Feature #1:
=======

The problem:
I would like to display vessels information on a web page, and get the 
content updated via javascript.
One page is textual data, that would show a table of vessels/station 
with associated information (quick summary), and as well a summary of 
received messages 6, 8, 12 and 14. The other page is a map, based on 
OpenLayers and OpenSeaMap.
If it was about GPS fix data, it wouldn't be a problem, but AIS data 
comes little bit by little bit, and message are repeated only every 
several minutes.

The solution:
I wrote a python "deamon" that run on the server side that continuously 
read AIS data from gpsd and build up these informations as they come. 
Then each time the javascript make a request, the code on the server 
side connects to this AIS process and request a dump of the data and 
returns it as JSON.
So far, it is really a very simple, quick and dirty, proof of concept 
thingy. Maybe some people would like to share they thoughts on this. And 
i could improve and extend it, and submit it for integration into the 
contrib directory.

Maybe that's something people would like to see integrated inside gpsd, 
not on the side. Maybe, maybe not....


Feature #2:
=======

Sends AIS message over the air via an AIS AToN (Aid to navigation 
system) or AIS (class B) transponder.

AToN systems usually accepts the following input sentences:
!--ABM - Addressed binary and safety related message
$--AIR - AIS Interrogation request
$--BBM - Broadcast binary and safety related message
For the ABM and the BBM you have to encapsulate the data yourself (the 
payload is up to you, IMO 236/289 is common, text messages are of free 
form, encoding is the same as for the VDM/VDO messages).
Note:  You will certainly * need an authorization * for sending these 
kind of data.

Other transponders (for boat owners) usually accepts these ones:
$--VSD - Voyage static data  (Ship's type/category, destination, ...)
$--SSD - Station static data (Ship's call sign, name, and dimension, ...)
These sentences ends up as AIS messages type 5 and maybe 18 and 19 as well.

Usually these devices have at least 2 serial port, one for NMEA/AIS data 
output, and another one for data input and configuration.

So gpsd has the bits and bobs to decode NMEA/AIS data (VDO/VDM) and has 
the structure for the different AIS message type (and sub-types like IMO 
standards), but doesn't have the reverse functionality (take an AIS data 
structure and encode it into a ABM/BBM nmea sentence).

So my questions are:
- Are people interesting to see these features added to the gpsd project?
- Should these features been integrated into the gpsd daemon, or run 
separately?
- Any other idea, thoughts to share?

Regards,
Chris


From MAILER-DAEMON Sat Apr 21 15:28:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLfz2-0007zD-Q9
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 15:28:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39179)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SLfyw-0007xl-4H
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:28:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SLfyr-0003zp-3v
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:28:29 -0400
Received: from mail.recluse.de ([217.196.146.213]:32913)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SLfyq-0003ze-Tk
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:28:25 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 22DF524025;
	Sat, 21 Apr 2012 21:28:23 +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 6WdCn9qgfTzt; Sat, 21 Apr 2012 21:28:17 +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 49EC623FD8;
	Sat, 21 Apr 2012 21:28:17 +0200 (CEST)
Message-ID: <4F930A50.2000208@bzed.de>
Date: Sat, 21 Apr 2012 21:28:16 +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: 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: Sat, 21 Apr 2012 19:28:34 -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.)

I've pushed a change to devtools/gpsd-debian-regressions.sh to make it print the
architectures where no tests failed. Currently it prints


armel: no regressions
armhf: no regressions
hurd-i386: no regressions
i386: no regressions
ia64: no regressions
kfreebsd-amd64: no regressions
kfreebsd-i386: no regressions
powerpc: no regressions
ppc64: no regressions

On mips all tests failed, I think it just failed to open a pty. Why that is the
case is something I need to figure out and work around with the next upload. It
would be nice if the regress-driver would just fail if there is a pty issue
instead of spitting out a  lot of diffs.


> 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.

Where ever the issue is, it doesn't seem to be related to endianess issues.
Sparc, s390 and s390x (the 64bit s390 port) seem to be the only architectures
with issues so far.

As you can see on
http://buildd.debian-ports.org/status/package.php?p=gpsd&suite=sid
we even have some really exotic unofficial architectures - unfortunately not all
build-dependencies are available there. If there is an interest in making gpsd
build on one of the listed architectures, please let me know (I think the main
issue is QT not being available...).


-- 
 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 Sat Apr 21 15:46:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLgGW-0004C4-LT
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 15:46:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43008)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SLgGQ-00049o-Fo
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:46:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SLgGL-0001uz-Sq
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:46:34 -0400
Received: from mail-yx0-f173.google.com ([209.85.213.173]:44247)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@netgate.com>) id 1SLgGL-0001uo-Nw
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:46:29 -0400
Received: by yenr5 with SMTP id r5so7344853yen.4
	for <gpsd-dev@nongnu.org>; Sat, 21 Apr 2012 12:46:26 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=subject:mime-version:content-type:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to:x-mailer
	:x-gm-message-state;
	bh=6D98jmzayV3lr3Vnsj5tKk7obfOumLKzXwlAe5ET+b8=;
	b=U6xkO7h5nnNc0SRDw6C6PFi4Kzbdgq22JvzIRInycs1lX7ogI95I35OltshgQo0MNK
	0tJHE9nCQLOzZTFl6zxY0wYeduD3gBHnnUIeLszyK0rLu54NTd0T2uLtH+y8hqHgMxZe
	fxv2MgIEme8bmj0BUUIfiWNm1eco8YdS5v/Ke2YK3QhKy79gxnhI/YfiyoG6s6BTLuv0
	aZpxvA9kEaw5vIxcwpi53Z6ezovhltIYhIh6eQd3X1jT9MQTG9GWBP2EBlXChvO86MqX
	rWcKHDMxrLcGwdEZ6zPEcFXaOdTt7PCxt9E/S+jm31RA8IMpcKfA/LloqQ2B54RjIuj9
	Pk5g==
Received: by 10.236.115.200 with SMTP id e48mr10027325yhh.14.1335037586801;
	Sat, 21 Apr 2012 12:46:26 -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 k17sm6442139ann.11.2012.04.21.12.46.24
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sat, 21 Apr 2012 12:46:25 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1257)
Content-Type: text/plain; charset=us-ascii
From: Jim Thompson <jim@netgate.com>
In-Reply-To: <20120421152321.GA4169@thyrsus.com>
Date: Sat, 21 Apr 2012 14:46:23 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <DA8D8801-8064-425B-8325-1E2FFE132120@netgate.com>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
	<20120421152321.GA4169@thyrsus.com>
To: "Eric S. Raymond" <esr@thyrsus.com>
X-Mailer: Apple Mail (2.1257)
X-Gm-Message-State: ALoCoQnWEo+b8FbiYClmIht16KozlEqiGQqschWG6HZElMbzWG4aEOQmpVfFwceoyLXOgABqI61n
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, Christian Gagneraud <chgans@gna.org>
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: Sat, 21 Apr 2012 19:46:38 -0000

To be clear, if you're into boats, you only need one of the Airmar units =
and a boat speed sensor (GPS alone can't do it.)

They're very cool.  Hats off to Chris for this work.

Jim

On Apr 21, 2012, at 10:23 AM, Eric S. Raymond wrote:

> chris@techworks.ie <chris@techworks.ie>:
>> The Airmar PB200 [1] is a weather station to be installed on boats.
>> It has built-in GPS, accelerometer, compass, gyro, anemometer, =
pressure and=20
>> temperature sensor. It has 2 outputs, one for NMEA0183 and one for
>> NMEA2000 (I've seen the recent addition for NMEA2000, I'm interesting
>> to make some tests and hacking around).=20
>>=20
>> It provides quite a lot of information and use the following NMEA =
sentences:
>> - Usual GPS ones
>> - TIROT, HCHDG and HCHDT for heading related data
>> - WIMWD, WIMWV, WIVWR and WIVWT for wind related data
>> - WIMDA for other meteorological data
>> - WIXDR for detailed transducer measurements/calculations
>>=20
>> This is a WIP, I thought it might be worse to start the review early.
>> Things I didn't look at yet:
>> - Update other tools (xgps, gpspipe, ....)
>> - Update the testsuite(s)
>> - Update documentation
>>=20
>> I naively added a wind data structure, but the WIMDA would require to
>> add yet another one (and in my case the WIXDR will bring even more
>> meteo data than the WIMDA). So maybe these two should be merged
>> together. Though, I didn't do it because there are several ways to
>> express the wind, both for the wind direction and for the wind speed
>> can be viewed from different referential frames: the moving boat, the
>> moving water or the fixed ground, and why not one of these days the
>> moving air mass (for flying things obviously).
>>=20
>> It is likely that I will come one day with yet another structure:
>> engine. I would like to install my openwrt/gpsd based system on a
>> boat, and it has two engines that speak NMEA200 only (I let you
>> imagine how high I jumped off my chair when I saw the new NMEA200 =
code
>> coming in... ;))
>=20
> I've merged the first two patches, and these patches in general look
> good - thorough, clean, and workmanlike.  I encourage you to continue.
> But as you note, there are some missing pieces.  Adding a device log
> to the regression-test suite is a requirement.  And yes, you do need
> to update the documentation.
>=20
> There's a larger piece missing.  You've written JSON dumping for the
> daemon, but you also need to write the JSON parsing for the client
> side. That has to be in places before trying to modify cgps and xgps=20=

> to display the new data will make any sense.
>=20
> I've just written a Hacking Guide section on how to add a sentence
> to the supported set.  It's a serious amount of work, and my hat is
> off to you for having deduced and done so many of the right things on
> your own.
> --=20
> 		<a href=3D"http://www.catb.org/~esr/">Eric S. =
Raymond</a>
>=20



From MAILER-DAEMON Sat Apr 21 15:58:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLgRb-0000LA-A5
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 15:58:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33162)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLgRV-0000IN-W4
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:58:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLgRR-0005Uk-CN
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:58:01 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:41747)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLgRR-0005Uf-2w
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 15:57:57 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id E7E1F5E8D34;
	Sat, 21 Apr 2012 20:57:54 +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 BGt+Aeq0bmnL; Sat, 21 Apr 2012 20:57:53 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 8EFE75E8CCC;
	Sat, 21 Apr 2012 20:57:53 +0100 (IST)
Message-ID: <4F9302D3.1090701@techworks.ie>
Date: Sat, 21 Apr 2012 19:56:19 +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: <1335000862-15312-1-git-send-email-chris@techworks.ie>
	<20120421152321.GA4169@thyrsus.com>
In-Reply-To: <20120421152321.GA4169@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: Christian Gagneraud <chgans@gna.org>, gpsd-dev@nongnu.org
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: Sat, 21 Apr 2012 19:58:05 -0000

On 04/21/2012 04:23 PM, Eric S. Raymond wrote:
> chris@techworks.ie<chris@techworks.ie>:
>> The Airmar PB200 [1] is a weather station to be installed on boats.
>> It has built-in GPS, accelerometer, compass, gyro, anemometer, pressure and
>> temperature sensor. It has 2 outputs, one for NMEA0183 and one for
>> NMEA2000 (I've seen the recent addition for NMEA2000, I'm interesting
>> to make some tests and hacking around).
>>
>> It provides quite a lot of information and use the following NMEA sentences:
>>   - Usual GPS ones
>>   - TIROT, HCHDG and HCHDT for heading related data
>>   - WIMWD, WIMWV, WIVWR and WIVWT for wind related data
>>   - WIMDA for other meteorological data
>>   - WIXDR for detailed transducer measurements/calculations
>>
>> This is a WIP, I thought it might be worse to start the review early.
>> Things I didn't look at yet:
>>   - Update other tools (xgps, gpspipe, ....)
>>   - Update the testsuite(s)
>>   - Update documentation
>>
>> I naively added a wind data structure, but the WIMDA would require to
>> add yet another one (and in my case the WIXDR will bring even more
>> meteo data than the WIMDA). So maybe these two should be merged
>> together. Though, I didn't do it because there are several ways to
>> express the wind, both for the wind direction and for the wind speed
>> can be viewed from different referential frames: the moving boat, the
>> moving water or the fixed ground, and why not one of these days the
>> moving air mass (for flying things obviously).
>>
>> It is likely that I will come one day with yet another structure:
>> engine. I would like to install my openwrt/gpsd based system on a
>> boat, and it has two engines that speak NMEA200 only (I let you
>> imagine how high I jumped off my chair when I saw the new NMEA200 code
>> coming in... ;))
>
> I've merged the first two patches, and these patches in general look
> good - thorough, clean, and workmanlike.  I encourage you to continue.
> But as you note, there are some missing pieces.  Adding a device log
> to the regression-test suite is a requirement.  And yes, you do need
> to update the documentation.

OK, thanks. I will look at the documentation and the regression testsuite.

>
> There's a larger piece missing.  You've written JSON dumping for the
> daemon, but you also need to write the JSON parsing for the client
> side. That has to be in places before trying to modify cgps and xgps
> to display the new data will make any sense.

OK, I thought it was enough to change both gpsd_json.c (json_att_dump 
and json_wind_dump) and libgps_json.c (json_att_read and json_wind_read).
Could you maybe indicate me what I missed here?
I'll have a closer look anyway.

>
> I've just written a Hacking Guide section on how to add a sentence
> to the supported set.  It's a serious amount of work, and my hat is
> off to you for having deduced and done so many of the right things on
> your own.

Thanks, I've just read this new section. It's helpful.
I will have a look at the python binding and try to run splint/cppcheck 
and valgrind.

What is your feeling about adding more fields into the attitude 
structure? I will move them at the end of the structure, they were 
inserted there to keep a logical ordering.

And about the wind and meteo structures as well?
 From your documentation you said it's not nice to break the ABI, which 
I fully agree and understand, but there no other ways around I can think of.

And last, do you have script to check source code against coding style, 
or even perhaps settings for emacs? I saw the reindent script in 
devtools, but the comments in there make me think it's not in use anymore.


Regards,
Chris


From MAILER-DAEMON Sat Apr 21 18:47:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLj5z-0006I6-8j
	for mharc-gpsd-dev@gnu.org; Sat, 21 Apr 2012 18:47:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60018)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SLj5s-0006GG-Su
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 18:47:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SLj5n-0006yF-Oo
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 18:47:52 -0400
Received: from mailout07.t-online.de ([194.25.134.83]:50747)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SLj5n-0006xz-II
	for gpsd-dev@nongnu.org; Sat, 21 Apr 2012 18:47:47 -0400
Received: from fwd09.aul.t-online.de (fwd09.aul.t-online.de )
	by mailout07.t-online.de with smtp 
	id 1SLj5k-0004Vd-OU; Sun, 22 Apr 2012 00:47:44 +0200
Received: from localhost
	(ZqhTYBZTghhpvq3I2++2x52czGRcldKGQMU0q2osDjnyrC4iGS0z5O2bMKacE6NgHY@[172.20.101.250])
	by fwd09.aul.t-online.de
	with esmtp id 1SLj5b-05jYEi0; Sun, 22 Apr 2012 00:47:35 +0200
MIME-Version: 1.0
Received: from 93.218.92.231:49200 by cmpweb11.aul.t-online.de with HTTP/1.1
	(Kommunikationscenter V9-4-1-0 on API V3-8-4-0)
In-Reply-To: <1335000862-15312-1-git-send-email-chris@techworks.ie>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
Date: Sun, 22 Apr 2012 00:47:35 +0200
To: chris@techworks.ie, gpsd-dev@nongnu.org
X-UMS: email
X-Mailer: TOI Kommunikationscenter V9-4-1-0
From: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Message-ID: <1SLj5b-05jYEi0@fwd09.aul.t-online.de>
X-ID: ZqhTYBZTghhpvq3I2++2x52czGRcldKGQMU0q2osDjnyrC4iGS0z5O2bMKacE6NgHY@t-dialin.net
X-TOI-MSGID: db6dc859-667f-4cbb-a222-5743dacc3437
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 194.25.134.83
Cc: Christian Gagneraud <chgans@gna.org>
Subject: Re: [gpsd-dev]
 =?iso-8859-15?q?=5BRFC=5D_Add_support_for_Airmar_PB200?=
 =?iso-8859-15?q?_Weather_station?=
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: Sat, 21 Apr 2012 22:47:57 -0000

Hello,

i am working on nmea2000 support for gpsd since last autumn.

I hope, i have a very early test version ready, but i have access only
to a Garmin GPS, AIS and chartplotter.

Do you have a CAN interface supported by linux socket-can?

If  so, can you send me a log of the CAN messages of the PB200 unit with
"candump"?

For a very early test version, only gps skyview is missing, and i hope,
i have this ready Sunday evening.
This is more a prove of the concept, then code in gpsd quality. No AIS
yet.

Reinhard

-----Original Message-----
Date: Sat, 21 Apr 2012 11:34:16 +0200
Subject: [gpsd-dev] [RFC] Add support for Airmar PB200 Weather station
From: chris@techworks.ie
To: gpsd-dev@nongnu.org

From: Christian Gagneraud <chgans@gna.org>

The Airmar PB200 [1] is a weather station to be installed on boats.
It has built-in GPS, accelerometer, compass, gyro, anemometer, pressure
and 
temperature sensor. It has 2 outputs, one for NMEA0183 and one for
NMEA2000 (I've seen the recent addition for NMEA2000, I'm interesting
to make some tests and hacking around). 







From MAILER-DAEMON Sun Apr 22 08:33:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLvz2-0006JL-6q
	for mharc-gpsd-dev@gnu.org; Sun, 22 Apr 2012 08:33:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44549)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLvyz-0006IR-IL
	for gpsd-dev@nongnu.org; Sun, 22 Apr 2012 08:33:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLvyx-0002ZH-I9
	for gpsd-dev@nongnu.org; Sun, 22 Apr 2012 08:33:37 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:56587)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SLvyx-0002Z7-BP
	for gpsd-dev@nongnu.org; Sun, 22 Apr 2012 08:33:35 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 886C05E8EA2;
	Sun, 22 Apr 2012 13:33:32 +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 uzMf0xsOA1ZF; Sun, 22 Apr 2012 13:33:29 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 840AF5E8EA0;
	Sun, 22 Apr 2012 13:33:29 +0100 (IST)
Message-ID: <4F93FA96.9090006@techworks.ie>
Date: Sun, 22 Apr 2012 13:33: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: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
	<1SLj5b-05jYEi0@fwd09.aul.t-online.de>
In-Reply-To: <1SLj5b-05jYEi0@fwd09.aul.t-online.de>
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: Christian Gagneraud <chgans@gna.org>, gpsd-dev@nongnu.org
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: Sun, 22 Apr 2012 12:33:39 -0000

On 04/21/2012 11:47 PM, Reinhard.Arlt@t-online.de wrote:
> Hello,
>

Hi Reinhard,

> i am working on nmea2000 support for gpsd since last autumn.

Good!

>
> I hope, i have a very early test version ready, but i have access only
> to a Garmin GPS, AIS and chartplotter.
>
> Do you have a CAN interface supported by linux socket-can?

Unfortunately not yet, I was looking at buying one recently, for now I'm 
more into something i can plug on a regular computer, so USB might be a 
good option. It looks like the CANUSB from Lawicel is a cost effective 
solution. What are you using yourself?

>
> If  so, can you send me a log of the CAN messages of the PB200 unit with
> "candump"?

It's gonna be a very tight timing, as the only unit I have right now is 
about to be deployed on the field. If I manage to get a CAN interface 
before the units goes, I'll be very happy to provide you with a dump. I 
will let you know. I have access to boat engines as well, they have 
NMEA200 interfaces to report on various parameters (I think using PGN 
127488/89 and/or 127493/94).

>
> For a very early test version, only gps skyview is missing, and i hope,
> i have this ready Sunday evening.
> This is more a prove of the concept, then code in gpsd quality. No AIS
> yet.

Sounds good to me! ;)

Chris

>
> Reinhard
>
> -----Original Message-----
> Date: Sat, 21 Apr 2012 11:34:16 +0200
> Subject: [gpsd-dev] [RFC] Add support for Airmar PB200 Weather station
> From: chris@techworks.ie
> To: gpsd-dev@nongnu.org
>
> From: Christian Gagneraud<chgans@gna.org>
>
> The Airmar PB200 [1] is a weather station to be installed on boats.
> It has built-in GPS, accelerometer, compass, gyro, anemometer, pressure
> and
> temperature sensor. It has 2 outputs, one for NMEA0183 and one for
> NMEA2000 (I've seen the recent addition for NMEA2000, I'm interesting
> to make some tests and hacking around).
>
>
>
>
>



From MAILER-DAEMON Sun Apr 22 09:40:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SLx20-0005OZ-72
	for mharc-gpsd-dev@gnu.org; Sun, 22 Apr 2012 09:40:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44918)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SLx1x-0005OB-A1
	for gpsd-dev@nongnu.org; Sun, 22 Apr 2012 09:40:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SLx1v-0003Sp-BF
	for gpsd-dev@nongnu.org; Sun, 22 Apr 2012 09:40:44 -0400
Received: from mail1.nippynetworks.com ([91.220.24.129]:33623)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <lists@wildgooses.com>) id 1SLx1v-0003Qr-2p
	for gpsd-dev@nongnu.org; Sun, 22 Apr 2012 09:40:43 -0400
Received: from localhost (mail1.nippynetworks.com [127.0.0.1])
	by mail1.nippynetworks.com (Postfix) with ESMTP id B2470340417
	for <gpsd-dev@nongnu.org>; Sun, 22 Apr 2012 14:40:40 +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 8YLxPpNwK9cM for <gpsd-dev@nongnu.org>;
	Sun, 22 Apr 2012 14:40:40 +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 24478340409
	for <gpsd-dev@nongnu.org>; Sun, 22 Apr 2012 14:40:39 +0100 (BST)
Message-ID: <4F940A57.50805@wildgooses.com>
Date: Sun, 22 Apr 2012 14:40:39 +0100
From: Ed W <lists@wildgooses.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: gpsd-dev@nongnu.org
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
	<1SLj5b-05jYEi0@fwd09.aul.t-online.de>
In-Reply-To: <1SLj5b-05jYEi0@fwd09.aul.t-online.de>
X-TagToolbar-Keys: D20120422144039228
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] [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: Sun, 22 Apr 2012 13:40:46 -0000

On 21/04/2012 23:47, Reinhard.Arlt@t-online.de wrote:
> Hello,
>
> i am working on nmea2000 support for gpsd since last autumn.
>
> I hope, i have a very early test version ready, but i have access only
> to a Garmin GPS, AIS and chartplotter.
>
> Do you have a CAN interface supported by linux socket-can?
>

Would you be interested in being sponsored with an Actisys NG1 usb 
interface to enhance support?  It's basically a reasonably inexpensive 
NMEA2K certified interface with linux support (I believe) - I think for 
many users it might represent the most obvious interface hardware to 
use?  I believe the interface runs at a much higher level than kernel 
CAN though?

Kind regards

Ed W


From MAILER-DAEMON Mon Apr 23 03:10:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMDQ4-00081k-Jj
	for mharc-gpsd-dev@gnu.org; Mon, 23 Apr 2012 03:10:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60191)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SMDQ0-00081F-KW
	for gpsd-dev@nongnu.org; Mon, 23 Apr 2012 03:10:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SMDPy-0002In-Mk
	for gpsd-dev@nongnu.org; Mon, 23 Apr 2012 03:10:40 -0400
Received: from mailout07.t-online.de ([194.25.134.83]:46541)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SMDPy-0002IC-Cn
	for gpsd-dev@nongnu.org; Mon, 23 Apr 2012 03:10:38 -0400
Received: from fwd23.aul.t-online.de (fwd23.aul.t-online.de )
	by mailout07.t-online.de with smtp 
	id 1SMDPv-0003xY-3h; Mon, 23 Apr 2012 09:10:35 +0200
Received: from localhost
	(V+p6-oZdQhvDCKaI7pHjVIgP3-PUuagmegxy9qlILQNIP4GXdZpv-j7uVuB4Yb1QPW@[172.20.101.250])
	by fwd23.aul.t-online.de
	with esmtp id 1SMDPl-0ZnemO0; Mon, 23 Apr 2012 09:10:25 +0200
MIME-Version: 1.0
Received: from 93.218.77.73:51527 by cmpweb16.aul.t-online.de with HTTP/1.1
	(Kommunikationscenter V9-4-1-0 on API V3-8-4-0)
In-Reply-To: <4F940A57.50805@wildgooses.com>
References: <1335000862-15312-1-git-send-email-chris@techworks.ie>
	<1SLj5b-05jYEi0@fwd09.aul.t-online.de> <4F940A57.50805@wildgooses.com>
Date: Mon, 23 Apr 2012 09:10:25 +0200
To: "Ed W" <lists@wildgooses.com>, gpsd-dev@nongnu.org
X-UMS: email
X-Mailer: TOI Kommunikationscenter V9-4-1-0
From: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Message-ID: <1SMDPl-0ZnemO0@fwd23.aul.t-online.de>
X-ID: V+p6-oZdQhvDCKaI7pHjVIgP3-PUuagmegxy9qlILQNIP4GXdZpv-j7uVuB4Yb1QPW@t-dialin.net
X-TOI-MSGID: 946143d2-5584-406c-8af0-fcc03a7d0aa5
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 194.25.134.83
Subject: Re: [gpsd-dev]
 =?iso-8859-15?q?=5BRFC=5D_Add_support_for_Airmar_PB200?=
 =?iso-8859-15?q?_Weather_station?=
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, 23 Apr 2012 07:10:42 -0000

Hello,

-----Original Message-----
Date: Sun, 22 Apr 2012 15:40:39 +0200
Subject: Re: [gpsd-dev] [RFC] Add support for Airmar PB200 Weather
station
From: Ed W <lists@wildgooses.com>
To: gpsd-dev@nongnu.org

On 21/04/2012 23:47, Reinhard.Arlt@t-online.de wrote:
> Hello,
>
> i am working on nmea2000 support for gpsd since last autumn.
>
> I hope, i have a very early test version ready, but i have access only
> to a Garmin GPS, AIS and chartplotter.
>
> Do you have a CAN interface supported by linux socket-can?
>

Would you be interested in being sponsored with an Actisys NG1 usb 
interface to enhance support?  It's basically a reasonably inexpensive 
NMEA2K certified interface with linux support (I believe) - I think for 
many users it might represent the most obvious interface hardware to 
use?  I believe the interface runs at a much higher level than kernel 
CAN though?

My first aproach to support nmea2k for gpsd was a daemon, that read the
CAN messages, and feed nmea183 messages to gpsd via a pty. Based on this
software, i have build a small hardware, based on an OLIMEX LPC-2478STK
board, an own expansion board board for a galvanic isolated CAN
interface, and a SEATALK interface around a FreeRTOS kernel, that feed
NMEA2000 messages, SEATALK messages and input from a GPS receiver to USB
or ethernet as NMEA183 messages. It can also bridge some SEATALK
messages to CAN. 

For the gpsd project, i will focus on CAN interfaces with socket CAN
support first.

My first approach use an abstraction layer for CAN, so i support socket
CAN, the esd CAN API, and an
 "embedded" API for for the LPC2xxx processors, but i do no have the
time to do this this summer for gpsd.

Kind regards

Ed W

Reinhard




From MAILER-DAEMON Wed Apr 25 03:49:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SMwyN-0005HL-Rw
	for mharc-gpsd-dev@gnu.org; Wed, 25 Apr 2012 03:49:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44134)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SMwyH-0005HF-Uo
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 03:49:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SMwy9-0004e4-7g
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 03:49:05 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:40629 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SMwy9-0004dr-3U
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 03:48:57 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 47F1C40822; Wed, 25 Apr 2012 03:48:51 -0400 (EDT)
Date: Wed, 25 Apr 2012 03:48:51 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Bernd Zeimetz <bernd@bzed.de>
Message-ID: <20120425074851.GA32600@thyrsus.com>
References: <20120420103418.A77F040820@snark.thyrsus.com>
	<4F91BDAA.2070101@bzed.de> <20120421054255.GA6607@thyrsus.com>
	<4F930A50.2000208@bzed.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F930A50.2000208@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] 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: Wed, 25 Apr 2012 07:49:10 -0000

Bernd Zeimetz <bernd@bzed.de>:
> armel: no regressions
> armhf: no regressions
> hurd-i386: no regressions
> i386: no regressions
> ia64: no regressions
> kfreebsd-amd64: no regressions
> kfreebsd-i386: no regressions
> powerpc: no regressions
> ppc64: no regressions
 
Excellent.  That is bit-for-bit identical handling of binary protocols
on quite a range of architectures, endiannesses and word sizes.  Not a
small achievement!

> It would be nice if the regress-driver would just fail if there is a pty issue
> instead of spitting out a  lot of diffs.

I agree.  Can you think of a way to test for this from a shellscript?

> Where ever the issue is, it doesn't seem to be related to endianess issues.
> Sparc, s390 and s390x (the 64bit s390 port) seem to be the only architectures
> with issues so far.

Yes, as I said I'm pretty sure this is down to #pragma pack(1) not being
implemented on those machines.
 
> As you can see on
> http://buildd.debian-ports.org/status/package.php?p=gpsd&suite=sid
> we even have some really exotic unofficial architectures - unfortunately not all
> build-dependencies are available there. If there is an interest in making gpsd
> build on one of the listed architectures, please let me know (I think the main
> issue is QT not being available...).

alpha, hppa, sh4, and m68k would be good checks to have.  Missing Qt is
not a problem for the regression tests; that only affects the client side.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Wed Apr 25 07:03:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SN00j-0006Qc-Ms
	for mharc-gpsd-dev@gnu.org; Wed, 25 Apr 2012 07:03:49 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57366)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SN00g-0006Q2-3S
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 07:03:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SN00X-0007KG-2j
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 07:03:45 -0400
Received: from mail.recluse.de ([217.196.146.213]:33442)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SN00W-0007JV-OT
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 07:03:36 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 64A0A24F7C;
	Wed, 25 Apr 2012 13:03:31 +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 4J81Y9gGqW+m; Wed, 25 Apr 2012 13:03:29 +0200 (CEST)
Received: from [192.168.1.34] (congw.dc1.conova.com [217.196.145.250])
	by mail.recluse.de (Postfix) with ESMTPSA id BD70124361;
	Wed, 25 Apr 2012 13:03:29 +0200 (CEST)
Message-ID: <4F97D9FC.4040200@bzed.de>
Date: Wed, 25 Apr 2012 13:03:24 +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: esr@thyrsus.com
References: <20120420103418.A77F040820@snark.thyrsus.com>
	<4F91BDAA.2070101@bzed.de> <20120421054255.GA6607@thyrsus.com>
	<4F930A50.2000208@bzed.de> <20120425074851.GA32600@thyrsus.com>
In-Reply-To: <20120425074851.GA32600@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
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: Wed, 25 Apr 2012 11:03:48 -0000

On 04/25/2012 09:48 AM, Eric S. Raymond wrote:
> Bernd Zeimetz <bernd@bzed.de>:
>> armel: no regressions
>> armhf: no regressions
>> hurd-i386: no regressions
>> i386: no regressions
>> ia64: no regressions
>> kfreebsd-amd64: no regressions
>> kfreebsd-i386: no regressions
>> powerpc: no regressions
>> ppc64: no regressions
>  
> Excellent.  That is bit-for-bit identical handling of binary protocols
> on quite a range of architectures, endiannesses and word sizes.  Not a
> small achievement!
> 
>> It would be nice if the regress-driver would just fail if there is a pty issue
>> instead of spitting out a  lot of diffs.
> 
> I agree.  Can you think of a way to test for this from a shellscript?


Only something like calling a few lines of Python code...


>> Where ever the issue is, it doesn't seem to be related to endianess issues.
>> Sparc, s390 and s390x (the 64bit s390 port) seem to be the only architectures
>> with issues so far.
> 
> Yes, as I said I'm pretty sure this is down to #pragma pack(1) not being
> implemented on those machines.


I'm kinda sure it is implemented, but my guess would be that you hit the
architectures where aligned access is required for some datatypes.
Unaligned access usually throws a sigbus on sparc, but my wild guess is
that you work around that somehow...

To find the issue do something like
- (hex)-dump buf in rtcm2_unpack
- print each struct member after the
    struct rtcm2_msg_t *msg = (struct rtcm2_msg_t *)buf;
  call

do this on a working and a non-working architecture with the same
endianess and compare the results. That should at least show where the
issue resides, but I doubt it is easily fixable without rewriting the
whole thing into something that splits buf into pieces and fills sane
(sane as in: ensure there is no unaligned access, do not use #pragma
pack...) structs manually (actually, looking at the code I think that
would be easy to do, just a lengthy amount of work).


>> As you can see on
>> http://buildd.debian-ports.org/status/package.php?p=gpsd&suite=sid
>> we even have some really exotic unofficial architectures - unfortunately not all
>> build-dependencies are available there. If there is an interest in making gpsd
>> build on one of the listed architectures, please let me know (I think the main
>> issue is QT not being available...).
> 
> alpha, hppa, sh4, and m68k would be good checks to have.  Missing Qt is
> not a problem for the regression tests; that only affects the client side.

sh4 managed to build the package in the meantime, no issues.
I'll have a look what needs to be done to build it on the other platforms.

-- 
 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 Apr 25 07:48:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SN0ht-0006Y5-CN
	for mharc-gpsd-dev@gnu.org; Wed, 25 Apr 2012 07:48:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35988)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SN0hm-0006Wy-2P
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 07:48:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SN0hd-0006Pv-Fu
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 07:48:17 -0400
Received: from static-71-162-243-5.phlapa.fios.verizon.net
	([71.162.243.5]:42728 helo=snark.thyrsus.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <esr@thyrsus.com>) id 1SN0hd-0006Pp-Be
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 07:48:09 -0400
Received: by snark.thyrsus.com (Postfix, from userid 1000)
	id 489CD40822; Wed, 25 Apr 2012 07:48:04 -0400 (EDT)
Date: Wed, 25 Apr 2012 07:48:03 -0400
From: "Eric S. Raymond" <esr@thyrsus.com>
To: Bernd Zeimetz <bernd@bzed.de>
Message-ID: <20120425114803.GA23558@thyrsus.com>
References: <20120420103418.A77F040820@snark.thyrsus.com>
	<4F91BDAA.2070101@bzed.de> <20120421054255.GA6607@thyrsus.com>
	<4F930A50.2000208@bzed.de> <20120425074851.GA32600@thyrsus.com>
	<4F97D9FC.4040200@bzed.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F97D9FC.4040200@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] 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: Wed, 25 Apr 2012 11:48:23 -0000

Bernd Zeimetz <bernd@bzed.de>:
> > I agree.  Can you think of a way to test for [ptys] from a shellscript?
> 
> Only something like calling a few lines of Python code...

Yes, I'll probably have to do that.  Ugh.

> > Yes, as I said I'm pretty sure this is down to #pragma pack(1) not being
> > implemented on those machines.
> 
> I'm kinda sure it is implemented, but my guess would be that you hit the
> architectures where aligned access is required for some datatypes.

That's more or less what I mean.  #pragma pack(1) *can't* be implemented
on a machine with aligned-access requirements - well, not without going
to code-generation lengths that most compilers won't, anyway.

> Unaligned access usually throws a sigbus on sparc, but my wild guess is
> that you work around that somehow...

I've done no workaround.  The code generator for SPARC must just be
Doing The Right Thing - copying each unaligned member to an aligned
location before trying to interpret it.

>                                That should at least show where the
> issue resides, but I doubt it is easily fixable without rewriting the
> whole thing into something that splits buf into pieces and fills sane
> (sane as in: ensure there is no unaligned access, do not use #pragma
> pack...) structs manually (actually, looking at the code I think that
> would be easy to do, just a lengthy amount of work).

Yes, I've already discussed this with Gary.  I'm too close to the code;
he's going to take a whack at it when he gets back from the Caymans.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>


From MAILER-DAEMON Sun Apr 29 11:14:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOVpY-0003ox-IW
	for mharc-gpsd-dev@gnu.org; Sun, 29 Apr 2012 11:14:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32982)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpV-0003no-0l
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpT-0001bV-Ch
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:28 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:58307)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpT-0001XO-67
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:27 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 3D6855E9E8B
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14:24 +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 R+eByUaEHrAm for <gpsd-dev@nongnu.org>;
	Sun, 29 Apr 2012 16:14:23 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id 014B05E9E86
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14:22 +0100 (IST)
From: Christian Gagneraud <chris@techworks.ie>
To: gpsd-dev@nongnu.org
Date: Sun, 29 Apr 2012 16:14:25 +0100
Message-ID: <20120429151146.15510.49192.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 0/3] Attitude related small 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: Sun, 29 Apr 2012 15:14:31 -0000

These patches fixes documentations related to the attitude structure and a last
 missing field inititalisation.

PS: Sorry, if it is a resend, but I sent it a first time with the wrong email 
address. I'm pretty sure the emails never reach the list.

---

Christian Gagneraud (3):
      Fix attitude documentation.
      Fix documentation in the attitude structure
      Add missing attitude field initialisation in NMEA HDT


 driver_nmea0183.c |    2 ++
 gpsd_json.xml     |    7 ++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

-- 
Signature


From MAILER-DAEMON Sun Apr 29 11:14:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOVpb-0003to-Lb
	for mharc-gpsd-dev@gnu.org; Sun, 29 Apr 2012 11:14:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33010)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpY-0003oZ-KH
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpW-0001gg-Rw
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:32 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:58312)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpW-0001ft-LT
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:30 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 65E455E9E8B
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14: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 L2DsgCcmqueO for <gpsd-dev@nongnu.org>;
	Sun, 29 Apr 2012 16:14:28 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id A4A145E9E86
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14:28 +0100 (IST)
From: Christian Gagneraud <chris@techworks.ie>
To: gpsd-dev@nongnu.org
Date: Sun, 29 Apr 2012 16:14:31 +0100
Message-ID: <20120429151431.15510.89225.stgit@pluton.site>
In-Reply-To: <20120429151146.15510.49192.stgit@pluton.site>
References: <20120429151146.15510.49192.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 1/3] Add missing attitude field initialisation in
	NMEA HDT
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, 29 Apr 2012 15:14:34 -0000

Signed-off-by: Christian Gagneraud <chris@techworks.ie>
---

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

diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index c269180..6b46b0f 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -804,6 +804,8 @@ static gps_mask_t processHDT(int c UNUSED, char *field[],
     session->gpsdata.attitude.acc_z = NAN;
     session->gpsdata.attitude.gyro_x = NAN;
     session->gpsdata.attitude.gyro_y = NAN;
+    session->gpsdata.attitude.temp = NAN;
+    session->gpsdata.attitude.depth = NAN;
     mask |= (ATTITUDE_SET);
 
     gpsd_report(LOG_RAW, "time %.3f, heading %lf.\n",



From MAILER-DAEMON Sun Apr 29 11:14:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOVpg-0003zp-OV
	for mharc-gpsd-dev@gnu.org; Sun, 29 Apr 2012 11:14:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33044)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpe-0003z2-6U
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpc-0001kE-Hv
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:37 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:58318)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpc-0001j9-CA
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:36 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 1DAE95E9E8C
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14:35 +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 ODlOh0pw5z6l for <gpsd-dev@nongnu.org>;
	Sun, 29 Apr 2012 16:14:34 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id 54EA05E9E86
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14:34 +0100 (IST)
From: Christian Gagneraud <chris@techworks.ie>
To: gpsd-dev@nongnu.org
Date: Sun, 29 Apr 2012 16:14:37 +0100
Message-ID: <20120429151437.15510.59238.stgit@pluton.site>
In-Reply-To: <20120429151146.15510.49192.stgit@pluton.site>
References: <20120429151146.15510.49192.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 2/3] Fix documentation in the attitude structure
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, 29 Apr 2012 15:14:39 -0000

A couple of patches have been send recently that initialiasize the temperature
and water depth to NAN when the information is not available.
This has changed the JSON output for certains devices.
This patch fixes the documentation accordingly.

Signed-off-by: Christian Gagneraud <chris@techworks.ie>
---

 gpsd_json.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gpsd_json.xml b/gpsd_json.xml
index 35a9df2..25c6bde 100644
--- a/gpsd_json.xml
+++ b/gpsd_json.xml
@@ -793,7 +793,7 @@ will assert ATT_IS.</para>
 {"class":"ATT","tag":"PTNTHTM","time":1270938096.843,
     "heading":14223.00,"mag_st":"N",
     "pitch":169.00,"pitch_st":"N", "roll":-43.00,"roll_st":"N",
-    "dip":13641.000,"mag_x":2454.000,"temperature":0.000,"depth":0.000}
+    "dip":13641.000,"mag_x":2454.000}
 </programlisting>
 </listitem>
 </varlistentry>



From MAILER-DAEMON Sun Apr 29 11:14:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOVpm-00045h-Sp
	for mharc-gpsd-dev@gnu.org; Sun, 29 Apr 2012 11:14:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33083)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpk-00045T-0G
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpi-0001mj-8i
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:43 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:58328)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOVpi-0001m0-2m
	for gpsd-dev@nongnu.org; Sun, 29 Apr 2012 11:14:42 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id C6D5D5E9E8D
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14:40 +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 ZB0FfrZClb0u for <gpsd-dev@nongnu.org>;
	Sun, 29 Apr 2012 16:14:40 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id 09A125E9E86
	for <gpsd-dev@nongnu.org>; Sun, 29 Apr 2012 16:14:39 +0100 (IST)
From: Christian Gagneraud <chris@techworks.ie>
To: gpsd-dev@nongnu.org
Date: Sun, 29 Apr 2012 16:14:42 +0100
Message-ID: <20120429151442.15510.22034.stgit@pluton.site>
In-Reply-To: <20120429151146.15510.49192.stgit@pluton.site>
References: <20120429151146.15510.49192.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 3/3] 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, 29 Apr 2012 15:14:45 -0000

This patch fix some typos in the attitude structure documentaiton.

Signed-off-by: Christian Gagneraud <chris@techworks.ie>
---

 gpsd_json.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gpsd_json.xml b/gpsd_json.xml
index 25c6bde..23b6993 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 Mon Apr 30 11:13:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOsI7-0006QO-IM
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 11:13:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45838)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SOsI4-0006P3-5N
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 11:13:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SOsI2-0006dy-DF
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 11:13:27 -0400
Received: from mailout11.t-online.de ([194.25.134.85]:48517)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SOsI1-0006dh-Ve
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 11:13:26 -0400
Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de )
	by mailout11.t-online.de with smtp 
	id 1SOsHz-0005PU-AA; Mon, 30 Apr 2012 17:13:23 +0200
Received: from localhost
	(XVxI8EZbrh20mEYgatOlFTN55q9XTtis32RTufzv4SFAUpUrCMO4OS5cmageG9Sgml@[172.20.101.250])
	by fwd07.aul.t-online.de
	with esmtp id 1SOsHu-273jDE0; Mon, 30 Apr 2012 17:13:18 +0200
MIME-Version: 1.0
Received: from 89.183.34.108:58403 by cmpweb36.aul.t-online.de with HTTP/1.1
	(NGCS V4-0-4-0 on API V3-11-7-2)
Date: Mon, 30 Apr 2012 17:13:18 +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: multipart/alternative;
	boundary="=_f656aa02ec768165b9c834d5ac14dc8c"
Message-ID: <1SOsHu-273jDE0@fwd07.aul.t-online.de>
X-ID: XVxI8EZbrh20mEYgatOlFTN55q9XTtis32RTufzv4SFAUpUrCMO4OS5cmageG9Sgml@t-dialin.net
X-TOI-MSGID: 0321dc0c-ed18-4021-b4c1-bd59da4f2073
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 194.25.134.85
Subject: [gpsd-dev] Build of gpsd fails
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, 30 Apr 2012 15:13:29 -0000

--=_f656aa02ec768165b9c834d5ac14dc8c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hallo, 

	on Ubuntu 12.04, the build of gpsd fails with 

	gpsutils.c:(.text+0x3b3): undefined reference to `clock_gettime' 

	in "my" module driver_nmea2000.c. 

	Here is the output of SConns. 

	gcc -o gpsdecode -Wl,-rpath=//usr/local/lib gpsdecode.o -L.
-L/usr/local/lib -lrt -lgpsd -lgps -lm 

	./libgpsd.a(driver_nmea2000.o): In function `nmea2000_get': 

	driver_nmea2000.c:(.text+0x12e): undefined reference to
`clock_gettime' 

	./libgps.a(gpsutils.o): In function `timestamp': 

	gpsutils.c:(.text+0x3b3): undefined reference to `clock_gettime' 

	collect2: ld returned 1 exit status 

	scons: *** [gpsdecode] Error 1 

	scons: building terminated because of errors. 

	There are hints, that -lrt library reference should be after the
library using it for newer gcc's. 

	The following command with "-lrt" at the end of the command line
works. 

	ar@xxxxx:~/gpsd/gpsd$ gcc -o gpsdecode -Wl,-rpath=//usr/local/lib
gpsdecode.o -L. -L/usr/local/lib -lgpsd -lgps -lm -lrt 

	I will disable the section in driver_nmea2000.c for now, as it is
used for writing a logfile only. 

	I am not a wizard of "scons", what need to be changed, that "-lrt"
goes to the end of the command line? 

	Reinhard
--=_f656aa02ec768165b9c834d5ac14dc8c
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;">on Ubuntu 12.04, the build of gpsd fails with</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">gpsutils.c:(.text+0x3b3): undefined reference to =
`clock_gettime'</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">in "my" module driver_nmea2000.c.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">Here is the output of SConns.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">gcc -o gpsdecode -Wl,-rpath=3D//usr/local/lib gps=
decode.o -L. -L/usr/local/lib -lrt -lgpsd -lgps -lm</p>
<p style=3D"margin: 0px;">./libgpsd.a(driver_nmea2000.o): In function `nmea=
2000_get':</p>
<p style=3D"margin: 0px;">driver_nmea2000.c:(.text+0x12e): undefined refere=
nce to `clock_gettime'</p>
<p style=3D"margin: 0px;">./libgps.a(gpsutils.o): In function `timestamp':<=
/p>
<p style=3D"margin: 0px;">gpsutils.c:(.text+0x3b3): undefined reference to =
`clock_gettime'</p>
<p style=3D"margin: 0px;">collect2: ld returned 1 exit status</p>
<p style=3D"margin: 0px;">scons: *** [gpsdecode] Error 1</p>
<p style=3D"margin: 0px;">scons: building terminated because of errors.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">There are hints, that -lrt library reference shou=
ld be after the library using it for newer gcc's.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">The following command with "-lrt" at the end of t=
he command line works.</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">ar@xxxxx:~/gpsd/gpsd$ gcc -o gpsdecode -Wl,-rpath=
=3D//usr/local/lib gpsdecode.o -L. -L/usr/local/lib -lgpsd -lgps -lm -lrt</=
p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">I will disable the section in driver_nmea2000.c f=
or now, as it is used for writing a logfile only.</p>
<p style=3D"margin: 0px;">I am not a wizard of "scons", what need to be cha=
nged, that "-lrt" goes to the end of the command line?</p>
<p style=3D"margin: 0px;">&nbsp;</p>
<p style=3D"margin: 0px;">Reinhard</p>
<p style=3D"margin: 0px;">&nbsp;</p></body></html>
--=_f656aa02ec768165b9c834d5ac14dc8c--




From MAILER-DAEMON Mon Apr 30 13:51:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOul9-0006DZ-Kg
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 13:51:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:53485)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nknotts@vctinc.com>) id 1SN3iT-0002HW-2X
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 11:01:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nknotts@vctinc.com>) id 1SN3iR-0005Xd-3H
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 11:01:12 -0400
Received: from mail-qa0-f52.google.com ([209.85.216.52]:58012)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nknotts@vctinc.com>) id 1SN3iQ-0005XK-Oc
	for gpsd-dev@nongnu.org; Wed, 25 Apr 2012 11:01:11 -0400
Received: by qabg40 with SMTP id g40so800105qab.4
	for <gpsd-dev@nongnu.org>; Wed, 25 Apr 2012 08:01:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vctinc.com; s=google;
	h=from:content-type:content-transfer-encoding:subject:date:message-id
	:to:mime-version:x-mailer;
	bh=x/ConZSFX556tikzE4gJ1Rig8ksGrrVEhlJg2u7gMa4=;
	b=P4DUdPRbYDajHIeC2I4npCtN0tCpIiZ0GwENmFlJyCoMPoaeHI4JK35PEap/V8Go2I
	kUZcoJoLL6LzNUWvyl8FAJPzaChGa5qoCAvoFjflhM5YDeOTSdSzcpr79nHkNdHFVeM1
	v+G7U8vsTqwFUHlQbzXOsFkJpqgSAPbWb+RnA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=from:content-type:content-transfer-encoding:subject:date:message-id
	:to:mime-version:x-mailer:x-gm-message-state;
	bh=x/ConZSFX556tikzE4gJ1Rig8ksGrrVEhlJg2u7gMa4=;
	b=coMApLQ4iY5IAQQw/Z+WNk+BBBekT9oER9g9pNez/z9nIWMfIrQtfR4IY64HG796qN
	6fWe0GbnUzO4xDyjoe2cpWfYVpkU8qC8tO/mBb4L2w+NzxlVT4cOuRgYgkJkLv2K9VO5
	govEtUaz1vP/xoorB93JSSLhyj/WZBYBOmdqccWo2dgfBx5XjHm/FsmXwZaV+RY885kT
	bkBlV0cg8Jh/X8N2lFpDe9cdRHFTZB8Mk+b5ZLMnMB1RxHd/Q+l1dpcQo6Bs5LkEJ9+u
	p/UvtghtXU9rOkLVtJ+ljKKTOE6mRLfC0sqrtIB0m/no1F6uxZUU/nbWxfjyxKMXC3QV
	XtBw==
Received: by 10.229.135.209 with SMTP id o17mr593155qct.152.1335366067586;
	Wed, 25 Apr 2012 08:01:07 -0700 (PDT)
Received: from [10.0.0.195]
	(70-91-85-201-washingtondc-md.hfc.comcastbusiness.net.
	[70.91.85.201])
	by mx.google.com with ESMTPS id g9sm646012qac.3.2012.04.25.08.01.06
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 25 Apr 2012 08:01:06 -0700 (PDT)
From: Nathan Knotts <nknotts@vctinc.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Wed, 25 Apr 2012 11:01:05 -0400
Message-Id: <5F6AC355-5837-4CC7-98D4-0EFAEF952F37@vctinc.com>
To: gpsd-dev@nongnu.org
Mime-Version: 1.0 (Apple Message framework v1084)
X-Mailer: Apple Mail (2.1084)
X-Gm-Message-State: ALoCoQm1Lisa0dFm1N1icHUNr2kwX8/kh5vevevxZhjVhY2yR3MmfWz94y4kWMaZzxPUE3wd4crs
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.216.52
X-Mailman-Approved-At: Mon, 30 Apr 2012 13:51:38 -0400
Subject: [gpsd-dev] [PATCH] add CTS handshake pin to PPS
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, 25 Apr 2012 15:01:22 -0000

I'm currently using the Xtreme104 12 port serial board which only has =
the CTS handshaking lines exposed. Previous gpsd releases had support =
for the cts handshaking pin via compile time options, then later, =
command line options. As of release 3.5, these options have been removed =
and automatic detection occurs. However, the bitmask defining which =
control lines to listen to (PPS_LINE_TIOC) does not include the CTS =
line. I've added  TIOCM_CTS to that bitmask to include CTS capability. =
This has been tested to work with a ublox chip outputting NMEA.=20

=46rom a52dbe3cff987b24f7ff54e306a0864f183bc7c4 Mon Sep 17 00:00:00 2001
From: Nathan Knotts <nknotts@vctinc.com>
Date: Wed, 25 Apr 2012 10:37:22 -0400
Subject: [PATCH] added support for CTS handshaking line for PPS

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

diff --git a/ntpshm.c b/ntpshm.c
index 896a4b7..36187ea 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -620,7 +620,7 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg)
=20
     /* root privileges are not required after this point */
=20
-#define PPS_LINE_TIOC (TIOCM_CD|TIOCM_CAR|TIOCM_RI)
+#define PPS_LINE_TIOC (TIOCM_CD|TIOCM_CAR|TIOCM_RI|TIOCM_CTS)
=20
     /*=20
      * Wait for status change on any handshake line. The only =
assumption here=20
--=20
1.7.8.3


Nathan Knotts
Vehicle Control Technologies, Inc.
703-620-0703 x129



From MAILER-DAEMON Mon Apr 30 13:51:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOulA-0006Hf-Ii
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 13:51:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60669)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOE9e-0004fL-DV
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:22:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOE9c-00088H-Qq
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:22:05 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:45019)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOE9c-00088B-K8
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:22:04 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 77D325E9D67
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:22: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 5Oj3c5E+haxD for <gpsd-dev@nongnu.org>;
	Sat, 28 Apr 2012 21:22:02 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id 8C7555E9D65
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:22:02 +0100 (IST)
From: Christian Gagneraud <chgans@gna.org>
To: gpsd-dev@nongnu.org
Date: Sat, 28 Apr 2012 21:22:05 +0100
Message-ID: <20120428202028.10446.42151.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
X-Mailman-Approved-At: Mon, 30 Apr 2012 13:51:38 -0400
Subject: [gpsd-dev] [PATCH 0/2] Attitude structure 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: Sat, 28 Apr 2012 20:22:07 -0000

These 2 small patches finish (hopefully) the job of fixing the fields initialisation.
I originally had a third patch to fix the TNT regression test, but someone had been faster than me! ;)

---

Christian Gagneraud (2):
      Fix documentation following patches that fix the missing initialisations in the attitude structure
      Add missing attitude field initialisation in NMEA HDT


 driver_nmea0183.c |    2 ++
 gpsd_json.xml     |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

-- 


From MAILER-DAEMON Mon Apr 30 13:51:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOulB-0006M7-Pa
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 13:51:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60726)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOEAJ-0004gt-TJ
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:22:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOEAI-0008Be-6G
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:22:47 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:42597)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOEAH-0008Ba-W6
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:22:46 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id DAEE55E9D67
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:22:44 +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 BHVcLmSatmT9 for <gpsd-dev@nongnu.org>;
	Sat, 28 Apr 2012 21:22:44 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id 1CDC35E9D65
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:22:44 +0100 (IST)
From: Christian Gagneraud <chgans@gna.org>
To: gpsd-dev@nongnu.org
Date: Sat, 28 Apr 2012 21:22:46 +0100
Message-ID: <20120428202210.10446.17066.stgit@pluton.site>
In-Reply-To: <20120428202028.10446.42151.stgit@pluton.site>
References: <20120428202028.10446.42151.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
X-Mailman-Approved-At: Mon, 30 Apr 2012 13:51:38 -0400
Subject: [gpsd-dev] [PATCH 1/2] Add missing attitude field initialisation in
	NMEA HDT
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, 28 Apr 2012 20:22:49 -0000

Signed-off-by: Christian Gagneraud <chgans@gna.org>

---

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

diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index c269180..6b46b0f 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -804,6 +804,8 @@ static gps_mask_t processHDT(int c UNUSED, char *field[],
     session->gpsdata.attitude.acc_z = NAN;
     session->gpsdata.attitude.gyro_x = NAN;
     session->gpsdata.attitude.gyro_y = NAN;
+    session->gpsdata.attitude.temp = NAN;
+    session->gpsdata.attitude.depth = NAN;
     mask |= (ATTITUDE_SET);
 
     gpsd_report(LOG_RAW, "time %.3f, heading %lf.\n",



From MAILER-DAEMON Mon Apr 30 13:51:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOulC-0006PL-KN
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 13:51:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60755)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOEAc-0004hK-Di
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:23:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOEAa-0008Ce-Ll
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:23:05 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:42604)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOEAa-0008CZ-FD
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:23:04 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 5FA285E9D67
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:23: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 EBEoAd9SxNiP for <gpsd-dev@nongnu.org>;
	Sat, 28 Apr 2012 21:23:02 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id A40F55E9D65
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:23:02 +0100 (IST)
From: Christian Gagneraud <chgans@gna.org>
To: gpsd-dev@nongnu.org
Date: Sat, 28 Apr 2012 21:23:05 +0100
Message-ID: <20120428202252.10446.90184.stgit@pluton.site>
In-Reply-To: <20120428202028.10446.42151.stgit@pluton.site>
References: <20120428202028.10446.42151.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
X-Mailman-Approved-At: Mon, 30 Apr 2012 13:51:38 -0400
Subject: [gpsd-dev] [PATCH 2/2] Fix documentation following patches that fix
 the missing initialisations in the attitude structure
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, 28 Apr 2012 20:23:07 -0000

A couple of patches have been send recently that initialiasize the temperature
and water depth to NAN when the information is not available.
This has changed the JSON output for certains devices.
This patch fixes documentation and testsuites accordingly.

Signed-off-by: Christian Gagneraud <chgans@gna.org>

---

 gpsd_json.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gpsd_json.xml b/gpsd_json.xml
index 35a9df2..25c6bde 100644
--- a/gpsd_json.xml
+++ b/gpsd_json.xml
@@ -793,7 +793,7 @@ will assert ATT_IS.</para>
 {"class":"ATT","tag":"PTNTHTM","time":1270938096.843,
     "heading":14223.00,"mag_st":"N",
     "pitch":169.00,"pitch_st":"N", "roll":-43.00,"roll_st":"N",
-    "dip":13641.000,"mag_x":2454.000,"temperature":0.000,"depth":0.000}
+    "dip":13641.000,"mag_x":2454.000}
 </programlisting>
 </listitem>
 </varlistentry>



From MAILER-DAEMON Mon Apr 30 13:51:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOul9-0006Ey-WB
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 13:51:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:60474)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOE7X-0004RW-ES
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:19:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOE7V-0007iy-QD
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:19:55 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:45003)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chgans@gna.org>) id 1SOE7V-0007a1-K2
	for gpsd-dev@nongnu.org; Sat, 28 Apr 2012 16:19:53 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 949395E9D67
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:19: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 fM0aQ0nOyG+t for <gpsd-dev@nongnu.org>;
	Sat, 28 Apr 2012 21:19:28 +0100 (IST)
Received: from pluton.site (unknown [86.43.120.173])
	by mailx.techworks.ie (Postfix) with ESMTPA id C862D5E9D65
	for <gpsd-dev@nongnu.org>; Sat, 28 Apr 2012 21:19:28 +0100 (IST)
From: Christian Gagneraud <chgans@gna.org>
To: gpsd-dev@nongnu.org
Date: Sat, 28 Apr 2012 21:19:31 +0100
Message-ID: <20120428201618.10404.46780.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
X-Mailman-Approved-At: Mon, 30 Apr 2012 13:51:38 -0400
Subject: [gpsd-dev] [PATCH 0/2] Series short description
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, 28 Apr 2012 20:19:56 -0000

The following series implements...

---

Christian Gagneraud (2):
      Fix documentation following patches that fix the missing initialisations in the attitude structure
      Add missing attitude field initialisation in NMEA HDT


 driver_nmea0183.c |    2 ++
 gpsd_json.xml     |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

-- 
Signature


From MAILER-DAEMON Mon Apr 30 16:34:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOxIS-0001SL-5E
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 16:34:12 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58471)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOxIP-0001S8-Hc
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 16:34:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOxIM-0000Rg-9U
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 16:34:09 -0400
Received: from mailx.techworks.ie ([88.198.36.49]:53271)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris@techworks.ie>) id 1SOxIM-0000Kt-2E
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 16:34:06 -0400
Received: from localhost (localhost [127.0.0.1])
	by mailx.techworks.ie (Postfix) with ESMTP id 377395EA0F7
	for <gpsd-dev@nongnu.org>; Mon, 30 Apr 2012 21:34:01 +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 K9qQYHUtNuCj for <gpsd-dev@nongnu.org>;
	Mon, 30 Apr 2012 21:33:59 +0100 (IST)
Received: from [192.168.2.2] (unknown [89.100.126.65])
	by mailx.techworks.ie (Postfix) with ESMTPSA id 603485EA0F3
	for <gpsd-dev@nongnu.org>; Mon, 30 Apr 2012 21:33:59 +0100 (IST)
Message-ID: <4F9EF736.7030602@techworks.ie>
Date: Mon, 30 Apr 2012 21:33:58 +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
References: <20120428202028.10446.42151.stgit@pluton.site>
In-Reply-To: <20120428202028.10446.42151.stgit@pluton.site>
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
Subject: Re: [gpsd-dev] [PATCH 0/2] Attitude structure 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: Mon, 30 Apr 2012 20:34:11 -0000

Hi,

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.

Chris



On 04/28/2012 09:22 PM, Christian Gagneraud wrote:
> These 2 small patches finish (hopefully) the job of fixing the fields initialisation.
> I originally had a third patch to fix the TNT regression test, but someone had been faster than me! ;)
>
> ---
>
> Christian Gagneraud (2):
>        Fix documentation following patches that fix the missing initialisations in the attitude structure
>        Add missing attitude field initialisation in NMEA HDT
>
>
>   driver_nmea0183.c |    2 ++
>   gpsd_json.xml     |    2 +-
>   2 files changed, 3 insertions(+), 1 deletions(-)
>



From MAILER-DAEMON Mon Apr 30 17:01:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOxis-0004Xa-0S
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 17:01:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56165)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxio-0004W9-Go
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:01:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxim-0001cf-JT
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:01:26 -0400
Received: from mail.recluse.de ([217.196.146.213]:52809)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxim-0001c1-Ch
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:01:24 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id C5E5E26F59;
	Mon, 30 Apr 2012 23:01: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 rKrtRDeE0JmK; Mon, 30 Apr 2012 23:01:19 +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 0AC9926F3F;
	Mon, 30 Apr 2012 23:01:18 +0200 (CEST)
Message-ID: <4F9EFD9E.9040408@bzed.de>
Date: Mon, 30 Apr 2012 23:01:18 +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, Reinhard.Arlt@t-online.de
References: <1SOsHu-273jDE0@fwd07.aul.t-online.de>
In-Reply-To: <1SOsHu-273jDE0@fwd07.aul.t-online.de>
X-Enigmail-Version: 1.4
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
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: Mon, 30 Apr 2012 21:01:28 -0000

Hi,

> 	There are hints, that -lrt library reference should be after the
> library using it for newer gcc's. 
> 
> 	The following command with "-lrt" at the end of the command line
> works. 

my guess is that the reason for your issue was that the check for libcap should
not overwrite rtlibs but define something like caplibs and use those later,
additionally to rtlibs.

if config.CheckLib('libcap'):
    confdefs.append("#define HAVE_LIBCAP 1\n")
    # System library - no special flags
    rtlibs = ["-lcap"]
[....]


I've pushed a fix for that (including a hopefully proper definition of necessary
linkage with -lcap), please pull the current head and see if it works for you.


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 Mon Apr 30 17:06:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOxnf-0004uT-00
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 17:06:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46506)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxnc-0004tq-Am
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:06:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxna-0003Y4-IU
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:06:23 -0400
Received: from mail.recluse.de ([217.196.146.213]:52407)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxna-0003Xz-Bw
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:06:22 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 3C39026F3F;
	Mon, 30 Apr 2012 23:06:21 +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 NO2j2w1GhU2G; Mon, 30 Apr 2012 23:06:20 +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 D35A826F5E;
	Mon, 30 Apr 2012 23:06:19 +0200 (CEST)
Message-ID: <4F9EFECB.5060900@bzed.de>
Date: Mon, 30 Apr 2012 23:06:19 +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, Reinhard.Arlt@t-online.de
X-Enigmail-Version: 1.4
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
Subject: [gpsd-dev] driver_nmea2000 build 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, 30 Apr 2012 21:06:25 -0000

hi,

looking at the driver_nmea2000.c source I see

#include <linux/can.h>
#include <linux/can/raw.h>

which makes me kinda sure that this will never build on non-linux machines.
There is no check in SConstruct if the build happens on a system without these
headers, so it will always try to build the files and fail if they don't exist.
Is there not a useful way to use the can bus (if we really have to?) without
using linux specific headers?

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 Mon Apr 30 17:12:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOxtg-0005xw-97
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 17:12:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54586)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SOxtd-0005xk-Bm
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:12:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SOxtb-00054L-84
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:12:36 -0400
Received: from mail-pb0-f45.google.com ([209.85.160.45]:42651)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SOxta-00053o-W3
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:12:35 -0400
Received: by pbbro12 with SMTP id ro12so3977677pbb.4
	for <gpsd-dev@nongnu.org>; Mon, 30 Apr 2012 14:12:31 -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=vsqiRx8WdMw0pM0DYNUUaDNCqw3+dB5C3cwUJmEHNc8=;
	b=GiHWN9HvmnCGw/x7uI0nSWJI7YNWzpm807vwgyTGy7CpHGOC55Gy5nLC3guwMCXedX
	BgDP5X/PM+gSw/gwkmXm5sAU4U3Sdy6RnLvo+/l2fFmp5RMjm1ol9NW/WkIZFN1Fp7qo
	34XAj7s/P0WHh/uQwcYuN8jOOjSbdOzC03dESFB4iqFsGQqMUh6MjinC33FNe14y/OQl
	FIv/2mxmakE1SYlqIfSEdF6BoYUlVjMtw/TTNUlzR130LQQ86IqSUCcRwKoqO/ZDP6Mp
	2X1B9ISHDfwTplQAp8vXPq38FQheJBOtxEkCRxYFOex1qikOrGIzEri5vXysSHPk5wq0
	VwTA==
Received: by 10.68.219.226 with SMTP id pr2mr8565375pbc.66.1335820350902; Mon,
	30 Apr 2012 14:12:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.50.226 with HTTP; Mon, 30 Apr 2012 14:12:10 -0700 (PDT)
In-Reply-To: <4F9EFD9E.9040408@bzed.de>
References: <1SOsHu-273jDE0@fwd07.aul.t-online.de> <4F9EFD9E.9040408@bzed.de>
From: Chris Kuethe <chris.kuethe@gmail.com>
Date: Mon, 30 Apr 2012 14:12:10 -0700
Message-ID: <CAGHP0pKNZWzmjZrrJRCSNOC+iqQ=mT0p01YrRoJ0LoWfd6raxg@mail.gmail.com>
To: Bernd Zeimetz <bernd@bzed.de>
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.160.45
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: Mon, 30 Apr 2012 21:12:39 -0000

 -O2 -pthread -I/usr/local/include/libusb-1.0 libgpsd_core.c
libgpsd_core.c:29:23: error: linux/can.h: No such file or directory
libgpsd_core.c:30:27: error: linux/can/raw.h: No such file or directory
libgpsd_core.c: In function 'gpsd_open':
libgpsd_core.c:313: error: storage size of 'addr' isn't known
libgpsd_core.c:317: error: 'PF_CAN' undeclared (first use in this function)
libgpsd_core.c:317: error: (Each undeclared identifier is reported only onc=
e
libgpsd_core.c:317: error: for each function it appears in.)
libgpsd_core.c:317: error: 'CAN_RAW' undeclared (first use in this function=
)
libgpsd_core.c:334: error: 'SIOCGIFINDEX' undeclared (first use in
this function)
libgpsd_core.c:344: error: 'AF_CAN' undeclared (first use in this function)
libgpsd_core.c:345: error: 'struct ifreq' has no member named 'ifr_ifindex'
libgpsd_core.c:313: warning: unused variable 'addr'
scons: *** [libgpsd_core.o] Error 1
scons: building terminated because of errors.


On Mon, Apr 30, 2012 at 14:01, Bernd Zeimetz <bernd@bzed.de> wrote:
> Hi,
>
>> =A0 =A0 =A0 There are hints, that -lrt library reference should be after=
 the
>> library using it for newer gcc's.
>>
>> =A0 =A0 =A0 The following command with "-lrt" at the end of the command =
line
>> works.
>
> my guess is that the reason for your issue was that the check for libcap =
should
> not overwrite rtlibs but define something like caplibs and use those late=
r,
> additionally to rtlibs.
>
> if config.CheckLib('libcap'):
> =A0 =A0confdefs.append("#define HAVE_LIBCAP 1\n")
> =A0 =A0# System library - no special flags
> =A0 =A0rtlibs =3D ["-lcap"]
> [....]
>
>
> I've pushed a fix for that (including a hopefully proper definition of ne=
cessary
> linkage with -lcap), please pull the current head and see if it works for=
 you.
>
>
> Cheers,
>
> Bernd
>
>
> --
> =A0Bernd Zeimetz =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0D=
ebian GNU/Linux Developer
> =A0http://bzed.de =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0http://www.debian.org
> =A0GPG Fingerprint: ECA1 E3F2 8E11 2432 D485 =A0DD95 EB36 171A 6FF9 435F
>



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


From MAILER-DAEMON Mon Apr 30 17:13:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOxu3-00065P-1B
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 17:13:03 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54690)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SOxtz-000649-Q2
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:13:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SOxtx-00057A-6d
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:12:59 -0400
Received: from catbert.rellim.com ([204.17.205.1]:38077)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gem@rellim.com>) id 1SOxtw-00055W-LY
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:12:57 -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 q3ULCgEP022003
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Mon, 30 Apr 2012 14:12:43 -0700
X-DKIM: OpenDKIM Filter v2.3.2 catbert.rellim.com q3ULCgEP022003
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rellim.com; s=catbert;
	t=1335820363; bh=0nbNFYzPmtVMhrzJfl9cbi80w52K9GPh6MjDJs9BBF8=;
	h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:
	Mime-Version:Content-Type;
	b=HqZTSh0RF6f+mngzK5JGv+4MXSNaMo8VlDWWF0ggUIHkdxRCrk+6XH94G8MG5BUQO
	C4hc7q464EFh33pizw+PQ==
Date: Mon, 30 Apr 2012 14:12:39 -0700
From: "Gary E. Miller" <gem@rellim.com>
To: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Message-ID: <20120430141239.543936f9.gem@rellim.com>
In-Reply-To: <1SOsHu-273jDE0@fwd07.aul.t-online.de>
References: <1SOsHu-273jDE0@fwd07.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_/lLRBM6=RpIXzT+0o6OD7zV8";
	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] 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: Mon, 30 Apr 2012 21:13:01 -0000

--Sig_/lLRBM6=RpIXzT+0o6OD7zV8
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yo Reinhard.Arlt@t-online.de!

On Mon, 30 Apr 2012 17:13:18 +0200
"Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de> wrote:

> 	gpsutils.c:(.text+0x3b3): undefined reference to
> `clock_gettime'=20

That is protected by:

    #ifdef HAVE_CLOCK_GETTIME

So scons must think that is available.  It should be in glibc.  Checking
the man page it looks like time.h should be included.

BTW, I notice the return cvalue of clock_getting() is not checked.  That
is a bad practice that has burned us before.

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

--Sig_/lLRBM6=RpIXzT+0o6OD7zV8
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+fAEoACgkQBmnRqz71OvOpCACfb7iD10+i9j86VlY1vk4Q9w59
ZOIAn3BM/6daPHixNe8K64LscsQlS9DJ
=pwIi
-----END PGP SIGNATURE-----

--Sig_/lLRBM6=RpIXzT+0o6OD7zV8--


From MAILER-DAEMON Mon Apr 30 17:16:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOxxb-0006qg-Do
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 17:16:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39560)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxxZ-0006qI-7u
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:16:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxxX-0006X6-AW
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:16:40 -0400
Received: from mail.recluse.de ([217.196.146.213]:40329)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bernd@bzed.de>) id 1SOxxX-0006Wt-37
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:16:39 -0400
Received: from mail.recluse.de (localhost [127.0.0.1])
	by mail.recluse.de (Postfix) with ESMTP id 2799926F59;
	Mon, 30 Apr 2012 23:16:37 +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 99muy46k3EW1; Mon, 30 Apr 2012 23:16:35 +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 3AA7026F3F;
	Mon, 30 Apr 2012 23:16:35 +0200 (CEST)
Message-ID: <4F9F0132.7040305@bzed.de>
Date: Mon, 30 Apr 2012 23:16:34 +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: Chris Kuethe <chris.kuethe@gmail.com>
References: <1SOsHu-273jDE0@fwd07.aul.t-online.de> <4F9EFD9E.9040408@bzed.de>
	<CAGHP0pKNZWzmjZrrJRCSNOC+iqQ=mT0p01YrRoJ0LoWfd6raxg@mail.gmail.com>
In-Reply-To: <CAGHP0pKNZWzmjZrrJRCSNOC+iqQ=mT0p01YrRoJ0LoWfd6raxg@mail.gmail.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] 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: Mon, 30 Apr 2012 21:16:43 -0000

Not the result of my -lcan/-lrt fix - just posted a similar message to the list
stating that the build on !linux will fail.


On 04/30/2012 11:12 PM, Chris Kuethe wrote:
>  -O2 -pthread -I/usr/local/include/libusb-1.0 libgpsd_core.c
> libgpsd_core.c:29:23: error: linux/can.h: No such file or directory
> libgpsd_core.c:30:27: error: linux/can/raw.h: No such file or directory
> libgpsd_core.c: In function 'gpsd_open':
> libgpsd_core.c:313: error: storage size of 'addr' isn't known
> libgpsd_core.c:317: error: 'PF_CAN' undeclared (first use in this function)
> libgpsd_core.c:317: error: (Each undeclared identifier is reported only once
> libgpsd_core.c:317: error: for each function it appears in.)
> libgpsd_core.c:317: error: 'CAN_RAW' undeclared (first use in this function)
> libgpsd_core.c:334: error: 'SIOCGIFINDEX' undeclared (first use in
> this function)
> libgpsd_core.c:344: error: 'AF_CAN' undeclared (first use in this function)
> libgpsd_core.c:345: error: 'struct ifreq' has no member named 'ifr_ifindex'
> libgpsd_core.c:313: warning: unused variable 'addr'
> scons: *** [libgpsd_core.o] Error 1
> scons: building terminated because of errors.
> 
> 
> On Mon, Apr 30, 2012 at 14:01, Bernd Zeimetz <bernd@bzed.de> wrote:
>> Hi,
>>
>>>       There are hints, that -lrt library reference should be after the
>>> library using it for newer gcc's.
>>>
>>>       The following command with "-lrt" at the end of the command line
>>> works.
>>
>> my guess is that the reason for your issue was that the check for libcap should
>> not overwrite rtlibs but define something like caplibs and use those later,
>> additionally to rtlibs.
>>
>> if config.CheckLib('libcap'):
>>    confdefs.append("#define HAVE_LIBCAP 1\n")
>>    # System library - no special flags
>>    rtlibs = ["-lcap"]
>> [....]
>>
>>
>> I've pushed a fix for that (including a hopefully proper definition of necessary
>> linkage with -lcap), please pull the current head and see if it works for you.
>>
>>
>> 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
>>
> 
> 
> 


-- 
 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 Apr 30 17:19:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOxzq-00072f-Sf
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 17:19:02 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39950)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SOxzo-00072Y-7W
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:19:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SOxzm-0006vi-IM
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:18:59 -0400
Received: from mail-pz0-f46.google.com ([209.85.210.46]:44986)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chris.kuethe@gmail.com>) id 1SOxzm-0006ss-8v
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 17:18:58 -0400
Received: by dadz9 with SMTP id z9so5168125dad.33
	for <gpsd-dev@nongnu.org>; Mon, 30 Apr 2012 14:18: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;
	bh=A2lhx1S2b/J8Zvqxfv+OGzl1fOy5GUUYRVJhzymv144=;
	b=mnLz+pyl0yMysHjGIwlN5GP6cNy9qBzFNJsBbMaF5dC8TXSFPwB6kHBoOTrUMRLNki
	ZYhmWA24I7JjS6/vhm0v03dFeGDP0//7IwnLRs4LBW5N86bLFa41NqcEEK+Tv5M/uaj+
	aBREXf1D9T+3R6JaVK1TFtv2h8Sy2LLcLUS5UY6XKuuSl8t3aQ5tCDVdj8bzcxWgboas
	laEMArK8kHaR2zOemtxVtSoeZHMCizFrF1bMmPr6TN7Mb8PMzzRwWiJG257w19UaSKQt
	4UtXGNmhz8WoMpuog0FgHurJYsHd7j0dW6UQXxUu/DX15YLXTu/yX5YtK2sz0CHAIDuD
	8jig==
Received: by 10.68.224.167 with SMTP id rd7mr27855092pbc.129.1335820736177;
	Mon, 30 Apr 2012 14:18:56 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.50.226 with HTTP; Mon, 30 Apr 2012 14:18:35 -0700 (PDT)
In-Reply-To: <4F9F0132.7040305@bzed.de>
References: <1SOsHu-273jDE0@fwd07.aul.t-online.de> <4F9EFD9E.9040408@bzed.de>
	<CAGHP0pKNZWzmjZrrJRCSNOC+iqQ=mT0p01YrRoJ0LoWfd6raxg@mail.gmail.com>
	<4F9F0132.7040305@bzed.de>
From: Chris Kuethe <chris.kuethe@gmail.com>
Date: Mon, 30 Apr 2012 14:18:35 -0700
Message-ID: <CAGHP0pLd4JV6N08GudAAiFT_tzcUVEnmzonfO3=be8B1JrW-uA@mail.gmail.com>
To: Bernd Zeimetz <bernd@bzed.de>
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.210.46
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: Mon, 30 Apr 2012 21:19:01 -0000

On Mon, Apr 30, 2012 at 14:16, Bernd Zeimetz <bernd@bzed.de> wrote:
> Not the result of my -lcan/-lrt fix - just posted a similar message to the list
> stating that the build on !linux will fail.

Yep, saw that. Figured I'd chime in on behalf of everyone not running
linux and say that not only can it fail, but does. Meant to check this
earlier, but I've been away from my dev machines all weekend.

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


From MAILER-DAEMON Mon Apr 30 18:20:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SOyxD-0000K6-6U
	for mharc-gpsd-dev@gnu.org; Mon, 30 Apr 2012 18:20:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36782)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SOyxA-0000JB-27
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 18:20:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SOyx8-0003a4-72
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 18:20:19 -0400
Received: from mailout03.t-online.de ([194.25.134.81]:51054)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Reinhard.Arlt@t-online.de>) id 1SOyx7-0003Zd-WE
	for gpsd-dev@nongnu.org; Mon, 30 Apr 2012 18:20:18 -0400
Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de )
	by mailout03.t-online.de with smtp 
	id 1SOyx2-0001uQ-Ep; Tue, 01 May 2012 00:20:12 +0200
Received: from localhost
	(bNvoX-ZQ8hzRPNfGarCLaYzdaLZ2m1iEsYdwVzTNhtAGI447jth8O85r8DbCoYdgqk@[172.20.101.250])
	by fwd07.aul.t-online.de
	with esmtp id 1SOyx1-0pNwdk0; Tue, 1 May 2012 00:20:11 +0200
MIME-Version: 1.0
Received: from 89.183.34.108:61105 by cmpweb10.aul.t-online.de with HTTP/1.1
	(Kommunikationscenter V9-4-1-0 on API V3-8-4-0)
In-Reply-To: <CAGHP0pLd4JV6N08GudAAiFT_tzcUVEnmzonfO3=be8B1JrW-uA@mail.gmail.com>
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>
Date: Tue, 01 May 2012 00:20:11 +0200
To: "Chris Kuethe" <chris.kuethe@gmail.com>, "Bernd Zeimetz" <bernd@bzed.de>
X-UMS: email
X-Mailer: TOI Kommunikationscenter V9-4-1-0
From: "Reinhard.Arlt@t-online.de" <Reinhard.Arlt@t-online.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Message-ID: <1SOyx1-0pNwdk0@fwd07.aul.t-online.de>
X-ID: bNvoX-ZQ8hzRPNfGarCLaYzdaLZ2m1iEsYdwVzTNhtAGI447jth8O85r8DbCoYdgqk@t-dialin.net
X-TOI-MSGID: dd4bade2-9b4f-418d-b93c-5f86db1d2273
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 194.25.134.81
Cc: gpsd-dev@nongnu.org
Subject: Re: [gpsd-dev] =?iso-8859-15?q?Build_of_gpsd_fails?=
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, 30 Apr 2012 22:20:21 -0000

Hello,

the errors should be gone, if you disable nmea2000.

scons nmea2000=false

This #ifdef is still missing in driver_nmea2000.c

I will fix this soon.

Reinhard

-----Original Message-----
Date: Mon, 30 Apr 2012 23:18:35 +0200
Subject: Re: [gpsd-dev] Build of gpsd fails
From: Chris Kuethe <chris.kuethe@gmail.com>
To: Bernd Zeimetz <bernd@bzed.de>

On Mon, Apr 30, 2012 at 14:16, Bernd Zeimetz <bernd@bzed.de> wrote:
> Not the result of my -lcan/-lrt fix - just posted a similar message to
the list
> stating that the build on !linux will fail.

Yep, saw that. Figured I'd chime in on behalf of everyone not running
linux and say that not only can it fail, but does. Meant to check this
earlier, but I've been away from my dev machines all weekend.

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





