HylaFAX The world's most advanced open source fax server

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

[hylafax-users] Error: cannot train modems?



  Hi people.
 
  I start working with hylafax 4.2.5, FreeBSD 6.1-p3, i have been testing with two modems

Winmodem PCI Agere with ltmdm port
ISA Modem Sportster Model 0484

   Ok i follow the handbook, i have my entrance on /etc/ttys for ISA modem who is connected to sio3

cuad4   "/usr/local/sbin/faxgetty"      dialup  on
cual0   "/usr/local/sbin/faxgetty"      dialup  on

cuad4 support class 0,1,2.0
cual0 support class 0,1

  I start working with cual0, i follow the section:
Everything good. Them i start testing my modem in the real world

The first time was good, i receive some faxes with 1 page, sometimes failed, but i restart and ready.

But went i  start receving more than one page, i get my mail saying that we receive 3 pages, i check that with the program frogmail and just see 1 page. Here start the problems, after this, i just receive 1 page of all the bunch, sometimes just receive 2 of 3. After this i check my settings but didnt found anything wrong to my point of view.

Ok i restart everything, and now i cannot receive any fax, i read my logs and found this, i just going to show the critical info to make this mail small:

Aug 23 15:27:43.01: [  503]: MODEM <Empty line>
Aug 23 15:27:43.01: [  503]: <-- data [1]
Aug 23 15:27:43.02: [  503]: --> [2:^P^C]
Aug 23 15:27:43.02: [  503]: --> [2:OK]
Aug 23 15:27:43.02: [  503]: DELAY 1500 ms
Aug 23 15:27:44.52: [  503]: <-- [9:AT+FTH=3\r]
Aug 23 15:27:45.37: [  503]: --> [7:CONNECT]
Aug 23 15:27:45.37: [  503]: <-- data [32]
Aug 23 15:27:45.37: [  503]: <-- data [2]
Aug 23 15:27:45.37: [  503]: --> [7:CONNECT]
Aug 23 15:27:45.37 : [  503]: <-- data [23]
Aug 23 15:27:45.37: [  503]: <-- data [2]
Aug 23 15:27:45.37: [  503]: --> [7:CONNECT]
Aug 23 15:27:45.37: [  503]: <-- data [13]
Aug 23 15:27:45.37: [  503]: <-- data [2]
Aug 23 15:27:47.60: [  503]: --> [2:OK]
Aug 23 15:27:47.60: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 15:27:54.60: [  503]: --> [0:]
Aug 23 15:27:54.60: [  503]: MODEM <Empty line>
Aug 23 15:27:54.60 : [  503]: <-- data [1]
Aug 23 15:27:54.60: [  503]: --> [2:^P^C]
Aug 23 15:27:54.60: [  503]: --> [2:OK]
Aug 23 15:27:54.60: [  503]: DELAY 1500 ms
Aug 23 15:27:56.11: [  503]: <-- [9:AT+FTH=3\r]
Aug 23 15:27:56.96: [  503]: --> [7:CONNECT]
Aug 23 15:27:56.96: [  503]: <-- data [32]
Aug 23 15:27:56.96: [  503]: <-- data [2]
Aug 23 15:27:56.96: [  503]: --> [7:CONNECT]
Aug 23 15:27:56.96: [  503]: <-- data [23]
Aug 23 15:27:56.96: [  503]: <-- data [2]
Aug 23 15:27:56.96: [  503]: --> [7:CONNECT]
Aug 23 15:27:56.96: [  503]: <-- data [13]
Aug 23 15:27:56.96: [  503]: <-- data [2]
Aug 23 15:27:59.19: [  503]: --> [2:OK]
Aug 23 15:27:59.19: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 15:28:06.19: [  503]: --> [0:]
Aug 23 15:28:06.19: [  503]: MODEM <Empty line>
Aug 23 15:28:06.19: [  503]: <-- data [1]
Aug 23 15:28:06.19 : [  503]: --> [2:^P^C]
Aug 23 15:28:06.19: [  503]: --> [2:OK]
Aug 23 15:28:06.19: [  503]: RECV FAX: No answer (T.30 T1 timeout)
Aug 23 15:28:06.19: [  503]: RECV FAX: end
Aug 23 15:28:06.19: [  503]: SESSION END

Here i receive my fax, but just see 1 not 3 pages.

