Article View: comp.sys.ibm.pc.programmer
Article #291Programming a COM port, raising DTR
From: Tom Salzmann
Date: Wed, 11 Apr 1990 01:48
Date: Wed, 11 Apr 1990 01:48
15 lines
1032 bytes
1032 bytes
I am looking for code examples (MASM or C) of how to properly raise
DTR on a COM port. I have an application which dials the modem
after raising DTR. The problem is that this application works fine
on most systems, but on a few systems it simply won't raise DTR all
the time. Here is a segment of code I use to do it:
MOV DX, port address + offset for modem control register
MOV AL,0BH
OUT DX,AL
Should something more robust be done to properly raise DTR? Please
reply to me directly and I'll gladly summarize here once I become an
expert on the subject. :-)
--
Tom Salzmann <tom@ramona.Cary.NC.US>
Technical Details
Message-ID:
<819@ramona.Cary.NC.US>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!haven!uvaarpa!mcnc!ramona!tomShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!uflorida!haven!uvaarpa!mcnc!ramona!tom From: tom@ramona.Cary.NC.US (Tom Salzmann) Newsgroups: comp.sys.ibm.pc.programmer Subject: Programming a COM port, raising DTR Message-ID: <819@ramona.Cary.NC.US> Date: 11 Apr 90 01:48:38 GMT Sender: news@ramona.Cary.NC.US Lines: 15