HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Digiboard's RAS fax/modem card
Hi. I have gotten hold of Digiboard's AccelePort RAS fax/modem card. They
announced that these now come with Linux drivers.
I am trying to get it to work with Hylafax (4.1beta1 for RH 6.0) on a
Redhat 6.0 box, kernel 2.2.13.
I can setup the card to both dial in and out. It is a class 0, 1, 2, 2.0
and 8 card. I have used faxaddmodem to setup the ports and have given the
best guess answers to the AT+F* commands. The following is an extract
from /var/spool/fax/etc/config.modem0:
============================================================================
# Modem-related stuff: should reflect modem command interface
# and hardware connection/cabling (e.g. flow control).
#
ModemType: Class2.0 # use this to supply a hint
#ModemRate: 19200 # max 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 reflects carrier (or not)
#
# We normally 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, @ for silence
#
# 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
#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
#
# Configuration parameters for Class 2.0 modems.
#
Class2Cmd: AT+FCLASS=2.0 # command to enter class 2.0
Class2BORCmd: AT+FBOR=0
Class2CQCmd: AT+FCQ=0
Class2AbortCmd: AT+FK
Class2CQQueryCmd: AT+FCQ=? # query for copy quality capabilities
Class2DCCQueryCmd: AT+FDCS?
Class2TBCCmd:
Class2CRCmd: AT+FCR=1 # enable capability to receive
Class2PHCTOCmd: AT+FPHCTO=30
Class2BUGCmd:
Class2LIDCmd: AT+FLID
Class2DCCCmd: AT+FDCC
Class2DISCmd: AT+FDIS
Class2DDISCmd: "" # disable pre-dial DIS command hack
Class2CIGCmd: AT+FCIG
Class2NRCmd:
Class2PIECmd:
Class2PTSCmd: AT+FPS # set post-page status command
Class2SPLCmd: AT+FSPL
Class2NFLOCmd:
Class2SFLOCmd:
Class2HFLOCmd:
============================================================================
I have also setup faxgetty to wait on the modem0 port and restarted the
hylafax servers.
However, the problem I am having is that when the command AT+FCC=? is sent,
the reply is:
+FCC: (0-1),(0-5),(0-4),(0-2),(0-3),(0-1),0,(0-7)
the preceding +FCC: seems to confuses the FaxSend program and I cannot proceed.
The relevant output from /var/log/messages is shown below:
Nov 11 16:01:02 touccan FaxSend[3177]: MODEM set DTR ON
Nov 11 16:01:02 touccan FaxSend[3177]: MODEM set baud rate: 19200 baud, input flow NONE, output flow NONE
Nov 11 16:01:02 touccan FaxSend[3177]: MODEM flush i/o
Nov 11 16:01:02 touccan FaxSend[3177]: <-- [15:ATE0V1Q0S0=0H0\r]
Nov 11 16:01:02 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:02 touccan FaxSend[3177]: <-- [12:ATS8=2S7=60\r]
Nov 11 16:01:03 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:03 touccan FaxSend[3177]: <-- [12:AT+FCLASS=?\r]
Nov 11 16:01:03 touccan FaxSend[3177]: --> [11:0,1,2,2.0,8]
Nov 11 16:01:03 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:03 touccan FaxSend[3177]: MODEM Supports "Data"
Nov 11 16:01:03 touccan FaxSend[3177]: MODEM Supports "Class 1"
Nov 11 16:01:03 touccan FaxSend[3177]: MODEM Supports "Class 2"
Nov 11 16:01:03 touccan FaxSend[3177]: MODEM Supports "Class 2.0"
Nov 11 16:01:03 touccan FaxSend[3177]: MODEM Supports "Voice"
Nov 11 16:01:03 touccan FaxSend[3177]: <-- [14:AT+FCLASS=2.0\r]
Nov 11 16:01:03 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:03 touccan FaxSend[3177]: <-- [8:AT+FMI?\r]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [18:Digi International]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:04 touccan FaxSend[3177]: MODEM: Mfr Digi International
Nov 11 16:01:04 touccan FaxSend[3177]: <-- [8:AT+FMM?\r]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [15:RAS modem 56000]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:04 touccan FaxSend[3177]: <-- [8:AT+FMR?\r]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [20:V80006691_J3P-K56_DS]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:04 touccan FaxSend[3177]: MODEM: Model RAS modem 56000
Nov 11 16:01:04 touccan FaxSend[3177]: MODEM: Revision V80006691_J3P-K56_DS
Nov 11 16:01:04 touccan FaxSend[3177]: <-- [9:AT+FCC=?\r]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [49:+FCC: (0-1),(0-5),(0-4),(0-2),(0-3),(0-1),0,(0-7)]
Nov 11 16:01:04 touccan FaxSend[3177]: --> [2:OK]
Nov 11 16:01:04 touccan FaxSend[3177]: Error parsing AT+FCC=? response: "+FCC: (0-1),(0-5),(0-4),(0-2),(0-3),(0-1),0,(0-7)"
Nov 11 16:01:04 touccan FaxSend[3177]: MODEM set DTR OFF
Nov 11 16:01:04 touccan FaxSend[3177]: /dev/modem0: Can not initialize modem.
Nov 11 16:23:28 touccan FaxSend[4010]: Unable to setup modem on /dev/modem0; giving up after 2 attempts
==================================================================
I am not good at C++ and need help in fixing the code. Appreciate any help.
Regards.
Harish