Receiving fax with mgetty
Volker Englisch (eh@rabbit.allgaeu.org)
27 Oct 1999 1906:47:30 +0200
Well, first of all I have to admit that I wonder what language was
the right one to use in this de.* newsgroup, for most articles seem to
be written in English. So I'll try to write in English, too, being
curious about the things that will happen...
Does anyone have experience with receiving fax by means of mgetty? In
general, sending faxes works fine here, they are prepared using
faxspool and sent out using faxrunq once per night. The modem ist an
elder one, 14400 bps max., that ran with a DOS system formerly and
showed that is was able to send and receive fax documents. Actually the
OS is (Debian) Linux, but it is still the same modem (and the same
cable!) between the modem and the machine.
When a fax call comes in, the modem goes offhook and sends the typical
fax answer tones. But after a few seconds of handshake the connection
terminates, and the follwing e-mail is sent to the root user:
------------------------------- cut --------------------------------
Subject: fax from _ _
To: root
From: root (Fax Getty)
An incoming fax transmission failed (+FHNG: 70):
Sender ID: _ _
Pages received: 0
Modem device: ttyS0
Communication parameters: +FDCS: 1,3,2,1,0,0,0,7
Resolution : fine
Bit Rate : 9600
Page Width : 2432 pixels
Page Length: B4 (364 mm)
Compression: 0 (1d mod Huffman)
Error Corr.: none
Scan Time : 7
Reception Time : 00:42
The fax receive was *not* fully successful
The Modem returned +FHNG: 70
(Unspecified Receive Phase B error)
regards, your modem subsystem.
------------------------------- cut --------------------------------
/var/log/mgetty/mg_ttyS0.log shows:
--
10/22 17:38:19 yS0 mgetty: experimental test release 1.1.14-Apr02
10/22 17:38:19 yS0 check for lockfiles
10/22 17:38:19 yS0 locking the line
10/22 17:38:20 yS0 WARNING: DSR is off - modem turned off or bad cable?
10/22 17:38:20 yS0 lowering DTR to reset Modem
10/22 17:38:20 yS0 send: \d\d\d+++\d\d\dAT&F2L1[0d]
10/22 17:38:23 yS0 waiting for ``OK'' ** found **
10/22 17:38:24 yS0 mdm_send: 'ATI'
10/22 17:38:24 yS0 unknown numerical modem id 242
10/22 17:38:24 yS0 mdm_send: 'AT+FCLASS=2.0' -> ERROR
10/22 17:38:24 yS0 mdm_send: 'AT+FCLASS=2' -> OK
10/22 17:38:24 yS0 mdm_send: 'AT+FAA=0;+FCR=1' -> OK
10/22 17:38:25 yS0 mdm_send: 'AT+FBOR=0' -> OK
10/22 17:38:25 yS0 mdm_send: 'AT+FLID="+49 8382 23014"' -> OK
10/22 17:38:25 yS0 mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK
10/22 17:38:26 yS0 waiting...
10/22 17:38:28 ##### failed dev=ttyS0, pid=361, got signal 15, exiting
------------------------------- cut --------------------------------
/etc/inittab shows:
T0:23:respawn:/sbin/mgetty -n1 -F ttyS0
and /etc/mgetty/mgetty.config contains:
fax-id +49 8382 99999
fax-owner root
fax-group uucp
fax-mode 0640
port ttyS0
speed 38400
switchbd 19200
init-chat "" \d\d\d+++\d\d\dAT&F2L1 OK
data-only n
For test purposes, I omitted the keyword "switchbd" and re-initialized
mgetty, but there was no different behaviour then. Any idea what's
going wrong?
I also can't understand the reason for the warning about DSR being off
- the same modem and cable is used for UUCP and works fine, even with a
higher bps rate between the modem and computer. Btw., the computer is a
i386, with a 16550A serial chip.
Thanks in advance
cu
Volker