Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: XMM4

XMM4.m

Go to the documentation of this file.
XMM4 ; ACC-IHS ; MODEM CONTROL LOGIC FOR MULTITECH MM224 AUTODIAL MODEM ; [ 09/30/93  4:32 PM ]
 ;;7.1;Mailman;**1003**;OCT 27, 1998
 ;;7.0;;ACC/IHS ROUTINE FROM;;3.08;3.27
 ;
 Q
DMULTI ; "INITIALIZE" AND "DIAL" CODE
 U IO W *13 D CLEAR
 U IO W "ATQ0V0E0",*13 D CLEAR
 U IO W "ATH",*13 R Y:5 S:'$T Y="" I Y'=0 S Y="could not synchronize with modem ["_Y_"]",ER=1 Q
 ;I 'SILENT U 0 W !,"Synchronized with modem."
 S ER=0 S X="ATDT"_XMPHONE D DIAL F %=1:1 D READ Q:NOMORE
 I Y'["CONNECT" S Y=$S(Y="":"timed out before receiving 'connect' msg from modem",1:"received '"_Y_"' msg from modem"),ER=1 Q
 Q
 ;
HMULTI ; "HANGUP" CODE
 U IO W "+++",*13 H 1 W "ATZ",*13 D CLEAR
 W "ATH",*13
 F %=0:0 R Y:60 Q:'$T  Q:Y["OK"
 ;I 'SILENT U 0 W !,"Modem disconnected and reset."
 Q
 ;
SMULTI ; "STATUS" CODE
 S Y="no status report",ER=0
 Q
 ;
MULTIM ;;OK;;1
 ;;CONNECT;;1
 ;;RING;;0
 ;;NO CARRIER;;1
 ;;ERROR;;1
 ;;CONNECT 1200;;1
 ;;DIAL TONE;;0
 ;;NO DIAL TONE;;1
 ;;BUSY;;1
 ;;CONNECT 2400;;1
 ;
CLEAR U IO F %=1:1 R *Y:2 Q:'$T
 Q
DIAL ;I 'SILENT U 0 W !,"Dialing ",X,*13
 U IO W X,*13
 Q
READ S Y="" U IO F %=1:1 R C#1:60 Q:'$T  I C'=$C(10) S Y=Y_C I C="" S NOMORE=$P($T(MULTIM+Y),";;",3),Y=$P($T(MULTIM+Y),";;",2) Q
 I '$T S Y="NO RESPONSE FROM MODEM",NOMORE=1
 Q