[alt.msdos.programmer] defeating time-out on com ports?

rrw@naucse.cse.nau.edu (Robert Wier) (04/09/91)

 Ok, you guys did really well with answers on my EGA gray scale
 question (the general consensus was that you can get 4 shades of
 gray with an EGA, but you really need to do to a VGA to get more).

 Now, working on the same project I've run into a snag using the 
 COM port.  We have a situation where we don't know when the 
 data will appear - it can be anywhere from 100 ms to 11 seconds
 after the previous carriage return.

 The problem we are having (my students are currently using 
 Quick-C) is that when you go out to read a character and there
 isn't one there yet, the port seems to "time out" in 1.5 seconds
 or so.  I can't find any way to defeat this, although I certainly
 see why in most circumstances it would be useful.

 I know it CAN be done, because Kermit does it.  The big K just
 sits waiting patiently for something to arrive and display it on
 the screen.

 Does anyone know how to do this?  Does it require going directly
 to the UART and bypassing the built in routines?  Or is there 
 something actualy in the hardware in the nature of a switch
 which has to be reset?

 Please E-Mail or post.

 THANKS

 - Bob Wier

 -------------- insert favorite standard disclaimers here ----------
                      College of Engineering
         Northern Arizona University / Flagstaff, Arizona
  Internet: rrw@naucse.cse.nau.edu | BITNET: WIER@NAUVAX | WB5KXH
                or   uucp:  ...arizona!naucse!rrw