Ubuntu下串口工具

1、Kermitubuntu

1.安裝:spa

sudo apt-get install ckermit

2.配置:code

sudo gedit /etc/kermit/kermrc

3.在文件末端添加以下內容 :blog

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.啓動get

 啓動kermit,鏈接串口:it

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

 

 

2、minicomio

1.安裝class

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轉串口線便可

相關文章
相關標籤/搜索