mgetty
Malcolm Agnew (malcolm@cosa.concept-asa.de)
Tue, 31 Oct 1995 15:23:00 +0100
Hello -
I have been trying without any success to get mgetty+sendfax to run
on our Sony NEWS 1850 Workstation - more or less vanilla BSD4.3. -
without as yet any signs of success. The modem is a ZyXEL U-1496E PLUS
(but I have no idea what the ROM version is or how to find out).
I have tried various complier options which seem to lead to the same results.
The following is a context diff of policy.h and policy.h-dist
===================================================================
*** policy.h Mon Oct 30 17:46:48 1995
--- policy.h-dist Wed Nov 9 10:19:00 1994
***************
*** 103,109 ****
* with log_level L_FATAL) and writing to CONSOLE is not possible,
* the logfile will be mailed to him
*/
! #define ADMIN "malcolm"
/* Syslog
*
--- 103,109 ----
* with log_level L_FATAL) and writing to CONSOLE is not possible,
* the logfile will be mailed to him
*/
! #define ADMIN "root"
/* Syslog
*
***************
*** 127,133 ****
/* System name - printed at login prompt
* If you do not define this, the uname() call will be used
*/
! #define SYSTEM "cosa"
/* Login prompt
* The "@", "\\D" and "\\T" escapes will be replaced by SYSTEM, the
--- 127,133 ----
/* System name - printed at login prompt
* If you do not define this, the uname() call will be used
*/
! /* #define SYSTEM "greenie" */
/* Login prompt
* The "@", "\\D" and "\\T" escapes will be replaced by SYSTEM, the
***************
*** 153,159 ****
* (after that time a warning will be issued, after that, the call is
* dropped). To disable that feature, do not define it.
*/
! #define MAX_LOGIN_TIME 30
/* nologin file
*
--- 153,159 ----
* (after that time a warning will be issued, after that, the call is
* dropped). To disable that feature, do not define it.
*/
! #define MAX_LOGIN_TIME 240
/* nologin file
*
***************
*** 191,197 ****
#endif
#ifndef LOCK
! #define LOCK "/usr/spool/uucp/LCK/LCK..%s"
#endif
/* Set this to "1" if your system uses binary lock files (i.e., the pid
--- 191,197 ----
#endif
#ifndef LOCK
! #define LOCK "/usr/spool/uucp/LCK..%s"
#endif
/* Set this to "1" if your system uses binary lock files (i.e., the pid
***************
*** 337,344 ****
/* This is the flow control used for normal data (login) connections
* Set it to FLOW_HARD except in very special cases.
*/
! /* #define DATA_FLOW FLOW_HARD*/
! #define DATA_FLOW FLOW_SOFT
/* This is the flow control used for incoming fax connections
* Wrong settings will result in missing lines or erroneous lines
--- 337,343 ----
/* This is the flow control used for normal data (login) connections
* Set it to FLOW_HARD except in very special cases.
*/
! #define DATA_FLOW FLOW_HARD
/* This is the flow control used for incoming fax connections
* Wrong settings will result in missing lines or erroneous lines
***************
*** 345,352 ****
* in most of the received faxes.
* Most faxmodems expect Xon/Xoff, few honour the RTS line.
*/
! /* #define FAXREC_FLOW FLOW_HARD | FLOW_SOFT */
! #define FAXREC_FLOW FLOW_SOFT
/* And this is for sending faxes
*
--- 344,350 ----
* in most of the received faxes.
* Most faxmodems expect Xon/Xoff, few honour the RTS line.
*/
! #define FAXREC_FLOW FLOW_HARD | FLOW_SOFT
/* And this is for sending faxes
*
***************
*** 360,367 ****
* log file, your modem is propably doing software flow control - and
* you've definitely set FAXSEND_FLOW to FLOW_HARD...
*/
! /* #define FAXSEND_FLOW FLOW_HARD | FLOW_SOFT */
! #define FAXSEND_FLOW FLOW_SOFT
/* if your faxmodem switches to 19200 bps just after sending the "+FCON"
* message to the host, define this. (Not important if you have the
--- 358,364 ----
* log file, your modem is propably doing software flow control - and
* you've definitely set FAXSEND_FLOW to FLOW_HARD...
*/
! #define FAXSEND_FLOW FLOW_HARD | FLOW_SOFT
/* if your faxmodem switches to 19200 bps just after sending the "+FCON"
* message to the host, define this. (Not important if you have the
***************
*** 393,399 ****
* but some do only allow digits and blank
* AT+FLID=? should tell you what's allowed and what not.
*/
! #define FAX_STATION_ID "49 69 590947"
/* ------ sendfax-specific stuff follows here -------- */
--- 390,396 ----
* but some do only allow digits and blank
* AT+FLID=? should tell you what's allowed and what not.
*/
! #define FAX_STATION_ID "49 89 3243328"
/* ------ sendfax-specific stuff follows here -------- */
***************
*** 500,506 ****
/* where to send notify mail about incoming faxes to
* (remember to create an mail alias if no such user exists!)
*/
! #define MAIL_TO "malcolm"
/* after a fax has arrived, mgetty can call a program for further
* processing of this fax.
--- 497,503 ----
/* where to send notify mail about incoming faxes to
* (remember to create an mail alias if no such user exists!)
*/
! #define MAIL_TO "faxadmin"
/* after a fax has arrived, mgetty can call a program for further
* processing of this fax.
=====================================================
and these are the last options I tried in the Makefile
but most combinations earlier.
CFLAGS= -g -Dsunos4 -D_NOSTDLIB_H -DBSD -I. -DPOSIX_TERMIOS -DBROKEN_VTIME
also tried # -DBSD_SGTTY -DBSDSTATFS -DUSTAT
This is the line in /etc/ttys
tty00 "/usr/local/sbin/mgetty -x 9 -s 9600 tty00" unknown on remote
The Sony does not have any device cua* (at leat not documented).
When mgetty is running basically nothing works - for instance if I try
to start kermit then I cannot even issue an ATZ. Usually the modem
does not pick up the line if there is an incoming fax or i.e. kermit
connection. If the line is answered then rubbish appears for kermit and
not a login. No log file is written in "/tmp/log_mg.%s" but locks are
created in /usr/spool/uucp/LCK.
On disabling mgetty in /etc/ttys I tried to send a fax with the following
result (when mgetty is running nothing happens).
% /usr/local/sbin/sendfax -x 9 -l /dev/tty00 -v 590901 tiger.g3.1
Trying fax device '/dev/tty00'... OK.
Dialing 590901... OK.
sending 'tiger.g3.1'...
ERROR: RTN: page bad - retrain requested
sending page again (retry 1)
sending 'tiger.g3.1'...
^C
%
This is /usr/spool/fax/Faxlog
--
10/30 18:07:44 sending fax to 590901
10/30 18:07:44 checking tiger.g3.1
10/30 18:07:44 makelock(tty00) called
10/30 18:07:44 do_makelock: lock='/var/spool/locks/LCK..tty00'
10/30 18:07:45 lock made
10/30 18:07:45 tio_set_flow_control( )
10/30 18:07:45 00 fax_open_device succeeded, tty00 -> 4
10/30 18:07:45 00 fax_send: 'AT'
10/30 18:07:45 00 fax_wait_for(OK)
10/30 18:07:45 00 got:
10/30 18:09:45 00 Warning: got alarm signal!
10/30 18:09:45 00 fax_read_byte: read returned -1: Interrupted system call
10/30 18:09:45 00 fax_get_line: cannot read byte, return: Interrupted system call
10/30 18:09:45 00 cannot set modem to fax mode: Interrupted system call
10/30 18:09:45 00 fax_send: 'AT+FCLASS=0'
10/30 18:09:45 00 removing lock file
--
10/30 18:12:40 sending fax to 590901
10/30 18:12:40 checking tiger.g3.1
10/30 18:12:40 makelock(tty00) called
10/30 18:12:40 do_makelock: lock='/var/spool/locks/LCK..tty00'
10/30 18:12:40 lock made
10/30 18:12:40 tio_set_flow_control( )
10/30 18:12:40 00 fax_open_device succeeded, tty00 -> 4
10/30 18:12:40 00 fax_send: 'AT'
10/30 18:12:40 00 fax_wait_for(OK)
10/30 18:12:40 00 got:AT[0d]
10/30 18:12:40 00 fax_wait_for: string 'AT'
10/30 18:12:40 00 got:[0d][0a]OK[0d]
10/30 18:12:40 00 fax_wait_for: string 'OK'** found **
10/30 18:12:40 00 fax_send: 'AT+FCLASS=2.0'
10/30 18:12:40 00 got:[0a]AT+FCLASS=2.0[0d]
10/30 18:12:40 00 mdm_command: string 'AT+FCLASS=2.0'
10/30 18:12:40 00 got:[0d][0a]ERROR[0d]
10/30 18:12:40 00 mdm_command: string 'ERROR' -> ERROR
10/30 18:12:40 00 fax_send: 'AT+FCLASS=2'
10/30 18:12:40 00 got:[0a]AT+FCLASS=2[0d]
10/30 18:12:40 00 mdm_command: string 'AT+FCLASS=2'
10/30 18:12:40 00 got:[0d][0a]OK[0d]
10/30 18:12:40 00 mdm_command: string 'OK' -> OK
10/30 18:12:40 00 fax_send: 'AT+FLID="49 69 590947"'
10/30 18:12:40 00 got:[0a]AT+FLID="49 69 590947"[0d]
10/30 18:12:40 00 mdm_command: string 'AT+FLID="49 69 590947"'
10/30 18:12:40 00 got:[0d][0a]OK[0d]
10/30 18:12:40 00 mdm_command: string 'OK' -> OK
10/30 18:12:40 00 fax_send: 'AT+FDCC=1,5,0,2,0,0,0,0'
10/30 18:12:40 00 got:[0a]AT+FDCC=1,5,0,2,0,0,0,0[0d]
10/30 18:12:40 00 mdm_command: string 'AT+FDCC=1,5,0,2,0,0,0,0'
10/30 18:12:40 00 got:[0d][0a]OK[0d]
10/30 18:12:40 00 mdm_command: string 'OK' -> OK
10/30 18:12:40 00 fax_send: 'AT+FBOR=0'
10/30 18:12:40 00 got:[0a]AT+FBOR=0[0d]
10/30 18:12:40 00 mdm_command: string 'AT+FBOR=0'
10/30 18:12:40 00 got:[0d][0a]OK[0d]
10/30 18:12:40 00 mdm_command: string 'OK' -> OK
10/30 18:12:40 00 fax_send: 'AT&H3'
10/30 18:12:40 00 got:[0a]AT&H3[0d]
10/30 18:12:40 00 mdm_command: string 'AT&H3'
10/30 18:12:40 00 got:[0d][0a]OK[0d]
10/30 18:12:40 00 mdm_command: string 'OK' -> OK
10/30 18:12:40 00 fax_send: 'ATD590901'
10/30 18:12:40 00 fax_wait_for(OK)
10/30 18:12:40 00 got:[0a]ATD590901[0d]
10/30 18:12:40 00 fax_wait_for: string 'ATD590901'
10/30 18:12:40 00 got:[0d][0a]+FCON[0d]
10/30 18:12:57 00 fax_wait_for: string '+FCON'
10/30 18:12:57 00 got:[0a][0d][0a]+FNSF:00 00 00 00 [0d]
10/30 18:12:57 00 fax_wait_for: string '+FNSF:00 00 00 00 '
10/30 18:12:57 00 got:[0a][0a]+FCSI: [0d]
10/30 18:12:57 00 fax_wait_for: string '+FCSI: '
10/30 18:12:57 00 fax_id: '+FCSI: '
10/30 18:12:57 00 got:[0a][0a][0d][0a][0a]+FDIS:1,3,0,2,1,0,0,4[0d]
10/30 18:12:57 00 fax_wait_for: string '+FDIS:1,3,0,2,1,0,0,4'
10/30 18:12:57 00 got:[0a][0d][0a]OK[0d]
10/30 18:12:57 00 fax_wait_for: string 'OK'** found **
10/30 18:12:57 00 fax_send_page("tiger.g3.1") started...
10/30 18:12:57 00 tio_set_flow_control( )
10/30 18:12:57 00 fax_send: 'AT+FDT'
10/30 18:12:57 00 fax_wait_for(CONNECT)
10/30 18:12:57 00 got:[0a]AT+FDT[0d]
10/30 18:12:57 00 fax_wait_for: string 'AT+FDT'
10/30 18:12:57 00 got:[0d][0a]+FDCS:1,3,0,2,0,0,0,4[0d]
10/30 18:13:03 00 fax_wait_for: string '+FDCS:1,3,0,2,0,0,0,4'
10/30 18:13:03 00 transmission par.: '+FDCS:1,3,0,2,0,0,0,4'
10/30 18:13:03 00 got:[0a][0d][0a]CONNECT[0d]
10/30 18:13:03 00 fax_wait_for: string 'CONNECT'** found **
10/30 18:13:03 00 waiting for XON, got:[0a][11]
10/30 18:13:03 00 tio_set_flow_control( XON_OUT )
10/30 18:13:03 00 sending tiger.g3.1...
10/30 18:13:03 00 skipping over GhostScript header
10/30 18:13:03 00 read 64, write 0
...
...
10/30 18:17:29 00 read 64, write 64
10/30 18:17:29 00 read 64, write 64
10/30 18:17:29 00 read 56, write 57
10/30 18:17:29 00 page complete, 257348 bytes sent
10/30 18:17:29 00 sending DLE ETX...
10/30 18:17:29 00 fax_wait_for(OK)
10/30 18:17:29 00 got:[0d][0a]OK[0d]
10/30 18:17:33 00 fax_wait_for: string 'OK'** found **
10/30 18:17:33 00 fax_send: 'AT+FET=2'
10/30 18:17:33 00 fax_wait_for(OK)
10/30 18:17:33 00 got:[0a]AT+FET=2[0d]
10/30 18:17:33 00 fax_wait_for: string 'AT+FET=2'
10/30 18:17:33 00 got:[0d][0a]+FPTS:2[0d]
10/30 18:17:36 00 fax_wait_for: string '+FPTS:2'
10/30 18:17:36 00 page status: +FPTS:2
10/30 18:17:36 00 got:[0a][0d][0a]OK[0d]
10/30 18:17:36 00 fax_wait_for: string 'OK'** found **
10/30 18:17:36 00 fax_send_page("tiger.g3.1") started...
10/30 18:17:36 00 tio_set_flow_control( )
10/30 18:17:36 00 fax_send: 'AT+FDT'
10/30 18:17:36 00 fax_wait_for(CONNECT)
10/30 18:17:36 00 got:[0a]AT+FDT[0d]
10/30 18:17:36 00 fax_wait_for: string 'AT+FDT'
10/30 18:17:36 00 got:[0d][0a]+FDCS:1,3,0,2,0,0,0,4[0d]
10/30 18:17:42 00 fax_wait_for: string '+FDCS:1,3,0,2,0,0,0,4'
10/30 18:17:42 00 transmission par.: '+FDCS:1,3,0,2,0,0,0,4'
10/30 18:17:42 00 got:[0a][0d][0a]CONNECT[0d]
10/30 18:17:42 00 fax_wait_for: string 'CONNECT'** found **
10/30 18:17:42 00 waiting for XON, got:[0a][11]
10/30 18:17:42 00 tio_set_flow_control( XON_OUT )
10/30 18:17:42 00 sending tiger.g3.1...
10/30 18:17:42 00 skipping over GhostScript header
10/30 18:17:42 00 read 64, write 0
10/30 18:17:42 00 read 64, write 64
...
...
killed the job here
Question : is there any hope or should I give up.
Cheers Malcolm
===============================
Malcolm Agnew
Concept asa
Gluckstr. 18
D-60318 Frankfurt/Main
Germany
Tel: (**49) 69/59 70 297
Fax: (**49) 69/59 09 01
Email: malcolm@concept-asa.de
Always :-)
===============================