USB-Serial Converter and Linux
filed in Linux on May.10, 2010
In my job, I sometimes have the need to access the console ports of networking devices. Since the serial port has gone the way of the floppy drive, this presents a peculiar situation. Now, the IT group hands out a USB-Serial adaptor, but most of them only support Windows, leaving people like us that run Linux struggling. This is the tale of such a struggle…
I had an urgent need a little while ago to configure a factory fresh switch and therefore needed the console connection. I whipped out my handy dandy Tripplite and plugged it in. A review of dmesg showed:
[ 1140.896302] usb 4-1: configuration #1 chosen from 1 choice
[ 1140.951279] usbcore: registered new interface driver usbserial
[ 1140.951309] USB Serial support registered for generic
[ 1140.951379] usbcore: registered new interface driver usbserial_generic
[ 1140.951383] usbserial: USB Serial Driver core
[ 1140.960174] USB Serial support registered for pl2303
[ 1140.960218] pl2303 4-1:1.0: pl2303 converter detected
[ 1140.972256] usb 4-1: pl2303 converter now attached to ttyUSB0
[ 1140.972286] usbcore: registered new interface driver pl2303
[ 1140.972291] pl2303: Prolific PL2303 USB to serial adaptor driver
Ok, so it’s ttyUSB0…that’s not much help. Next came my search for terminal emulation software. I grabbed a couple from the repositories; minicomm and qutecom. minicomm would have worked (I’m sure), had I wanted to spend a lot of time creating a config file, but I was in a hurry. Qutecom looked pretty good, and it worked…sorta. It has a unique UI in which you craft a line, then send it. This is ok if you don’t want to use tab completion, inline help, etc. but didn’t really fit my needs. Lastly, I tried Gtkterm and with an easy “fix”, it worked perfect. All I needed to do was symlink ttyS0 to ttyUSB0 and viola…success.









