Memo mapper cannot connect to GPSD server?

Memo mapper cannot connect to GPSD server?

Magnus Larsson
Karma: 28
2008-04-10 17:04 UTC
Hi

I have a N770 (feels a bit old now....) that I just reflashed, installed
OS2007 hacker edition, and then tried to install Maemo mapper, one of
the most important applications for me right now.

I can install version 2 for OS2006, through the
maemo-mapper-os2006.install (found on
https://garage.maemo.org/frs/?group_id=29), and it launches. I scan for
bluetooth GPS devices and it finds my Holux GPSlim236. But then it
cannot connect, times out and says "Error trying to connect to GPSD
server".

In Settings, GPSD is set to 127.0.0.1, port 2947 (default setting).


Anyone got advice on how to make it work?


Magnus Larsson
  •  Reply

Re: Memo mapper cannot connect to GPSD server?

Marius Gedminas
Karma: 552
2008-04-10 17:22 UTC
On Thu, Apr 10, 2008 at 07:04:43PM +0200, Magnus Larsson wrote:
> I have a N770 (feels a bit old now....) that I just reflashed, installed
> OS2007 hacker edition, and then tried to install Maemo mapper, one of
> the most important applications for me right now.
>
> I can install version 2 for OS2006, through the
> maemo-mapper-os2006.install (found on
> https://garage.maemo.org/frs/?group_id=29), and it launches. I scan for
> bluetooth GPS devices and it finds my Holux GPSlim236. But then it
> cannot connect, times out and says "Error trying to connect to GPSD
> server".
>
> In Settings, GPSD is set to 127.0.0.1, port 2947 (default setting).

Don't use GPSD from Maemo Mapper -- instead use a direct Bluetooth
connection.

I don't remember if OS2007 included gpsd or if that was an extra
package. OS2007 does indeed include gpsd but doesn't start it unless
you ask for it via DBus (and Maemo Mapper doesn't, which makes the gpsd
option useless).

Marius Gedminas
--
(Why, oh! why is X not written in Lisp?)
-- Juliusz Chroboczek
  •  Reply

Re: Memo mapper cannot connect to GPSD server?

Mark Haury
Karma: 50
2008-04-10 17:53 UTC
On Thu, Apr 10, 2008 at 11:22 AM, Marius Gedminas <marius@pov.lt> wrote:
> On Thu, Apr 10, 2008 at 07:04:43PM +0200, Magnus Larsson wrote:
> > I have a N770 (feels a bit old now....) that I just reflashed, installed
> > OS2007 hacker edition, and then tried to install Maemo mapper, one of
> > the most important applications for me right now.
> >
> > I can install version 2 for OS2006, through the
> > maemo-mapper-os2006.install (found on
> > https://garage.maemo.org/frs/?group_id=29), and it launches. I scan for
> > bluetooth GPS devices and it finds my Holux GPSlim236. But then it
> > cannot connect, times out and says "Error trying to connect to GPSD
> > server".
> >
> > In Settings, GPSD is set to 127.0.0.1, port 2947 (default setting).
>
> Don't use GPSD from Maemo Mapper -- instead use a direct Bluetooth
> connection.
>
> I don't remember if OS2007 included gpsd or if that was an extra
> package. OS2007 does indeed include gpsd but doesn't start it unless
> you ask for it via DBus (and Maemo Mapper doesn't, which makes the gpsd
> option useless).
>
> Marius Gedminas

I'm confused; does Maemo Mapper use gpsd, just not through DBus? Maps
and Maemo Mapper seem to get along fine running simultaneously - is
that possible with a direct Bluetooth connection?

So if NavIT can't find the bluetooth GPSr by itself I'm out of luck?
(From what I've read, Navit can only access gpsd, not bluetooth or any
other direct GPSr connection.) Someone has got NavIT running on an
N800, but details are not available.

Mark
  •  Reply

Re: Memo mapper cannot connect to GPSD server?

Marius Gedminas
Karma: 552
2008-04-10 19:22 UTC
Hi!

On Thu, Apr 10, 2008 at 11:53:22AM -0600, Mark wrote:
> I'm confused; does Maemo Mapper use gpsd, just not through DBus?

Maemo Mapper can use gpsd, but normally gpsd is not running (to save
system resources, I assume). The dbus bit is just a guess; the only
documentation I could find on maemo.org refers to two system libraries,
libgpsbt and libgpsmgr. These libraries can start the gpsd for you on
request, but Maemo Mapper doesn't use them when you choose the GPSD
option. As far as I understand; I haven't actually inspected the source
code.

> Maps
> and Maemo Mapper seem to get along fine running simultaneously

Right, because Maps tells the OS to start gpsd and then Maemo Mapper can
connect to it.

OTOH if you don't have Maps running, you can't use Maemo Mapper with
gpsd at all. I tried. Even if you trigger the GPSD by going into the
Control Panel's GPS applet and asking it to refresh your location, Maemo
Mapper only works for about 30 seconds until gpsd times out, notices
there aren't any apps asking for it via the Nokia-approved libraries,
and exits, making Maemo Mapper lose the connection.

> - is
> that possible with a direct Bluetooth connection?

Yes, if you choose the Bluetooth option in Maemo Mapper with an empty BT
address (which means "use the internal GPS" on a N810), then you can
have both MM and Maps running at the same time.

AFAIU, the empty address means "use whatever's configured in the
GPS control panel applet".

> So if NavIT can't find the bluetooth GPSr by itself I'm out of luck?
> (From what I've read, Navit can only access gpsd, not bluetooth or any
> other direct GPSr connection.) Someone has got NavIT running on an
> N800, but details are not available.

I'm sure there's a solution, but I'm not experienced enough to know what
it is. This:

Note that gpsd is only running when there is an application that
wishes to get position data from GPS device. The libgpsmgr makes sure
that even if there is multiple programs running that need location
information, only one instance of gpsd is running.

-- http://maemo.org/community/wiki/howtousegpsframeworkinos2007/

suggests to me that you should add a couple of libgpsmgr calls to NavIT
and then try to connect to gpsd, retrying a few times to give it a
chance to start up, as documented in
http://maemo.org/api_refs/4.0/gpsmgr/group__gpsmgr__api.html#g515fa304360969ba8d59e4e59a0eabf9

Or maybe using http://maemo.org/api_refs/4.0/gpsbt/ would be simpler, at
least the example given ("gpsbt_start(NULL, 0, 0, 0, &ctx);") in
http://maemo.org/api_refs/4.0/gpsbt/group__gpsbt__api.html#gdb860fb35f52c4beaf672d76adfc8c85
is clearer and doesn't require you to hardcode details such as GPS
device names but instead uses the configuration from the Control Panel.

Marius Gedminas
--
HOST SYSTEM RESPONDING, PROBABLY UP...
  •  Reply

Re: Memo mapper cannot connect to GPSD server?

Bob Crawford
Karma: 23
2008-04-12 17:34 UTC
Marius Gedminas wrote:

Maps
and Maemo Mapper seem to get along fine running simultaneously

Right, because Maps tells the OS to start gpsd and then Maemo Mapper
can
connect to it.

Newer versions of Maemomapper DO start up the gpsd...

More info is available at internettablettalk.com (but use the
"advanced" search, because the regular one doesn't work right)

The discussion forums there are excellent!!
  •  Reply

Creating GPX for Maemo Mapper from Google Maps

Andrew Daviel
Karma: 70
2008-12-07 00:27 UTC
I like to make GPX files on my desktop then download them to my tablet
for use by Maemo Mapper.

After grumbling that I had to screen-scrape output from gnuite.com
instead of "save to file", and having to copy addresses across from
Google Maps once I'd found some that worked, I've finally written my own
script using the Google API and then parsing KML.

It doesn't work with multiple destinations, but it will do "avoid
highway" and "walk". I think "Toll" would work on the onscreen map but
not in GPX. The interactive map won't let you edit the route
graphically, but you can paste in a link from a customized route on
Google Maps and convert that to GPX. These limitations may be fixable
with more work - I just copied an "advanced directions example"

http://gpx.geotags.com/

The site also works for live downloads. I was playing with multi-homing
using DNS so it's currently on 2 servers. If anyone wants to clone it
onto another server, or take the code and improve it, please ask.

I found examples for geocoding addresses in Python on google developers,
i.e. generating a lat,long from an address in a URL and giving a
developer key. But not for generating directions - only in JavaScript and
Flash. So what I'm doing is asking for output from maps.google.com in
KML, based on what Google Earth does, then parsing it in Perl. Seems to
work.

--
Andrew Daviel, TRIUMF, Canada
Tel. +1 (604) 222-7376 (Pacific Time)
  •  Reply