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转串口线即可

  • 相关阅读:
    简易sql拼接工具类(使用StringBuilder实现)
    缓存工具类(使用ConcurrentMap集合实现)
    properties文档读取工具类
    【Codeforces Round #655 (Div. 2)】A-D
    【2020 杭电多校第四场】Go Running 最小点覆盖
    【2020 杭电多校第四场】1002 Blow up the Enemy
    【2020 HDU 多校训练第三场 1007 Tokitsukaze and Rescue】暴力删边&最短路
    【2020杭电多校第二场】Total Eclipse 思维+并查集
    【2020HDU多校】Lead of Wisdom 暴力
    【CF-1371 C-E2】
  • 原文地址:https://www.cnblogs.com/huang-y-x/p/11181464.html
Copyright © 2011-2022 走看看