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后自动退出
  • 相关阅读:
    Mysql备份和恢复
    前端Css学习
    jQuery学习
    HTML页面学习
    Linux下java环境变量配置
    windows下java环境变量标准配置
    oracle查询消耗服务器资源SQL语句
    Java主线程在子线程执行完毕后再执行
    CentOS7 安装 Redis
    查看Oracle表空间使用情况
  • 原文地址:https://www.cnblogs.com/xingboy/p/15043734.html
Copyright © 2011-2022 走看看