vgetty fails to switch to data ... some progress !?

Dmitry Pogosyan (pogosyan@cita.utoronto.ca)
Wed, 12 May 1999 19:37:54 -0400


On Wed, 12 May 1999, Gert Doering wrote:

> No - +FCR=1 just means "switch on fax receiving capabilities", which
> should be the default anyway.  But you could just hack it into the voice/
> source file that contains +FAA=1 (change that to +FAA=1;+FCR=1) and try...
> 
Hi Gert, you are right, +FCR=1 does not help.
BUT ! I also understood that my modem is one of those that has problem
distingusing data/fax in +FCLASS=2 mode (see your comment in mgetty.c).
At least mgetty does always set +FCLASS=0, therefore I conclude that
this bit is set in 'quirks'

So, I wend to switch_to_fax_data and inserted AT+FCLASS=0 before doing
+FAA=1 in answer_mode=ANSWER_FAX | ANSWER_DATA case
(actually I think vgetty should do it, if mgetty does)

Now, data connection still failed :(((( But with different error - 
NO CARRIER (as more expected, maybe)! Log comes below.
On a visual (audial) side, connection was going on as normal,
reached shshshshshssh sound of negotiation, which then stop and
turned into continous beep ...

				Dmitri

Here is the log
05/12 19:00:57 yS3  wfr: waiting for ``RING''
05/12 19:00:57 yS3   got: [0a][0d][0a]RING[0d]
05/12 19:00:57 yS3    CND: RING
05/12 19:01:21 yS3   wfr: rc=0, drn=0
...............
05/12 19:01:21 yS3  reading ring_type ring configuration from config file /usr/local/etc/mgetty+sendfax/voice.conf
...............
05/12 19:01:21 yS3    vgetty: answer mode was set directly
05/12 19:01:21 yS3    vgetty: answer mode is [data|fax|voice]
05/12 19:01:21 yS3    vgetty: opening list file /var/spool/voice/messages/Index
05/12 19:01:21 yS3    vgetty: message name is /var/spool/voice/messages/standard.rmd
05/12 19:01:21 yS3   vgetty: entering voice mode
......................
05/12 19:01:33 yS3    vgetty: trying data and fax connection
05/12 19:01:33 yS3   voice command: 'AT#CLS=2' -> 'OK'
05/12 19:01:33 yS3    vgetty: AT#CLS=2
05/12 19:01:33 yS3    Rockwell: OK
05/12 19:01:34 yS3   voice command: 'AT' -> 'OK'
05/12 19:01:34 yS3    vgetty: AT
05/12 19:01:34 yS3    Rockwell: OK
--------------- Here is my hack ----------------
05/12 19:01:34 yS3   voice command: 'AT+FCLASS=0' -> 'OK'
05/12 19:01:34 yS3    vgetty: AT+FCLASS=0
05/12 19:01:34 yS3    Rockwell: OK
-----------------------------------------------
05/12 19:01:34 yS3   voice command: 'AT+FAA=1' -> 'OK'
05/12 19:01:34 yS3    vgetty: AT+FAA=1
05/12 19:01:34 yS3    Rockwell: OK
------------ and again my addition -----------------
05/12 19:01:34 yS3   voice command: 'AT+FCR=1' -> 'OK'
05/12 19:01:34 yS3    vgetty: AT+FCR=1
05/12 19:01:34 yS3    Rockwell: OK
-------------------------------------------------------
05/12 19:01:34 yS3   vgetty: Restoring signal handlers
05/12 19:01:34 yS3  mdm_send: 'AT+FBOR=0'
05/12 19:01:34 yS3    got:[0a][0d][0a]OK[0d]
05/12 19:01:34 yS3   mdm_command: string 'OK' -> OK
05/12 19:01:34 yS3  send: ATA[0d]
05/12 19:01:34 yS3  waiting for ``CONNECT''
05/12 19:01:34 yS3   got: [0d]
05/12 19:02:32 yS3    CND: OK[0a]NO CARRIER
05/12 19:02:32 yS3  found action string: ``NO CARRIER''
05/12 19:02:32 ##### failed A_FAIL dev=ttyS3, pid=11780, caller='none', conn='', name=''


---------------------------------------------------------------------------
Dmitri Pogosian					102 Aldwych Ave.
tel/fax: 1-416-466-4028				Toronto, ON M4J 1X6
 e-mail: pogosyan@cita.utoronto.ca		Canada
---------------------------------------------------------------------------