Aug 23 15:44:54.42: [  503]: RECV FAX (000000025): from , page 1 in 0:31, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Aug 23 15:44:54.42: [  503]: <-- data [2]
Aug 23 15:44:54.84: [  503]: --> [2:OK]
Aug 23 15:44:54.84: [  503]: <-- [11:AT+FRM=146\r]
Aug 23 15:44:55.98: [  503]: --> [7:CONNECT]
Aug 23 15:44:55.98 : [  503]: RECV: begin page
Aug 23 15:45:18.26: [  503]: RECV: 2165 total lines, 0 bad lines, 0 consecutive bad lines
Aug 23 15:45:18.26: [  503]: RECV: end page
Aug 23 15:45:18.26: [  503]: --> [10:NO CARRIER]
Aug 23 15:45:18.26: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 15:45:18.52: [  503]: --> [7:CONNECT]
Aug 23 15:45:19.60: [  503]: --> [2:OK]
Aug 23 15:45:19.60: [  503]: RECV recv MPS (more pages, same document)
Aug 23 15:45:19.60: [  503]: <-- [9:AT+FRS=7\r]
Aug 23 15:45:19.77: [  503]: --> [2:OK]
Aug 23 15:45:19.78: [  503]: <-- [9:AT+FTH=3\r]
Aug 23 15:45:20.73: [  503]: --> [7:CONNECT]
Aug 23 15:45: 20.73: [  503]: RECV send MCF (message confirmation)
Aug 23 15:45:20.74: [  503]: <-- data [3]
Aug 23 15:45:20.74: [  503]: <-- data [2]
Aug 23 15:45:20.74: [  503]: RECV FAX (000000025): from , page 2 in 0:27, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Aug 23 15:45:21.16: [  503]: --> [2:OK]
Aug 23 15:45:21.16: [  503]: <-- [11:AT+FRM=146\r]
Aug 23 15:45:22.32: [  503]: --> [7:CONNECT]
Aug 23 15:45:22.32: [  503]: RECV: begin page
Aug 23 15:45:47.85: [  503]: RECV: 2195 total lines, 0 bad lines, 0 consecutive bad lines
Aug 23 15:45:47.85: [  503]: RECV: end page
Aug 23 15:45:47.85: [  503]: --> [10:NO CARRIER]
Aug 23 15:45:47.85: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 15:45:48.21: [  503]: --> [7:CONNECT]
Aug 23 15:45:49.29: [  503]: --> [2:OK]
Aug 23 15:45:49.29: [  503]: RECV recv EOP (no more pages or documents)
Aug 23 15:45:49.29: [  503]: <-- [9:AT+FRS=7\r]
Aug 23 15:45:49.47: [  503]: --> [2:OK]
Aug 23 15:45:49.47: [  503]: <-- [9:AT+FTH=3\r]
Aug 23 15:45:50.43: [  503]: --> [7:CONNECT]
Aug 23 15:45:50.43: [  503]: <-- data [3]
Aug 23 15:45:50.43 : [  503]: <-- data [2]
Aug 23 15:45:50.85: [  503]: --> [2:OK]
Aug 23 15:45:50.85: [  503]: RECV send MCF (message confirmation)
Aug 23 15:45:50.86: [  503]: RECV FAX (000000025): from , page 3 in 0:29, INF, 7.7 line/mm, 2-D MR, 14400 bit/s
Aug 23 15:45:50.86: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 15:45:50.86: [  503]: RECV FAX (000000025): recvq/fax000000022.tif from , route to <unspecified>, 3 pages in 1:30
Aug 23 15:45:51.20: [  503]: --> [7:CONNECT]
Aug 23 15:45:52.47: [  503]: --> [2:OK]
Aug 23 15:45:52.47: [  503]: RECV recv DCN (disconnect)
Aug 23 15:45:52.47: [  503]: RECV FAX: bin/faxrcvd "recvq/fax000000022.tif" "cual0" "000000025" ""
Aug 23 15:45:52.47: [  503]: RECV FAX: end
Aug 23 15:45:52.47: [  503]: SESSION END

