vgetty does not switch to data (but mgetty does!)

Gert Doering (gert@greenie.muc.de)
Wed, 12 May 1999 23:38:38 +0200


Hi,

On Wed, May 12, 1999 at 01:47:36PM -0700, Ray wrote:
> > The problem I encontered now is different. Running mgetty, both
> > fax reception and remote login works great. If, however, I run vgetty
> > in voice/fax/data mode, voice and fax works fine, however program
> > fails if it is incoming data. I have included short log of
> > succesfull fax, and longer of failed data call.
> 
> I had the same problem with several Rockwell based modems (mainly Supras). 
> The problem was the trailing "#CLS=2".  The modem is taking this as "Dont
> autodetect, just answer the call as a class 2 fax".  I fixed it by
> changing the code near the top of answer.c from:
> 
>      if (modem_type == Mt_class2)
>           {
>           bit_order = 0;
>           fax_mode = "2";    <<<<<<<<<
>           };
> 
> to 
> 
>      if (modem_type == Mt_class2)
>           {
>           bit_order = 0;
>           fax_mode = "0";    <<<<<<<<<<<
>           };

Oh.  Yes.  This is the reason why mgetty switches back to +FCLASS=0 for
modems that are "class 2 only" (there are a number of modems where mgetty
knows that +FCLASS=2 is better for fax/data, but for the most basic class
2 modem, it will be +FCLASS=0).

> This is ok because the "AT+FAA=1" takes care of telling the modem
> that IF the call is a fax then use class 2.  The only problem with this fix
> is that you'll probably have trouble if you try to set vgetty to "fax only"
> mode but I havn't had any need for that. 

... and it will not work for class 2.0 modems, those have to be in 2.0
(but your fix won't hurt here).

Bjoern, could you try this?  If yes, I'll check in something that will do
"+FCLASS=0 all the time except if (modem_quirks & MQ_NEED2), in which case
it will be +FCLASS=2" -- which is exactly what mgetty is doing.

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