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.

2 comments:

  1. Hi, Im a newbie in linux and my laptop doesnt support rs232 either. I wanna ask you: where do you change those lines? Or does ubuntu automatically detects it as a serial port?

    ReplyDelete
  2. You don't have to do anything to get for /dev/ttyUSB0 to show up.

    Those particular gpsbabel commands that you type on the command like would obviously need to be changed to use the new devices.

    ReplyDelete