Aug 23 16:15:31.76: [  503]: REMOTE wants 9600 bit/s
Aug 23 16:15:31.76: [  503]: REMOTE wants A4 page width (215 mm)
Aug 23 16:15:31.76: [  503]: REMOTE wants unlimited page length
Aug 23 16:15:31.76: [  503]: REMOTE wants 7.7 line/mm
Aug 23 16:15:31.76: [  503]: REMOTE wants 1-D MH
Aug 23 16:15:31.76: [  503]: RECV training at v.29 9600 bit/s
Aug 23 16:15:31.76: [  503]: <-- [10:AT+FRM=96\r]
Aug 23 16:15:32.16: [  503]: --> [7:CONNECT]
Aug 23 16:15:36.67: [  503]: <-- data [1]
Aug 23 16:15:36.67: [  503]: --> [2:^P^C]
Aug 23 16:15:36.67: [  503]: --> [2:OK]
Aug 23 16:15:36.68: [  503]: <-- [9:AT+FRS=7\r]
Aug 23 16:15:38.01: [  503]: --> [2:OK]
Aug 23 16:15:38.01: [  503]: <-- [9:AT+FTH=3\r]
Aug 23 16:15:38.87: [  503]: --> [7:CONNECT]
Aug 23 16:15:38.87: [  503]: <-- data [3]
Aug 23 16:15:38.87: [  503]: <-- data [2]
Aug 23 16:15:39.19: [  503]: --> [2:OK]
Aug 23 16:15:39.19: [  503]: TRAINING failed
Aug 23 16:15:39.19: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 16:15:46.19: [  503]: --> [0:]
Aug 23 16:15:46.19: [  503]: MODEM <Empty line>
Aug 23 16:15:46.19: [  503]: <-- data [1]
Aug 23 16:15:46.19: [  503]: --> [2:^P^C]
Aug 23 16:15:46.19: [  503]: --> [2:OK]
Aug 23 16:15:46.19: [  503]: RECV FAX: Failure to train modems
Aug 23 16:15:46.19: [  503]: RECV FAX: end
Aug 23 16:15:46.19: [  503]: SESSION END

Aug 23 16:18:22.21 : [  503]: TRAINING failed
Aug 23 16:18:22.21: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 16:18:29.21: [  503]: --> [0:]
Aug 23 16:18:29.21: [  503]: MODEM <Empty line>
Aug 23 16:18:29.21: [  503]: <-- data [1]
Aug 23 16:18:29.21: [  503]: --> [2:^P^C]
Aug 23 16:18:29.21: [  503]: --> [2:OK]
Aug 23 16:18:29.21: [  503]: DELAY 1500 ms
Aug 23 16:18:30.71: [  503]: <-- [9:AT+FTH=3\r]
Aug 23 16:18:31.56: [  503]: --> [7:CONNECT]
Aug 23 16:18:31.56: [  503]: <-- data [32]
Aug 23 16:18:31.56: [  503]: <-- data [2]
Aug 23 16:18:31.56: [  503]: --> [7:CONNECT]
Aug 23 16:18:31.56: [  503]: <-- data [23]
Aug 23 16:18:31.56: [  503]: <-- data [2]
Aug 23 16:18:31.56: [  503]: --> [7:CONNECT]
Aug 23 16:18:31.56: [  503]: <-- data [13]
Aug 23 16:18:31.56: [  503]: <-- data [2]
Aug 23 16:18:33.80: [  503]: --> [2:OK]
Aug 23 16:18:33.80: [  503]: <-- [9:AT+FRH=3\r]
Aug 23 16:18:40.80: [  503]: --> [0:]
Aug 23 16:18:40.80: [  503]: MODEM <Empty line>
Aug 23 16:18:40.80: [  503]: <-- data [1]
Aug 23 16:18:40.80: [  503]: --> [2:^P^C]
Aug 23 16:18:40.80: [  503]: --> [2:OK]
Aug 23 16:18:40.80: [  503]: RECV FAX: Failure to train modems
Aug 23 16:18:40.80: [  503]: RECV FAX: end
Aug 23 16:18:40.80: [  503]: SESSION END

The failure to train modems is with both modem until now.

Here is the config of each modem:

cuad4:

