我正在尝试将minicom连接到通过USB到串行适配器连接的串行设备。这是PL2303,从我读过的所有内容来看,不需要其他驱动程序。该设备被识别为PL2303。

我是minicom的初学者。这是执行正确的命令吗?还是我需要配置一些东西?

$ sudo minicom --device /dev/ttyUSB0
minicom: cannot open /dev/ttyUSB0: No such file or directory

$ sudo lsusb -v

Bus 002 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
  bLength                18
  bDescriptorType         1

$ tail /var/log/syslog  #then removed and attached the device.
Mar 13 23:31:49 ubuntu kernel: [807996.786805] usb 2-1: pl2303 converter now attached to ttyUSB0
Mar 13 23:34:44 ubuntu kernel: [808172.155129] usb 2-1: USB disconnect, address 7
Mar 13 23:34:44 ubuntu kernel: [808172.156321] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
Mar 13 23:34:44 ubuntu kernel: [808172.156374] pl2303 2-1:1.0: device disconnected
Mar 13 23:34:52 ubuntu kernel: [808179.497856] usb 2-1: new full speed USB device using uhci_hcd and address 8
Mar 13 23:34:52 ubuntu kernel: [808179.785845] pl2303 2-1:1.0: pl2303 converter detected
Mar 13 23:34:52 ubuntu kernel: [808179.872309] usb 2-1: pl2303 converter now attached to ttyUSB0

最佳答案

首先使用dmesg | grep tty检查系统是否识别您的适配器。
然后尝试使用sudo minicom -s运行minicom,转到“串行端口设置”​​,并将第一行更改为/dev/ttyUSB0

不要忘记使用“将设置另存为dfl”将配置保存为默认设置。它在VirtualBox的Ubuntu 11.04上对我有效。

10-05 23:50