[linux-l] Fax senden - Modemproblem

Christian Kinze krinze at web.de
Fr Mai 26 19:47:19 CEST 2006


Hallo,

Ich suche eine Lösung, um mit Linux gelegentlich ein Fax *SENDEN* zu können.
Am liebsten aus openoffice heraus mit Druckbefehl (ist aber kein Muss).
Faxe empfangen brauche ich nicht!


Technische Umgebung:
Telefonleitung analog
Notebook mit internem winmodem (funktioniert z.Zt. gut für 
Internetverbindung)
Ubuntu 5.10, gnome-Desktop

Habe zuletzt folgendes versucht:
gfax, mgetty , mgetty-fax installiert.
Mit dem Frontend gfax (benutzt *mgetty+sendfax*, kein hylafax) habe ich 
erfolgreich einen Auftrag "Datei versenden" in /var/spool/fax/outgoing 
gestellt.

Problem:
Senden klappt nicht, hat wohl was mit modem-class zu tun. Keine Ahnung 
davon.

Sieht so aus, als müsste ich meinem Modem sagen, dass es class2 ist.
Oder der Faxsoftware beibringen, mit class0 zurechtzukommen??

Folgendes  war voreingestellt:
Modem-initialisierungs-string=ATZ, Handshake=<leer>, Wählkommando=ATDT


Auszug aus /var/spool/fax/outgoing/F000004/Job :>>>>
phone 54535
input /home/chris/test2.txt
pages  f1.g3
user chris
Status Fr Mai 26 16:41:07 CEST 2006 failed, exit(3): modem 
initialization error
<<<<<


 >>>Auszug aus /var/log/mygetty/fax/sendfax.log >>>>>

05/26 16:49:03 dem  fax_send: 'AT+FCLASS=0'
--
05/26 16:50:01  something foul in config line: 'debug-level 5'
05/26 16:50:01      (keyword 'debug-level' not found)
05/26 16:50:01  sendfax: interim release 1.1.33-Apr10
05/26 16:50:01  sending fax to 54535
05/26 16:50:01  checking f1.g3
05/26 16:50:01 dem  something foul in config line: 'debug-level 5'
05/26 16:50:01 dem      (keyword 'debug-level' not found)
          ## wegen debug-level-Fehler siehe auch unten: Auszug aus Datei 
"sendfax.config". chris
05/26 16:50:03 dem  mdm_send: 'ATV1Q0' -> OK
05/26 16:50:03 dem  fax_send: 'ATZ'
05/26 16:50:03 dem  fax_wait_for(OK)** found **
05/26 16:50:03 dem  mdm_send: 'ATI'
05/26 16:50:03 dem  non-numeric ID string: 'SmartLink Soft Modem'
05/26 16:50:03 dem  mdm_send: 'AT+FCLASS=2.0' -> ERROR
05/26 16:50:03 dem  mdm_send: 'AT+FCLASS=2' -> ERROR
05/26 16:50:03 ##### failed: no class 2/2.0 fax modem, dev=modem

05/26 16:50:03 dem  fax_send: 'AT+FCLASS=0'
<<<<


Ich hatte einen link /dev/modem -> /dev/pts/0 erstellt wegen (siehe 
Internetverbindung, Schritt 2)


-----------------------
Weitere Informationen
-----------------------

So verbinde ich regelmäßig mit dem Internet

Schritt 1) ...# modprobe snd-intel8x0m

 >>>>>>Schritt  2)
root at ubuntu51:/home/chris# slmodemd --alsa -c GERMANY modem:1

SmartLink Soft Modem: version 2.9.11 Jan 19 2006 21:19:22
symbolic link `/dev/ttySL0' -> `/dev/pts/0' created.
modem `modem:1' created. TTY is `/dev/pts/0'
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.
<<<<
Die obigen Schritte 1 und 2 werden normalerweise per Script beim booten 
erledigt.

Und dann per Hand Schritt 3)
 >>>>>>>>>>>>>>>
chris at ubuntu51:~$ sudo wvdial 24profi

