Linux下的USB轉串口配置 今天弄了半天,終於把RHEL 6.2下的USB轉串口弄好了。 1)USB轉串口線時Aten的,如果不確定用的什麼晶片,可以進行一下熱插拔,然後查看dmesg資訊:
usb 1-5.1: new full speed USB device using ehci_hcd and address 4usb 1-5.1: New USB device found, idVendor=0557, idProduct=2008usb 1-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0usb 1-5.1: Product: USB-Serial Controllerusb 1-5.1: Manufacturer: Prolific Technology Inc.usb 1-5.1: configuration #1 chosen from 1 choiceusbcore: registered new interface driver usbserialUSB Serial support registered for genericusbcore: registered new interface driver usbserial_genericusbserial: USB Serial Driver core www.2cto.com USB Serial support registered for pl2303pl2303 1-5.1:1.0: pl2303 converter detectedusb 1-5.1: pl2303 converter now attached to ttyUSB0usbcore: registered new interface driver pl2303pl2303: Prolific PL2303 USB to serial adaptor driver 可以看到用的是pl2303的晶片,然後自動產生了ttyUSB0這個裝置。如果沒有產生這個裝置,則要通過mknod自己建立裝置; www.2cto.com 2)接下來就很容易了,核心好像會自動載入以下模組:[root@host2 ~]# lsmod | grep plpl2303 17792 1 usbserial 38620 3 pl2303有了這兩個模組,ttyUSB0就可以驅動起來; 3)利用minicom -s進行配置;這個很容易了,網上有教程。 作者 oniziga