如何在Ubuntu 10.10(Maverick Meerkat)上将终端连接到串行到USB设备? [英] How do I connect to a terminal to a serial-to-USB device on Ubuntu 10.10 (Maverick Meerkat)?

查看:96
本文介绍了如何在Ubuntu 10.10(Maverick Meerkat)上将终端连接到串行到USB设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to connect minicom to a serial device that is connected via a USB-to-serial adapter. This is a PL2303 and from everything I've read no additional drivers are required. The device is recognised as a PL2303.

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

I'm a beginner at minicom. Is this the correct command to execute? Or do I need to configure something?

$ 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.

First check with dmesg | grep tty if system recognize your adapter. Then try to run minicom with sudo minicom -s, go to "Serial port setup" and change the first line to /dev/ttyUSB0.

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

Don't forget to save config as default with "Save setup as dfl". It works for me on Ubuntu 11.04 on VirtualBox.

这篇关于如何在Ubuntu 10.10(Maverick Meerkat)上将终端连接到串行到USB设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