Monday, June 18, 2007

USB to Serial Adapter for Ubuntu

I recently received an updated laptop at work -- a nice hp nc6400 notebook. Unlike the previous nc6000, this new on does not include a serial port which is problematic for the Garmin to serial cable I have. I ordered from CompUSA a USB to Serial Adapter by CablesToGo (model 26886) and it works great out of the box on Ubuntu/Feisty.

All I needed to change is the serial port to use, so:

gpsbabel -t -i garmin -f /dev/ttyS0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyS0 -o gpx -F waypoints.gpx

becomes:

gpsbabel -t -i garmin -f /dev/ttyUSB0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o gpx -F waypoints.gpx

FWIW, it uses the pl2303 kernel module.