Hylafax Mailing List Archives

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

[hylafax-users] How to get around "Stop and wait" failures



All,


it took me quite a while to figure this out, so I guess the best thing will be to post it to this list.
After setting up Hylafax 4.2.1 (own compilation) on Solaris8 and trying to make it work with a Robotics Sportster faxmodem, I kept getting errors like this in the logs (/var/spool/hylafax/log/c0000*):


[...]
Feb 16 15:20:06.14: [ 528]: SEND file "docq/doc29.ps;00"
Feb 16 15:20:06.14: [ 528]: USE A4 page width (215 mm)
Feb 16 15:20:06.14: [ 528]: USE A4 page length (297 mm)
Feb 16 15:20:06.15: [ 528]: USE 3.85 line/mm
Feb 16 15:20:06.15: [ 528]: USE 1-D MH
Feb 16 15:20:06.15: [ 528]: SEND training at v.29 9600 bit/s
Feb 16 15:20:06.15: [ 528]: <-- [9:AT+FTH=3\r]
Feb 16 15:20:06.29: [ 528]: --> [7:CONNECT]
Feb 16 15:20:06.29: [ 528]: <-- data [23]
Feb 16 15:20:06.29: [ 528]: <-- data [2]
Feb 16 15:20:08.03: [ 528]: --> [7:CONNECT]
Feb 16 15:20:08.03: [ 528]: <-- data [6]
Feb 16 15:20:08.03: [ 528]: <-- data [2]
Feb 16 15:20:08.73: [ 528]: --> [2:OK]
Feb 16 15:20:08.73: [ 528]: <-- [9:AT+FTS=7\r]
Feb 16 15:20:08.99: [ 528]: --> [5:ERROR]
Feb 16 15:20:08.99: [ 528]: MODEM Command error
Feb 16 15:20:08.99: [ 528]: Stop and wait failure (modem on hook)
Feb 16 15:20:08.99: [ 528]: The destination appears to have trouble with V.34-Fax.
[...]



Interestingly, the /usr/local/sbin/probemodem script had previously detected that the AT+FTS command could not be digested by my modem. You can run that script at any time to find out what AT capabilities your modem has.


My modem is configured by file /var/spool/hylafax/etc/config.cua_b. I added the following lines to stop HylaFAX attempting to use AT+FTS commands:


Class1PPMWaitCmd: "<delay\0727>" # \072 == : to avoid awk problem Class1TCFWaitCmd: "<delay\0727>" Class1EOPWaitCmd: "<delay\0729>" Class1SwitchingCmd: "<delay\0727>" # assumption: +FRS not supported


Probably, the Class1ResponseWaitCmd attribute can be supplied with such a value. In my current setup, I still see AT+FRS commands and corresponding errors, but only during the training phase. Apart from this, everything works fine.



I hope this helps other people, and if there is any HylaFAX developer reading this, you may want to check if this is not a bug during automatic modem configuration and setup.




Thanks to klaus_h on http://www.debianforum.de/forum/viewtopic.php?t=37422, who brought me to the solution.



Sebastian Birnbach

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



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services