Article View: comp.os.ms-windows.programmer.misc
Article #2418COM1 port communication
From: Scott Choi
Date: Thu, 28 Jan 1993 20:37
Date: Thu, 28 Jan 1993 20:37
19 lines
1062 bytes
1062 bytes
Greetings,
I am trying to write a string size of 0x7FFF to COM1 using RTS and CTS. The
following sequence does not do the trick since I have set some variables
within struct DCB to activate RTS and CTS usage. Does anyone know this
trick?
idComDev = OpenComm("COM1", 1024U, 0x7FFFU);
BuildCommDCB("COM1:9600,n,8,1", &dcb);
dcb.CtsTimeout = 10;
dcb.fRtsDisable = 0;
WriteComm(idComDev, p, 0x7FFFU);
By the way, OpenComm() has UINT for the transmission queue size but only works
up to 0x7FFF!
Thank you.
Scott
Technical Details
Message-ID:
<1993Jan28.203747.2219@news.acns.nwu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!schoiShow Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!bogus.sura.net!howland.reston.ans.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!schoi From: schoi@casbah.acns.nwu.edu (Scott Choi) Subject: COM1 port communication Message-ID: <1993Jan28.203747.2219@news.acns.nwu.edu> Sender: usenet@news.acns.nwu.edu (Usenet on news.acns) Nntp-Posting-Host: unseen1.acns.nwu.edu Organization: Northwestern University, Evanston Illinois. Date: Thu, 28 Jan 1993 20:37:47 GMT Lines: 30