安装CH340/341的串口驱动时,在网上搜索到很多要自己下载源代码编译安装的方法。其实最新版本的ubuntu已经完美支持。
第一步,先找到USB设备,使用命令
lsusb
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 007 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 008 Device 002: ID 1bcf:0002 Sunplus Innovation Technology Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 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 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
找到usbserial设备的信息,这里是bus 007
Bus 007 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
然后装入usbserial模块, 根据结果修改vendor和product参数
sudo modprobe usbserial vendor=0x1a86 product=0x7523
最后看看是否成功安装
lsmod | grep usbserial
返回结果
usbserial 37161 1 ch341
有上面一行信息意味安装成功
参考:
http://forums.reprap.org/read.php?12,4546
No comments:
Post a Comment