maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Simple GPS software? (https://talk.maemo.org/showthread.php?t=11125)

dormant 2007-10-29 17:12

Simple GPS software?
 
Is there any software available that would just allow me to view the output of my Nokia BT GPS and store waypoints when I ask it to?

gpsbabel should be able to do this, but I have not had much luck using gpsbabel with a handlheld GPS in Ubuntu.

dormant 2007-11-08 00:40

Re: Simple GPS software?
 
I know a bit more about how the gps works, but am no further towards finding a simple gps application.

To restate what I want. I want to log GPS output, with all pertinent information from the GPS (including HDOP, VDOP, number of satellites). I want to do this for single fixes, and over a timespan.

I found some guidance for programmers in Maemo Garage, but it was not very relevant.

But at least I now understand that the n800 uses gpsd. And that gpsd only runs when a gps-aware application runs.

Two specific questions.

1) How can I manually start and stop gpsd?

2) How can I get data from gpsd either into a text file or into gpsbabel?

There are a couple of simple clients for gpsd, but they don't seem to have been ported to the n800. An alternative seems to be to use nc, but that didn't work for me.

I am not a programmer, so I don't want to get into using the gpsd libraries and such. But I am very happy to hack simple scripts.

lardman 2007-11-08 10:27

Re: Simple GPS software?
 
If you just want to save the NMEA data and process it later then you should probably use this: https://garage.maemo.org/projects/gps-saver/

I seem to remember seeing an example of its use somewhere. In any case if you look at the source you'll see how it links into the GPS framework, but you may not even need to do that, just install it and run from the command line and see what options it has, it may do exactly what you want (i.e. log to file)

benny1967 2007-11-08 11:46

Re: Simple GPS software?
 
it would be great if there'd be a solution for OS2006 on the 770, too. AFAIK, gpsd is not available yet for the 770 - or is it?

jukkar 2007-11-08 16:44

Re: Simple GPS software?
 
Quote:

Originally Posted by lardman (Post 92143)
If you just want to save the NMEA data and process it later then you should probably use this: https://garage.maemo.org/projects/gps-saver/

I seem to remember seeing an example of its use somewhere. In any case if you look at the source you'll see how it links into the GPS framework, but you may not even need to do that, just install it and run from the command line and see what options it has, it may do exactly what you want (i.e. log to file)

gps-saver is very simple program that saves fix information to gzipped file. The format is not NMEA but a simple and extensible text format which compresses quite well. The format can be changed to something else by changing the gps_callback() function if necessary. Typically GPS device produces one fix/second which provides a lot of data during the day, that is why the file is gzipped and gpx format is not used. I have one 8 hour run, which produced 624kb gzipped file which contained over 28600 fixes and which was about 5MB uncompressed.

I am currently finalizing a new gps-saver version which supports OS2008 better than the old version. The new package will also have a simple python UI so that GPS can be monitored in real time. I am hoping to release the new version within next two weeks.

dormant 2007-11-08 17:28

Re: Simple GPS software?
 
Sounds useful.

I came across gps-saver in the Garage, but there wasn't enough info for me to decide whether it could do what I wanted or not.

I look forward to a new version. I may have to ask for help/advice in changing the output format.

fpp 2007-11-08 19:36

Re: Simple GPS software?
 
Thanks for the question&answer, I had been (vaguely) looking for something like this, too.

One useful export format I can think of is the one accepted by apps which add EXIF location tags to digital pictures. Thus when you go vacationing you could tuck away your tablet & GPS in the backpack, shoot away all day, and afterwards use the log files to tag your pix...

dormant 2007-11-08 20:46

Re: Simple GPS software?
 
Quote:

Originally Posted by fpp (Post 92295)
One useful export format I can think of is the one accepted by apps which add EXIF location tags to digital pictures. Thus when you go vacationing you could tuck away your tablet & GPS in the backpack, shoot away all day, and afterwards use the log files to tag your pix...

The page I linked to in the second post describes exactly how to do that with gps-saver.

fpp 2007-11-08 21:01

Re: Simple GPS software?
 
Indeed, thanks fro the heads-up. Soon as my N800 arrives, I'll try it out.

jukkar 2007-11-08 21:14

Re: Simple GPS software?
 
Quote:

Originally Posted by fpp (Post 92295)
Thanks for the question&answer, I had been (vaguely) looking for something like this, too.

One useful export format I can think of is the one accepted by apps which add EXIF location tags to digital pictures. Thus when you go vacationing you could tuck away your tablet & GPS in the backpack, shoot away all day, and afterwards use the log files to tag your pix...

This is exactly the reason I developed gps-saver, I had the same problem as you have. In my last holiday, I had my N800 running with gps-saver and BT GPS constantly. In the morning I started the program, had it running whole day and ended up with one file with location information for that day. The battery in the tablet and BT GPS device lasted fine for that 8-10 hour duration.

For post-processing this information (attaching location data to photos) I used gtag (https://garage.maemo.org/projects/gtag). Unfortunately the post-processing tool is not yet optimal, like what to do if the tablet clock is not the same as camera clock and what if both are different from correct GPS time. This happened to me so now I have a pile of photos and location data that are slighly out of sync but I am working to fix gtag to handle this situation.
The idea of gtag is to attach location info to photo exif data and then generate a google maps file with fotos and descriptions. This would be a journal of your vacation with photos about places where you were with descriptions. An example can be seen here http://maps.google.com/maps?f=q&hl=e...4938&z=10&om=1
I do not have descriptions part of gtag ready yet so the example photos do not have any descriptive text with them. The gtag has no UI, it is just a command line program, so it is not a nice tool to work with, some UI for manipulating the photos etc would be nice to have, unfortunately I do not have time to create UI for gtag.

jukkar 2007-11-08 21:30

Re: Simple GPS software?
 
Quote:

Originally Posted by dormant (Post 92252)
I look forward to a new version. I may have to ask for help/advice in changing the output format.

I think it would be possible to save raw NMEA data in gps-saver so I could implement it also before releasing the new version. This would probably help the data import to external programs.

fpp 2007-11-08 21:41

Re: Simple GPS software?
 
That's great jukkar, I must really try it out. Somehow I knew I couldn't be the only one wanting to put my tablet and GPS to such an obvious use... but it's good to see you've already done the job, and more ! Thanks.

dormant 2007-11-09 18:31

Re: Simple GPS software?
 
Quote:

Originally Posted by jukkar (Post 92332)
I think it would be possible to save raw NMEA data in gps-saver so I could implement it also before releasing the new version. This would probably help the data import to external programs.

The best thing to do might be to output it in a format that can be read by gpsbabel.

jukkar 2007-11-16 09:12

Re: Simple GPS software?
 
A new version of gps-saver can now be found in http://gps-saver.garage.maemo.org/
The pre-compiled debian packages for v1.7 are only for OS2008, if you want to use the program in OS2007 you have to compile the deb packages yourself.

Changes:
- works with OS2008
- new python UI for starting/stopping and monitoring GPS status
- GPS data can be saved also in NMEA format
- new -n option in gps-saver does not save the GPS data to file if the user only wishes to monitor the GPS usage. The option can be set from UI

dormant 2007-11-16 13:45

Re: Simple GPS software?
 
Great stuff!

I won't install OS2008 until the official release, but I will be stress-testing gps-saver as soon as I do.

IntrepidAnitpodean2 2007-12-17 02:11

Re: Simple GPS software?
 
Does gtag run on the IT or on a PC after the fact? I'm hoping to tag my images on the go and upload them to flickr/panoramio directly. No PC included.


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

vBulletin® Version 3.8.8