Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decvax.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!larry From: larry@decvax.UUCP (Larry Cohen) Newsgroups: net.bugs.uucp Subject: Re: 4.2 uucp dialer problem Message-ID: <15@decvax.UUCP> Date: Wed, 20-Jun-84 09:42:11 EDT Article-I.D.: decvax.15 Posted: Wed Jun 20 09:42:11 1984 Date-Received: Thu, 21-Jun-84 01:38:37 EDT References: <1181@qubix.UUCP> Organization: DEC UNIX Engineering Group Lines: 33 I have also had problems with the Hayes smartmodem code also. (It has been quite a while now since I looked at the problem but ...) The modem did not reset itself after the previous call (maybe only failed attempts). In any event I tried various incantations with the following sequence yielding good results (in hsyopn() ): if (dh >= 0) { fixline(dh, dev->D_speed); write(dh, "+++", 3) /* force Hayes into command state */ sleep(1); write(dh, "ATH\r", 4) /* Hang up */ sleep(1); write(dh, "ATZ\r", 4) /* reset modem */ #ifdef HAYSTONE continue as before In hsycls() I used the following sequence to ensure a reset: write(fd, "+++", 3); sleep(1); write(fd, "ATZ\r", 4); Also the phone number should be translated into something the hayes understands (eg. '-' to ',' and '=' to ',' ) The ventel code does this already. Good Luck, Larry Cohen decvax!larry