--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT01936844
--> Waiting for carrier.
ATDT01936844
CONNECT 46667
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Fri May 26 18:02:55 2006
--> pid of pppd: 13043
--> Using interface ppp0
--> pppd:  +FCLASS=0
--> pppd:  +FCLASS=0
--> pppd:  +FCLASS=0
--> pppd:  +FCLASS=0
--> local  IP address 83.176.134.91
--> pppd:  +FCLASS=0
--> remote IP address 212.151.128.74
--> pppd:  +FCLASS=0
--> primary   DNS address 130.244.127.161
--> pppd:  +FCLASS=0
--> secondary DNS address 130.244.127.169
--> pppd:  +FCLASS=0
<<<<<<<<<<<<<<
und surfen geht zuverlässig (wenn auch langsm)!

Hier noch die Datei "sendfax.config", habe ich beeinflusst durch GUI  
gfax  >>>>>
#Sendfax.config
#
#This file has beed created by GFax.  It will be over written
#every time Gfax's mgetty setup is changed.
#
#If you want to edit this file by hand, disable this option in Gfax.


#Specifies an `AT...' command that is to be sent to the modem right
#at the *beginning* of all modem talk (even before setting the modem
#into fax mode, so this could be an `ATZ' if you want to reset the
#modem).

modem-init ATZ

#Sets the fax modem to use, e.g. tty1a.

fax-devices modem            

#Set the port speed to use for fax send operations. Usually,
#`38400' is a good choice, but a few dumb modems (for example, some
#based on rockwell chipsets) need `19200' or even `9600'. A few
#modems can go higher, but `sendfax' may not support it, and it may
#not always work.

speed 38400

#Force the modem command set to use. Default is `auto' (auto-detect,
#which may not work on very cheap modems), possible other values are
#`cls2', for "class 2 only" modems, and `c2.0' for "class 2.0"
#faxmodems.

modem-type auto

#Some misbehaving modems lower the DCD (carrier detect) line briefly
#between sending multiple pages.  Depending on the operating system
#used, this may cause all subsequent port accesses on this serial
#port to fail.  You'll recognize it if you get a "weird-looking"
#sendfax log file that works fine up to the end of the first page,
#and then aborts with `I/O error' or so.

ignore-carrier N

#Specify the maximum number of tries per page if the receiving end
#reports reception errors. If NNN tries do not suffice to
#successfully transmit a page, `sendfax' will give up or simply go
#on. If this is set to `0', `sendfax' will ignore retransmission
#requests and simply go on.

max-tries 3

#After the maximum number of tries for one page are reached,
#`sendfax' can report an error and abort (`max-tries-continue NO'),
#or go on with the next page (YES)

max-tries-continue N

#This is the command used for dialing out. Usually this will be
#something simple, as `ATD' or `ATDP', but if you have an unusual
#setup, it could also be something like `ATX0DP0;X4DT' (meaning:
#switch off dial-tone detection, pulse-dial `0', back to command
#mode, switch on dial-tone detection, and go ahead dialing with
#touch tones). The phone number will be sent right after the
#`dial-prefix'.

dial-prefix ATDT

#Controls the amount of information written into the fax log file
#(`FAX_LOG' in `policy.h'). `0' means "totally silent" (not even
#errors are written), `9' is really noisy. I usually use `3' or `4'
#in normal use, and `6' for debugging.

debug-level 5      
## Kommentar von chris: debug-level 9 bringt auch nicht mehr!

#A few modems respond to raising the DTR line (when opening the
#device) with `OK'.  This can confuse `sendfax', because it will see
#this OK as response to the next command.

#The only modem that needs this so far is an ELSA 33.6, and
#delaying for about 1500 ms cured the problem.

open-delay 2000
<<<<

Ist eine lange Email geworden, aber ich dachte, lieber zuviel 
Informationen geben als zuwenig.
Würde mich über wertvolle Tipps sehr freuen.  Bin auch für andere 
Lösungsansätze offen, wenn sie funktionieren.

Danke im Voraus
Christian






Mehr Informationen über die Mailingliste linux-l