A command tera term analysis scenario

A command tera term analysis scenario

; Virtual serial port virtual two serial ports, tera term use serial port 2

; 115200 baud serial port 2 is provided, 500ms timeout; If OK is received from serial port to the return SUCCESS; ERROR if the reply is received Faile
; If a timeout is sent Timeouts.
Connect "/ C = 2 / BAUD = 115200"
 timeout = 0
mtimeout = 500
the while. 1
        the wait 'the OK' 'eRROR'
        ; the If timeout Occurs, transmits ": timeout."
        IF Result = 0 the then
           sendln "Timeouts"
        ; has Received, transmits ": error."
        ELSEIF Result =. 1 the then
           sendln " Success "
        ;" ERROR "has Received, transmits": Faile. "
        ELSEIF the then Result = 2
           Faile" sendln "
        
        endif
    endwhile

Published 216 original articles · won praise 58 · Views 100,000 +

Guess you like

Origin blog.csdn.net/f2157120/article/details/98797425