View Single Post
Posts: 33 | Thanked: 32 times | Joined on Nov 2007 @ Finland
#5
Originally Posted by lardman View Post
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.