scott@skypod.uucp (Scott Campbell) (03/03/91)
I have an AT&T 3b2/400 running UNIX System V 3.2 and a Packard Bell 2400 bps modem plugged into /dev/tty11. This modem is used for dial out and dial in. When I dial out, result codes need to be turned on (Q0) so that it can tell when connection occurs and the dialer script is happy. When an incoming call happens, result codes must be off (Q1) or uugetty will start blabbing at the modem trying to login CONNECT 2400 or NO CARRIER or some such. The way I have it set up is that it turns result codes on to dial out and resets on loss of DTR (&D3) to result codes off when it finishes. The problem I have is that very often the modem gets caught in result-codes-on state and won't answer the phone for great lengths of time. I don't know how this happens but I'm guessing that maybe it happens when someone dials in when it is dialing out (after results are on but before the dialtone is gotten). Is there a way to check to see if the modem is in use and reset it if it isn't? essentially what I would like to do (this doesnt work :-(() is: echo 'ATZ' | cu direct or some such. Any ideas? scott -- Scott J.M. Campbell scott@skypod.uucp Skypod Communications Inc. ..!uunet!scocan!skypod!scott 57 Charles St. West, #1310 ..!uunet!utai!lsuc!becker!skypod!scott Toronto, Ont. (416) 961-3847 ..!epas.utoronto.ca!nyama!skypod!scott