Path: utzoo!attcan!uunet!lll-winken!ames!ucsd!rutgers!mcnc!rti!tijc02!cgh018 From: cgh018@tijc02.UUCP (Calvin Hayden ) Newsgroups: comp.sources.wanted Subject: Re: Need simple serial port monitor Message-ID: <356@tijc02.UUCP> Date: 24 Jan 89 19:00:24 GMT References: <213@wa3wbu.UUCP> Organization: Texas Instr., Johnson City TN Lines: 25 John writes: > > I'm looking for a simple seril-port interface program written in > C that would monitor a given port for the assertion of DSR or DCD > and then execute a routine depending on wether one, the other > or both signals were detected. > > What I'm trying to do is come up with an interface for a UPS system. > This system will provide two relay closures, one at switch-over time > and another at the 2-minute warning. I'd like to wire these into > synthesizing a signal like DSR and DCD (or something else) and then > when it detects the first signal it would know the power has gone off. ---snip snip--- > > Does anyone have any ideas or perhaps a program that already does > something like this for SVR2 ? Any and all suggestions are > appreciated. ---snip snip--- I would be interested in such also. No need to reinvent the wheel. Calvin UUCP: mcnc!rti!tijc02!cgh018 Voice: (615)461-2254