Black Box LRS002A-R2 Network Router User Manual


 
ASYNC ROUTER AR-P, AR-5, AND SYNC ROUTER REFERENCE MANUAL
254
Used to signal a connect state transition to the PPP state machine. For example:
send “ATDT 555-6789\r”
wait 45000 “CONNECT” speed
status up
Once the connection is made, the status up command will start PPP.
wait
Used to indicate a waiting period before the next action is taken. The three forms are:
wait msec
wait msec string
wait msec string speed
The first form waits for a specified time period in milliseconds.
The second form waits for a specified string; if not seen within the specified time, the command is
deemed to have failed.
The third form will expect the specified string. It will then pick a decimal number following that
string, and set the port speed to that number.
The same macro strings used in the send command may also be used in the wait command ($PHONE,
$LOGIN_NAME, $LOGIN_PWD) in place of the string parameter.
NOTE
If a command fails, dialing is considered unsuccessful, and the script will be
terminated. The next retry starts the script from the beginning.
B.3 Sample Dialer Script
Consider the sample dialer script:
control down
wait 100
control up
speed 38400
send “AT&FS=1&C1&D2&Q5&W\r”
wait 3000 “OK”
send “ATDT8,555-4141\r”
wait 45000 “CONNECT”
status up
The action initiated by each command is:
control down—turn off DTR to reset the modem
wait 100—give the system 100 milliseconds to respond
control up—turn DTR back on
speed 38400—set DTE port speed