RingsBeforeAnswer:      1
SpeakerVolume:          on
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           20
#
#
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling ( e.g. flow control).
#
ModemType:              Class1          # use class 1 interface
ModemRate:              19200           # rate for DCE-DTE communication
ModemFlowControl:       xonxoff         # software flow control
#
ModemSetupDTRCmd:       ATS13=1&D2      # setup so DTR drop resets modem
ModemSetupDCDCmd:       AT&C1           # setup so DCD reflects carrier (or not)
ModemNoFlowCmd:         AT&H0&I0&R1     # setup modem for no flow control
ModemHardFlowCmd:       AT&H1&I0&R2     # setup modem for hardware flow control
ModemSoftFlowCmd:       AT&H2&I2&R1     # setup modem for software flow control
ModemResultCodesCmd:    ATQ0X4          # enable result codes
#
ModemMfrQueryCmd:       !USR
ModemModelQueryCmd:     ATI3
ModemRevQueryCmd:       ATI7            # XXX returns a multi-line result
#
# When AT+FCLASS=1 is issued the modem automatically switches
# to software flow control; these parameters let the fax software
# reset flow control as needed after entering Class 1.
#
Class1NFLOCmd:          AT&H0&I0&R1     # setup modem for no flow control
Class1HFLOCmd:          AT&H1&I0&R2     # setup modem for hardware flow control
Class1SFLOCmd:          ""              # modem does this automatically
#
# This should resolve "DIS/DTC received 3 times" errors:
#
Class1ResponseWaitCmd:  AT+FRS=1        # wait after sending TCF for response
#
# The remainder of this configuration is included so that the
# modem "idles" in Class 0 while not sending or receiving facsimile.
#
ModemSetupAACmd:        AT+FCLASS=0     # leave modem idling in class 0
ModemAnswerCmd:         AT+FCLASS=1A    # answer in Class 1
#
# When using AT+FRS=n we see USR modems reset themselves in the middle of sessions
# this is not good.  So, we seem to work-around that problem by not using the
# command.  Unfortunately, this isn't an ideal thing.
#
Class1SwitchingCmd:     "<delay\0727>"

cual0 device

GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "HylafaxTest"
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:      xonxoff         # XON/XOFF flow control assumed
#
#ModemSetupDTRCmd:      AT&D2           # setup so DTR drop resets modem
#ModemSetupDCDCmd:      AT&C1           # setup so DCD follows carrier
#GettyArgs:             "-h %l dx_%s"   # modem must auto-detect fax/data
#
# We can append the "@" symbol to the dial string so that
# the modem will wait 5 seconds before attempting to connect
# and return result codes that distinguish between no carrier
# and no answer.  This makes it possible to avoid problems with
# repeatedly dialing a number that doesn't have a fax machine
# (kudos to Stuart Lynne for this trick.)
#
# NB: If you need to prefix phone numbers to get through a PBX,
#     put it in the ModemDialCmd; e.g . "DT9%s@".
#
#ModemDialCmd:          ATDT%s          # T for tone dialing
#
# Other possible configuration stuff.  The default strings are
# shown below.  Only those that are different from the defaults
# need to be included in the configuration file.
#
#ModemResetCmds:                ""              # stuff to do when modem is reset
#ModemAnswerCmd:                ATA             # use this to answer phone
#ModemNoFlowCmd:                AT&K            # disable flow control cmd
#ModemHardFlowCmd:      AT&K3           # hardware flow control cmd
#ModemSoftFlowCmd:      AT&K4           # software flow control cmd
#ModemNoAutoAnswerCmd:  ATS0=0          # disable auto-answer
#
# Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH.
# Note that we both turn the speaker on/off and set volume.
#
#ModemSetVolumeCmd:     "ATM0 ATL0M1 ATL1M1 ATL2M1 ATL3M1"
#ModemEchoOffCmd:       ATE0            # disable command echo
#ModemVerboseResultsCmd:        ATV1            # enable verbose command results
#ModemResultCodesCmd:   ATQ0            # enable result codes
#ModemOnHookCmd:                ATH0            # place phone on hook (hangup)
#ModemSoftResetCmd:     ATZ             # do soft reset of modem
#ModemSoftResetCmdDelay:        3000    # pause after soft reset
#ModemWaitTimeCmd:      ATS7=60         # wait 60 seconds for carrier
#ModemCommaPauseTimeCmd:        ATS8=2          # comma pause time is 2 seconds
#ModemRecvFillOrder:    LSB2MSB         # bit order of received facsimile
#ModemSendFillOrder:    LSB2MSB         # bit order modem expects for transmit
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
Class1SendMsgDelay:     200             # 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

Someone see problems with this settings?

Thanks all for your time!!!

--
:-)


Project hosted by iFAX Solutions