zoukankan      html  css  js  c++  java
  • 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转串口线即可

  • 相关阅读:
    Socket原理与编程基础
    Hello cnblogs
    c# List 分页问题
    chrome下载Word失败问题
    前端时间Date显示问题踩坑
    Vue跳转同一界面多次,使用不同数据进行渲染
    Hadoop在Linux环境下的配置
    RabbitMQ下载安装
    Codeforces 527 C. Glass Carving
    python压缩、解压文件
  • 原文地址:https://www.cnblogs.com/huang-y-x/p/11181464.html
Copyright © 2011-2022 走看看