Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!astemgw!kuis!aegis!davidg From: davidg%aegis.or.jp@kyoto-u.ac.jp (Dave McLane) Newsgroups: comp.dcom.modems Subject: Re: Controlling answer tone sequence Message-ID: <7iNwZ1w163w@aegis.or.jp> Date: 4 Apr 91 00:36:17 GMT References: <1991Apr3.014450.10656@jwt.UUCP> Organization: Aegis Society Lines: 43 To try and summarize where the replies to my original query, the question of how to control the sequence of answer tones has come down to how to init the modem. Initing the modem for dial-out isn't a problem as it can be done in the dialout chat script. For dial-in, some modems can have everything needed for their initialization stored in their non-volitile RAM such that they are reset correctly when the DTR is dropped (e.g. Telebit). And some need to be re-initialized through either a getty that allows one to do so, or, as john@jwt.UUCP (John Temples) writes: > Here's what I use for my brain-dead Everex modem, which doesn't have > non-volatile RAM. My inittab invokes /etc/mgetty, which is a shell > script containing: > > (sleep 5; stty 2400; echo 'ATZ\r\c'; sleep 2; echo 'ATEMS0=1\r\c';) > < /dev/ttyF04 > /dev/ttyF04 > exec /etc/getty $@ A second point was raised regarding how to have a getty intrepret the modem result codes and set changed to the whatever speed was appropriate. John@jwt.UUCP (John Temples) adds: > I've tried one of those gettys that parses the connect string, and it > didn't work on a "dumb" modem. Apparently the modem is issuing the > connect string before asserting DCD; hence getty is still asleep and never > sees it. I suppose it might work if you had getty hold the port open all > the time, but that wouldn't allow dialout on the port. Hope that summarizes it OK. --Dave McLane JUNET DINTERNET BITNET via UUNET ==== The Aegis Society ============================================= Minami Hirao 1-6, Imazato The content and process of Nagaokakyo-shi, Kyoto-fu, 617 Japan international/cultural Tel: +81-75-951-1168 Fax: +81-75-957-1087 communication. ====================================================================