🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2899

Re: Modem Hangup from inside Win 3.0 App

#2899
From: Bruce Oneel
Date: Wed, 29 May 1991 13:12
35 lines
1971 bytes
In article <1991May22.183530.1627@dayton.saic.com> fac7@dayton.saic.com (Steven Poling) writes:

	   I am writing a Windows 3.0 application that is utilizing
   a modem to access a database system, download data and then terminating
   the connection.  I can not get the application to hang up the modem
   after the data transfer is complete.  I need a way to drop DTR from
   inside the Windows application.  If anyone has experienced this 
   problem and has a way to do it, I would be most thankful.  I have
   tried to get the modem attention by send +++ and waiting for the
   string OK, but on a 2400 baud modem this does not seem to work.  I
   have had success with this method on a MultiTech 9600 baud modem,
   but don't have a clue why it wouldn't work on the 2400 baud modem.

   Thanks Again
   (In advance)


Look carefully at how you are sending the string +++  to the modem.
Many modems require that the port be quiet for a length of time before
you send the string, then the string must come within a certain
ammount of time (but not too fast), and then the port must continue to
be quiet.

eg.

(wait 1 sec) + (wait 1/4 sec) + (wait 1/4 sec) + (wait 1 sec) and you
should see the "OK" string.

All of this is to prevent a valid use of +++ to cause the modem to go
to local mode.

bruce
--
Bruce O'Neel              oneel@heasfs.gsfc.nasa.gov
NASA/GSFC/STX/Code 664
Technical Details
Message-ID: <ONEEL.91May29091224@heawk1.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!mips!apple!bionet!ames!dftsrv!oneel
References: <1991May22.183530.1627@dayton.saic.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!mips!apple!bionet!ames!dftsrv!oneel
From: oneel@heawk1.gsfc.nasa.gov ( Bruce Oneel )
Newsgroups: comp.windows.ms.programmer
Subject: Re: Modem Hangup from inside Win 3.0 App
Message-ID: <ONEEL.91May29091224@heawk1.gsfc.nasa.gov>
Date: 29 May 91 13:12:24 GMT
References: <1991May22.183530.1627@dayton.saic.com>
Sender: news@dftsrv.gsfc.nasa.gov
Organization: STX/GSFC Nasa
Lines: 35
In-reply-to: fac7@dayton.saic.com's message of 22 May 91 22:35:30 GMT