beautypg.com

Cli server escape processing, Detecting and executing the escape sequence – Quatech WLNG-ET-DP500 Series User Manual

Page 20

background image

Company Confidential

Quatech, Inc.

20

Airborne CLI Reference Manual

100-8081-100

 The CLI Session on the serial interface startup behavior is determined by the

value of the serial-default parameter.

 CLI Sessions on the wireless interface using the TCP port specified by wl-

telnet-port always start in CLI Mode.

 CLI Sessions on the wireless interface using the TCP port specified by the

wl-tunnel-port or the UDP port specified by wl-udp-rxport, always
start in PASS Mode. However, if the CLI Session on the serial interface is not
in LISTEN Mode, the TCP connection on the wl-tunnel-port will be
rejected by the Module.

6.4

CLI Server Escape Processing

The CLI Server includes an escape processing feature which allows CLI
Sessions to transition from PASS or LISTEN (data bridging) Mode back to CLI
Mode. Escape processing is configurable to:

 disable escape processing

 process the receipt of a user-defined escape string as an escape signal

 process the receipt of the BREAK signal as an escape signal

When escape processing is disabled, the CLI Server will not parse the data
stream for any escape sequence. When escape processing is configured to use
an escape string, the CLI Server will perform pattern matching for the user-
defined escape string in the data stream. The escape string is a five (5)-character
string configurable via the

escape

CLI command. When escape processing is

configured to use the BREAK signal, the CLI Server will parse the data stream
for the BREAK signal.

6.5

Detecting and Executing the Escape Sequence

Upon detection of the escape sequence, the CLI Server applies the follow rules
for transitions of the CLI Session on that interface:

 If the CLI Session is in LISTEN Mode and there is no data bridge

established, the CLI Session will transition to CLI Mode and send an “OK”
response to the CLI Session.

 If the CLI Session is in LISTEN Mode and there is an active data bridge

established, the CLI Server will terminate the active data bridge and the CLI
Session will remain in LISTEN Mode. Basically, two escapes are required to
transition from active data bridge to CLI mode.

 If th

e CLI Session is in PASS Mode, the CLI Server will send an “OK”

response to the CLI Session and transition to CLI Mode.

The following effects of escape processing require the attention of system
implementations:

 If the escape sequence is an escape string, the escape string received on

one CLI Session is transmitted to the CLI Session on the other end of the
data bridge prior to performing the CLI Session transition. This allows the
other end to parse the received data and determine when the data bridge is
shutdown.

This manual is related to the following products: