Elink 343p

Gert Doering (gert@greenie.muc.de)
Sat, 31 Jul 1999 22:06:33 +0200


Hi,

On Mon, Jul 19, 1999 at 10:38:25AM +0200, Sascha Ziemann wrote:
> | Hmmm.  I think the problem is that it's hard to properly detect the
> | Elink (as it doesn't give a proper ATI return code, but sends back some
> | string... :-/).  Could you send me the output of "mid /dev/ttyC0" for
> | that modem ("mid" can be found in mgetty/tools/mid), please?
> 
> This is the output for the Elink 343p:

... while I still think the Elink is completely and horribly broken in its
responses to ATI codes, I have added "34-3 -> class 2" to the autodetection 
code.

Index: faxlib.c
===================================================================
RCS file: /u2/cvs/mgetty/faxlib.c,v
retrieving revision 4.44
diff -u -r4.44 faxlib.c
--- faxlib.c	1999/06/15 20:53:53	4.44
+++ faxlib.c	1999/07/31 20:04:09
@@ -752,10 +752,14 @@
 	lprintf( L_MESG, "non-numeric ID string: '%s'", l );
 
 	/* "Elink 310 Version 1.25" */
+	/* "Elink 34-3 P1 Version 1.64" */
 	if ( strncmp( l, "Elink", 5 ) == 0 )
 	{
 	    lprintf( L_MESG, "Elink detected" );
-	    modem_type=Mt_data;
+	    if ( strncmp( l+6, "34-3" , 4 ) == 0 )
+		modem_type=Mt_class2;
+	    else
+		modem_type=Mt_data;
 	}
 	else if ( strncmp( l, "Linux ISDN", 10 ) == 0 )
 	{

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