FAX receive not working
Gerald Williams (gwilli@samart.co.th)
Thu, 5 Aug 1999 10:06:36 +0700
I sent a fax to a standalone fax machine and to another fax-modem. Both
of the fax's were received okay. They in turn sent me a fax and both
failed. the following log is from the fax-modem, a ZYXEL 1496E+. My
modem is the ZYXEL Omni56K plus(beta) At the end of the log, is my
mgetty config file.
Question is, What am I doing wrong?
--
08/05 08:12:12 yS0 mgetty: experimental test release 1.1.20-Jan17
08/05 08:12:12 yS0 check for lockfiles
08/05 08:12:12 yS0 checklock: stat failed, no file
08/05 08:12:12 yS0 locking the line
08/05 08:12:12 yS0 makelock(ttyS0) called
08/05 08:12:12 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
08/05 08:12:12 yS0 lock made
08/05 08:12:13 yS0 tio_get_rs232_lines: status: RTS CTS DSR DTR
08/05 08:12:13 yS0 lowering DTR to reset Modem
08/05 08:12:14 yS0 tss: set speed to 115200 (10002)
08/05 08:12:14 yS0 tio_set_flow_control( HARD )
08/05 08:12:14 yS0 waiting for line to clear (VTIME), read:
08/05 08:12:14 yS0 send: \d\d\d+++\d\d\dAT&FS2=255[0d]
08/05 08:12:17 yS0 waiting for ``OK''
08/05 08:12:17 yS0 got: AT&FS2=255[0d]
08/05 08:12:17 yS0 CND: AT&FS2=255[0d][0a]OK ** found **
08/05 08:12:17 yS0 send: ATN3S0=0S13.2=1[0d]
08/05 08:12:17 yS0 waiting for ``OK''
08/05 08:12:17 yS0 got: [0d]
08/05 08:12:17 yS0 CND: OK[0a]ATN3S0=0S13.2=1[0d]
08/05 08:12:17 yS0 CND: ATN3S0=0S13.2=1[0d][0a]OK ** found **
08/05 08:12:17 yS0 send: AT[0d]
08/05 08:12:17 yS0 do_stat: expect 'OK' ** found **
08/05 08:12:17 yS0 send: ATI2[0d]
08/05 08:12:17 yS0 do_stat: expect 'OK' ** found **
08/05 08:12:17 yS0 mdm_send: 'ATI'
08/05 08:12:17 yS0 got:[0a]ATI[0d]
08/05 08:12:17 yS0 got:[0d][0a]1500[0d]
08/05 08:12:17 yS0 mdm_gis: string 1: '1500'
08/05 08:12:17 yS0 got:[0a][0d][0a]OK[0d]
08/05 08:12:17 yS0 mdm_identify: string '1500'
08/05 08:12:17 yS0 unknown numerical modem id 1500
08/05 08:12:17 yS0 mdm_send: 'AT+FCLASS=2.0'
08/05 08:12:17 yS0 got:[0a]AT+FCLASS=2.0[0d]
08/05 08:12:17 yS0 mdm_command: string 'AT+FCLASS=2.0'
08/05 08:12:17 yS0 got:[0d][0a]OK[0d]
08/05 08:12:17 yS0 mdm_command: string 'OK' -> OK
08/05 08:12:17 yS0 mdm_send: 'AT+FAA=1;+FCR=1'
08/05 08:12:17 yS0 got:[0a]AT+FAA=1;+FCR=1[0d]
08/05 08:12:17 yS0 mdm_command: string 'AT+FAA=1;+FCR=1'
08/05 08:12:17 yS0 got:[0d][0a]OK[0d]
08/05 08:12:17 yS0 mdm_command: string 'OK' -> OK
08/05 08:12:17 yS0 mdm_send: 'AT+FBO=1'
08/05 08:12:17 yS0 got:[0a]AT+FBO=1[0d]
08/05 08:12:17 yS0 mdm_command: string 'AT+FBO=1'
08/05 08:12:17 yS0 got:[0d][0a]OK[0d]
08/05 08:12:17 yS0 mdm_command: string 'OK' -> OK
08/05 08:12:17 yS0 mdm_send: 'AT+FNR=1,1,1,0'
08/05 08:12:17 yS0 got:[0a]AT+FNR=1,1,1,0[0d]
08/05 08:12:17 yS0 mdm_command: string 'AT+FNR=1,1,1,0'
08/05 08:12:17 yS0 got:[0d][0a]OK[0d]
08/05 08:12:17 yS0 mdm_command: string 'OK' -> OK
08/05 08:12:17 yS0 mdm_send: 'AT+FLI="662 971 0160"'
08/05 08:12:17 yS0 got:[0a]AT+FLI="662 971 0160"[0d]
08/05 08:12:17 yS0 mdm_command: string 'AT+FLI="662 971 0160"'
08/05 08:12:17 yS0 got:[0d][0a]OK[0d]
08/05 08:12:17 yS0 mdm_command: string 'OK' -> OK
08/05 08:12:18 yS0 mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0'
08/05 08:12:18 yS0 got:[0a]AT+FCC=1,5,0,2,0,0,0,0[0d]
08/05 08:12:18 yS0 mdm_command: string 'AT+FCC=1,5,0,2,0,0,0,0'
08/05 08:12:18 yS0 got:[0d][0a]OK[0d]
08/05 08:12:18 yS0 mdm_command: string 'OK' -> OK
08/05 08:12:18 yS0 waiting for line to clear (VTIME), read:
08/05 08:12:18 yS0 removing lock file
08/05 08:12:18 yS0 waiting...
08/05 08:16:07 yS0 select returned 1
08/05 08:16:07 yS0 checking lockfiles, locking the line
08/05 08:16:07 yS0 makelock(ttyS0) called
08/05 08:16:07 yS0 do_makelock: lock='/var/lock/LCK..ttyS0'
08/05 08:16:07 yS0 lock made
08/05 08:16:07 yS0 wfr: waiting for ``RING''
08/05 08:16:07 yS0 got: [0a][0d][0a]RING[0d]
08/05 08:16:07 yS0 CND: RING
08/05 08:16:07 yS0 wfr: rc=0, drn=0
08/05 08:16:07 yS0 wfr: waiting for ``RING''
08/05 08:16:07 yS0 got: [0a][0d][0a]RING[0d]
08/05 08:16:12 yS0 CND: RING
08/05 08:16:12 yS0 wfr: rc=0, drn=0
08/05 08:16:12 yS0 wfr: waiting for ``RING''
08/05 08:16:12 yS0 got: [0a][0d][0a]RING[0d]
08/05 08:16:17 yS0 CND: RING
08/05 08:16:17 yS0 wfr: rc=0, drn=0
08/05 08:16:17 yS0 CND: check no: 'none'
08/05 08:16:17 yS0 send: ATA[0d]
08/05 08:16:17 yS0 waiting for ``CONNECT''
08/05 08:16:17 yS0 got: ATA[0d]
08/05 08:16:17 yS0 CND: OKATA[0d][0a]+FCO[0d]
08/05 08:16:25 yS0 CND: +FCO
08/05 08:16:25 yS0 found action string: ``+FCO_''
08/05 08:16:25 yS0 start fax receiver...
08/05 08:16:25 yS0 fax receiver: entry
08/05 08:16:25 yS0 fax_wait_for(OK)
08/05 08:16:25 yS0 got:[0a][0d][0a]+FTI:" 662 734 0051"[0d]
08/05 08:16:27 yS0 fax_wait_for: string '+FTI:" 662 734 0051"'
08/05 08:16:27 yS0 fax_id: '+FTI:" 662 734 0051"'
08/05 08:16:27 yS0 got:[0d][0a]+FCS:1,5,0,2,0,0,0,0[0d]
08/05 08:16:27 yS0 fax_wait_for: string '+FCS:1,5,0,2,0,0,0,0'
08/05 08:16:27 yS0 transmission par.: '+FCS:1,5,0,2,0,0,0,0'
08/05 08:16:27 yS0 got:[0d][0a]OK[0d]
08/05 08:16:27 yS0 fax_wait_for: string 'OK'** found **
08/05 08:16:27 yS0 looking for utmp entry... (my PID: 748)
08/05 08:16:27 yS0 utmp + wtmp entry made
08/05 08:16:27 yS0 tio_set_flow_control( HARD XON_IN )
08/05 08:16:27 yS0 mdm_send: 'AT+FLO=2'
08/05 08:16:27 yS0 got:[0a]AT+FLO=2[0d]
08/05 08:16:27 yS0 mdm_command: string 'AT+FLO=2'
08/05 08:16:27 yS0 got:[0d][0a]OK[0d]
08/05 08:16:27 yS0 mdm_command: string 'OK' -> OK
08/05 08:16:27 yS0 fax_send: 'AT+FDR'
08/05 08:16:27 yS0 fax_wait_for(CONNECT)
08/05 08:16:27 yS0 got:[0a]AT+FDR[0d]
08/05 08:16:27 yS0 fax_wait_for: string 'AT+FDR'
08/05 08:16:27 yS0 got:[0d][0a]+FTI:" 662 734 0051"[0d]
08/05 08:16:34 yS0 fax_wait_for: string '+FTI:" 662 734 0051"'
08/05 08:16:34 yS0 fax_id: '+FTI:" 662 734 0051"'
08/05 08:16:34 yS0 got:[0d][0a]+FCS:1,4,0,2,0,0,0,0[0d]
08/05 08:16:34 yS0 fax_wait_for: string '+FCS:1,4,0,2,0,0,0,0'
08/05 08:16:34 yS0 transmission par.: '+FCS:1,4,0,2,0,0,0,0'
08/05 08:16:34 yS0 got:[0d][0a]+FTI:" 662 734 0051"[0d]
08/05 08:16:40 yS0 fax_wait_for: string '+FTI:" 662 734 0051"'
08/05 08:16:40 yS0 fax_id: '+FTI:" 662 734 0051"'
08/05 08:16:40 yS0 got:[0d][0a]+FCS:1,3,0,2,0,0,0,0[0d]
08/05 08:16:40 yS0 fax_wait_for: string '+FCS:1,3,0,2,0,0,0,0'
08/05 08:16:40 yS0 transmission par.: '+FCS:1,3,0,2,0,0,0,0'
08/05 08:16:40 yS0 got:[0d][0a]+FTI:" 662 734 0051"[0d]
08/05 08:16:47 yS0 fax_wait_for: string '+FTI:" 662 734 0051"'
08/05 08:16:47 yS0 fax_id: '+FTI:" 662 734 0051"'
08/05 08:16:47 yS0 got:[0d][0a]+FCS:1,2,0,2,0,0,0,0[0d]
08/05 08:16:47 yS0 fax_wait_for: string '+FCS:1,2,0,2,0,0,0,0'
08/05 08:16:47 yS0 transmission par.: '+FCS:1,2,0,2,0,0,0,0'
08/05 08:16:47 yS0 got:[0d][0a]+FTI:" 662 734 0051"[0d]
08/05 08:16:53 yS0 fax_wait_for: string '+FTI:" 662 734 0051"'
08/05 08:16:53 yS0 fax_id: '+FTI:" 662 734 0051"'
08/05 08:16:53 yS0 got:[0d][0a]+FCS:1,1,0,2,0,0,0,0[0d]
08/05 08:16:54 yS0 fax_wait_for: string '+FCS:1,1,0,2,0,0,0,0'
08/05 08:16:54 yS0 transmission par.: '+FCS:1,1,0,2,0,0,0,0'
08/05 08:16:54 yS0 got:[0d][0a]+FTI:" 662 734 0051"[0d]
08/05 08:17:00 yS0 fax_wait_for: string '+FTI:" 662 734 0051"'
08/05 08:17:00 yS0 fax_id: '+FTI:" 662 734 0051"'
08/05 08:17:00 yS0 got:[0d][0a]+FCS:1,0,0,2,0,0,0,0[0d]
08/05 08:17:00 yS0 fax_wait_for: string '+FCS:1,0,0,2,0,0,0,0'
08/05 08:17:00 yS0 transmission par.: '+FCS:1,0,0,2,0,0,0,0'
08/05 08:17:00 yS0 got:[0d][0a][0d][0a]ERROR[0d]
08/05 08:17:06 yS0 fax_wait_for: string 'ERROR'
08/05 08:17:06 yS0 ABORTING: line='ERROR'
08/05 08:17:06 yS0 fax_get_pages: cannot start page receive
08/05 08:17:06 yS0 fax receiver: hangup & end
08/05 08:17:06 yS0 fax_notify_mail: sending mail to: root
08/05 08:17:06 yS0 notify: '/etc/mgetty+sendfax/new_fax -4 ' 662 734 0051' 0 >/dev/console 2>&1 </dev/null'
08/05 08:17:06 ##### fax dev=ttyS0, pid=748, caller='none', name='', id=' 662 734 0051', +FHNG=-04, pages=0/0, time=00:00:49
08/05 08:17:06 yS0 system() failed: No such file or directory
08/05 08:17:08 yS0 mdm_send: 'ATH0'
08/05 08:17:08 yS0 got:[0a]ATH0[0d]
08/05 08:17:08 yS0 mdm_command: string 'ATH0'
08/05 08:17:08 yS0 got:[0d][0a]OK[0d]
08/05 08:17:08 yS0 mdm_command: string 'OK' -> OK
08/05 08:17:08 yS0 removing lock file
#
# mgetty configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored
# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below
# set the global debug level to "4" (default from policy.h)
debug 7
# set the local fax station id
fax-id 662 971 0160
# access the modem(s) with 38400 bps
speed 115200
# use these options to make the /dev/tty-device owned by "uucp.uucp"
# and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
port-owner uucp
port-group uucp
port-mode 0664
# use these options to make incoming faxes owned by "root.uucp"
# and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
fax-owner root
fax-group uucp
fax-mode 0640
# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the others
#
# Zoom V.FX 28.8, connected to ttyS0: My other Modem
#
#port ttyS0
# debug 5
# data-only y
# speed 38400
# switchbd 19200
# ZyXEL Omni 56K plus , connected to ttyS0: maximum debugging, grab
statistics #
port ttyS0
debug 8
init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0S13.2=1 OK
statistics-chat "" AT OK ATI2 OK
statistics-file /var/log/statistics.omni
modem-type auto
rings 3
data-only no
fax-only no
# direct connection of a VT100 terminal which doesn't like DTR drops
#
#port ttyS3
# direct y
# speed 19200
# toggle-dtr n
--
Sawasdee from Amazing Thailand and "TLUG" Thai Linux Users Group
Words Matter! -- Bangkok, Thailand -- icq # 32445600
email: gwilli@samart.co.th gwilli@bangkok.com