condin:
waitcall:
page:
ripo:
error:
Sample File modem_z.cfg
#
# COMPONENT_NAME: (ESPSETUP) ENTRY SERVICE PROCESSOR SETUP Z
#
# FUNCTIONS: Modem configuration file for many early Hayes* compatible modems.
#
This example uses the ATZ reset command to choose the factory defaults.
#
This setup will work for many modems, but it is required for early vintage
#
modems which respond to neither the ATZ0 reset command nor the extended (&)
#
commands.
#
# * Trademark of Hayes Microcomputer Products, Inc.
#
# (C) COPYRIGHT International Business Machines Corp. 1996
# All Rights Reserved
# Licensed Materials – Property of IBM
#
# US Government Users Restricted Rights – Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#
# If the modem has configuration switches, they should be set to the
# factory default settings.
ICDelay 1
DefaultTO 10
CallDelay 120
#
AT
send "AT&F*E0E0\r"
ignore "0\r" or "OK\r\n" timeout 2
send "AT#F0*Q2\r"
expect "0\r" or "OK\r\n" timeout 2
send "ATV0X0S0=2\r"
expect "0\r" timeout 2
done
ignore "2\r" timeout 1
expect "2\r" timeout 10
expect "1\r" timeout 60
done
send "ATD%N,%R\r"
expect "0\r" or "3\r" timeout 30
delay 2
send "+++"
delay 2
send "ATH0\r"
expect "0\r" timeout 2
done
send "AT&F*E0E0\r"
ignore "0\r" or "OK\r\n" timeout 2
send "AT#F0*Q2\r"
expect "0\r" or "OK\r\n" timeout 2
send "ATV0X0S0=0\r"
expect "0\r" timeout 2
done
expect "8\r" or "7\r" or "4\r" or "3\r"
delay 2
done
Refer to your modem manual.
Attention Code
# Reset to factory defaults.
# *E0=data compression disabled
# E0=echo disabled
# Ignore modem response.
# Trellis modulation disabled
# Retrain with adaptive rate
# Confirm commands successful
# Numeric response code
# AT compatible messages
# Answer on 2nd ring
# Confirm commands successful.
# Ignore first ring.
# Pick up second ring
#
or timeout.
# Expect a connection response.
# %N = pager call center number
# commas=6sec wait time to
#
enter paging number.
# %R = return number
# Confirm successful command.
# Wait before hanging up.
# Assure command mode.
# Allow mode switching delay.
# Hang up.
# Confirm successful command.
# Reset to factory defaults.
# *E0=data compression disabled
# E0=echo disabled
# Ignore modem response.
# Trellis modulation disabled
# Retrain with adaptive rate
# Confirm successful command.
# Numeric response code
# AT compatible messages
# Auto–Answer disabled
# Confirm commands successful.
#
# Handle unexpected modem
#
responses.
,
Inserts delay in dialing commands
Configurations de modems
C-11