home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
255.HAYES.SCR
< prev
next >
Wrap
Text File
|
1987-09-28
|
2KB
|
44 lines
!
! DISCatalog
!
! Copyright (C) 1987 Westinghouse Electric Corp. -- All rights reserved.
!
! This is a script for Hayes(TM) compatible modems.
!
!
! this is the connect script
!
Message "Checking if HAYES compatible modem (Takes approx. 5 seconds)."
SEND <CR> ! clear old command
wait 1 ! give modem a chance
clearbuff ! clear old communications
Send ATZ<cr> ! reset modem to power on status
Wait 1 ! wait for modem to reset
CLEARBUFF ! clear response
send ATQ0V1<CR> ! set modem to reply with words
Receive OK 5 ! look for hayes response
MESSage "Initializing modem (Takes approx 5 seconds)."
wait 1 ! give modem a chance
Send ATS7=45<Cr> ! set modem to wait 45 sec. for answer
RECEIVE OK 5 ! look for hayes response
Message "Sending dial sequence for <PR><PH> to modem (Takes approx. 50 seconds)."
WAIT 1 ! give modem a chance
SEND ATDT<Pr,><Ph><Cr> ! send dial for touchtone (ATDP for pulse)
receive CONNECT 45 ! look for connection
wait 5 ! give network a chance
HANGUP
!
! this is the hangup script
!
clearbuff ! clear old communications
MESSAGE "Getting modem's attention (Takes approx. 5 seconds)."
WAIT 1 ! wait guard time
SEND +++ ! send attention chars
Receive OK 5 ! look for modem
Message "Hanging up modem (Takes approx. 5 seconds)."
WAIT 1 ! give modem a chance
Send ATZ<cr> ! send reset command (will hangup)