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

</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>



