| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Com port |
Hello All!
problem:
sometimes one of the lines on the bbs gets stuck. the caller exits, the bbs
sends the line back to frontdoor, which can't initialize the port any
longer
Solution tried:
a) all softwares I could get my hands on to reset the com port. But
there aren't that many to begin with, since the dos once usually don't work
under os/2 and when they do run, they don't do a thing.
b) write my own
I tried the library provided with speed pascal 1.0 - no way
I tried the GIO2 library provided with GNU EMX 0.9a - ditto
Then what ?
The more I look at it, the more I am convinced that the problem comes from
the fact that all those libraries, sooner or later, go down to the
devioctl() of the os/2 API. And the api won't let you touch the port if it
is used by another application. the problem is that the other
"application" is non existant.
I guess I have to go thru os/2 defenses and get to the port no matter what.
This was quite easy under dos, not quite so under os/2. I have localised in
the emx library a _portaccess() function in the sample program HW_IO, but
I'll be damned if I understood what it was exactly and how to use it.
So if anybody can shed any light on either:
a) the _portaccess(): what is it, how to use it exactly
b) how to increase the priority of my program to make sure it dos get
access to the com port - this may be passing from ring3 to ringsomething
else if my understanding of os/2 is correct (which it probably isn't, since
I am by no means a professionnal programmer)
Thanks in advance.
-= Francois =-
Thunus{at}innet.lu
http://www.innet.net/~pub00071
* REALITY.SYS corrupted! - Reboot UNIVERSE (Y/N)?
--- GoldED 2.50+
* Origin: Xara Sto Pragma ! Gasperich - Luxembourg -> (FidoNet 2:270/25.2)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 270/25 17 24/24 396/1 270/101 712/515 711/808 809 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™.