elsa microlink hangs NO MORE!!!

Gert Doering (gert@greenie.muc.de)
Tue, 28 Jul 1998 23:59:26 +0200


Hi,

Martin Lorenz wrote:
> Gert Doering wrote:
> [...]> 
> > Well, the quickest way is always "use the source, luke".  You have the
> > modem, you have the program source code, and you have time...
> > 
> 
> after complaining a bit i started to look at the code and the logfiles
> and also walked through some mails in the archive and so i FOUND A
> SOLUTION (and its that simple i cant belive this is all)

Thank you very much!

Actually, this is the only way "Free Software" can survive - everybody
looks at the problems, and for someone, the fix will be obvious.

> > All patches and bug fixes are welcome!
> [...]
> here is one!
> 
> % diff -d -c mgetty.c_old mgetty.c
> *** mgetty.c_old        Tue Jul 28 21:01:34 1998
> --- mgetty.c    Tue Jul 28 20:47:17 1998
> ***************
> *** 515,520 ****
> --- 515,528 ----
>   #endif /* VOICE */
> 
>       }
> +
> +     /* added by lolly 28/7/98:
> +       send a single AT to make sure the line speed is correct after
> +       all initialisations */
> +
> +     if ( mdm_command( "AT", STDIN ) != SUCCESS ) {
> +             lprintf( L_FATAL, "modem on dev=%s doesn't react!", Device
> );
> +     }

Hmmm.  The interesting thing is that it sounds very much like the thing
Marc did recently (add an "AT" command after every mode switch, e.g. from
AT+FCLASS=8 to AT+FCLASS=0), which is what I was asking for in one of my
mails....

Marc, wouldn't that be a better place?  Just send the AT command after all
other init stuff has been done -- that way, you don't have to do it in the
voice code, and incoming RINGs should come at the proper baud rate
anyway.

> sorry for being so annoying...
> next time i will try FIRST and hopefully all you will get from me is a
> bugfix :)

Oh, questions are always welcome, only the "I really need this now so 
please someone make it work for me URGENT NOW"-type of e-mails isn't 
that welcome... :-)

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de