[kismac] Re: My USB GPS has arrived

  • From: Robin L Darroch <robin@xxxxxxxxxxxxx>
  • To: kismac@xxxxxxxxxxxxx
  • Date: Wed, 1 Feb 2006 22:11:45 +0800

At 20:04 +1030 30/1/06, themacuser wrote:

Well, my USB GPS has arrived.

I can now test out the GPS features of KisMAC.

One word of warning: if you're going to use it with gpsd (which I highly recommend), you will need a patch to get the current version of gpsd to report the right speed to KisMAC (bug in gpsd, not in KisMAC). Hopefully there will be a new release of gpsd soon, but that project seems to be in something of a hiatus - I've identified two major bugs several weeks ago, and still no sign of a point release to fix them.

Actually, since I'm promoting gpsd (and I am - it really should become the preferred way to connect a GPS to computer applications), here are the patches for the current version (2.30). The patches are for the file "gpsd.c" (the first one fixes a major error in velocity units, and the second one fixes a problem with connections timing out as inactive despite activity):

20:54 [~/src/gpsd-2.30] robin> diff -u gpsd-orig.c gpsd.c
--- gpsd-orig.c 2006-01-04 10:25:48.000000000 +0800
+++ gpsd.c 2006-01-18 20:56:09.000000000 +0800
@@ -866,7 +866,7 @@
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);
(void)strcpy(phrase, ",V=?");
@@ -1479,7 +1479,9 @@
} else {
buf[buflen] = '\0';
gpsd_report(1, "<= client(%d): %s", cfd, buf);
+ // added to prevent timeouts
+ subscribers[cfd].active = timestamp();
#ifdef RTCM104_SERVICE
if (subscribers[cfd].rtcm) {
if (handle_dgpsip_request(cfd, buf, buflen) < 0)

I also found that in order to get the current version to work with my Holux GM-210, I needed to disable Evermore support during the configure stage, using

        ./configure --disable-evermore


 Robin L. Darroch - PO Box 2715, South Hedland WA 6722 - +61 421 503 966
      robin@xxxxxxxxxxxxx - robin@xxxxxxxxxxx - robin@xxxxxxxxxxxxx

Other related posts: