[kismac] Re: gpsd and kismac - bug?
- From: Robin L Darroch <robin@xxxxxxxxxxxxx>
- To: kismac@xxxxxxxxxxxxx
- Date: Sat, 18 Mar 2006 05:45:45 +1000
The svn version of gpsd now includes the correct logic, so 2.33
should work well... or just grab the svn head if you don't want to
wait.
Apologies if anyone had trouble applying my earlier patches - the web
interface I was using to access my e-mail last week forced line
breaks, so you would have had to strip those before using the patch.
gpsd-2.32 fixes this timout error. However, there is still a serious error
in the speed output of gpsd-2.32, patch as
follows:
6:36 [~/src/gpsd-2.32] robin> diff -u gpsd-orig.c gpsd.c
--- gpsd-orig.c 2006-03-14 06:24:47.000000000 +1030
+++ gpsd.c 2006-03-14 06:27:20.000000000 +1030
@@ -868,7 +868,7 @@
break;
case 'V':
if (assign_channel(whoami) && have_fix(whoami->device) &&
isnan(whoami->device->gpsdata.fix.track)
==0)
- (void)snprintf(phrase, sizeof(phrase), ",V=%.3f",
whoami->device->gpsdata.fix.speed / KNOTS_TO_KPH);
+ (void)snprintf(phrase, sizeof(phrase), ",V=%.3f",
whoami->device->gpsdata.fix.speed * MPS_TO_KNOTS);
else
(void)strcpy(phrase, ",V=?");
break;
Original Message:
-----------------
From: themacuser themacuser@xxxxxxxxx
Date: Mon, 13 Mar 2006 14:57:25 +1030
To: kismac@xxxxxxxxxxxxx
Subject: [kismac] gpsd and kismac - bug?
I have gpsd version 2.31 (the latest), and KisMac r99. Does anyone
else get KisMac disconnecting from gpsd after a fair while? When I go
"Reset GPS Subsystem" it reconnects and is fine.
However, I tried with a netcat session to gpsd, and that exhibited
the same behavior, getting cut off at the same time as KisMac, so I
think this is a bug in gpsd. We could include some code to attempt a
reconnection to gpsd if the connection was dropped, and then display
an error if we can't. I'll work on it.
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
-------------------------------------------------------------------------
Robin L. Darroch - PO Box 2715, South Hedland WA 6722 - +61 421 503 966
robin@xxxxxxxxxxxxx - robin@xxxxxxxxxxx - robin@xxxxxxxxxxxxx
- References:
- [kismac] Re: gpsd and kismac - bug?
- From: robin@xxxxxxxxxxxxx
Other related posts:
- » [kismac] gpsd and kismac - bug?
- » [kismac] Re: gpsd and kismac - bug?
- » [kismac] Re: gpsd and kismac - bug?
- » [kismac] Re: gpsd and kismac - bug?
gpsd-2.32 fixes this timout error. However, there is still a serious error in the speed output of gpsd-2.32, patch as follows:
6:36 [~/src/gpsd-2.32] robin> diff -u gpsd-orig.c gpsd.c
--- gpsd-orig.c 2006-03-14 06:24:47.000000000 +1030
+++ gpsd.c 2006-03-14 06:27:20.000000000 +1030
@@ -868,7 +868,7 @@
break;
case 'V':
if (assign_channel(whoami) && have_fix(whoami->device) &&
isnan(whoami->device->gpsdata.fix.track)
==0)
- (void)snprintf(phrase, sizeof(phrase), ",V=%.3f",
whoami->device->gpsdata.fix.speed / KNOTS_TO_KPH);
+ (void)snprintf(phrase, sizeof(phrase), ",V=%.3f",
whoami->device->gpsdata.fix.speed * MPS_TO_KNOTS);
else
(void)strcpy(phrase, ",V=?");
break;
Original Message: ----------------- From: themacuser themacuser@xxxxxxxxx Date: Mon, 13 Mar 2006 14:57:25 +1030 To: kismac@xxxxxxxxxxxxx Subject: [kismac] gpsd and kismac - bug?
I have gpsd version 2.31 (the latest), and KisMac r99. Does anyone else get KisMac disconnecting from gpsd after a fair while? When I go "Reset GPS Subsystem" it reconnects and is fine.
However, I tried with a netcat session to gpsd, and that exhibited the same behavior, getting cut off at the same time as KisMac, so I think this is a bug in gpsd. We could include some code to attempt a reconnection to gpsd if the connection was dropped, and then display an error if we can't. I'll work on it.
-------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
- [kismac] Re: gpsd and kismac - bug?
- From: robin@xxxxxxxxxxxxx