A quick reminder/tutorial on downloading track information from a Garmin ETrex Legend.

You’ll need to install at least:


gpstrans - communicate with Garmin GPS receiver

you may also have better luck with the more robust (seemingly)


gpsbabel - Universal GPS format translator

Either will let you connect via a USB-Serial dongle to the serial port on the Garmin.
(what model GPS is this?)


morrowc@tweezer:~$ gpstrans -p /dev/ttyUSB0 -i
GPStrans (ASCII) - Version 0.40
Copyright (c) 2005 by Carsten Tschach ()
Linux/KKJ mods by Janne Sinkkonen (1996)
Copyright (c) 2000 German Grid by Andreas Lange
Copyright (c) 1998,2000 Mayko-mXmap mods by Matthias Kattanek
Copyright (c) 2001 Development by Joao Seabra-CT2GNL
Copyright (c) 2005 Development by Jim Van Zandt
Warning: device with product ID 411 is unknown - assuming it’s like a GPS II.
Connected GPS [/dev/ttyUSB0] is: Garmin eTrex Legend Software Version - V3.7

Lets download some waypoints:


morrowc@tweezer:~$ gpstrans -p /dev/ttyUSB0 -dt
Warning: device with product ID 411 is unknown - assuming it’s like a GPS II.
Format: DMS UTC Offset:  0.00 hrs Datum[100]: WGS 84
Type Date Latitude Longitude
H -1075874956
T 08/17/2008 11:35:00 XX°52’25.5” -YY°58’53.3”
T 08/17/2008 11:35:40 XX°52’25.4” -YY°58’53.2”
T 08/17/2008 11:36:23 XX°52’25.3” -YY°58’53.1”
.
.
.

Success! Now, take your output, push that through a php script and apply it to google-maps!

The gpsbabel version of getting content/tracks off the GPS device is:


gpsbabel -t - i garmin -f /dev/ttyUSB0 -o kml -F /tmp/track_output.kml

The kml file can then be loaded directly in google-earth and you can watch your icon roll along the path of the GPS route.