HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] faxgetty hangs with Zyxel U90E



----- Original Message -----
From: "Lee Howard" <faxguy@xxxxxxxxxxxxxxxx>
To: "Sauro Saltini" <saltini@xxxxxx>
Cc: <hylafax-users@xxxxxxxxxxx>
Sent: Wednesday, December 03, 2003 7:41 PM
Subject: Re: [hylafax-users] faxgetty hangs with Zyxel U90E


> On 2003.12.03 06:57 Sauro Saltini wrote:
> > My setup is :
> >
> > - RH 7.3
> > - HylaFax 4.1.7 (installed via RPM)
> > - two Zyxel U90E modems both configured as Class 2 modems
> > - the only modified parameter in config.ttyS0/S1 is
> > Class2RecvDataTrigger: "\022" (I can't receive faxes without this !)
>
> In other words it strictly obeys only the 2388-B draft instead of both
> 2388-A and 2388-B.
>
> > I can receive faxes from different fax machines for some hours without
> > any problem then, suddently, during the receive phase faxgetty stops
> > logging data in the session logs , faxstat -s says that the modem is
> > receiving but the transmission never ends !
> >
> > Transcription of sample log follows:
> >
> > Dec 03 15:08:02.08: [18335]: SESSION BEGIN 00006673 390289428428
> > Dec 03 15:08:02.08: [18335]: HylaFAX (tm) Version 4.1.7
> > Dec 03 15:08:02.08: [18335]: <-- [4:ATA\r]
> > Dec 03 15:08:11.80: [18335]: --> [5:+FCON]
> > Dec 03 15:08:11.80: [18335]: ANSWER: FAX CONNECTION  DEVICE
> > '/dev/ttyS0'
> > Dec 03 15:08:11.80: [18335]: RECV FAX: begin
> > Dec 03 15:08:12.10: [18335]: --> [28:+FTSI:"                    "]
> > Dec 03 15:08:12.10: [18335]: REMOTE TSI ""
> > Dec 03 15:08:12.10: [18335]: --> [21:+FDCS:0,5,0,2,1,0,0,0]
> > Dec 03 15:08:12.10: [18335]: REMOTE wants 14400 bit/s
> > Dec 03 15:08:12.10: [18335]: REMOTE wants page width 1728 pixels in
> > 215 mm
> > Dec 03 15:08:12.10: [18335]: REMOTE wants unlimited page length
> > Dec 03 15:08:12.10: [18335]: REMOTE wants 3.85 line/mm
> > Dec 03 15:08:12.10: [18335]: REMOTE wants 2-D MR
> > Dec 03 15:08:12.10: [18335]: --> [2:OK]
> > Dec 03 15:08:12.10: [18335]: <-- [7:AT+FDR\r]
> > Dec 03 15:08:18.85: [18335]: --> [28:+FTSI:"                    "]
> > Dec 03 15:08:18.85: [18335]: REMOTE TSI ""
> > Dec 03 15:08:25.16: [18335]: --> [21:+FDCS:0,4,0,2,1,0,0,0]
> > Dec 03 15:08:25.16: [18335]: REMOTE wants 12000 bit/s
> > Dec 03 15:08:25.16: [18335]: REMOTE wants page width 1728 pixels in
> > 215 mm
> > Dec 03 15:08:25.16: [18335]: REMOTE wants unlimited page length
> > Dec 03 15:08:25.16: [18335]: REMOTE wants 3.85 line/mm
> > Dec 03 15:08:25.16: [18335]: REMOTE wants 2-D MR
> > Dec 03 15:08:25.46: [18335]: --> [28:+FTSI:"                    "]
> > Dec 03 15:08:25.46: [18335]: REMOTE TSI ""
> > Dec 03 15:08:31.77: [18335]: --> [21:+FDCS:0,3,0,2,1,0,0,0]
> > Dec 03 15:08:31.77: [18335]: REMOTE wants 9600 bit/s
> > Dec 03 15:08:31.77: [18335]: REMOTE wants page width 1728 pixels in
> > 215 mm
> > Dec 03 15:08:31.77: [18335]: REMOTE wants unlimited page length
> > Dec 03 15:08:31.77: [18335]: REMOTE wants 3.85 line/mm
> > Dec 03 15:08:31.77: [18335]: REMOTE wants 2-D MR
> > Dec 03 15:08:32.06: [18335]: --> [28:+FTSI:"                    "]
> > Dec 03 15:08:32.06: [18335]: REMOTE TSI ""
> > Dec 03 15:08:38.38: [18335]: --> [21:+FDCS:0,2,0,2,1,0,0,0]
> > Dec 03 15:08:38.38: [18335]: REMOTE wants 7200 bit/s
> > Dec 03 15:08:38.38: [18335]: REMOTE wants page width 1728 pixels in
> > 215 mm
> > Dec 03 15:08:38.38: [18335]: REMOTE wants unlimited page length
> > Dec 03 15:08:38.38: [18335]: REMOTE wants 3.85 line/mm
> > Dec 03 15:08:38.38: [18335]: REMOTE wants 2-D MR
> > Dec 03 15:08:38.68: [18335]: --> [28:+FTSI:"                    "]
> > Dec 03 15:08:38.68: [18335]: REMOTE TSI ""
> > Dec 03 15:08:42.40: [18335]: --> [21:+FDCS:0,1,0,2,1,0,0,0]
> > Dec 03 15:08:42.40: [18335]: REMOTE wants 4800 bit/s
> > Dec 03 15:08:42.40: [18335]: REMOTE wants page width 1728 pixels in
> > 215 mm
> > Dec 03 15:08:42.40: [18335]: REMOTE wants unlimited page length
> > Dec 03 15:08:42.40: [18335]: REMOTE wants 3.85 line/mm
> > Dec 03 15:08:42.40: [18335]: REMOTE wants 2-D MR
> > Dec 03 15:08:42.40: [18335]: --> [5:+FCFR]
> > Dec 03 15:08:44.11: [18335]: --> [21:+FDCS:0,1,0,2,1,0,0,0]
> > Dec 03 15:08:44.11: [18335]: REMOTE wants 4800 bit/s
> > Dec 03 15:08:44.11: [18335]: REMOTE wants page width 1728 pixels in
> > 215 mm
> > Dec 03 15:08:44.11: [18335]: REMOTE wants unlimited page length
> > Dec 03 15:08:44.11: [18335]: REMOTE wants 3.85 line/mm
> > Dec 03 15:08:44.11: [18335]: REMOTE wants 2-D MR
> > Dec 03 15:08:44.11: [18335]: --> [7:CONNECT]
> > Dec 03 15:08:44.11: [18335]: RECV: begin page
> > Dec 03 15:08:44.11: [18335]: RECV: send trigger 022
> > Dec 03 15:08:44.11: [18335]: <-- data [1]
> > Dec 03 15:09:08.53: [18335]: RECV: 14536 bytes of data, 1140 total
> > lines
> >
> > at this point the only way I have to go on is to kill faxgetty (i.e.
> > restart hylafax) then I can see a new line in the session log :
> >
> > Dec 03 15:12:50.11: [18335]: CLOSE /dev/ttyS0
>
> This looks a lot like the problem reported on:
>
>
http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&threadm=fa.cc3kru9.ih
m939%40ifi.uio.no&prev=/groups%3Fdq%3D%26num%3D25%26hl%3Den%26lr%3D%26ie%3DU
TF-8%26group%3Dfa.hylafax%26start%3D50
>
> Try setting ModemPageDoneTimeout to 60000.  I can also send you the
> patch I later sent to Thorsten.
>
> > I've found some similar (but not identical) posts in the archives and
> > I've installed 4.1.7 over my old 4.1.5 trying to solve the problem but
> > nothing changed.
>
> So this problem happens both with 4.1.7 and with 4.1.5 ?
>
> > I've tried to configure Zyxel as Class 1 but I can't send or receive
> > faxes succesfully :
> >
> > Receive session Log ( Class 1 ) :
> >
> > Nov 24 14:18:17.27: [13383]: SESSION BEGIN 00005903 390289428428
> > Nov 24 14:18:17.27: [13383]: HylaFAX (tm) Version 4.1.6
> > Nov 24 14:18:17.27: [13383]: <-- [4:ATA\r]
> > Nov 24 14:18:23.97: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:23.97: [13383]: ANSWER: FAX CONNECTION  DEVICE
> > '/dev/ttyS0'
> > Nov 24 14:18:23.97: [13383]: RECV FAX: begin
> > Nov 24 14:18:24.05: [13383]: <-- data [23]
> > Nov 24 14:18:24.05: [13383]: <-- data [2]
> > Nov 24 14:18:25.07: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:25.07: [13383]: <-- data [10]
> > Nov 24 14:18:25.07: [13383]: <-- data [2]
> > Nov 24 14:18:25.49: [13383]: --> [2:OK]
> > Nov 24 14:18:25.49: [13383]: <-- [9:AT+FRH=3\r]
> > Nov 24 14:18:26.00: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:27.51: [13383]: --> [2:OK]
> > Nov 24 14:18:27.51: [13383]: REMOTE TSI "257601416"
> > Nov 24 14:18:27.51: [13383]: <-- [9:AT+FRH=3\r]
> > Nov 24 14:18:27.55: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:27.85: [13383]: --> [2:OK]
> > Nov 24 14:18:27.85: [13383]: REMOTE wants 14400 bit/s
> > Nov 24 14:18:27.85: [13383]: REMOTE wants page width 1728 pixels in
> > 215 mm
> > Nov 24 14:18:27.85: [13383]: REMOTE wants unlimited page length
> > Nov 24 14:18:27.85: [13383]: REMOTE wants 3.85 line/mm
> > Nov 24 14:18:27.85: [13383]: REMOTE wants 2-D MR
> > Nov 24 14:18:27.85: [13383]: RECV training at v.17 14400 bit/s
> > Nov 24 14:18:27.85: [13383]: <-- [11:AT+FRM=145\r]
> > Nov 24 14:18:29.56: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:31.04: [13383]: RECV: TCF 2715 bytes, 0% non-zero, 2644
> > zero-run
> > Nov 24 14:18:31.05: [13383]: --> [10:NO CARRIER]
> > Nov 24 14:18:31.05: [13383]: DELAY 75 ms
> > Nov 24 14:18:31.13: [13383]: TRAINING succeeded
> > Nov 24 14:18:31.13: [13383]: <-- [9:AT+FTH=3\r]
> > Nov 24 14:18:32.27: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:32.27: [13383]: <-- data [3]
> > Nov 24 14:18:32.27: [13383]: <-- data [2]
> > Nov 24 14:18:32.51: [13383]: --> [2:OK]
> > Nov 24 14:18:32.51: [13383]: <-- [11:AT+FRM=146\r]
> > Nov 24 14:18:33.67: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:33.67: [13383]: RECV: begin page
> > Nov 24 14:18:47.35: [13383]: RECV: 1128 total lines, 0 bad lines, 0
> > consecutive bad lines
> > Nov 24 14:18:47.35: [13383]: RECV: end page
> > Nov 24 14:18:47.35: [13383]: --> [10:NO CARRIER]
> > Nov 24 14:18:47.35: [13383]: <-- [9:AT+FRH=3\r]
> > Nov 24 14:18:47.62: [13383]: --> [7:CONNECT]
> > Nov 24 14:18:48.53: [13383]: --> [2:OK]
> > Nov 24 14:18:48.53: [13383]: HDLC frame too short (3 bytes)
>
> Set Class1FrameOverhead to 2.  I think that may solve your Class 1
> problem here.
>
> > Send Session Log ( Class 1 )
> >
> > nov 24 14:19:25.43: [14271]: SESSION BEGIN 00005904 39020254100811
> > nov 24 14:19:25.43: [14271]: HylaFAX (tm) Version 4.1.6
> > nov 24 14:19:28.12: [14271]: SEND FAX: JOB 671 DEST 0254100811 COMMID
> > 00005904 DEVICE '/dev/ttyS0'
> > nov 24 14:19:28.12: [14271]: DELAY 75 ms
> > nov 24 14:19:28.20: [14271]: DELAY 2600 ms
> > nov 24 14:19:31.81: [14271]: DELAY 10 ms
> > nov 24 14:19:31.82: [14271]: <-- [4:ATZ\r]
> > nov 24 14:19:32.11: [14271]: --> [2:OK]
> > nov 24 14:19:32.11: [14271]: DELAY 3000 ms
> > nov 24 14:19:35.11: [14271]: <-- [5:ATE0\r]
> > nov 24 14:19:35.19: [14271]: --> [4:ATE0]
> > nov 24 14:19:35.19: [14271]: --> [2:OK]
> > nov 24 14:19:35.19: [14271]: <-- [5:ATV1\r]
> > nov 24 14:19:35.22: [14271]: --> [2:OK]
> > nov 24 14:19:35.22: [14271]: <-- [5:ATQ0\r]
> > nov 24 14:19:35.24: [14271]: --> [2:OK]
> > nov 24 14:19:35.24: [14271]: <-- [7:ATS0=0\r]
> > nov 24 14:19:35.27: [14271]: --> [2:OK]
> > nov 24 14:19:35.27: [14271]: <-- [7:ATS8=2\r]
> > nov 24 14:19:35.29: [14271]: --> [2:OK]
> > nov 24 14:19:35.29: [14271]: <-- [8:ATS7=60\r]
> > nov 24 14:19:35.32: [14271]: --> [2:OK]
> > nov 24 14:19:35.32: [14271]: <-- [12:AT+FCLASS=1\r]
> > nov 24 14:19:35.35: [14271]: --> [2:OK]
> > nov 24 14:19:35.35: [14271]: <-- [5:ATM0\r]
> > nov 24 14:19:35.38: [14271]: --> [2:OK]
> > nov 24 14:19:35.38: [14271]: <-- [12:AT+FCLASS=1\r]
> > nov 24 14:19:35.52: [14271]: --> [2:OK]
> > nov 24 14:19:35.52: [14271]: DIAL 0254100811
> > nov 24 14:19:35.52: [14271]: <-- [15:ATDT0254100811\r]
> > nov 24 14:19:58.77: [14271]: --> [7:CONNECT]
> > nov 24 14:20:00.20: [14271]: --> [2:OK]
> > nov 24 14:20:00.20: [14271]: REMOTE CSI ""
> > nov 24 14:20:00.20: [14271]: <-- [9:AT+FRH=3\r]
> > nov 24 14:20:00.23: [14271]: --> [7:CONNECT]
> > nov 24 14:20:00.49: [14271]: --> [2:OK]
> > nov 24 14:20:00.49: [14271]: REMOTE best rate 9600 bit/s
> > nov 24 14:20:00.49: [14271]: REMOTE max page width 1728 pixels in 215
> > mm
> > nov 24 14:20:00.49: [14271]: REMOTE max unlimited page length
> > nov 24 14:20:00.49: [14271]: REMOTE best vres 7.7 line/mm
> > nov 24 14:20:00.49: [14271]: REMOTE best format 1-D MR
> > nov 24 14:20:00.49: [14271]: REMOTE best 20 ms, 10 ms/scanline
> > nov 24 14:20:00.49: [14271]: USE 9600 bit/s
> > nov 24 14:20:00.49: [14271]: USE 20 ms, 10 ms/scanline
> > nov 24 14:20:00.49: [14271]: SEND file "docq/doc695.ps;01"
> > nov 24 14:20:00.51: [14271]: USE page width 1728 pixels in 215 mm
> > nov 24 14:20:00.51: [14271]: USE unlimited page length
> > nov 24 14:20:00.51: [14271]: USE 7.7 line/mm
> > nov 24 14:20:00.51: [14271]: USE 1-D MR
> > nov 24 14:20:00.51: [14271]: SEND training at v.29 9600 bit/s
> > nov 24 14:20:00.51: [14271]: <-- [9:AT+FTH=3\r]
> > nov 24 14:20:01.56: [14271]: --> [7:CONNECT]
> > nov 24 14:20:01.56: [14271]: <-- data [23]
> > nov 24 14:20:01.56: [14271]: <-- data [2]
> > nov 24 14:20:02.59: [14271]: --> [7:CONNECT]
> > nov 24 14:20:02.59: [14271]: <-- data [6]
> > nov 24 14:20:02.59: [14271]: <-- data [2]
> > nov 24 14:20:02.91: [14271]: --> [2:OK]
> > nov 24 14:20:02.91: [14271]: <-- [9:AT+FTS=7\r]
> > nov 24 14:20:03.01: [14271]: --> [2:OK]
> > nov 24 14:20:03.01: [14271]: <-- [10:AT+FTM=96\r]
> > nov 24 14:20:03.63: [14271]: --> [7:CONNECT]
> > nov 24 14:20:03.63: [14271]: <-- data [1024]
> > nov 24 14:20:03.63: [14271]: <-- data [776]
> > nov 24 14:20:03.63: [14271]: <-- data [2]
> > nov 24 14:20:05.55: [14271]: --> [2:OK]
> > nov 24 14:20:05.55: [14271]: <-- [9:AT+FRH=3\r]
> > nov 24 14:20:05.84: [14271]: --> [7:CONNECT]
> > nov 24 14:20:06.75: [14271]: --> [2:OK]
> > nov 24 14:20:06.75: [14271]: HDLC frame too short (3 bytes)
>
> And same thing here.
>
> > It seems there are problems related to Training phase but I'm not a
> > fax communication expert....
>
> It appears that the modem does not report the FCS bytes in received
> Class 1 HDLC frames.  Setting Class1FrameOverhead should resolve this.
>
> > What's the best way to configure Zyxel U90E for Hylafax usage ???
>
> Ultimately I'd say that fixing the chinks in Class 1 for you will work
> best in the long-run, but it may take a little bit of configuration
> effort on your part.
>
> Lee.
>

Yes, the problem was the same with 4.1.5 and 4.1.7
Now I've configured both modems as Class 1 modifying Class1FrameOverhead as
suggested and all seems working fine!

Many Thanks for the useful suggestions.

Sauro.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxxxxx*




Project hosted by iFAX Solutions