Hylafax Mailing List Archives

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

Re: [hylafax-users] Fax receive EOP or MPN problem



Title:


Giulio Orsero wrote:
 
On Thu, 17 Jul 2003 17:40:53 +0200, John Sved <JohnSved@compuserve.com>
wrote:


  
Solution is to add
Class1SwitchingCmd:     "<delay:7>"
to your $SPOOL/etc/config.<devid>

      
The syntax of the ClassSwitchingCmd       seems to be either AT+FRS=7   
or  "<delay:7>"  as you have suggested.  Neither had a positive effect.
    

Your original log shows

Jul 17 15:57:07.00: [ 2003]: <-- [9:AT+FRS=7\r]
Jul 17 15:57:37.00: [ 2003]: MODEM TIMEOUT: reading line from modem
Jul 17 15:57:37.00: [ 2003]: MODEM <Timeout>

which means that the modem does not support the command used by the default
value of ClassSwitchingCmd param (+FRS=7, that is a pause/silence made by
the modem itself). If you use <delay:7> then the +FRS command will not be
issued and a software pause will be made.
Here is the configuration from ./etc/conf.ttyS0

# $Id: rc288dpi-1,v 1.4 2002/04/07 20:29:26 darren Exp $
#


#
# Configuration for a Rockwell RC288DPi-based Class 1 modem.
#    Hayes Optima 28800        firmware rev ???
#    Microcom DeskPorte 28.8S    firmware rev V1.100K-V34_DS
#    PPI PM288FXMT        firmware rev 1.57
#
# Note that the modem does not lock the line rate for fax
# receive (at least not the PM288FXMT); but not sure whether
# current flow control settings are maintained or if it
# switches to XON/XOFF (testing host was too fast to see).
#
#
CountryCode:        49
AreaCode:        xxxx
FAXNumber:        "+49 xxxxxxxxxxxx"
LongDistancePrefix:    0
InternationalPrefix:    00
DialStringRules:    etc/dialrules
ServerTracing:        527
SessionTracing:        527
RecvFileMode:        0600
LogFileMode:        0600
DeviceMode:        0600
RingsBeforeAnswer:    1
SpeakerVolume:        high
GettyArgs:        "-h %l dx_%s"
LocalIdentifier:    "zzzzzzzzzzzzz"
TagLineFont:        etc/lutRS18.pcf
TagLineFormat:        "From %%l|%c|Page %%P of %%T"
MaxRecvPages:        25
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType:        Class1        # use this to supply a hint
ModemRate:        19200        # rate for DCE-DTE communication
#ModemFlowControl:    rtscts        # default  rtscts
ModemFlowControl:    xonxoff        #
#ModemResetCmds:    AT&V1
#ModemRecvFillOrder:    LSB2MSB
#ModemSendFillOrder:    LSB2MSB
#
#ModemNoFlowCmd:    AT&K0        # setup no flow control
#ModemHardFlowCmd:    AT&K3        # setup hardware flow control
ModemSoftFlowCmd:    AT&K4        # setup software flow control
ModemSetupDTRCmd:    AT&D2        # setup so DTR drop resets modem
ModemSetupDCDCmd:    AT&C1        # setup so DCD reflects carrier (or not)

#
ModemMfrQueryCmd:    !Rockwell
ModemModelQueryCmd:    !RC288DPi
ModemRevQueryCmd:    ATI3        # product information
#
ModemDialCmd:        ATDT0%s        # T for tone dialing


Class1Cmd:        AT+FCLASS=1    # command to enter class 1
Class1PPMWaitCmd:    AT+FTS=7    # command to stop and wait before PPM
Class1TCFWaitCmd:    AT+FTS=7    # command to stop and wait before TCF
Class1EOPWaitCmd:    AT+FTS=9    # command to stop and wait before EOP
Class1MsgRecvHackCmd:    "yes"        # command to avoid +FCERROR before image
Class1TCFResponseDelay:    75        # 75ms delay between recv TCF & response
Class1SendMsgDelay:    75        # 75ms delay after training
#Class1SwitchingCmd:    AT+FRS=7    # silence between HDLC recv and trans
Class1TrainingRecovery:    1500        # 1.5sec delay after training failure
Class1RecvAbortOK:    200        # wait 200ms for abort response
Class1FrameOverhead:    4        # 4 byte overhead in recvd HDLC frames
Class1RecvIdentTimer:    40000        # 35+5secs waiting for ident frames
Class1TCFMaxNonZero:    10        # max 10% of data may be non-zero
Class1TCFMinRun:    1000        # min run is 2/3rds of TCF duration

ClassSwitchingCmd:    <delay:7>


So check your log, if it still shows the above error, the change you made
did not take effect, retry (maybe restart faxgetty). If it shows another
kind of error then you have another/different problem to analyse. Show new
log.
  
Note that I restart the PC after changing the conf.ttyS0 file.


Here is the log:   (for a 1 page receive)

