xgps shows position, but gpsdrive says "no GPS"

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

xgps shows position, but gpsdrive says "no GPS"

Tobias Brox
Hi,

I'm having problems with gpsdrive.  I believe I've managed to set up
gpsd correctly, because xgps shows me the correct position.

I've been using strace to monitor the traffic between xgps and gpsd.
xdrive sends a capital R to gpsd, gpsd replies with a version number,
a bit later the connection is closed and this is repeated until I
close gpsdrive:

connect(7, {sa_family=AF_INET, sin_port=htons(2947),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
write(7, "R\n", 2)                      = 2
read(7, "{\"class\":\"VERSION\",\"release\":\"2."..., 2000) = 82
close(7)                                = 0
connect(7, {sa_family=AF_INET, sin_port=htons(2947),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
write(7, "R\n", 2)                      = 2
read(7, "{\"class\":\"VERSION\",\"release\":\"2."..., 2000) = 82
close(7)                                = 0
connect(7, {sa_family=AF_INET, sin_port=htons(2947),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
write(7, "R\n", 2)                      = 2
read(7, "{\"class\":\"VERSION\",\"release\":\"2."..., 2000) = 82
close(7)                                = 0

I'm running ubuntu 10.04 and I installed gpsdrive and gpsd through this command:

sudo apt-get install gpsd gpsd-clients
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

hamish-2
Tobias wrote:
> I'm having problems with gpsdrive.  I believe I've managed to set up
> gpsd correctly, because xgps shows me the correct position.
>
> I've been using strace to monitor the traffic between xgps and gpsd.
> xdrive sends a capital R to gpsd, gpsd replies with a version number,
> a bit later the connection is closed and this is repeated until I
> close gpsdrive:
...
> read(7, "{\"class\":\"VERSION\",\"release\":\"2."..., 2000)
> = 82
> close(7)
...
> I'm running ubuntu 10.04 and I installed gpsdrive and gpsd
> through this command:
>
> sudo apt-get install gpsd gpsd-clients


Lucid shipped with gpsdrive 2.10pre4, which is really really out of date.

For one thing gpsd (2.92) in this version changed their API so all
apps relying on it had to change too. That's been fixed in SVN but we
haven't issued a new release supporting it.

I've now backported gpsd 2.92 support to the 2.11 branch in SVN and
tested building it on Ubuntu 10.04 (Lucid). You have to change the
Old/new gpsd setting in DefineOptions.cmake file and recompile. If
you are not the recompiling type let me know and I can post my .debs
somewhere.

a build script for Lucid is here:
 https://trac.osgeo.org/osgeo/browser/livedvd/gisvm/trunk/bin/install_gpsdrive.sh

(both script and resulting package not very well tested yet, but seem to
work; I'd like confirmation that Mapnik is working)


The newer version of gpsdrive is so much better.... I really hope we will
get 2.11 into Debian Squeeze before the upcoming freeze instead of shipping
2.10pre4 as a non-GPS map viewer and giving users the wrong impression!


regards,
Hamish


     
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

hamish-2
you could also try downgrading the gpsd package(s) to the version from karmic.


     
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

Tobias Brox
In reply to this post by hamish-2
On 23 May 2010 22:45, Hamish <[hidden email]> wrote:
> Lucid shipped with gpsdrive 2.10pre4, which is really really out of date.
>
> For one thing gpsd (2.92) in this version changed their API so all
> apps relying on it had to change too. That's been fixed in SVN but we
> haven't issued a new release supporting it.

So the gpsd shipped with Lucid is basically incompatible with any apps
in gpsd-clients?  That's just terrible ... and it seems like none of
the apps

> I've now backported gpsd 2.92 support to the 2.11 branch in SVN and
> tested building it on Ubuntu 10.04 (Lucid). You have to change the
> Old/new gpsd setting in DefineOptions.cmake file and recompile. If
> you are not the recompiling type let me know and I can post my .debs
> somewhere.

I used to run Gentoo before I switched to Ubuntu ;-)  If I have to
compile it myself, I can as well run the trunk version.  I'll check it
out and give feedback later.
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

Tobias Brox
Hm, http://www.gpsdrive.de/download.shtml seems to be slightly out of date? ;-)
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

Tobias Brox
Finally, after lots of fighting with dependencies, I got it compiled
(r2559) ... but it doesn't want to run, missing a file and lots of
unknown config parametres ... so what do I do now?

$ /usr/local/bin/gpsdrive
created /home/tobias/.gpsdrive/tracks/
created /home/tobias/.gpsdrive/routes/
WARNING: Unknown Config Parameter 'showstreetmaps=1'
WARNING: Unknown Config Parameter 'usedgps=0'
WARNING: Unknown Config Parameter 'satposmode=0'
WARNING: Unknown Config Parameter 'printoutsats=0'
WARNING: Unknown Config Parameter 'lastnotebook=0'
WARNING: Unknown Config Parameter 'dbhostname=localhost'
WARNING: Unknown Config Parameter 'dbname=geoinfo'
WARNING: Unknown Config Parameter 'dbuser=gast'
WARNING: Unknown Config Parameter 'dbpass=gast'
WARNING: Unknown Config Parameter 'dbtable=poi'
WARNING: Unknown Config Parameter 'dbusedist=1'
WARNING: Unknown Config Parameter 'earthmate=0'
WARNING: Unknown Config Parameter 'showssid=1'
WARNING: Unknown Config Parameter 'draw_poilabel=0'
Connection to Speech Dispatcher established.
Connection to GPS Daemon on 127.0.0.1:2947 established.
DB: Error while opening /usr/local/share/icons/map-icons/geoinfo.db:
unable to open database file
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

Tobias Brox
On 23 May 2010 23:51, Tobias Brox <[hidden email]> wrote:
> DB: Error while opening /usr/local/share/icons/map-icons/geoinfo.db:
> unable to open database file

At least I figured out of this one ... the dependencies got installed
into /usr/share, not /usr/local/share.  I hacked it up by adding some
symlinks ;-)  So the trunk version of gpsdrive seems to be working for
me now
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

4x4falcon
In reply to this post by Tobias Brox
On Sun, 23 May 2010 22:57:09 +0200
Tobias Brox <[hidden email]> wrote:

> Hm, http://www.gpsdrive.de/download.shtml seems to be slightly out of date? ;-)
> _______________________________________________
> GPSdrive mailing list
> [hidden email]
> http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive


Hi,

Try the instructions here:

http://sourceforge.net/apps/mediawiki/gpsdrive/index.php?title=Installing

They are for 8.04 but should not be a lot different.


--
Cheers
Ross
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
Reply | Threaded
Open this post in threaded view
|

Re: xgps shows position, but gpsdrive says "no GPS"

hamish-2
In reply to this post by Tobias Brox
Tobias wrote:
> > DB: Error while opening
> /usr/local/share/icons/map-icons/geoinfo.db:
> > unable to open database file
>
> At least I figured out of this one ... the dependencies got installed
> into /usr/share, not /usr/local/share.  I hacked it up by adding some
> symlinks ;-)

you can also edit the ~/.gpsdrive/gpsdriverc file, look for "geoinfofile ="

> So the trunk version of gpsdrive seems to be working for me now


great!


     
_______________________________________________
GPSdrive mailing list
[hidden email]
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive