TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Charles Gaefke
from: Phil Crown
date: 1996-10-26 09:02:38
subject: DosDevIOCtl for COM ports

-=> Quoting Charles Gaefke to Phil Crown <=-

 PC> #define INCL_DOSDEVIOCTL

 CG> I'm not including that one.. and it works fine (I got it working
 CG> after I  posted my question.  It usually happens that way.)  But thanks
 CG> for the help.   When I get a free moment or three, I'll see which ones
 CG> I can #define and still have it work.

Good, but don't forget this one, you may need it.
 
 PC>  CG> And if a port is "locked", do you have to
"unlock" it before you
 PC>  CG> can  change the rate, then do you have to "relock" it?
 PC> 
 PC> I'm lost here, I use SIO which locks the port.

 CG> So do I.  My question was from a programs standpoint.  SIO locks
 CG> the port, yes.  When you tell it to change the port rate, and it's
 CG> already locked, does  SIO unlock, then change it, then lock it, or does
 CG> it just change it, and it  stays locked?  So if it was locked, by SIO,
 CG> and I changed it to a new value,  would it still be locked?

I seem to remember reading something about SIO and locking the port.  It
may have been in the SIO docs.  I may be wrong, but I think once SIO
locks the port it can't be changed, but an application can set its own bit
rate, probably by calling DosDevIOCtl().  This is what I do and its
working.
 
 PC> Get pmtermsr.lzh from Peter F.  I need a copy too, maybe he'll upload it
 PC> to an ftp site?

 CG> Who is he? :)

The moderator of this Echo.  I thought he'd jump in when he sees what
we're talking about and about his code.  May have to write to him directly.

Phil Crown
pcrown{at}airmail.net
http://web2.airmail.net/pcrown/

--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 972-250-4479 * (1:124/1208)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 124/1208 1 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.