vgetty does not switch to data (but mgetty does!)
Ray (maillists@sonictech.net)
Wed, 12 May 1999 13:47:36 -0700
On Tue, May 11, 1999 at 09:39:57PM -0400, Dmitry Pogosyan 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"; <<<<<<<<<<<
};
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.
> 05/11 18:58:33 yS3 vgetty: <STOP RECORDING>
> 05/11 18:58:33 yS3 Rockwell: <VOICE DATA 12618 bytes>
> 05/11 18:58:33 yS3 Rockwell: <DLE> <ETX>
> 05/11 18:58:33 yS3 voice command: '' -> 'OK|VCON'
> 05/11 18:58:33 yS3 Rockwell: VCON
> 05/11 18:58:33 yS3 vgetty: trying data and fax connection
> 05/11 18:58:33 yS3 voice command: 'AT#CLS=2' -> 'OK'
> 05/11 18:58:33 yS3 vgetty: AT#CLS=2
> 05/11 18:58:33 yS3 Rockwell: OK
> 05/11 18:58:34 yS3 voice command: 'AT' -> 'OK'
> 05/11 18:58:34 yS3 vgetty: AT
> 05/11 18:58:34 yS3 Rockwell: OK
> 05/11 18:58:34 yS3 voice command: 'AT+FAA=1' -> 'OK'
> 05/11 18:58:34 yS3 vgetty: AT+FAA=1
> 05/11 18:58:34 yS3 Rockwell: OK
> 05/11 18:58:34 yS3 vgetty: Restoring signal handlers
> 05/11 18:58:34 yS3 mdm_send: 'AT+FBOR=0'
> 05/11 18:58:34 yS3 got:[0a][0d][0a]OK[0d]
> 05/11 18:58:34 yS3 mdm_command: string 'OK' -> OK
> 05/11 18:58:34 yS3 send: ATA[0d]
> 05/11 18:58:34 yS3 waiting for ``CONNECT''
> 05/11 18:58:34 yS3 got: [0d]
> 05/11 18:59:18 yS3 CND: OK[0a]+FHNG:
> 05/11 18:59:18 yS3 found action string: ``+FHNG:''
> 05/11 18:59:18 ##### failed A_FAIL dev=ttyS3, pid=7956, caller='none', conn='', name=''
--
Ray
maillists@sonictech.net