📄 efax.1
字号:
Motorola UDS FasTalk II,.\" Raj Mathur (root@darbari.ncst.ernet.in), 0.6a, Linux 1.1.48MultiTech 1432MU,.\"reb@pdsf.ssc.govPractical Peripherals PM14400FXMT,.\" (DEC Alpha AXP 3000/500 running OSF/1 V1.3)Supra V32bis,.\" john@johncon.johncon.com, v0.5b, SysV R4.2.\" tbucks!timothy@csn.org.\" (ROCKWELL).\" Alec.Muffett@UK.Sun.COM (Alec Muffett), Linux 1.1.51, .\" Supra FAXModem v.32bisTelebit Worldblazer,.\" blurfl!jhood@Dartmouth.EDU.\" Telebit Worldblazer with ROM version LA7.02. (requires -or).\" (my configuration required hardware flow control).\" Dario_Ballabio@milano.europe.dg.com, v 0.6, Version LA7.05C. TKR DM-24VF+,.\" rainer.dorsch@student.uni-ulm.deTwincom 144/DFi,.\" (ROCKWELL, V.32AC, V1.270 TR14-Jxxx-001)ViVa 14.4/Fax modem,.\" Robert.Sprockeels@csc.be, v0.6a, LinuxVobis Fax-Modem (BZT-approved),.\" klein@pc-klein.zxa.basf-ag.de (Peter Klein), Linux, kernel 0.99.14.\" beck@irs.inf.tu-dresden.de (Andre Beck), v 0.6, Ultrix 4.3, gcc V2.5.8:.\" gcc -ansi -D_XOPEN_SOURCE -O2 efax.c -o efax -lcPZoom VFX14.4V,.\" edc@ee.ubc.ca (me!), v0.6, LinuxZyXEL U-1496E[+], .\" plph@umcc.umich.edu, v0.3 & faxmodem ROM version 5.05M).\" requires -or.\" Marc@Synergytics.Com, v0.5a & ZyXEL 1496E Plus, ROM Version 6.11a).\" -or -i '+FCLASS=2;+FCR=1' -c '+FDCC=1,5,2,2,0,0,0,0'ZyXEL Elite 2864I..\" schlatt@dial.eunet.ch, v0.7a, using -Xn (n<4).SH MODEM INITIALIZATION OPTIONSThe required modem initialization commands are generated by efax.Additional commands may be supplied as command-line arguments.The modem must be set up to issue verbose(text) result codes.The following command does this and is sent by efax before tryingto initialize the modem..TP 9.BR Q0V1respond to commands with verbose result codes.PPThe following commands may be useful for special purposes:.TP 9 .BR X3 don't wait for dial tone before dialing. This may be used tosend a fax when the call has already been dialed manually. Inthis case use an empty string ("") as the first argument to the\fB-t\fP command. Use \fBX4\fP (usual default) to enable allresult codes..TP 9 .BR M2leave the monitor speaker turned on for the duration of the call(use \fBM0\fP to leave it off)..TP 9 .BR L0turn monitor speaker volume to minimum (use \fBL3\fP for maximum)..TP 9 .BR E0 disable echoing of modem commands. See the Resolving Problemssection below..TP 9 .BR &D2returns the modem to command mode when DTR is dropped. Theprogram drops DTR at the start and end of the call if it can'tget a response to a modem command. You can use \fB&D3\fP toreset the modem when DTR is dropped..TP 9.BR S7=120wait up to two minutes (120 seconds) for carrier. This may beuseful if the answering fax machine takes a long time to startthe handshaking operation (e.g. a combined fax/answering machinewith a long announcement)..SH CAPABILITIESThe capabilities of the local hardware and software can be setusing a string of 8 digits separated by commas:.BR \fIvr\fP,\fIbr\fP,\fIwd\fP,\fIln\fP,\fIdf\fP,\fIec\fP,\fIbf\fP,\fIst\fPwhere:.TP 9.I vr \fP (vertical resolution) =0 for 98 lines per inch.br1 for 196 lpi.TP 9.I br \fP (bit rate) =0 for 2400 bps.br1 for 4800.br2 for 7200.br3 for 9600.br4 for 12000 (V.17).br5 for 14400 (V.17).TP 9.I wd \fP (width) =0 for 8.5" (21.5 cm) page width.br1 for 10" (25.5 cm).br2 for 12" (30.3 cm).TP 9.I ln \fP (length) =0 for 11" (A4: 29.7 cm) page length.br1 for 14" (B4: 36.4 cm).br2 for unlimited page length.TP 9.I df \fP (data format) =0 for 1-D coding.br1 for 2-D coding (not supported).TP 9.I ec \fP (error correction) =0 for no error correction.\" .br.\" 1 for EC mode with 64 byte frames (not supported).\" .br.\" 2 for EC mode with 256 byte frames (not supported).TP 9.I bf \fP (binary file) =0 for no binary file transfer.TP 9.I st \fP (minimum scan time) =0 for zero delay per line.br1 for 5 ms per line.br3 for 10 ms per line.br5 for 20 ms per line.br7 for 40 ms per line.PPWhen \fIreceiving\fP a fax the \fIvr\fP, \fIwd\fP, and \fIln\fPfields of the capability string should be set to the maximumvalues that your display software supports. The default is 196lpi, standard (8.5"/21.5cm) width and unlimited length.When \fIsending\fP a fax efax will determine \fIvr\fP and\fIln\fP from the image file and set \fIwd\fP to the default.If the receiving fax machine does not support high resolution(\fIvr\fP=1) mode, efax will reduce the resolution by combiningpairs of scan lines. If the receiving fax machine does notsupport the image's width then efax will truncate or pad asrequired. Most fax machines can receive \fIln\fP up to 2. Fewmachines support values of \fIwd\fP other than 0..SH HEADERSefax adds blank scan lines at the top of each image when it issent. This allows room for the page header but increases thelength of the image (by default about 0.1" or 2.5mm of blankspace is added).The header placed in this area typically includes the date andtime, identifies the, and shows the page number and total pages.Headers cannot be disabled but the header string can be set to ablank line.The default font for generating the headers is the built-in 8x16pixel font scaled to 12x24 pixels (about 9 point size).Note that both efax and efix have -f options to specify the font.efIx uses the font to generate text when doing text-to-faxconversions (during "fax make") while efAx uses the font togenerate the header (during "fax send")..SH SESSION LOGA session log is written to the standard error stream. This loggives status and error messages from the program as selected bythe \fB-v\fP option. A time stamp showing the full time or justminutes and seconds is printed before each message. Timesprinted along with modem responses also show milliseconds..SH RETURN VALUESThe program returns an error code as follows:.TP 90The fax was successfully sent or received..TP 91The dialed number was busy or the modem device was in use. Tryagain later..TP 92Something failed (e.g. file not found or disk full). Don't retry.Check the session log for more details..TP 93 Modem protocol error. The program did not receive the expectedresponse from the modem. The modem may not have been properlyinitialized, the correct \fB-o\fP options were not used, or a bugreport may be in order. Check the session log for more details..TP 94The modem is not responding. Operator attention is required.Check that the modem is turned on and connected to the correctport..TP 95The program was terminated by a signal..SH EXAMPLES.B Creating fax (G3) filesThe efix program can be used to convert text files to TIFF-G3format. For example, the following command will convert the textfile \fBletter\fP to the files \fBletter.001\fP,\fBletter.002\fP, etc,:.IP.nf.ft CWefix -nletter.%03d letter.ft P.fi.LPGhostscript's \fBtiffg3\fP driver can generate fax files inTIFF-G3 format from postscript files. For example, the command:.IP.nf\f(CW gs -q -sDEVICE=tiffg3 -dNOPAUSE \\ -sOutputFile=letter.%03d letter.ps </dev/null\fP.fi.LPwill convert the Postscript file.BR letter.psinto high-resolution(\fIvr\fP=1) G3 fax image files \fBletter.001, letter.002,\fP ...The images should have margins of at least 1/2 inch (1 cm) sincethe fax standard only requires that fax machines print a centralportion of the image 196.6mm (7.7 inches) wide by 281.5mm (11.1inches) high.The efix program can also insert bitmaps in images to createletterhead, signatures, etc..B Printing fax filesYou can use the efix program to print faxes on Postscript orHP-PCL (LaserJet) printers. For example, to print the receivedfax file \fBreply.001\fP on a Postscript printer use the command:.IP.nf.ft CWefix -ops reply.001 | lpr.ft P.fi.LP.B Sending fax filesThe following command will dial the number 222-2222 using tonedialing and send a two-page fax from the TIFF-G3 files letter.001and letter.002 using the fax modem connected to device /dev/cua1..IP.nf.ft CWefax -d /dev/cua1 \\ -t T222-2222 letter.001 letter.002.ft P.fi.LP.B Manual answerYou can use efax to answer the phone immediately and start faxreception. Use this mode if you need to answer calls manually tosee if they are fax or voice.For example, the following command will make the fax modem ondevice \fB/dev/ttyS1\fP answer the phone and attempt to receive afax. The received fax will be stored in the files\fBreply.001\fP, \fBreply.002\fP, and so on. The modem willidentify itself as "555 1212" and receive faxes at high or lowresolution (\fIvr\fP=1), at up to 14.4 kbps (\fIbr\fP=5)..IP.nf.ft CWefax -d /dev/ttyS1 -l "555 1212" \\ -c 1,5 -r reply.ft P.fi.LP.B Automatic answerThe \fB-w\fP option makes efax wait for characters to becomeavailable from the modem (indicating an incoming call) beforestarting fax reception. Use the \fB-w\fP option and a\fB-i\fPS0=\fIn\fP option to answer the phone after \fIn\fPrings. The example below will make the modem answer incomingcalls in fax mode on the fourth ring and save the received faxesusing files names corresponding to the reception date and time..IP.nf.ft CWefax -d /dev/ttyb -w -iS0=4 2>&1 >> fax.log.ft P.fi.LP.B Sharing the modem with outgoing callsThe modem device can be shared by programs that use the UUCPdevice locking protocol. This includes pppd, chat, minicom,kermit, uucico, efax, cu, and many others others. However,locking will only work if all programs use the same lock file.efax will lock the modem device before opening it if one or moreUUCP lock file names are given with \fB-x\fP options. Mostprograms place their lock files in the \fR/usr/spool/uucp\fP or\fR/var/lock\fP directories and use the name \fRLCK..\fP\fIdev\fPwhere \fIdev\fP is the name of the device file in the /devdirectory that is to be locked.If the \fB-s\fP (share) option is used, the lock file is removedwhile waiting for incoming calls so other programs can use thesame device.If efax detects another program using the modem while it iswaiting to receive a fax, efax exits with a termination code of1. A subsequent efax process using this device will wait untilthe other program is finished before re-initializing the modemand starting to wait for incoming calls again.Programs that try to lock the modem device by using devicelocking facilities other than UUCP lock files not be able to usethis arbitration mechanism because the device will still be opento the efax process. In this case you will need to kill the efaxprocess (e.g. "fax stop") before starting the other program.When efax is waiting for a fax it leaves the modem ready toreceive in fax mode but removes the lock file. When a slip orPPP program takes over the modem port by setting up its own lockfile efax cannot send any more commands to the modem -- not evento reset it. Therefore the other program has to set the modemback to data mode when it starts up. To do this add a modemreset command (send ATZ expect OK) to the beginning of your slipor PPP chat script..B Accepting both fax and data callsMany modems have an adaptive data/fax answer mode that can beenabled using the \fB-j+FAE=1\fP (for Class 1) or \fB-jFAA=1\fP(for Class 2[.0]) initialization string. The type of call (dataor fax) can then be deduced from the modem's responses.Some modems have limited adaptive answer features (e.g. onlyworking properly at certain baud rates or only in Class 2) ornone at all. In this case use the initialization string\fB-i+FCLASS=0\fP to answer in data mode first and the \fB-oa\fPoption to then hang up and try again in fax mode if the firstanswer attempt was not successful. This method only works ifyour telephone system waits a few seconds after you hang upbefore disconnecting incoming calls.If the \fB-g\fP option is used then the option's argument will berun as a shell command when an incoming data call is detected.Typically this command will exec \fBgetty\fP(8). This programshould expect to find the modem already off-hook and a lock filepresent so it should not try to hang up the line or create a lockfile. Note that the modem should be set up to report the DCE-DTE(modem-computer, e.g. CONNECT 38400) speed, not the DCE-DCE(modem-modem, e.g. CONNECT 14400) speed. For many modems theinitialization option -iW0 will set this.The following command will make efax answer incoming calls on\fB/dev/cua1\fP on the second ring. This device will be lockedusing two different lock files but these lock files will beremoved while waiting for incoming calls (\fB-s\fP). If a datacall is detected, the \fBgetty\fP program will be run toinitialize the terminal driver and start a \fBlogin\fP(1)process. Received fax files will be stored using names like\fBDec02-12.32.33.001\fP, in the \fB/usr/spool/fax/incoming\fPdirectory and the log file will be appended to\fB/usr/spool/fax/faxlog.cua1\fP..IP.nf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -