Cli session startup modes, Cli server escape processing, Detecting and executing the escape sequence – B&B Electronics WLNN-AN(ER,SE,SP.EK)-DP551 - Manual User Manual
Page 26

26
Airborne Enterprise CLI Reference Manual
6.3.6 CLI Session Startup Modes
The startup behavior of the CLI Session on each interface is determined as
follows:
The CLI Session on the serial interface startup behavior is determined by the
value of the serial-default parameter.
CLI Sessions on the network interface using the TCP port specified by wl-
telnet-port always start in CLI Mode.
CLI Sessions on the network 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.
Each of the serial ports can have a different CLI Session startup behavior.
Each serial port can have different configuration settings for the tunnel port.
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 sequence must be the last
characters delivered to the module for escape parse to be successful. The
escape string is a five (5)-character string configurable via the
escape
or esc-
str CLI commands. When escape processing is configured to use the BREAK
signal, the CLI Server will parse the data stream for the BREAK signal.
The esc-str CLI command supersedes the escape command. It is recommended
that the esc-str be used.
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. Note that, two escapes are required to
transition from active data bridge to CLI mode.