ubuntu下usb转串口设置

ubuntu usb转串口设置


1、安装minicom:sudo apt-get install minicom

2、插入usb转串口线,终端输入:dmesg | grep usb

[    0.503787] usbcore: registered new interface driver usbfs
[    0.503787] usbcore: registered new interface driver hub
[    0.503787] usbcore: registered new device driver usb
[    2.212052] usb 6-2: new full speed USB device number 2 using ohci_hcd
[    9.712038] usb 1-1: new high speed USB device number 2 using ehci_hcd
[   11.617261] usbcore: registered new interface driver uas
[   11.626692] scsi6 : usb-storage 1-1:1.0
[   11.626876] usbcore: registered new interface driver usb-storage
[   11.635511] usbcore: registered new interface driver usbserial
[   11.635545] usbcore: registered new interface driver usbserial_generic
[   11.635546] usbserial: USB Serial Driver core
[   11.656888] usb 6-2: pl2303 converter now attached to ttyUSB0
[   11.656906] usbcore: registered new interface driver pl2303

3、设置:minicom -s
serial port setup-->serial device:/dev/ttyUSB0

硬件数据流、软件数据流控制均设置为否

4、保存退出

5、命令窗口运行:minicom


---------------------------------------------------------------------------------------------------

注意:默认情况下ubuntu已经安装了USB转串口驱动(pl2303)。

[   11.656888] usb 6-2: pl2303 converter now attached to ttyUSB0
[   11.656906] usbcore: registered new interface driver pl2303

1、# lsmod | grep usbserial
如果有usbserial,说明系统支持USB转串口。

yzj@yzj-laptop:~/minicom$ lsmod | grep usbserial
usbserial              37203  3 pl2303

2、插上USB转串口,在终端输入命令#dmesg | grep ttyUSB0,如果出现连接成功信息,则说明ubuntu系统已经识别该设备了。

----------------------------------------------------

组合键的用法是:先按Ctrl+A组合键,然后松开这两个键,再按Z键。另外还有一些常用的组合键。
(1)S键:发送文件到目标系统中;
(2)W键:自动卷屏。当显示的内容超过一行之后,自动将后面的内容换行。这个功能在查看内核的启动信息时很有用。
(3)C键:清除屏幕的显示内容;
(4)B键:浏览minicom的历史显示;
(5)X键:退出mInicom,会提示确认退出。



原文地址:https://www.cnblogs.com/java20130726/p/3218592.html