Path: utzoo!utgpu!water!watmath!clyde!rutgers!ucla-cs!cit-vax!elroy!ames!ll-xn!mit-eddie!uw-beaver!ubc-vision!van-bc!sl From: sl@van-bc.UUCP (Stuart Lynne) Newsgroups: comp.dcom.modems Subject: Re: dial in/out and modem state Message-ID: <1678@van-bc.UUCP> Date: 19 Feb 88 07:41:02 GMT References: <142@mccc.UUCP> <564@virginia.acc.virginia.edu> <10321@mimsy.UUCP> <178@jim.odr.oz> <10379@mimsy.UUCP> <15551@onfcanim.UUCP> Reply-To: sl@van-bc.UUCP (Stuart Lynne) Organization: Public Access Network, Vancouver, BC. Lines: 37 In article <15551@onfcanim.UUCP> dave@onfcanim.UUCP (Dave Martindale) writes: >In article <10379@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >>Any decent modem will be able to reset to EEPROM or switch settings >>on DTR drop. (This makes the Hayes 2400 indecent, since doing this >>requires giving up something else, as I understand it.) > >Indeed. You can configure the modem so that when DTR drops it >1) hangs up the phone and will not answer incoming calls, or >2) resets the modem to the settings in EEPROM. > >Unfortunately, you want BOTH of these, and Hayes forces you to choose >just one (or none) of them. There is a work-around for this problem. Set ats0=0&w. This tells the modem to never answer the modem. Then whenever you reset DTR you have a modem which won't answer the phone anymore. Now arrange to have your getty replacement (what you're still running factory standard!!) to send ats0=1 to prime the modem to answer the phone. This can be done for example with: #! /bin/sh # getty replacement echo ats0=1 exec /etc/getty $* Alternatively have your getty replacement actually monitor the line for "RING" and *then* explicitly send ata. Various programs have been posted to the net over the last couple of years which will do this for you. I'd post mine but it's to hacked up to be of any use to anyone not running on a Callan. It's an offshoot of the program called modem. -- {ihnp4!alberta!ubc-vision,uunet}!van-bc!Stuart.Lynne Vancouver,BC,604-937-7532