Running Red Hat version 7.2, kernel 2.4.7-10 on a Dell 233mhz PC

I have programs in C which access the serial ports (COM1 and COM2 only).  Each program flushes the port attributes and resets them since I have two serial devices, one at 1200 baud which sends data to the port, and one at 2400 baud which reads data from the port (not modems).  Writing on COM2 (2400) was fine.  Reading from COM1 (1200) resulted in an error.  Both ports initialize with the open( ) statement.   Now I'm losing COM2.  Sometimes rebooting helps.  I logon as root (I know - a bad thing) but when I wrote the apps as a user I couldn't access the 'include' files.  I had someone else install Linux on the PC and set everything up (I think he used default settings).

I am new to Linux and C and don't have a clue why the serial ports are going south.  Help, please.

-George

Reply via email to