How to handle incompatible modems?

Russell Nelson (nelson@crynwr.com)
Sun, 6 Mar 1994 06:09:00 +0100


   Date: 	Sat, 5 Mar 1994 16:06:00 +0100
   From: klaus@snarc.greenie.muc.de (Klaus Weidner)

   This is something which I will have to do myself to support the
   Rockwell voice commands in vgetty. I was thinking about two
   separate steps:

   - modularize the routines...
   - create a structure which contains modem-specific settings. ...

I think they're both good ideas.  How about if I just hack the necessary
changes into vgetty's files, then send you diffs?  Then you can determine
the best way to add the changes.

   It would be elegant if a new function, identify_modem(),
   could reliably detect the modem type and initialize the
   structure appropiately. That way, you wouldn't even
   need to mess around with config files for this.

ATI1 on a ZyXEL returns a string containing "U1496E" followed by "OK".
ATI1 on a Boca MM returns "8.8 - 1.29\n\nOK" (which I assume is a version).
ATI3 on a ZyXEL returns "OK".
ATI3 on a Boca MM returns "CL-MD9624AT/EC\n\nOK".

What does a Rockwell return?