Chapter 2 – Huawei V200R001 User Manual

Page 8

Advertising
background image

User Manual - Configuration Guide (Volume 3)
Versatile Routing Platform

Chapter 2

Configuration of Modem Management

2-2

Here:
z send-string stands for sending character string
z receive-string stands for receiving character string
z send-string

and receive-string usually appear in pairs, and the script must begin

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

z If 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.

z If 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.

z For 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.

z

The 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.

z In 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.

z The 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.

z All the character strings and key words in the script are case sensitive.
z The 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 "".

z ABORT receive-string may 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-string may
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.

z The 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-1 List of key script words

Key words

Description

ABORT receive-string

ABORT is followed by a character string, used to match the character strings sent
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 seconds

TIMEOUT is followed by a number, used to set the waiting timeout of receiving
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.

Advertising