如何查找 CH340 USB 驱动程序

joh*_*ual 4 usb drivers 20.04

我需要在这个页面安装CH340 USB驱动;它连接到 Arduino 机器。

\n

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

\n
\n

驱动程序几乎肯定已经内置到您的 Linux 内核中,并且可能只要您插入它就可以工作。如果没有,您可以下载 Linux CH340 驱动程序(但我\xe2\x80\x99d 建议只升级您的 Linux 安装,以便你会得到 \xe2\x80\x9cbuilt in\xe2\x80\x9d 之一)。

\n
\n

lsusb没有提到任何事情:

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

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

\n

Phi*_*ing 6

我在 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
Run Code Online (Sandbox Code Playgroud)

对我来说,brltty 司机似乎妨碍了我。我自己没有任何视力问题,也不需要盲文设备。为了解决这个问题,我简单地:

sudo apt-get autoremove brltty
Run Code Online (Sandbox Code Playgroud)

下次我插入 ch340 时,它工作得很好。