maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   minigpsd - 0.30-pre1 beta (https://talk.maemo.org/showthread.php?t=24205)

allnameswereout 2008-11-10 14:58

Re: minigpsd - 0.30-pre1 beta
 
Thank you. It works well, but Carman doesn't seem to detect it. It says GPS disabled while the minigpsd is running. I suppose this is because Carman assumes the stock GPSd. Are there more reports of applications which have this issue?

tz1 2008-11-10 20:53

Re: minigpsd - 0.30-pre1 beta
 
Carman seems to invoke the location manager, which will fail if my gpsd is already running. It should check the port first, then turn it on.

I don't know which applications might be affected - it depends on how they work. Many which are not modified for maemo will work. Those that try to turn on the gps first might or might not fail.

peteblack 2008-11-11 23:50

Re: minigpsd - 0.30-pre1 beta
 
Hi,

I've been getting segfaults recently just about when I'm supposed to get a fix. That is, minigpsd starts up fine and I can see the list of satellites. However, after about a minute or so when I expect to get a fix, as it did before, it segfaults. Restarting minigpsd again segfaults it. Only a reboot seems to help to bring it back up. Same thing again though.

I have tried both the latest rc3 and pre4 versions. I have a vague memory that pre4 used to work without any problems. Downgrading back to that version did not help.

Is there a compiled version available for debugging?

Anyone else had any of these problems?

Thanks,
Pete

tz1 2008-11-12 01:25

Re: minigpsd - 0.30-pre1 beta
 
1. Try running strace on minigpsd.

2. It should already have symbols, so if you do gdb minigpsd and run it should give something useful. (I think I forgot to strip them - if not I'll see what I can do).

3. do a df to see if any of the disks are getting full. I default to the external card, but if it isn't inserted, it creates the log files in /media/mmc1 on the internal flash which can fill up quickly (that is a remaining high-priority bug).

tz1 2008-11-16 02:01

Re: minigpsd - 0.30-pre1 beta
 
rc4 is in the extras-devel (along with bluez-utils-test).
The earlier install should work.

It adds inactivity shut-down and some other cleanup (and brightness and temperature sensor logging to the KMLs).

allnameswereout 2008-11-16 05:00

Re: minigpsd - 0.30-pre1 beta
 
Quote:

Originally Posted by tz1 (Post 240886)
Carman seems to invoke the location manager, which will fail if my gpsd is already running. It should check the port first, then turn it on.

I don't know which applications might be affected - it depends on how they work. Many which are not modified for maemo will work. Those that try to turn on the gps first might or might not fail.

Do you think its possible to make some 'glue' so Carman gets redirected? Or should I file a bug report at Carman so they support multiple gpsd?

tz1 2008-11-16 12:29

Re: minigpsd - 0.30-pre1 beta
 
The location manager - at least the GPS components are closed source so I can't redirect that part.

I've tried looking into the carman code but couldn't find anything specific at first glance. But I'll take another look since a new beta came out.

hakan 2008-11-16 15:09

Re: minigpsd - 0.30-pre1 beta
 
Quote:

Originally Posted by allnameswereout (Post 242341)
Do you think its possible to make some 'glue' so Carman gets redirected? Or should I file a bug report at Carman so they support multiple gpsd?

Two weeks ago, I added a feature request ( https://garage.maemo.org/tracker/ind...d=189&atid=783 ) for carman to support gpsd connections in addition to bluetooth connections.

In the meantime, I installed scratchbox on my machine, so maybe I could even create a patch, but don't hold your breath for that last part :D

Regards,
Hakan

tz1 2008-11-16 15:25

Re: minigpsd - 0.30-pre1 beta
 
1 Attachment(s)
Carman support - install rc4 and the latest carman, and then replace the two files in /usr/bin with those enclosed.

You will need to put carman into simulator mode.

You will need to create the following file (I think user read/write):

/home/user/gps_data.log

Simulator mode doesn't stick and apparently is only available from the statusbar applet AFTER carman launches. I think you will need to turn on the GPS within carman so it will start reading coordinates (but launch minigpsd first and leave the applet setup in simulator mode when you turn it on)

I've modified the pair so that minigpsd writes out a location_t structure to /tmp/location, and locationwrapper to read from that file if it exists (over lines in /home/user/gps_data.log).

I think there will be more modifications but I should be able to get something which will work.

tz1 2008-11-16 16:55

Re: minigpsd - 0.30-pre1 beta
 
The problem with carman is it only has the "simulation mode" and something which is nokia proprietary. I entered a similar bug report.


All times are GMT. The time now is 02:32.

vBulletin® Version 3.8.8