
ECDIALER and ISDN 90
The following is a sample script text for a Hayes-compatible modem. Use the
sample as a base for your own script, but change the settings to ones appropriate
for your own particular modem type.
****************************************************************
This script file is used to configure hayes-compatible modems.
****************************************************************
close_comm
set_port 3
set_speed 9600
set_parity NO_PARITY
set_data_bits 8
iferror bye_comm
print "Initialization successful "
wait 1
******************************************************************
The AT (ATtention code) is examined by modems which support *
* auto bauding in order to determine the communications and *
* parity setting of the DTE device. Modems which do not *
* support auto bauding can only communicate at the configured *
* speed and parity setting. *
* Some modems may require that the ATtention code be sent twice.*
* If this is the case, repeat the sending of the ATtention code.
******************************************************************
type "AT",0d,0a
iferror bye_t1
timeout 15
match "OK"
iferror bye_m1
***************************************
* Programming modem *
***************************************
***************************************
*** Initialize to factory settings ***
***************************************
type "AT&F",0d,0a
match "OK"
iferror FACTORY
***************************************
*** Set speaker volume to low ***
***************************************
type "ATL1",0d,0a
match "OK"
iferror ATFORM
***************************************
*** DCD setting AT&C1 ***
*** DCD is asserted by modem only ***
*** if a data carrier which meets ***
*** the modems suitable criteria ***
*** is present. On some modems ***
*** the factory setting for DCD ***
*** to remain on at all times ***
*** disregarding the ***
*** state of the data carrier. ***
***************************************
type "AT&C1",0d,0a
match "OK"
iferror TELCO
wait 1
***************************************
*** DTR Setting AT&D2 ***
*** Set modem to answer when DTR is ***
*** raised by the DTE and set to hangup*
*** to asynchronous command mode ***
*** when DTR switches from ON to OFF.**
***************************************
type "AT&D2",0d,0a
match "OK"
iferror TELCO
***************************************
*** ATS0 = 1” ***
Kommentare zu diesen Handbüchern