提问
我正在尝试将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.