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

Dmitry Pogosyan (pogosyan@cita.utoronto.ca)
Wed, 12 May 1999 16:25:53 -0400


I'll try to do by hand what you suggested. In a meantime, few remarks

1) I think modem is already not in a voice mode when it fails
   The error obviously happens, if the answer_mode=ANSWER_FAX | ANSWER_DATA
   I looked how switch_to_fax_data (I give this routine name which is in 
   answer.c from memory) handles this answer_mode. And you can see from my
   log that all stages of the switch seems to have been made. See

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+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]

and only then the failure

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=''

I'll check if voice routine actually returns with proper code into
standard mgetty loop (where subsequent fax/data receive is made).
I feel it does, however modem is not in a 'good' shape then.

I kind of think AT+FAA=1 at the end of voice part is not sufficient to get
our modems in the proper shape completely. Could the modem forget some
of it's initial parameters after being in voice mode ? 
Is it meaningful for me to insert some extra chat strings in
switch_to_fax_data ?

2) When fax is coming, answer_mode = ANSWER_FAX only,  in
switch_to_fax_data. I.e the different, FAX only , case is selected and
modem reinitialized with +FAA=0 (not 1). Question, how it works, that
with fax call it knows to go from voice directly into fax only mode ?
And with data call it goes into joint FAX | DATA ? (even with
force-autodetect=false, although in my log force-autodetect=true, which
of course forces this mode) ?


3) By the way, that is how the failure looks, if you at the calling
terminal:

a) I issue atdt phone number
b) After several rings - beep
c) After some pause - noice (shshshshsh) as you get from (data
!?) negotiation
d) On top of this noise - second beep
e) CONNECT appears on the screen
f) Garbage appears, namely
   ~?~?~?~?~?~?~?~?~?~?~?~?aX,
			      some rubbish..~?
g) "Connection closed" appears.



		Best regards, Dmitri Pogosyan