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] No carrier detected



Thanks John.
I've tried to change my setup to reflect your
ModemSetupDTRCmd
setting, but it doesn't solve my problem :(

I post here my config.ttyUSB0.

root@ubuntu-fax:~# cat /etc/hylafax/config.ttyUSB0
CountryCode:        39
AreaCode:        011
FAXNumber:        19781093
LongDistancePrefix:    00
InternationalPrefix:    39
DialStringRules:    etc/dialrules
ServerTracing:        1
SessionTracing:        11
RecvFileMode:        0600
LogFileMode:        0600
DeviceMode:        0600
RingsBeforeAnswer:    1
SpeakerVolume:        high
GettyArgs:        "-h %l dx_%s"
LocalIdentifier:    "TerFinance S.p.A."
TagLineFont:        etc/lutRS18.pcf
TagLineFormat:        "From %%l|%c|Page %%P of %%T"
PercentGoodLines:    90
MaxConsecutiveBadLines:    3
MaxRecvPages:        25
#
#
# 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
ModemSetupDTRCmd:    AT&D2
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>"


Thanks
Daniele


John Hudak wrote:
Hi:
I am sorry I can't give you specifics because I don't know the details
of that modem, however, it seems that in general, the setup for
detecting the carrier is not correct. This is usually done by
configuring the 'ModemSetupDTRCmd' and the "ModemSetupDCECmd"...Here
is how my setup is accomplished in config.ttyACM0:

For my Conexant RD02-D400 (AKA Dell USB modem)
#
# 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:    1
AreaCode:  412
FAXNumber:     - my number
LongDistancePrefix:   1
InternationalPrefix:  011
DialStringRules:      etc/dialrules
ServerTracing:  1
SessionTracing:       11
RecvFileMode:   0600
LogFileMode:    0600
DeviceMode:     0600
RingsBeforeAnswer:    1
SpeakerVolume:  high
GettyArgs:     "-h %l dx_%s"
LocalIdentifier:      jjh_fax
TagLineFont:    etc/lutRS18.pcf
TagLineFormat:  "From %%l|%c|Page %%P of %%T"
MaxRecvPages:   50
#
#
# 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
#
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:   ATDT%s     # T for tone dialing
# ----------------EOF---------------------------------------------

You can compare this against your config file...noting the ModemSetup section...
Perhaps you can post yours here?
John


On Sun, Dec 14, 2008 at 5:57 AM, Daniele Gallarato
<daniele.gallarato@xxxxxxxx> wrote:
  
This is the log of the error

root@ubuntu-fax:~# tail -f /var/spool/hylafax/log/c000000007
Dec 14 11:06:00.90: [29261]: SESSION BEGIN 000000007 391119690902
Dec 14 11:06:00.90: [29261]: HylaFAX (tm) Version 4.4.4
Dec 14 11:06:00.90: [29261]: SEND FAX: JOB 4 DEST 001119690902 COMMID
000000007 DEVICE '/dev/ttyUSB0' FROM 'daniele.gallarato
<daniele.gallarato@xxxxxxxxxxxxx>' USER root
Dec 14 11:06:00.90: [29261]: <-- [12:AT+FCLASS=1\r]
Dec 14 11:06:01.04: [29261]: --> [2:OK]
Dec 14 11:06:01.04: [29261]: DIAL 001119690902
Dec 14 11:06:01.04: [29261]: <-- [17:ATDT001119690902\r]
Dec 14 11:06:57.85: [29261]: --> [10:NO CARRIER]
Dec 14 11:06:57.85: [29261]: SEND FAILED: JOB 4 DEST 001119690902 ERR [2] No
carrier detected
Dec 14 11:06:58.85: [29261]: <-- [5:ATH0\r]
Dec 14 11:06:58.99: [29261]: --> [2:OK]
Dec 14 11:06:59.12: [29261]: SESSION END




Daniele Gallarato wrote:

Yes, config.ttyUSB0.

Modem work perfectly in receiving direction, and in calling direction place
the call, remote fax machine answer and start handshaking, but hylafax reply
with "no carrier detected".

Thanks
Daniele

John Hudak wrote:

Hmmmm, how did you install the USB modem?
config.ttyUSB0 ?
When I installed my USB modem, it was under config.ttyACM0.  My modem
is a Dell USB, with a Conext chips set.

-John

On Fri, Dec 12, 2008 at 11:27 AM, Daniele Gallarato
<daniele.gallarato@xxxxxxxx> wrote:


Hi all, I'm using hylafax 4.4.4-7 on an ubuntu server.
I'm testing it with a usr modem:

Dec 12 17:16:33 ubuntu-fax FaxGetty[18764]: MODEM USR U.S. Robotics 56K FAX
EXT Rev.
11.16.63/Configuration Profile... Product type CTR-21 External Product ID:
24563004 Options
      V32bis,V.80,V.34+,V.90,V.92 Fax Options Class 1/Class 2.0 Line Options
Caller ID, Distinctive
Ring Clock Freq 92.0Mhz EPROM 256k RAM 32k FLASH date 3/28/2005 FLASH rev
11.16.63 DSP date
     3/28/2005 DSP rev 11.16.63

I'm receiving fax very well, but I can't send them, I suppose is a modem
problem.

The error that I can see is:

FaxSend[17607]: SEND FAILED: JOB 3 DEST 00116319664 ERR [2] No carrier
detected

This happens with any destination.

I've tried to make manually the call, with minicom and ATD command, and
remote fax answer and begin
handshaking.

Maybe I need to change my /etc/hylafax/config.ttyUSB0 configuration?

Thanks
Daniele






--
_______________________________________________________________________
I can learn to compromise - Anything but my desires
I can learn to get along - With all the things I cant explain

-- http://www.saicosamangi.info/ --
_______________________________________________________________________


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






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

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

  
____________________ 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