zoukankan      html  css  js  c++  java
  • Linux 中 Busybox microcom 的用法

      在Linux下,集成有minicom软件,可以实现串口调试功能,但是有的不会集成minicom软件。如果你使用的是busybox的文件系统,有一个更加简单的串口工具microcom,用法如下:

    / # busybox microcom -h
    microcom: invalid option -- 'h'
    BusyBox v1.29.0 (2020-12-23 13:09:27 CST) multi-call binary.
    Usage: microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY
    Copy bytes for stdin to TTY and from TTY to stdout
            -d      Wait up to DELAY ms for TTY output before sending every
                    next byte to it
            -t      Exit if both stdin and TTY are silent for TIMEOUT ms
            -s      Set serial line to SPEED
            -X      Disable special meaning of NUL and Ctrl-X from stdin 
    /*---------------------------------- 

      -t 单位毫秒,无操作自动退出时间。
      -s 单位bps,串口波特率。
      另外两个没多大用

       ----------------------------------*/

      举例:设置5s内无操作退出,且波特率为115200的ttyUSB1

    / # busybox microcom -t 5000 -s 115200 /dev/ttyUSB1    //输入指令
    ati;+cpin?;+csq;+cops?;+cgreg?
    Quectel
    EC200S
    Revision: EC200SCNAAR01A09M16
    
    +CSQ: 23,99
    
    +CGREG: 0,0
    
    +CME ERROR: 10
    / #                                                   //5S后自动退出
  • 相关阅读:
    SD卡测试
    测试人员可能会遇到的问题
    HDU 1024 Max Sum Plus Plus
    HDU 1176 免费馅饼
    HDU 1257 最少拦截系统
    HDU 1087 Super Jumping! Jumping! Jumping!
    poj 1328 Radar Installation
    poj 1753 Flip Game
    HDU 1003 Max Sum
    HDU 5592 ZYB's Premutation(BestCoder Round #65 C)
  • 原文地址:https://www.cnblogs.com/xingboy/p/15043734.html
Copyright © 2011-2022 走看看