home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
mdpool.zip
/
FIRST96.SCR
< prev
next >
Wrap
Text File
|
1995-03-18
|
2KB
|
57 lines
!
! FIRST:
! Provides hook (after initializing port).
! Allows for special local handling to startup comm
! May return %Cancel or %Failure.
!
!+V
! "3.5"
!-V
on cancel goto Cancel_Connect;
attempts = 0;
! wait 2 seconds for DTR to stabilize then wake up the switch
wait until 20; ! 2 seconds
send "^M";
Send_Wait:
wait
"DISCONNECTED" goto Send_CR,
"ENTER CLASS" goto Send_Class,
"GO" goto Exit_Success
until 50; ! 5 seconds
attempts = attempts + 1;
if attempts = 5 goto Exit_Failure;
goto Send_CR;
Send_CR:
wait until 2; ! .2 seconds
send "^M";
goto Send_Wait;
Send_Class:
wait until 2; ! .2 seconds
send "M";
wait until 1; ! .1 second
send "O";
wait until 1; ! .1 second
send "D";
wait until 1; ! .1 second
send "E";
wait until 1; ! .1 second
send "M";
wait until 1; ! .1 second
send "^M";
goto Send_Wait;
Cancel_Connect:
exit %Cancel;
Exit_Failure:
exit %Failure;
Exit_Success:
exit %Success;