* WRITING TO COM PORT USING HANDLES
@ 1996-12-02 0:00 regis piccand
0 siblings, 0 replies; only message in thread
From: regis piccand @ 1996-12-02 0:00 UTC (permalink / raw)
Hello all,
I'm trying to write to Com port (COM1, COM2) with file handle (I open the file
with dos interruption 16 # 3D #. It works fine ... I can easily write and
read to the handle (this is write and read to Comx).
The only problem I get is that the CR/LF pair, when encountered in reading
from com port handle, stops the reading process. It doesn't do this if I read
from a normal file handle (not a Com port).I can read and write files without
problems, as long as it doesn't read from the handle of a Com port, in which
case in reads only the first line (or stops at CR LF in binary files).
This might be due to the fact that Com port are by default in "cooked" mode,
which cannot be changed using dos interrupt 16 # 44 #, due to the fact that
Com port is a peripheral (bit 7 = true), and not a simple file.
Anybody could help on this matter ??
Is this problem really due to "cooked" vs "raw" mode, or is it something else
??
Any help would be very much appreciated ...
Please email rejo@bluewin.ch
Thanks in advance and greetings from Switzerland
Regis Piccand
Hotel-de-Ville
1641 Vuippens
Switzerland
tel. ++ 41 (0) 26 915 15 92
fax ++ 41 (0) 26 915 30 92
rejo@bluewin.ch
---------------------------
"Think of your ears as eyes"
Keith Jarrett
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-12-02 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-02 0:00 WRITING TO COM PORT USING HANDLES regis piccand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox