#
Z
#
E0
#
V0
# +++
#
H0
#
#
#
#
%N
#
%S
#
# Following are common responses from a wide range of modems:
# 16, 15, 12, 10, 5 and 1 are connection responses.
# 7=busy; 6=no dial tone; 4=error; 3=no carrier; 2=ring; 0=OK
#
# PROGRAMMING NOTE: No blanks between double quote marks (").
condout:
connect:
expect "16\r" or "15\r" or "14\r" or "12\r" or "10\r" or "5\r" or "1\r" busy
"7\r"
timeout 60
retry:
expect "16\r" or "15\r" or "14\r" or "12\r" or "10\r" or "5\r" or "1\r" busy
"7\r"
timeout 60
disconnect:
condin:
waitcall: ignore "2\r" timeout 1
expect "16\r" or "15\r" or "14\r" or "12\r" or "10\r" or "5\r" or "1\r"
timeout 60
page:
C-12
ESCALA PL 240T et PL 240R – Guide de l'utilisateur
Reset to factory defaults Q0
Turn echo off
Use numeric responses
Escape to command mode
Hang–up
Call–Out phone number
Modem speed (available to users)
send "ATZQ0T\r"
ignore "0\r" or "OK\r\n" timeout 2
send "ATE0T\r"
expect "0\r" or "OK\r\n" timeout 2
send "ATQ0V0T\r"
expect "0\r" timeout 2
send "ATS0=0\r"
expect "0\r" timeout 2
done
send "ATDT%N\r"
done
send "A/"
done
delay 2
send "+++"
delay 2
send "ATH0T\r"
ignore "0\r" or "OK\r" timeout 2
send "ATE0Q1\r"
ignore "0\r" timeout 1
done
send "ATZQ0T\r"
ignore "0\r" or "OK\r\n" timeout 2
send "ATE0T\r"
expect "0\r" or "OK\r\n" timeout 2
send "ATQ0V0T\r"
expect "0\r" timeout 2
send "ATS0=2\r"
expect "0\r" timeout 2
done
expect "2\r" timeout 10
done
send "ATDT%N,,,,%R;\r"
Turn on responses
Q1
Turn off responses
S0=0 Automatic answer inhibit
S0=2 Answer on second ring
T =
Tone mode.
When used as T\r, it is a
no op to maintain program synchronization
when modem may/will echo the commands.
%P
Paging phone number
Add others as required.
# Reset to factory defaults.
# Ignore modem response.
# Initialize modem: Echo OFF,
#
Enable responses (Numeric),
#
Limit response codes.
# Confirm commands successful.
# Set AutoAnswer OFF
# Confirm command successful.
# Tone dialing command.
# %N from Call Home setup.
# Expect a connection response.
# Repeat the previous command.
# Expect a connection response.
# Separate from previous data.
# Assure command mode.
# Allow mode switching delay.
# Set modem switch–hook down
#
(i.e., hang up).
# Ignore modem response.
# Initialize modem: Echo OFF,
#
Disable responses.
# Reset to factory defaults.
# Ignore modem response.
# Initialize modem: Echo OFF,
#
Enable responses (Numeric),
#
Limit response codes.
# Confirm commands successful.
# Set AutoAnswer ON
# Confirm command successful.
# Ignore first ring.
# Pick up second ring
#
or timeout.
# Expect a connection response.
# %N = pager call center number
# Add enough commas to wait for
#
time to enter paging number.
# %R = paging number
# Confirm successful command.