Script Commands - Digi PortServer II User Manual

Communication terminal server
Table of Contents

Advertisement

Script commands

You can use the following commands in your scripts:
Note: s indicates a state parameter. State parameters are described after the list of
commands.
Sets character size to n, and parity according to p. The value n must
Anp
be 7 or 8. The value p may be 0 (no parity), 1 (odd parity), 2 (even
parity), or 3 (mark parity).
Transmits a break signal n milliseconds in length. If n is not specified,
Bn
transmits a 250 millisecond break.
Sets carrier loss detection. If n is 0, carrier loss is not detected. If n is
Cn
1, the modem hangs up if the port loses DCD.
If running interactively, writes string to the user's terminal. If running
E{string}
in background, writes string to the trace buffer. (set trace
mask=wan:info must have been previously executed).
Pauses for n seconds, then flushes input data. n is optional and
Fn
defaults to 0 if you do not enter a value .
Immediately transfers control to state s.
Gs
Sets the carrier lost (hangup) recovery state to s. If carrier is lost (and
Hs
detection set with command Cn) transfers to state s.
Raises a modem signal. If m is 1, raises DTR. If m is 2, raises RTS.
D+m
Lowers a modem signal. If m is 1, drops DTR. If m is 2, drops RTS.
D-m
Writes string to the modem.
M{string}
Changes the baud rate to speed b.
Nb
Pauses for n seconds. n is optional and defaults to 1 second if you do
Pn
not enter a value.
Sets flow control. If n is 0, disables all regular port flow control. If n
Qn
is 1, enables flow control.
Decrements the retry count. If count < 0, switches to state s.
Rs
Declares the timeout used when waiting for a modem signal or input
Sn
data is n seconds.
Timeout recovery state. Any timeout waiting for input data, or
Ts
waiting for a modem signal will transfer to this state.
Page 130
Configuring Modem Connections
90030500B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents