1. Com ports & environment space
Hello All,
I am trying to use Euphoria to write to a COM port, and I would like
to determine how much DOS environment space is present on a computer.
Environment space: I could have the program look in the CONFIG.SYS
for a SHELL statement with an /e specification. Is there a more
elegant way? My INSTALL program has had problems on some user's
machines when the environment space is exhausted.
Many users have no idea what com port their modem is on. I would
like my installer to be able to look for a modem (issue an ati
command and see if there is a response). The E. doc for open
says I can open COM1 (I presume I can open COM 2 3 & 4).
I am looking for any hints on how to get started. Can I just
puts and gets to & from a COM port, or do I have to worry about
single spacing the characters. Can I work with the IRQs?
Thanks
John Kinne
2. Re: Com ports & environment space
> Many users have no idea what com port their modem is on. I would
> like my installer to be able to look for a modem (issue an ati
> command and see if there is a response). The E. doc for open
> says I can open COM1 (I presume I can open COM 2 3 & 4).
> I am looking for any hints on how to get started. Can I just
> puts and gets to & from a COM port, or do I have to worry about
> single spacing the characters. Can I work with the IRQs?
Hi John
Yes, you can open COM2-COM4 as well.
You can determine what COMx ports are open by simply issuing an open()
first and seeing if you get a -1 returned for a failed open. To see what
COMx port the modem is set, simply issuing an ATZ to any of the
COMx ports that return a positive file handle number and reading back an
OK string will work. I recommend you open the com port as a binary
file, using both a combination of strings and single character output.
Hope this helps.
David
3. Re: Com ports & environment space
- Posted by Chuck Heinze <Chuckhein at AOL.COM>
Oct 28, 1996
-
Last edited Oct 29, 1996
How can I get off this list?
Chuck Heinze
chuckhein at aol.com
4. Re: Com ports & environment space
Chuck Heinze asks...
> How can I get off this list?
Send an e-mail message to:
LISTSERV at MIAMIU.ACS.MUOHIO.EDU
with the body text:
SIGNOFF EUPHORIA
(The subject of your message is ignored.)
If you want to get back on later,
send a message to the same address,
but say:
SUBSCRIBE EUPHORIA Chuck Heinze
If you want to receive at most one e-mail
message per day from the list, I believe
you can say:
SET EUPHORIA DIGESTS
This will combine all messages for each day
into a single, somewhat condensed, message.
-- Rob Craig
Rapid Deployment Software