HylaFAX The world's most advanced open source fax server

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

[hylafax-users] MODEM protocol botch, USB ZYXEL Omni/1.01



Hi all,
i have with ubuntu 9.04 one fax server with an USB ZYXEL Omni/1.01
modem

config:
Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)
kernel 2.6.32.7
HylaFAX 6.0.4 build from source
( i have with 4.4.6 deb & 6.0.4 package the same error )

i have with the system sometimes that error :
-----------------------------------------
Jun 11 11:04:34.53: [16891]: SESSION BEGIN 000000238 xxxxxxxx
Jun 11 11:04:34.53: [16891]: HylaFAX (tm) Version 6.0.4
Jun 11 11:04:34.53: [16891]: <-- [4:ATA\r]
Jun 11 11:04:45.63: [16891]: --> [4:+FCO]
Jun 11 11:04:45.63: [16891]: ANSWER: FAX CONNECTION  DEVICE
'/dev/ttyACM0'
Jun 11 11:04:45.63: [16891]: RECV FAX: begin
Jun 11 11:04:45.93: [16891]: --> [27:+FTI:"xxxx"]
Jun 11 11:04:45.93: [16891]: REMOTE TSI "xxxx"
Jun 11 11:04:45.93: [16891]: --> [37:+FCS:0,3,0,2,0,0,
+FCS:0,3,0,2,0,0,0,5]
Jun 11 11:04:45.93: [16891]: MODEM protocol botch, can not parse
"0,3,0,2,0,0,+FCS:0,3,0,2,0,0,0,5"
Jun 11 11:04:45.93: [16891]: REMOTE HANGUP: COMREC error (code 72)
Jun 11 11:04:45.93: [16891]: --> [2:OK]
Jun 11 11:04:45.93: [16891]: RECV FAX: 
Jun 11 11:04:45.94: [16891]: RECV FAX: end
Jun 11 11:04:45.94: [16891]: SESSION END
-----------------------------------------


sometimes all is OK:
----------------------------------------
Jun 11 11:03:17.56: [16891]: SESSION BEGIN 000000237 xxxxxxxxxx
Jun 11 11:03:17.56: [16891]: HylaFAX (tm) Version 6.0.4
Jun 11 11:03:17.56: [16891]: <-- [4:ATA\r]
Jun 11 11:03:28.65: [16891]: --> [4:+FCO]
Jun 11 11:03:28.65: [16891]: ANSWER: FAX CONNECTION  DEVICE
'/dev/ttyACM0'
Jun 11 11:03:28.65: [16891]: RECV FAX: begin
Jun 11 11:03:28.95: [16891]: --> [27:+FTI:"xxx"]
Jun 11 11:03:28.95: [16891]: REMOTE TSI "xxx"
Jun 11 11:03:28.95: [16891]: --> [20:+FCS:0,3,0,2,0,0,0,5]
Jun 11 11:03:28.95: [16891]: REMOTE wants 9600 bit/s
Jun 11 11:03:28.95: [16891]: REMOTE wants A4 page width (215 mm)
Jun 11 11:03:28.95: [16891]: REMOTE wants unlimited page length
Jun 11 11:03:28.95: [16891]: REMOTE wants 3.85 line/mm
Jun 11 11:03:28.95: [16891]: REMOTE wants 1-D MH
Jun 11 11:03:28.95: [16891]: --> [2:OK]
.
.
Jun 11 11:04:09.93: [16891]: --> [2:OK]
Jun 11 11:04:09.93: [16891]: RECV FAX: bin/faxrcvd "recvq/fax000000088.tif" "ttyACM0" "000000237" ""
Jun 11 11:04:09.93: [16891]: RECV FAX: end
Jun 11 11:04:09.93: [16891]: SESSION END
------------------------------------------


then sometimes i see similar error but the transmission is OK :
-------------------------------------------
Jun 11 11:05:25.48: [16891]: SESSION BEGIN 000000239 xxxxxxxxxx
Jun 11 11:05:25.48: [16891]: HylaFAX (tm) Version 6.0.4
Jun 11 11:05:25.48: [16891]: <-- [4:ATA\r]
Jun 11 11:05:36.58: [16891]: --> [4:+FCO]
Jun 11 11:05:36.58: [16891]: ANSWER: FAX CONNECTION  DEVICE
'/dev/ttyACM0'
Jun 11 11:05:36.58: [16891]: RECV FAX: begin
Jun 11 11:05:36.88: [16891]: --> [27:+FTI:"xxxx"]
Jun 11 11:05:36.88: [16891]: REMOTE TSI "xxxx"
Jun 11 11:05:36.88: [16891]: --> [17:+FCS:0,3,0,2,0,0,]
Jun 11 11:05:36.88: [16891]: MODEM protocol botch, can not parse
"0,3,0,2,0,0,"
Jun 11 11:05:36.88: [16891]: REMOTE HANGUP: COMREC error (code 72)
Jun 11 11:05:36.88: [16891]: --> [20:+FCS:0,3,0,2,0,0,0,5]
Jun 11 11:05:36.88: [16891]: REMOTE wants 9600 bit/s
Jun 11 11:05:36.88: [16891]: REMOTE wants A4 page width (215 mm)
Jun 11 11:05:36.88: [16891]: REMOTE wants unlimited page length
Jun 11 11:05:36.88: [16891]: REMOTE wants 3.85 line/mm
Jun 11 11:05:36.88: [16891]: REMOTE wants 1-D MH
.
.
Jun 11 11:06:17.45: [16891]: --> [2:OK]
Jun 11 11:06:17.46: [16891]: RECV FAX: bin/faxrcvd
"recvq/fax000000090.tif" "ttyACM0" "000000239" ""
Jun 11 11:06:17.46: [16891]: RECV FAX: end
Jun 11 11:06:17.46: [16891]: SESSION END
-----------------------------------------


i have make this change in Class2.c++ but i'm not sure if the change is
correct... :

--------------------------
Class2Modem::parseClass2Capabilities(const char* cap, Class2Params&
params, bool isDIS)

{ ....

// new codes
    char* c;
    if ( c=strrchr(cap,':') ) c++;
       else c=(char*)(cap);
// end of new codes

    if (useJP) {
	n = sscanf(c, notation, // orig: n = sscanf(cap, notation,
	    &params.vr, &params.br, &params.wd, &params.ln,
	    &params.df, &params.ec, &params.bf, &params.st, &params.jp);
    } else {
	n = sscanf(c, notation, // orig: n = sscanf(cap, notation,
	    &params.vr, &params.br, &params.wd, &params.ln,
	    &params.df, &params.ec, &params.bf, &params.st);
	params.jp = 0;
    }
 
// thats all
----------------------------

and the modem/hylafax work correct.

this might be a modem ( firmware?? ) error but i find no one similar
have anyone this seen anywhere ?
thanks in advance,
norbert



____________________ 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@xxxxxxxxx*




Project hosted by iFAX Solutions