ASYNC ROUTER AR-P, AR-5, AND SYNC ROUTER REFERENCE MANUAL

B.2 Dialer Script Procedure

A dialer script file is a DOS formatted text file in which each line contains one of the following commands:

connect [speed]

Instructs the dialer to wait for the modem to make a connection. From the scriptwriter’s perspective, it is equivalent to the command:

wait 60000 “CONNECT” [speed]

but it recognizes modem error messages and will log them to the syslog data stream as:

“call failed: BUSY”

rather than:

“script failed to do ‘wait 60000 “CONNECT” ’ ”

For busy lines, this also allows the call to be retried as soon as the modem detects the busy signal instead of having to wait for a full minute. As for the wait command, the speed keyword instructs the dialer process to set the DTE port speed to the speed report in the modem’s connect message (as in CONNECT 38400). This is not normally required or recommended. The Router sets the port speed when the port is initialized, and this speed stays locked in regardless of connection speed.

control {up down}

Used to control both DTR and RTS modem signals.

send {string macro} [msec]

Used to send a text string. Common C-language escape sequences are supported by this command. Use this command to initialize the modem. For example:

send “AT&F\r”.

Macro strings may also be substituted for the string parameter. The following macro information may be sent:

$PHONE—phone number from dialup iface demand phone

$LOGIN_NAME—current dialup iface login_name value

$LOGIN_PWD - current dialup iface login_pwd value

The optional msec argument allows the specified millisecond pause to be inserted between the characters of the output string.

speed baud

Used to set the port DTE speed. Normally, the modem ports have speed buffering enabled and the port speed is locked at 38400 bps. The speed command can change the modem-port speed. However, if speed buffering, error correction, and compression are turned off, you must also lock the DTE speed to the modem line speed. In this configuration, the maximum usable line speed in “raw” connect mode becomes 9600 bps for the Router because 14400 bps is not a valid DTE speed.

status {up down}

253

Page 253
Image 253
Black Box LRA005A-R2, LRS002A-R2, LRA001A-R2 manual Dialer Script Procedure, 253