Ubuntu內建了大部分USB to RS232驅動,我們所要做的就是尋找出裝置對應的裝置名稱即可
在終端下輸入lsusb,列出系統識別的USB裝置列表
$ lsusb
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 064e:a103 Suyin Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 062a:0001 Creative Labs Notebook Optical Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
輸入dmesg可顯示串連裝置名稱(紅色字型部分)
[ 668.252084] usb 5-1: new full speed USB device using uhci_hcd and address 2
[ 668.413928] usb 5-1: configuration #1 chosen from 1 choice
[ 668.692862] usbcore: registered new interface driver usbserial
[ 668.692900] usbserial: USB Serial support registered for generic
[ 668.692968] usbcore: registered new interface driver usbserial_generic
[ 668.692973] usbserial: USB Serial Driver core
[ 668.704495] usbserial: USB Serial support registered for pl2303
[ 668.716444] usb 5-1: pl2303 converter now attached to ttyUSB0
[ 668.716491] usbcore: registered new interface driver pl2303
[ 670.016108] usb 5-1: USB disconnect, address 2
[ 671.008120] usb 4-1: USB disconnect, address 4
[ 672.740055] usb 4-1: new full speed USB device using uhci_hcd and address 5
[ 672.904865] usb 4-1: configuration #1 chosen from 1 choice
[ 672.928071] usb 4-1: pl2303 converter now attached to ttyUSB0
在minicom中使用該裝置名稱
from:http://99dev.net/archives/564