我正在尝试使用 USB 转串行电缆和 Prolific pl2303 模块连接到只有串行端口的 APU1C 设备。我以前能够连接到它,但现在我遇到了从未见过的奇怪行为。我尝试使用 minicom、screen 和 GtkTerm 的推荐参数 (115200,8,n,1),但都给出了相同类型的输出:
我使用 Debian buster linux(Linux 4.16.0-1-amd64 #1 SMP Debian 4.16.5-1 (2018-04-29) x86_64 GNU/Linux)作为客户端,并尝试使用 memstick 安装程序安装 PfSense。
我发现由于侵犯版权,Windows 驱动程序存在一些问题,导致无法连接;类似的问题也会影响 Linux 的驱动程序吗?
谢谢。
编辑: dmesg | grep tty 的输出::
[ 0.000000] console [tty0] enabled
[ 0.649979] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 9.467550] systemd[1]: Created slice system-getty.slice.
[ 1167.806072] usb 1-2: pl2303 converter now attached to ttyUSB0
[ 1267.083281] pl2303 ttyUSB0: pl2303_get_line_request - failed: -32
[ 1267.083489] pl2303 ttyUSB0: pl2303_get_line_request - failed: -32
[ 1277.114942] pl2303 ttyUSB0: error sending break = -32
插入电缆时 tail -f /var/log/syslog 的输出:
Jun 12 16:48:25 unobtainium kernel: [ 3678.727502] usb 1-2: new full-speed USB device number 11 using xhci_hcd
Jun 12 16:48:26 unobtainium kernel: [ 3678.876263] usb 1-2: New USB device found, idVendor=067b, idProduct=2303
Jun 12 16:48:26 unobtainium kernel: [ 3678.876268] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun 12 16:48:26 unobtainium kernel: [ 3678.876272] usb 1-2: Product: USB 2.0 To COM Device
Jun 12 16:48:26 unobtainium kernel: [ 3678.876276] usb 1-2: Manufacturer: Prolific Technology Inc.
Jun 12 16:48:26 unobtainium kernel: [ 3678.876935] pl2303 1-2:1.0: pl2303 converter detected
Jun 12 16:48:26 unobtainium kernel: [ 3678.877651] usb 1-2: pl2303 converter now attached to ttyUSB0
Jun 12 16:48:26 unobtainium mtp-probe: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Jun 12 16:48:26 unobtainium mtp-probe: bus: 1, device: 11 was not an MTP device
Jun 12 16:48:26 unobtainium upowerd[1960]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0
Jun 12 16:48:26 unobtainium upowerd[1960]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2
Jun 12 16:48:28 unobtainium ModemManager[726]: <info> Couldn't check support for device '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2': not supported by any plugin
答案1
我找到了根本原因:电缆损坏,可能使用了伪造的 Prolific 芯片 (pl2303)。使用另一根电缆解决了所有问题,包括无法在装有最新驱动程序的 Windows 10 机器上使用之前的电缆。