zoukankan      html  css  js  c++  java
  • busybox microcom

    /*************************************************************************
     *                       busybox microcom
     * 说明:
     *     有时候我们可能仅仅是在嵌入系统里使用一下串口,看是否有数据存在,
     * 而这种情况下,没有必要花大把的时间去自己搞一个命令行的串口工具,于是
     * busybox 提供的microcom就是一个很好的工具。
     *
     *                                        2016-2-2 深圳 南山平山村 曾剑锋
     ************************************************************************/
    
    一、参考文章:
        1. Linux Busybox Minicom简单用法
            http://blog.sina.com.cn/s/blog_67c9a89901019z3c.html
        2. Busybox microcom
            https://lnguin.wordpress.com/2013/05/06/busybox-microcom/
    
    二、busybox microcom help:
        root@android:/ # busybox microcom -h                                         
        microcom: invalid option -- 'h'
        BusyBox v1.15.3 (2011-11-25 17:55:55 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
        
        Options:
                -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
        
        root@android:/ # 
    
    三、android下GPS模块测试:
        root@android:/ # busybox microcom -t 5000 -s 9600 /dev/ttymxc1
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPGSV,3,1,12,01,00,000,,02,00,000,,03,00,000,,04,00,000,*7C
        $GPGSV,3,2,12,05,00,000,,06,00,000,,07,00,000,,08,00,000,*77
        $GPGSV,3,3,12,09,00,000,,10,00,000,,11,00,000,,12,00,000,*71
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPGSV,3,1,12,01,00,000,,02,00,000,,03,00,000,,04,00,000,*7C
        $GPGSV,3,2,12,05,00,000,,06,00,000,,07,00,000,,08,00,000,*77
        $GPGSV,3,3,12,09,00,000,,10,00,000,,11,00,000,,12,00,000,*71
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
        $GPRMC,,V,,,,,,,,,,N*53
        $GPGGA,,,,,,0,00,,,M,0.0,M,,0000*48
        $GPGSA,A,1,,,,,,,,,,,,,,,*1E
    
    四、exit(quit) microcom:
        Ctrl-x to exit. 
  • 相关阅读:
    postman 调试接口报“401 身份认证信息未提供”错误
    UserWarning: XXX is writable by group/others and vulnerable to attack when used with get_resource_filename.
    以root权限执行python时候脚本时候报错“ExtractionError: Can't extract file(s) to egg cache”
    django接口调试示例说明
    查看linux系统版本、内存、CPU、存储容量
    一次批量杀死多个进程
    bash:pybot未找到命令
    Swoft-Api项目部署九:前、后置中间件
    Swoft-Api项目部署八:主从数据库配置
    Swoft-Api项目部署七:验证器
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5177033.html
Copyright © 2011-2022 走看看