Command - OK out of sync
Gernot Zander (hifi@gmx.de)
Mon, 27 Oct 1997 20:45:37 +0100
Hi,
I have the following strange problem.
The modem sends OK if DTR goes high.
This causes sendfax to think this is the reply of the first
command, and it gets nice out of sync:
10/27 03:28:30 yS1 fax_send: 'ATV1Q0'
10/27 03:28:30 yS1 fax_wait_for(OK)
10/27 03:28:31 yS1 fax_wait_for: string 'OK'** found **
(This is the OK of DTR up!)
10/27 03:28:31 yS1 fax_send: 'ATZ'
(I tried to add this, but...)
10/27 03:28:31 yS1 fax_wait_for(OK)
10/27 03:28:31 yS1 fax_wait_for: string 'ATV1Q0'
10/27 03:28:31 yS1 fax_wait_for: string 'OK'** found **
(One behind...)
10/27 03:28:31 yS1 mdm_send: 'AT+FCLASS=2.0'
10/27 03:28:31 yS1 mdm_command: string 'ATZ'
10/27 03:28:32 yS1 mdm_command: string 'OK' -> OK
(One behind...)
... and so on...
10/27 03:28:32 yS1 mdm_send: 'AT&K3'
10/27 03:28:32 yS1 mdm_command: string 'AT+FLO=2'
10/27 03:28:32 yS1 mdm_command: string 'OK' -> OK
10/27 03:28:32 yS1 fax_send: 'ATX3M2L0DT0w084031717'
10/27 03:28:32 yS1 fax_wait_for(OK)
10/27 03:28:32 yS1 fax_wait_for: string 'AT&K3'
10/27 03:28:32 yS1 fax_wait_for: string 'OK'** found **
10/27 03:28:32 yS1 fax_send_page("ff45302a5S1-_-+49-30-67-19-81-03_.01.1") started...
10/27 03:28:32 yS1 tio_set_flow_control( HARD )
(but no one is dialing)
10/27 03:28:32 yS1 fax_send: 'AT+FDT'
10/27 03:28:32 yS1 fax_wait_for(CONNECT)
10/27 03:28:32 yS1 fax_wait_for: string 'ATX3M2L0DT0w084031717'
10/27 03:28:33 yS1 fax_wait_for: string 'OK'
10/27 03:28:58 ##### failed: got signal 2, pid=8600, time=26s, acct=""
(timeout)
There should be the same as mgetty has, a wait for a few seconds
of silence on the line (clean_line(something)). So that the first
OK (without command) is thrown away.
Whare I should add this?
mfg.
Gernot
(Modem is ELSA 33.6 TQV, mgetty+sendfax 1.1.9)
--
<hifi@gmx.de> (Gernot Zander)
Wir sind zu allem bereit, aber zu nichts zu gebrauchen.
.