Ubuntu下串口工具
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu下串口工具
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、Kermit
1.安裝:
sudo apt-get install ckermit
2.配置:
sudo gedit /etc/kermit/kermrc
3.在文件末端添加如下內容 :
set line /dev/ttyUSB0 set speed 115200 set carrier-watch off set handshake none set flow-control none robust set file type bin set file name lit set rec pack 1000 set send pack 1000 set window 5
4.啟動
啟動kermit,連接串口:
hyx@ubuntu:~ $ sudo kermit [sudo] password for hyx: ?SET SPEED has no effect without prior SET LINE C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 Copyright (C) 1985, 2011, Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/home/gec/) C-Kermit>connect
二、minicom
1.安裝
suodo apt-get install minicom
2.配置
sudo minicom -s
+-----[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |選擇此項!!!!
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+
+-----------------------------------------------------------------------+
| A - Serial Device : /dev/ttyUSB0 |//修改為自己/dev/下的ttyUSB* ls /dev/tyyUSB*
| B - Lockfile Location : /var/lock |
| C - Callin Program : |
| D - Callout Program : |
| E - Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control : No |
| G - Software Flow Control : Yes |
| |
| Change which setting? |
+-----------------------------------------------------------------------+
| Screen and keyboard |
| Save setup as dfl |
| Save setup as.. |
| Exit |
| Exit from Minicom |
+--------------------------+
+-----[configuration]------+
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |//1 在設置完記得保存!!!
| Save setup as.. |
| Exit |//2 退出
| Exit from Minicom |
+--------------------------+
在之后使用時,只需要輸入minicom即可
注:如果出現亂碼問題,換條usb轉串口線即可
總結
以上是生活随笔為你收集整理的Ubuntu下串口工具的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 宝可梦剑盾伊布在哪抓 盘点十大人气最高的
- 下一篇: 图像基本群运算--滤波