如何查找 CH340 USB 驱动程序

如何查找 CH340 USB 驱动程序

我需要在此上安装 CH340 usb 驱动程序;它连接到 Arduino 机器。

这些说明适用于 Windows,而我使用的是 Ubuntu Linux。帮助页面显示 CH341 驱动程序应该已经安装。

驱动程序几乎肯定已经内置到您的 Linux 内核中,并且只要您插入它它就会立即工作。如果没有,您可以下载 Linux CH340 驱动程序(但我建议您只升级您的 Linux 安装以便获得“内置”驱动程序)。

lsusb没有提到任何内容:

$ lsusb
Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 0cf3:e300 Qualcomm Atheros Communications 
Bus 002 Device 004: ID 5986:0701 Acer, Inc Lenovo EasyCamera
Bus 002 Device 003: ID 04f3:2052 Elan Microelectronics Corp. Touchscreen
Bus 002 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

然后lsmod | grep ch34什么都没有返回。所以我猜它没有安装?

答案1

我在 22.04 中遇到了一个问题,这个问题甚至可能与 20.04 有关。当我插入 ch340 时,内核日志/var/log/kern.log报告 ch340 已连接,/dev/usbTTY0然后立即再次断开连接:

Jun 13 22:17:31 neptune kernel: [15500.794379] usb 2-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
Jun 13 22:17:31 neptune kernel: [15500.794394] usb 2-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Jun 13 22:17:31 neptune kernel: [15500.794400] usb 2-1: Product: USB Serial
Jun 13 22:17:31 neptune kernel: [15500.795994] ch341 2-1:1.0: ch341-uart converter detected
Jun 13 22:17:31 neptune kernel: [15500.796670] usb 2-1: ch341-uart converter now attached to ttyUSB0
Jun 13 22:17:32 neptune kernel: [15501.346566] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input24
Jun 13 22:17:32 neptune kernel: [15501.553569] usb 2-1: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
Jun 13 22:17:32 neptune kernel: [15501.554415] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
Jun 13 22:17:32 neptune kernel: [15501.554490] ch341 2-1:1.0: device disconnected

对我来说,brltty 驱动程序似乎妨碍了。我自己没有任何视力问题,也不需要盲文设备。要修复它,我只需:

sudo apt-get autoremove brltty

当我下次插入 ch340 时,它就能完美地运行了。

相关内容