HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
"unable to setup modem on /dev/cua2" problems
The system:
Pentium 166, GVC 33.6 modem (that all ATI commands report as a USR), Redhat
Linux 5.0
The situation:
Outgoing faxes work just find. I can send faxes to my heart's content. But, for
the life of my, I cannot setup faxgetty for incoming faxes. It constantly
reports it's Unable to setup the modem. I think this is a problem with what my
modem reports for the class query, but, it works for outgoing. Basically, after
sending the AT+FCLASS=? command, the modem returns the 0,1,2.0 response, OK and
then faxgetty thinks something failed and says:
/dev/cua2: Can not initialize modem.
I'm stumpped. I've read the docs, the FAQ's, and can't seem to figure this one
out. No doubt it's something simple I am missing.
Help.
Below is a session from faxgetty as well as my config for the modem.
Jan 8 15:07:59 babylon5 FaxGetty[19348]: OPEN /dev/cua2
Jan 8 15:07:59 babylon5 FaxGetty[19348]: MODEM set DTR OFF
Jan 8 15:08:02 babylon5 FaxGetty[19348]: MODEM set DTR ON
Jan 8 15:08:02 babylon5 FaxGetty[19348]: MODEM set baud rate: 38400 baud, input
flow RTS
/CTS, output flow RTS/CTS
Jan 8 15:08:02 babylon5 FaxGetty[19348]: MODEM flush i/o
Jan 8 15:08:02 babylon5 FaxGetty[19348]: <-- [17:ATE0V1Q0X4S0=0H0\r]
Jan 8 15:08:02 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:08:02 babylon5 FaxGetty[19348]: <--
[32:ATS8=2S7=60&H1&I0&R2S13=1&D2&C1\r]
Jan 8 15:08:02 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:08:02 babylon5 FaxGetty[19348]: <-- [12:AT+FCLASS=?\r]
Jan 8 15:08:02 babylon5 FaxGetty[19348]: --> [7:0,1,2.0]
Jan 8 15:08:02 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:08:02 babylon5 FaxGetty[19348]: MODEM set DTR OFF
Jan 8 15:08:02 babylon5 FaxGetty[19348]: /dev/cua2: Can not initialize modem.
Jan 8 15:08:32 babylon5 FaxGetty[19348]: MODEM set DTR OFF
Jan 8 15:08:32 babylon5 FaxGetty[19348]: DELAY 2600 ms
Jan 8 15:08:35 babylon5 FaxGetty[19348]: MODEM set DTR ON
Jan 8 15:08:35 babylon5 FaxGetty[19348]: MODEM set baud rate: 38400 baud, input
flow RTS
/CTS, output flow RTS/CTS
Jan 8 15:08:35 babylon5 FaxGetty[19348]: MODEM flush i/o
Jan 8 15:08:35 babylon5 FaxGetty[19348]: <-- [17:ATE0V1Q0X4S0=0H0\r]
Jan 8 15:08:35 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:08:35 babylon5 FaxGetty[19348]: <--
[32:ATS8=2S7=60&H1&I0&R2S13=1&D2&C1\r]
Jan 8 15:08:36 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:08:36 babylon5 FaxGetty[19348]: <-- [12:AT+FCLASS=?\r]
Jan 8 15:08:36 babylon5 FaxGetty[19348]: --> [7:0,1,2.0]
Jan 8 15:08:36 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:08:36 babylon5 FaxGetty[19348]: MODEM set DTR OFF
Jan 8 15:09:06 babylon5 FaxGetty[19348]: MODEM set DTR OFF
Jan 8 15:09:06 babylon5 FaxGetty[19348]: DELAY 2600 ms
Jan 8 15:09:09 babylon5 FaxGetty[19348]: MODEM set DTR ON
Jan 8 15:09:09 babylon5 FaxGetty[19348]: MODEM set baud rate: 38400 baud, input
flow RTS
/CTS, output flow RTS/CTS
Jan 8 15:09:09 babylon5 FaxGetty[19348]: MODEM flush i/o
Jan 8 15:09:09 babylon5 FaxGetty[19348]: <-- [17:ATE0V1Q0X4S0=0H0\r]
Jan 8 15:09:09 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:09:09 babylon5 FaxGetty[19348]: <--
[32:ATS8=2S7=60&H1&I0&R2S13=1&D2&C1\r]
Jan 8 15:09:09 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:09:09 babylon5 FaxGetty[19348]: <-- [12:AT+FCLASS=?\r]
Jan 8 15:09:09 babylon5 FaxGetty[19348]: --> [7:0,1,2.0]
Jan 8 15:09:09 babylon5 FaxGetty[19348]: --> [2:OK]
Jan 8 15:09:09 babylon5 FaxGetty[19348]: MODEM set DTR OFF
Jan 8 15:09:09 babylon5 FaxGetty[19348]: Unable to setup modem on /dev/cua2;
giving up a
fter 2 attempts
Jan 8 15:09:09 babylon5 FaxGetty[19348]: CLOSE /dev/cua2
This is basically the usr-2.0 config since the modem reports itself as a USR
Sportster 33.6 modem even bought I got in a GVC box.
ModemType: Class2.0 # use class 2.0 interface
ModemRate: 38400 # DCE-DTE communication rate
ModemFlowControl: rtscts # XON/XOFF flow control assumed
#
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
#
ModemSetupDTRCmd: ATS13=1&D2 # setup so DTR drop resets modem
ModemSetupDCDCmd: AT&C1 # setup so DCD reflects carrier (or not)
ModemResultCodesCmd: ATQ0X4 # enable extended result codes
#
# NB: adaptive answer only seems to work properly when
# the modem is left idling in Class 2.0
#
#ModemSetupAACmd: AT+FAA=1
#
# Set modem speaker volume commands: OFF QUIET LOW MEDIUM HIGH.
# Note that we both turn the speaker on/off and set volume.
#
ModemSetVolumeCmd: "ATM0 ATM1L0 ATM1L1 ATM1 ATM1"
#
# Modem does not support HDLC frame tracing; we add this just
# to eliminate spurious ERROR results that confuse the naive.
#
Class2BUGCmd: AT+FBU=0
#
# The modem doesn't support copy quality checking, even though it
# returns (0-2,0-2) for AT+FCQ=?; therefore we override the query
# response so that the server will do copy quality checking.
#
Class2CQQueryCmd: !(0),(0) # override modem response
--
-------------------------------------------------------------------------
Mark Buckaway | mark@datasoft.on.ca | http://www.datasoft.on.ca/~mark
=========================================================================
Microshaft: How do YOU want to crash today?
=========================================================================
Join a list! Email majordomo@datasoft.on.ca for:
jokes - the Jokes and Funny mailing list
movies - the movie review and discussion list
bitch - the Bitch and Complain list (vent frustrations here)
=========================================================================
21000 recipes online! Check out http://www.recipepages.com
-------------------------------------------------------------------------