I have installed martian module for my Linmodem and the modem is
operate.
I need to send faxses and I would like tu use Hylafax-program.
I see that some fax command aren't recognized from modem.
eg:
The commands at.fts= and at.frs=
These commands are fax-protocol-command for class 1 modems that hylafax
have to use in order to drive a class 1 modems, like my.
These commands aren't accepted from my modem on /dev/ttySM0.
Hereafter the trace of probemodem-command:
[root@bul02449 ~]# probemodem
Serial port that modem is connected to []? ttySM0
Now we are going to probe the tty port. This takes a few seconds,
so be patient. Note that if you do not have the modem cabled to
the port, or the modem is turned off, this may hang (just go and
cable up the modem or turn it on, or whatever).
Probing for best speed to talk to modem: 38400 OK.
^[
This looks like a Class 1 modem.
ATI0 RESULT = "OK" RESPONSE = "LT V.92 Data+Fax Modem Version 8.30"
ATI1 RESULT = "OK" RESPONSE = "E49E"
ATI2 RESULT = "OK" RESPONSE = "OK"
ATI3 RESULT = "OK" RESPONSE = "LT V.92 Data+Fax Modem Version 8.30"
ATI4 RESULT = "OK" RESPONSE = "70"
ATI5 RESULT = "OK" RESPONSE = "8.30,0,19,11C1,0445,8086,2204"
ATI6 RESULT = "OK" RESPONSE = "OK"
ATI7 RESULT = "OK" RESPONSE = "OK"
ATI8 RESULT = "OK" RESPONSE = "OK"
ATI9 RESULT = "OK" RESPONSE = "North America"
Class 1 stuff...
AT+FCLASS=? RESULT = "OK" RESPONSE = "0,1"
AT+FCLASS? RESULT = "OK" RESPONSE = "1"
AT+FCLASS=0 RESULT = "OK" RESPONSE = "OK"
AT+FCLASS=1 RESULT = "OK" RESPONSE = "OK"
AT+FCLASS? RESULT = "OK" RESPONSE = "1"
AT+FJUNK=? RESULT = "ERROR" RESPONSE = "ERROR"
AT+FJUNK? RESULT = "ERROR" RESPONSE = "ERROR"
AT+FAA=? RESULT = "OK" RESPONSE = "0,1"
AT+FAA? RESULT = "OK" RESPONSE = "0"
AT+FAE=? RESULT = "ERROR" RESPONSE = "ERROR"
AT+FAE? RESULT = "ERROR" RESPONSE = "ERROR"
AT+FTH=? RESULT = "OK" RESPONSE =
"3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FRH=? RESULT = "OK" RESPONSE =
"3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FTM=? RESULT = "OK" RESPONSE =
"3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FRM=? RESULT = "OK" RESPONSE =
"3,24,48,72,73,74,96,97,98,121,122,145,146"
AT+FTS=? RESULT = "ERROR" RESPONSE = "ERROR"
AT+FRS=? RESULT = "ERROR" RESPONSE = "ERROR"
Here are the hylafax commands that aren't recognized from modem
Hereafter the file config.ttySM0,
[root@bul02449 etc]# cat config.ttySM0
# $Id: class1,v 1.4 2007/01/11 18:36:24 faxguy Exp $
#
# HylaFAX Facsimile Software
#
# Copyright (c) 1990-1996 Sam Leffler
# Copyright (c) 1991-1996 Silicon Graphics, Inc.
# HylaFAX is a trademark of Silicon Graphics, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software
and
# its documentation for any purpose is hereby granted without fee,
provided
# that (i) the above copyright notices and this permission notice
appear in
# all copies of the software and related documentation, and (ii) the
names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY
THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
#
# Generic Class 1 modem configuration.
#
# EDIT THIS CONFIGURATION TO REFLECT YOUR SETUP
#
CountryCode: 39
AreaCode: 02
FAXNumber: +39..........
LongDistancePrefix: 0
InternationalPrefix: 0
DialStringRules: etc/dialrules
ServerTracing: 1
SessionTracing: 0xFFF
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 4
SpeakerVolume: high
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "NothingSetup"
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
Class1SwitchingCmd: AT+FRS=7 # silence between HDLC recv and
trans
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
-------------------------------
my hardware is this hereafter:lspci -v
-------------------------------
00:09.1 Serial controller: Agere Systems LT WinModem (prog-if 00 [8250])
Subsystem: Intel Corporation PRO/100+ MiniPCI on Armada E500
Flags: medium devsel, IRQ 11
I/O ports at 3430 [size=8]
Memory at 41300000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [dc] Power Management version 2
-------------------------------------------
This is the error-log of the communication!
-------------------------------------------
LOG:
lug 23 00:37:27.20: [ 9146]: SESSION BEGIN 000000006 +2700535758
lug 23 00:37:27.20: [ 9146]: HylaFAX (tm) Version 5.1.5
lug 23 00:37:27.20: [ 9146]: SEND FAX: JOB 13 DEST 02700535758 COMMID
000000006 DEVICE '/dev/ttySM0' FROM 'giorgio.pagani
<giorgio.pagani@xxxxxxxxxx>' USER root
lug 23 00:37:27.20: [ 9146]: STATE CHANGE: RUNNING -> SENDING
lug 23 00:37:27.20: [ 9146]: <-- [12:AT+FCLASS=1\r]
lug 23 00:37:27.21: [ 9146]: --> [2:OK]
lug 23 00:37:27.21: [ 9146]: MODEM set XON/XOFF/FLUSH: input ignored,
output disabled
lug 23 00:37:27.21: [ 9146]: DIAL 02700535758
lug 23 00:37:27.21: [ 9146]: <-- [16:ATDT02700535758\r]
lug 23 00:37:54.93: [ 9146]: --> [7:CONNECT]
lug 23 00:37:56.65: [ 9146]: --> HDLC<25:FF C0 02 1C AC EC AC CC AC 0C
0C EC 4C 0C 04 04 04 04 04 04 04 04 04 76 29>
lug 23 00:37:56.65: [ 9146]: --> [2:OK]
lug 23 00:37:56.66: [ 9146]: REMOTE CSI "02700535758"
lug 23 00:37:56.66: [ 9146]: <-- [9:AT+FRH=3\r]
lug 23 00:37:56.69: [ 9146]: --> [7:CONNECT]
lug 23 00:37:56.96: [ 9146]: --> HDLC<9:FF C8 01 00 77 1F 20 D8 D4>
lug 23 00:37:56.96: [ 9146]: --> [2:OK]
lug 23 00:37:56.96: [ 9146]: REMOTE best rate 14400 bit/s
lug 23 00:37:56.96: [ 9146]: REMOTE max A4 page width (215 mm)
lug 23 00:37:56.96: [ 9146]: REMOTE max unlimited page length
lug 23 00:37:56.96: [ 9146]: REMOTE best vres 7.7 line/mm
lug 23 00:37:56.96: [ 9146]: REMOTE format support: MH, MR
lug 23 00:37:56.96: [ 9146]: REMOTE supports T.30 Annex A, 256-byte ECM
lug 23 00:37:56.96: [ 9146]: REMOTE best 0 ms/scanline
lug 23 00:37:56.96: [ 9146]: USE 14400 bit/s
lug 23 00:37:56.96: [ 9146]: USE error correction mode
lug 23 00:37:56.96: [ 9146]: SEND file "docq/doc13.ps;41"
lug 23 00:37:56.96: [ 9146]: USE A4 page width (215 mm)
lug 23 00:37:56.96: [ 9146]: USE unlimited page length
lug 23 00:37:56.96: [ 9146]: USE 7.7 line/mm
lug 23 00:37:56.96: [ 9146]: USE 2-D MR
lug 23 00:37:56.96: [ 9146]: USE 0 ms/scanline
lug 23 00:37:56.96: [ 9146]: SEND training at v.17 14400 bit/s
lug 23 00:37:56.96: [ 9146]: <-- [9:AT+FRS=7\r]
lug 23 00:37:57.12: [ 9146]: --> [2:OK]
lug 23 00:37:57.12: [ 9146]: <-- [9:AT+FTH=3\r]
lug 23 00:37:58.00: [ 9146]: --> [7:CONNECT]
lug 23 00:37:58.00: [ 9146]: <-- HDLC<23:FF C0 C2 0E AE 2E A6 CA E6 76
96 16 2E F6 72 04 04 04 04 04 04 04 04>
lug 23 00:37:58.00: [ 9146]: <-- data [23]
lug 23 00:37:58.00: [ 9146]: <-- data [2]
lug 23 00:37:58.01: [ 9146]: --> [7:CONNECT]
lug 23 00:37:58.01: [ 9146]: <-- HDLC<7:FF C8 C1 00 47 1F 20>
lug 23 00:37:58.01: [ 9146]: <-- data [7]
lug 23 00:37:58.01: [ 9146]: <-- data [2]
lug 23 00:37:59.15: [ 9146]: --> [2:OK]
lug 23 00:37:59.15: [ 9146]: <-- [9:AT+FTS=7\r]
lug 23 00:37:59.20: [ 9146]: --> [0:]
lug 23 00:37:59.20: [ 9146]: MODEM <Empty line>
lug 23 00:37:59.20: [ 9146]: Stop and wait failure (modem on hook)
{E127}
lug 23 00:37:59.20: [ 9146]: SEND: Stop and wait failure (modem on hook)
{E127}; Giving up after 3 attempts to send same page "docq/doc13.ps;41",
dirnum 0
lug 23 00:37:59.20: [ 9146]: <-- [9:AT+FRS=7\r]
lug 23 00:37:59.20: [ 9146]: MODEM WRITE ERROR: errno 5
lug 23 00:37:59.20: [ 9146]: Failure to receive silence (synchronization
failure). {E100}
lug 23 00:37:59.20: [ 9146]: <-- [9:AT+FTH=3\r]
lug 23 00:37:59.20: [ 9146]: MODEM WRITE ERROR: errno 5
lug 23 00:37:59.20: [ 9146]: MODEM input buffering enabled
lug 23 00:37:59.20: [ 9146]: MODEM setInputBuffering::tcgetattr:
Input/output error
lug 23 00:37:59.20: [ 9146]: MODEM tcsetattr: Input/output error
lug 23 00:38:00.20: [ 9146]: <-- [5:ATH0\r]
lug 23 00:38:00.21: [ 9146]: MODEM WRITE ERROR: errno 5
lug 23 00:38:00.21: [ 9146]: MODEM set DTR OFF
lug 23 00:38:00.21: [ 9146]: MODEM set baud rate: 0 baud (flow control
unchanged)
lug 23 00:38:00.21: [ 9146]: MODEM setBaudRate::tcgetattr: Input/output
error
lug 23 00:38:00.21: [ 9146]: STATE CHANGE: SENDING -> MODEMWAIT
(timeout 5)
lug 23 00:38:00.21: [ 9146]: SESSION END
---------------------------------------------------------
From LOG it is possible to see that the communication starts OK but it
hangs after the command:
----------------------------------------------------------
lug 23 00:37:59.15: [ 9146]: <-- [9:AT+FTS=7\r]
lug 23 00:37:59.20: [ 9146]: --> [0:]
lug 23 00:37:59.20: [ 9146]: MODEM <Empty line>
lug 23 00:37:59.20: [ 9146]: Stop and wait failure (modem on hook)
Then there is the hang-up...................
Sorry for my low knowledge about modem-fax-communication.
Best Regards
Giorgio
--
Using free-licensed opensource software: GNU/Linux
powered by Mandriva Linux release 2008.0 (Cooker)
kernel 2.6.21-4mdv on i686
--
Linux Powered
DEBIAN SID
kernel-2.6.21-2-686 ;-)