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

  • 相关阅读:
    4500-X验证镜像完整性
    激活4500-X RTU license
    Nexus:hardware type changed to No-Transceiver
    Bug搬运工-CSCvf74866:Webauth scaling improvements
    win10无法登陆SSG进行WEB UI管理
    FTD vs FMC
    转:思科3750交换机堆叠技术配置向导
    ROM, RAM, NVRAM and Flash Memory on Cisco Routers
    RADIUS Authentication with WPA2-Enterprise
    BUG搬运工:CSCun88303-CIMC Memory Leak : Can't SSH/HTTP to CIMC
  • 原文地址:https://www.cnblogs.com/huang-y-x/p/11181464.html
Copyright © 2020-2023  润新知