Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 1996 13:21:41 -0600
From:      Steve Passe <smp@csn.net>
To:        "Marc G. Fournier" <scrappy@freefall.freebsd.org>
Cc:        smp@csn.net, freebsd-bugs@freefall.freebsd.org
Subject:   Re: bin/914 
Message-ID:  <199610241921.NAA09992@clem.systemsix.com>
In-Reply-To: Your message of "Mon, 21 Oct 1996 23:15:58 PDT." <199610220615.XAA27100@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Synopsis: hayes dialer for tip fails 1st attempt to dial
>
> State-Changed-From-To: open-feedback
> State-Changed-By: scrappy
> State-Changed-When: Mon Oct 21 23:15:45 PDT 1996
> State-Changed-Why: 
>
> Dust off the cobwebs - Confirm Status

I no longer have the modem that provoked this problem so I cannot
retry with the exact same hardware.  Using a USR Sportster the problem
DOES NOT EXIST.  I believe it was either a bad modem or operator (ie ME)
error.  I would say you can close out the report without fixes.

---
I would suggest that "tip/tipconf.h" be changed from:
#define HAYES              0
to:
#define HAYES              1

As now built tip doesn't know about ANY builtin modem drivers and is
more or less useless.  The above change should make it work "out of the
box" for the majority of users.

---
The following patch allows tip to function with modems that use the 
EXTENDED result codes (x1-4) by default.  The code as written only
"knows" about codes 0 thru 4 (ie x0) so its gets very confused if
the modem returns anything else.


*** libacu/hayes.c.orig Tue May 30 05:13:20 1995
--- libacu/hayes.c      Thu Oct 24 13:10:56 1996
***************
*** 96,108 ****
        write(FD, "ATv0\r", 5); /* tell modem to use short status codes */
        gobble("\r");
        gobble("\r");
        write(FD, "ATTD", 4);   /* send dial command */
        write(FD, num, strlen(num));
        state = DIALING;
        write(FD, "\r", 1);
        connected = 0;
        if (gobble("\r")) {
!               if ((dummy = gobble("01234")) != '1')
                        error_rep(dummy);
                else
                        connected = 1;
--- 96,111 ----
        write(FD, "ATv0\r", 5); /* tell modem to use short status codes */
        gobble("\r");
        gobble("\r");
+       write(FD, "ATx0\r", 5); /* tell modem to use result codes 0-4 ONLY */
+       gobble("\r");           /* get the echoed string */
+       gobble("\r");           /* get the status */
        write(FD, "ATTD", 4);   /* send dial command */
        write(FD, num, strlen(num));
        state = DIALING;
        write(FD, "\r", 1);
        connected = 0;
        if (gobble("\r")) {
!               if ((dummy = gobble("0134")) != '1')    /* ignore RING ('2') */
                        error_rep(dummy);
                else
                        connected = 1;

--
Steve Passe	| powered by
smp@csn.net	|            FreeBSD

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzHe7tEAAAEEAM274wAEEdP+grIrV6UtBt54FB5ufifFRA5ujzflrvlF8aoE
04it5BsUPFi3jJLfvOQeydbegexspPXL6kUejYt2OeptHuroIVW5+y2M2naTwqtX
WVGeBP6s2q/fPPAS+g+sNZCpVBTbuinKa/C4Q6HJ++M9AyzIq5EuvO0a8Rr9AAUR
tBlTdGV2ZSBQYXNzZSA8c21wQGNzbi5uZXQ+
=ds99
-----END PGP PUBLIC KEY BLOCK-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610241921.NAA09992>