CH341 Linux驱动 没有 /dev/ttyCH341USB0
一、前言
在本地安装了 CH341 的串口模块驱动后,手动拔插模块可以识别到,过一段时间又消失了。对于我长期不拔的设备十分的不友好。
二、解决冲突
在 dmesg 下查看发现有冲突:
sudo dmesg | grep ch341
[ 4.785457] usb_ch341 3-10:1.0: ttyCH341USB0: ch341 USB device
[ 4.785585] usbcore: registered new interface driver usb_ch341
[ 4.785587] ch341: USB serial driver for ch340, ch341, etc.
[ 4.785588] ch341: V1.8 On 2024.08
[ 5.869226] usb 3-10: usbfs: interface 0 claimed by usb_ch341 while 'brltty' sets config #1
[ 5.869658] usb_ch341 3-10:1.0: ch341 usb device disconnect.
[23186.237452] usbcore: deregistering interface driver usb_ch341
[23186.237506] ch341: ch341 driver exit.
[23285.919735] usb_ch341 3-10:1.0: ttyCH341USB0: ch341 USB device
[23285.919848] usbcore: registered new interface driver usb_ch341
[23285.919850] ch341: USB serial driver for ch340, ch341, etc.
[23285.919851] ch341: V1.8 On 2024.08
[23286.710264] usb 3-10: usbfs: interface 0 claimed by usb_ch341 while 'brltty' sets config #1
[23286.710875] usb_ch341 3-10:1.0: ch341 usb device disconnect.
brltty 是一个为视障人士设计的软件项目,通过盲文显示器提供访问 Linux/Unix 文本模式控制台的功能。
这里大概就是说该服务与 ch341 有冲突,关闭并卸载 brltty 即可:
sudo systemctl stop brltty
sudo apt remove --purge brltty
重新加载 ch341 驱动:
sudo rmmod ch341
sudo modprobe ch341
重新查看设备:
已经可以正常使用了。