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
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可以退出。
</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>