Jul 17 19:23:33.72: [ 2003]: SESSION BEGIN 00000032 49xxxxxxxxxxxx
Jul 17 19:23:33.72: [ 2003]: HylaFAX (tm) Version 4.1.5
Jul 17 19:23:33.72: [ 2003]: MODEM set XON/XOFF/FLUSH: input ignored, output
disabled
Jul 17 19:23:33.72: [ 2003]: <-- [4:ATA\r]
Jul 17 19:23:36.72: [ 2003]: --> [7:CONNECT]
Jul 17 19:23:36.72: [ 2003]: ANSWER: FAX CONNECTION  DEVICE '/dev/ttyS0'
Jul 17 19:23:36.72: [ 2003]: MODEM input buffering enabled
Jul 17 19:23:36.72: [ 2003]: RECV FAX: begin
Jul 17 19:23:36.72: [ 2003]: RECV FAX: CDPN
Jul 17 19:23:36.72: [ 2003]: MODEM input buffering disabled
Jul 17 19:23:36.72: [ 2003]: <-- data [23]
Jul 17 19:23:36.72: [ 2003]: <-- data [2]
Jul 17 19:23:38.36: [ 2003]: --> [7:CONNECT]
Jul 17 19:23:38.36: [ 2003]: <-- data [10]
Jul 17 19:23:38.36: [ 2003]: <-- data [2]
Jul 17 19:23:38.77: [ 2003]: --> [2:OK]
Jul 17 19:23:38.77: [ 2003]: <-- [9:AT+FRH=3\r]
Jul 17 19:23:38.86: [ 2003]: --> [7:CONNECT]
Jul 17 19:23:41.43: [ 2003]: --> [2:OK]
Jul 17 19:23:41.43: [ 2003]: REMOTE TSI "+49 xxxx xxxxx"
Jul 17 19:23:41.43: [ 2003]: <-- [9:AT+FRH=3\r]
Jul 17 19:23:41.46: [ 2003]: --> [7:CONNECT]
Jul 17 19:23:41.70: [ 2003]: --> [2:OK]
Jul 17 19:23:41.70: [ 2003]: REMOTE wants 14400 bit/s
Jul 17 19:23:41.70: [ 2003]: REMOTE wants page width 1728 pixels in 215 mm
Jul 17 19:23:41.70: [ 2003]: REMOTE wants unlimited page length
Jul 17 19:23:41.70: [ 2003]: REMOTE wants 7.7 line/mm
Jul 17 19:23:41.70: [ 2003]: REMOTE wants 1-D MR
Jul 17 19:23:41.70: [ 2003]: RECV training at v.17 14400 bit/s
Jul 17 19:23:41.70: [ 2003]: MODEM set XON/XOFF/DRAIN: input ignored, output
generated
Jul 17 19:23:41.70: [ 2003]: <-- [11:AT+FRM=145\r]
Jul 17 19:23:43.41: [ 2003]: --> [7:CONNECT]
Jul 17 19:23:44.93: [ 2003]: MODEM set XON/XOFF/DRAIN: input ignored, output
disabled
Jul 17 19:23:44.93: [ 2003]: RECV: TCF 2720 bytes, 0% non-zero, 2703 zero-run
Jul 17 19:23:44.94: [ 2003]: --> [10:NO CARRIER]
Jul 17 19:23:44.94: [ 2003]: DELAY 75 ms
Jul 17 19:23:45.02: [ 2003]: TRAINING succeeded
Jul 17 19:23:45.02: [ 2003]: <-- [9:AT+FTH=3\r]
Jul 17 19:23:45.06: [ 2003]: --> [7:CONNECT]
Jul 17 19:23:45.06: [ 2003]: <-- data [3]
Jul 17 19:23:45.06: [ 2003]: <-- data [2]
Jul 17 19:23:46.27: [ 2003]: --> [2:OK]
Jul 17 19:23:46.27: [ 2003]: MODEM input buffering enabled
Jul 17 19:23:46.27: [ 2003]: MODEM set XON/XOFF/FLUSH: input ignored, output
generated
Jul 17 19:23:46.27: [ 2003]: <-- [4:yes\r]
Jul 17 19:24:16.27: [ 2003]: MODEM TIMEOUT: reading line from modem
Jul 17 19:24:16.27: [ 2003]: MODEM <Timeout>
Jul 17 19:24:16.28: [ 2003]: RECV FAX (00000032): recvq/fax00027.tif from +49
xxxxxxxxxxxx, route to <unspecified>, 0 pages in 0:40
Jul 17 19:24:16.28: [ 2003]: RECV FAX: Failure to receive silence.
Jul 17 19:24:16.28: [ 2003]: <-- [9:AT+FTH=3\r]
Jul 17 19:24:16.42: [ 2003]: --> [7:CONNECT]
Jul 17 19:24:16.42: [ 2003]: <-- data [3]
Jul 17 19:24:16.42: [ 2003]: <-- data [2]
Jul 17 19:24:17.63: [ 2003]: --> [2:OK]
Jul 17 19:24:17.63: [ 2003]: MODEM input buffering enabled
Jul 17 19:24:17.63: [ 2003]: RECV FAX (00000032): session with +49 xxxxxxxxxx
terminated abnormally: Failure to receive silence.
Jul 17 19:24:17.63: [ 2003]: RECV FAX: bin/faxrcvd "recvq/fax00027.tif" "ttyS0"
"00000032" "Failure to receive silence." "" "" ""
Jul 17 19:24:17.75: [ 2003]: RECV FAX: end
Jul 17 19:24:17.75: [ 2003]: SESSION END


  
Class1SwitchingCmd or similar Class1......  parameters were not added by faxaddmodem.
    
HylaFAX config system doesn't yet know your modem doesn't support +FRS,
probemodem output will be useful for future HylaFAX versions (to create a
config with a  <delay..>)
  

If you want a more detailed log, please tell me exactly how to set one.


-- John


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