一、查看COM口
root@Vostro:/# dmesg
...省略几十行日志。
[43878.788367] usb 7-1: USB disconnect, device number 2
[43878.788763] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[43878.788799] pl2303 7-1:1.0: device disconnected
[43888.200284] usb 7-1: new full-speed USB device number 3 using uhci_hcd
[43888.351600] usb 7-1: New USB device found, idVendor=067b, idProduct=2303
[43888.351609] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[43888.351614] usb 7-1: Product: USB-Serial Controller D
[43888.351618] usb 7-1: Manufacturer: Prolific Technology Inc.
[43888.354523] pl2303 7-1:1.0: pl2303 converter detected
[43888.367013] usb 7-1: pl2303 converter now attached to ttyUSB0
root@Vostro:/#
可以看到新插入的console线已经安装了驱动,并识别COM口味ttyUSB0。
二、安装和配置minicom
root@Vostro:/# apt-get install minicom #安装minicom
root@Vostro:/# minicom -s #启动minicom,下面是启动后界面:
1.选择 | Serial port setup |,下面是之后的窗口:
2.根据前面的“A B C D等字幕选择需要编辑和修改的参数”,修改参数如下:
3.两次回车保存,然后选 | Exit |,出现下面的提示:
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Jan 1 2014, 17:13:19.
Port /dev/ttyUSB0, 22:39:38
Press CTRL-A Z for help on special keys
4.此时回车就能见到我们熟悉的提示:
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Jan 1 2014, 17:13:19.
Port /dev/ttyUSB0, 22:39:38
Press CTRL-A Z for help on special keys
dis ver
dis version ?
| Matching output
dis version
5.配置完成后按CTRL+A然后按Z,出现命令汇总界面:
6.此时按 X出现退出提示:
选择 Yes,返回Ubuntu系统界面。