linux下USB转串口配置

https://www.cnblogs.com/shishiteng/p/5801826.html

https://blog.csdn.net/kevinhg/article/details/6930333

https://blog.csdn.net/fhqlongteng/article/details/80417028

minicom-linux下USB转串口配置

现在的笔记本越做越薄,好些电脑已经没有串口了,做硬件开发会非常头疼,不过有了USB转串口设备,PC机只需要有USB接口就可以了。在linux下我们使用minicom与目标设备通信,在此记录一下linux下USB转串口的配置过程。

 

 1.查看驱动是否正常

sst@ubuntu:~/work/test$ lsmod |grep usbserial

usbserial
45014 1 ch341

如果有usbserial这一行,说明系统支持USB转串口。

 

2.查看USB设备

sst@ubuntu:~/work/test$ dmesg |grep ttyUSB0
[
221102.440589] usb 3-10: ch341-uart converter now attached to ttyUSB0

 

3.安装minicom

sudo apt-get install minicom

 

4.配置minicom

sudo minicom -s

  按A键,设置Serial Device为: /dev/ttyUSB0

按F键,设置Hardware Flow Control 为No

按G键,设置Software Flow Control为No

按回车,保存。

如果想把你的配置设置为默认配置,在configuration选择Save setup as dfl,然后退出。

 

5.启动minicom

sudo minicon

 

我的串口输出是二进制数据,所以看上去就是乱码啦按下CTRL-A Z后会弹出帮助菜单,在菜单下按Q可以退出。

 

 

分类: Linux
0
0
« 上一篇:ORB_SLAM2 闭环检测段错误
» 下一篇:ORB_SLAM2 Tracking流程
	</div>
	<div class="postDesc">posted @ <span id="post-date">2016-08-24 10:20</span> <a href="http://www.cnblogs.com/shishiteng/">shishiteng</a> 阅读(<span id="post_view_count">1581</span>) 评论(<span id="post_comment_count">0</span>)  <a href="https://i.cnblogs.com/EditPosts.aspx?postid=5801826" rel="nofollow">编辑</a> <a href="#" onclick="AddToWz(5801826);return false;">收藏</a></div>
</div>
posted @ 2018-06-02 11:38  灰太狼的喜羊羊  阅读(4182)  评论(0编辑  收藏  举报