﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5101	Livegps incompatible to gpsd 2.92	weller@…	framm	"Hi!
Today I wanted to do some mapping using josm with Live-GPS (Version
20431) and surveyor (Version 19681) plugin.

I use Ubuntu 10.04 with josm-latest (Revision: 328) - it connects to
gpsd but after some time it simply disconnects.

This is the console output:

LiveGps tries to connect to gpsd
LiveGps: Connected to gpsd
LiveGps: Disconnected from gpsd}}

Here some extract from gpsd's logfile:
gpsd: client 127.0.0.1 (0) connect on fd 7
gpsd: => client(0):
{""class"":""VERSION"",""release"":""2.92"",""rev"":""svn"",""proto_major"":3,""proto_minor"":1}

gpsd: checking client(0)
gpsd: <= client(0): w
gpsd: => client(0): =
[....]
gpsd: client(0) timed out before assignment request.
gpsd: detaching 127.0.0.1 (sub 0, fd 7) in detach_client

For me it seems livegps issues the wrong command: gpsd simply receives a
""w"" - please refer to http://gpsd.berlios.de/client-howto.html - it
should be something like ""?WATCH={""enable"":true,""json"":true}""...

See line 143 of LiveGpsAcquirer.java:
new byte[] { 'w', 13, 10 });

Anyone can confirm a working livegps plugin with gpsd 2.92?


Regards,
  Andreas Weller"	defect	closed	normal		Plugin livegps	latest	fixed	livegps, gpsd	framm
