Linux下的USB转串口配置

来源:岁月联盟 编辑:exp 时间:2012-05-17
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