我有一根 USB 转 RS232 转换线,该线被证明可以在 Windows 机器上使用,Ubuntu 可以检测到它,但不会将转换器连接到任何 /dev/tty。
我尝试将它连接到 USB 2.0 和 3.0,但是没有用。
不播下任何错误或任何东西。
操作系统是 Ubuntu 20.04,内核:5.4.0-66-generic,运行在第 10 代 Intel i5、8GB DDR4 RAM、Aorus ULTRA Z490I 上
“dmesg” 告诉我它在系统中,但没有附加任何东西。
[12811.723685] usb 1-4: new full-speed USB device number 8 using xhci_hcd
[12811.872472] usb 1-4: New USB device found, idVendor=067b, idProduct=23c3, bcdDevice= 3.05
[12811.872474] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12811.872474] usb 1-4: Product: USB-Serial Controller
[12811.872475] usb 1-4: Manufacturer: Prolific Technology Inc.
[12811.872476] usb 1-4: SerialNumber: EFA>f103Y23
“lsusb”表明它确实被检测到
Bus 001 Device 008: ID 067b:23c3 Prolific Technology, Inc. USB-Serial Controller
“usb-devices”显示:
T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=04 Dev#= 8 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=067b ProdID=23c3 Rev=03.05
S: Manufacturer=Prolific Technology Inc.
S: Product=USB-Serial Controller
S: SerialNumber=EFA>f103Y23
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
编辑:
我有一台 Ubuntu 笔记本电脑(它是之前测试过的 Windows 机器,但启动了 Ubuntu),具有相同的操作系统和内核,dmesg 显示它已被检测到并连接到 ttyUSB0
[ 77.810199] usb 3-2: new full-speed USB device number 5 using xhci_hcd
[ 77.959158] usb 3-2: New USB device found, idVendor=067b, idProduct=23c3, bcdDevice= 3.05
[ 77.959163] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 77.959166] usb 3-2: Product: USB-Serial Controller
[ 77.959169] usb 3-2: Manufacturer: Prolific Technology Inc.
[ 77.959171] usb 3-2: SerialNumber: EFA>f103Y23
[ 78.122784] usbcore: registered new interface driver usbserial_generic
[ 78.122793] usbserial: USB Serial support registered for generic
[ 78.127135] usbcore: registered new interface driver pl2303
[ 78.127145] usbserial: USB Serial support registered for pl2303
[ 78.127169] pl2303 3-2:1.0: pl2303 converter detected
[ 78.127337] usb 3-2: pl2303 converter now attached to ttyUSB0
答案1
# modprobe -rv usbserial
rmmod usbserial
# modprobe -v usbserial vendor=0x067b product=0x23c3
insmod /lib/modules/4.19.94-ti-r42/kernel/drivers/usb/serial/usbserial.ko.xz vendor=0x067b product=0x23c3
# ls -lh /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Jan 9 18:26 /dev/ttyUSB0