BBS: Inland Empire Archive Date: 03-28-93 (20:15) Number: 274 From: JOHN GALLAS Refer#: NONE To: JOHN COWGILL Recvd: NO Subj: Hanging up modem Conf: (2) Quik_Bas
JC> Now if my modem originates the call, that's no JC>problem, simply sending the escape sequence followed by a JC>ATH does the trick just fine. JC> But when my modem is in Host mode, it does not seem JC>to respond to the escape sequence, therefore it never JC>recognizes the ATH..... Thats strange - normally it shouldn't matter weather you originated the call or answered it, it should always be able to hang up with the escape sequence.. JC> Could anyone suggest a bit of code to force the JC>modem's DTR to drop causeing the modem to go off-line when JC>it is in host mode? And in basic? Thanks in advance..... Heres a function that'll change the DTR setting: DEFINT A-Z SUB SetDTR (Setting%) ' If Setting% is 0, DTR is lowered, otherwise its raised ' For COM1 the address is &H3F8, for COM2 its &H2F8 PortAddress = &H3F8 IF Setting% THEN OUT PortAddress + 4, INP(PortAddress + 4) OR 1 ELSE OUT PortAddress + 4, INP(PortAddress + 4) AND &HFE END IF END SUB * OLX 2.1 TD * PRINT "Infinity is equal to: ";: DO: PRINT "9";: LOOP --- Maximus 2.01wb * Origin: Command Line BBS =Mpls. MN= V.32bis [612-788-6685] (1:282/2007)
Books at Amazon:
Back to BASIC: The History, Corruption, and Future of the Language
Hackers: Heroes of the Computer Revolution (including Tiny BASIC)
Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution
The Advent of the Algorithm: The Idea that Rules the World
Moths in the Machine: The Power and Perils of Programming
Mastering Visual Basic .NET