Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!elroy!cit-vax!tybalt.caltech.edu!lyles From: lyles@tybalt.caltech.edu (Lyle Scheer) Newsgroups: comp.sys.amiga Subject: Re: Carrier detect and signals Message-ID: <4650@cit-vax.Caltech.Edu> Date: Tue, 24-Nov-87 14:33:52 EST Article-I.D.: cit-vax.4650 Posted: Tue Nov 24 14:33:52 1987 Date-Received: Sat, 28-Nov-87 00:14:18 EST References: <498@ndsuvax.UUCP> Sender: news@cit-vax.Caltech.Edu Reply-To: lyles@tybalt.caltech.edu.UUCP (Lyle Scheer) Organization: California Institute of Technology Lines: 32 In article <498@ndsuvax.UUCP> ncreed@ndsuvax.UUCP (Walter Reed) writes: > >I need to know how to set up the serial device to generate a signal when >the carrier drops. I am writting the serail routines for my BBS and >don't want to have to do a CheckCarrier() type of thing all over the place. >Yes, I know about the CMD_QUERY, but that's not what I want. If I did that, >I could set up a timer_request to check the carrier once a second, but I >would rather have it tell me when the carrier drops. At least, it would be >nice if I could have a flag like SERB_CHECKCD that would enable checking of >the carrier and return an error of SerErr_NOCD if the carrier is lost. > >Please CBM, PLEASE release the source for the serial device, and / or add >this capability... It would make writting an AUX: device easier, a BBS >easier... This is such a small change, and I request that you put it into >version 1.3. We need it. Gee, it would be nice to detect a SIG_HUP and >deal with it. > That's odd. I've had a BBS program written for the Amiga since about a year and a half ago. The way I do it is, after I output a line of text to the serial port and CON: device in my window, I check for CD with CmdQuery. It doesn't slow it down much. I also check during my input routine, with no real loss of input speed. In fact, I'm quite impressed with how well the Amiga does with this sort of thing. I now have my BBS program doing mostly wait(), so its ready for me to start figuring out how to make it re-entrant, so that I can multitask more than one serial port(ASDG or someone, I NEED MORE SERIAL PORTS!) Wonko the Sane (you call this SANE??) Disclaimer: I am totally irresponsible. So shoot me then.