View Single Post
Posts: 12 | Thanked: 5 times | Joined on Jul 2008
#1
For anyone else who has the aforementioned GPS and wishes to use the built-in data logger: I've put together the following utility to control and extract extract data from the logger. It's a command-line utility, with a readme included. Also, it will export to gpx, which can then be imported by Maemo Mapper. It requires python and python2.5-bluez. The first time trinegps is run, it may ask for a password to create /dev/rfcomm1 if it doesn't exist already.
The python class on the backend is more fully-featured than the command-line interface; if there's any interest, I can put together a bit of documentation on how it works.
Finally, a disclaimer - the code is fairly rough in places, and there may well be unexpected crashes. However, it's working well enough for me, and shouldn't do any damage to either the NIT or the GPS.

Quick howto:
I'm assuming the GPS and the NIT are already paired, and that nothing else is accessing the GPS (ie. Maemo Mapper is not running).

1. Unpack trinegps to a location of your choice
2. Go into that folder and enter:
Code:
./trinegps -b {GPS_MAC_ADDRESS} -i -v
3. If that works, try
Code:
./trinegps -b {GPS_MAC_ADDRESS} -i -w
This will store the bluetooth settings so you don't have to enter them every time.
4. Still here? Time to switch on some logging.
Code:
./trinegps -t time:5
5. Take the GPS for a walk round the block to get some data in there.
6. Finally. Dump the track back out:
Code:
./trinegps -b {GPS_MAC_ADDRESS} -x > trinelog.gpx
You should then be able to import the logged data back into Maemo Mapper with Track\Open...

Any problems, let me know, and try the readme - there are more options than mentioned above.

Addendum: I've registered http://code.google.com/p/trinegps for this. The only difference between 0.1 and 0.1.1 is the addition of a little extra code to support Windows usage; as far as Tablets are concerned, it's identical.
Attached Files
File Type: gz trinegps-0.1.tar.gz (6.3 KB, 175 views)

Last edited by ichneumon; 2009-01-28 at 13:20.