使用设备时 /dev/ttyUSB0 文件从 dev 目录中消失

使用设备时 /dev/ttyUSB0 文件从 dev 目录中消失

我正在尝试通过 USB 将我的 IC 7300 Ham 电台连接到我的 Ubuntu 22.04 笔记本电脑。我曾让它正常运行过一两次,提供设备控制和音频。问题是,/dev/ttyUSB0当 USB 电缆插入后几秒钟,该文件就会从 dev 目录中消失。当拔下 USB 电缆并重新插入时,它会出现然后消失。收音机在 Windows 机器上运行良好,所以我不认为这是 Ham 电台的问题。

以下是dmesg从插入 USB 到设备断开连接的过程。

dmesg -w
1587.018767] usb 4-2: new full-speed USB device number 5 using uhci_hcd
[ 1587.195832] usb 4-2: New USB device found, idVendor=0451, idProduct=2046, bcdDevice= 1.25
[ 1587.195845] usb 4-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1587.201094] hub 4-2:1.0: USB hub found
[ 1587.202999] hub 4-2:1.0: 4 ports detected
[ 1587.502767] usb 4-2.1: new full-speed USB device number 6 using uhci_hcd
[ 1587.649837] usb 4-2.1: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00
[ 1587.649849] usb 4-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1587.649854] usb 4-2.1: Product: CP2102 USB to UART Bridge Controller
[ 1587.649859] usb 4-2.1: Manufacturer: Silicon Labs
[ 1587.649862] usb 4-2.1: SerialNumber: IC-7300 02046571
[ 1587.655944] cp210x 4-2.1:1.0: cp210x converter detected
[ 1587.660093] usb 4-2.1: cp210x converter now attached to ttyUSB0
[ 1587.746776] usb 4-2.4: new full-speed USB device number 7 using uhci_hcd
[ 1588.045851] usb 4-2.4: New USB device found, idVendor=08bb, idProduct=2901, bcdDevice= 1.00
[ 1588.045864] usb 4-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1588.045870] usb 4-2.4: Product: USB Audio CODEC 
[ 1588.045874] usb 4-2.4: Manufacturer: Burr-Brown from TI              
[ 1588.131501] input: Burr-Brown from TI               USB Audio CODEC  as /devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2.4/4-2.4:1.3/0003:08BB:2901.0005/input/input27
[ 1588.195503] hid-generic 0003:08BB:2901.0005: input,hidraw3: USB HID v1.00 Device [Burr-Brown from TI               USB Audio CODEC ] on usb-0000:00:1a.1-2.4/input3
[ 1594.255034] usb 4-2.1: usbfs: interface 0 claimed by cp210x while 'brltty' sets config #1
[ 1594.257456] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[ 1594.257517] cp210x 4-2.1:1.0: device disconnected

答案1

brltty 守护进程中存在问题,导致串行设备关闭。

如果您不使用 brltty(用于盲文触摸阅读设备),那么您可以安全地删除该包:

apt remove brltty

此后串行 USB 设备将保持连接状态。

相关内容