User Manual - Configuration Guide (Volume 3)

Chapter 2

Versatile Routing Platform

Configuration of Modem Management

Here:

zsend-string stands for sending character string

zreceive-string stands for receiving character string

zsend-string and receive-stringusually appear in pairs, and the script must begin with sending character string. For example, send-string1receive-string1 ......

means that the execution flow is: send character string send-string1to modem in the hope of receiving character string receive-string1. If before timeout, successful matching of character string and receive-string1is received, continue to execute the following script, otherwise terminate its execution.

zIf the last character string is a send-string, it means that script execution may be ended after sending this string, instead of waiting for receiving string.

zIf the script begins with waiting for sending character string, instead of receiving character string, then the first send-string can be set as "", while the meaning of such mark is explained below.

zFor the received string, in addition to its ending with \c, the end of the character string will be automatically attached with a return mark when it is sent.

zThe received strings are matched with the method irrelevant with positions, i.e., as long as the content to receive contains the string expected to receive, the matching is successful.

zIn the matching of received strings, there may be a number of strings expected to receive which are connected with “-“. So long as it matches one of them, the matching is successful.

zThe timeout for waiting to receive character string is 5 seconds by default, the TIMEOUT seconds may be inserted into the script from time to time to adjust the timeout of waiting to receive character string, and such setting will remain valid in the same script before the next TIMEOUT setting.

zAll the character strings and key words in the script are case sensitive.

zThe character strings or key words are separated with spaces, the space in a string itself should be marked with double quotation marks " ", and if it is empty in the quotation marks (i.e.,""), the character string may two meanings. That is, if "" is at the beginning of the script, it means to directly wait for receiving character string, instead of sending any character string, while if it is in other locations, the content of the string is regarded as "".

zABORT receive-stringmay be inserted into the script from time to time to change script execution flow, indicating if the received string full matches receive-string, the script execution will be terminated. In the script, ABORT receive-stringmay appear several times, which will function jointly, so long as it matches one of them, the script execution will be terminated, and wherever ABORT receive-string appears, it plays its role in the entire script execution process.

zThe escape characters may be inserted into the script, to better the control of script and its flexibility, meanwhile all the escape characters are the separating characters of the character strings at the same time.

Table DC-2-1List of key script words

Key words

 

Description

 

 

 

 

ABORT is followed by

a character string, used to match the character strings sent

ABORT receive-string

by Modem or the remote DTE equipment. The method is complete matching, there

may be a number of ABORTs specified in a script, and each is valid in the course of

 

 

script execution.

 

 

TIMEOUT is followed by a number, used to set the waiting timeout of receiving

TIMEOUT seconds

character string, if no character string expected is received during the waiting time,

the script execution fails. This setting remains valid after it is set, until the next

 

 

TIMEOUT setting.

 

Here the unit is second, and the value range is 0-180, default value is 180.

2-2

Page 186
Image 186
Huawei v200r001 user manual Key words Description, Timeout seconds