jeroen.se
by jnieuwen
using the gps of the n810 to get cycling statistics
31 March 2008 08:55 - Since a few weeks I have a nokia n810. Mainly because of the ability to login via ssh on servers I manage. This allows me leave my laptop at home when using my recumbent bike, which saves around 1.5 KG of luggage. But it also allows me to save my track and speed info by using the built-in GPS module.
Saving the track in gpx format is quite easy using maemo-mapper. But maemo-mapper does not save the speed information, hence I needed something else. Fortunately the n810 has gpsd running when the gps is in use and also has perl installed. So my problem was reduced to making a perl script that talks to gpsd.
The first script I needed was a script to save all the information from the gpsd daemon. The usage is quite simple. Start maemo-mapper and after that run the perl script. This creates a simple log file.
After returning from your trip you just kill the perl script and copy the logfile to your desktop machine. Then you run the plot script:
speedplot.pl speed.log output.png
And you have a graph of your speed during the ride in png format. The speed is averaged over all the measurements of the last minute, because the speed of a bike is to low to get an accurate speed measurement from just one sample. An example png can be found here.
Taking the n810 with me is quite easy, I put it in my topbag on the back of the bike. In the bag it still can get a gps fix and it is protected against rain. I am still thinking how to mount it on the bike to be able to use it for following a predefined route.
What is a problem though is that I do not get any good altitude samples. I have to look into that to see if I can fix that and be able to make a altitude graph.
1 comments
Categories
Cycling (2)
Gadgets (3)
IPv6 (1)
Misc (27)
Scripting (25)
Travel (7)
Unix (24)
Archive
January 2013 (1)
October 2012 (1)
September 2012 (1)
May 2012 (1)
February 2012 (1)
January 2012 (1)
January 2011 (1)
November 2010 (1)
June 2010 (1)
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)