<code>
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o kml -F tracks.kml
</code>
where ''-t = tracks r = routes w = waypoints''\\
Command: ''-i format''\\
Meaning: Set input format\\
Command: ''-f filename''\\
Meaning: Read file\\
Command: ''-o format''\\
Meaning: Set output format\\
Command: ''-F filename''\\

better to first download in gpx format then work on the file\\
change to gamin_txt for easier use\\
Meaning: Write output file\\

Writing wapoints back to Garmin\\
<code>
gpsbabel -i gpx -f waypoint.gpx -o garmin -F /dev/ttyUSB0
</code>

Hint: in Ubuntu you'll need to use ''sudo'' when using the serial port\\

A good site to print a topo map from the data is [[http://www.gpsvisualizer.com/map_input|GPS Visualizer]]\\

Hint: To convert kml to gpx
<code>
gpsbabel -i kml -f in.kml -o gpx -F out.gpx
</code>
or vice-versa

**Note** All the above commands assume that you are using a USB to serial dongle. If you have actual physical serial ports on your computer, find them with
<code>
dmesg | grep tty
</code>
to find out which ports are available\\

And
<code>
setserial -g /dev/ttyS[0123]
</code>
to find out configuration info.\\
