• comgt拨号


    comgt用法:comgt -s script -d device

    示例1。循环输入AT指令:

    command内容如下

    ####################################################
    #
    # command - comgt script for command interaction
    #
    # Copyright (C) 2006  Paul Hardwick <paul@peck.org>
    #
    ###################################################
    print "
    Type command at prompt.
    "
    print "Empty input terminates.
    "
    print "#################
    "
    opengt
    set com 115200n81
    set senddelay 0.05
    waitquiet 1 0.2
    
    
    :loop1
        print "Command: "
        input $x
        let c=len($x)
        if c=1 goto end
        let c=c-1
        let $c=$left($x,c)
        send $x
        send "^m"
        :loop2
            print $a
            get 1 "^m" $a
            let a=len($a)
            if a > 0 goto loop2
        goto loop1
    :end
    print "#################
    "
    运行:comgt -s command -d /dev/ttyUSB1 -v


  • 相关阅读:
    csp-s模拟110
    csp-s模拟109
    留念
    csp-s 2019 游记
    HEOI2020
    CSP-S2019记
    堆积的$TIPS$
    低错复习
    倍增并查集
    4.26
  • 原文地址:https://www.cnblogs.com/chengliu/p/3636327.html
Copyright © 2020-2023  润新知