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,会提示确认退出。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值