home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
fax010.lzh
/
FREC.CFG
< prev
next >
Wrap
Text File
|
1994-11-17
|
8KB
|
262 lines
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; FREC.CFG
;
; Configuration for FREC.EXE
; Each entry has to start on the first position of a line
; Each line may have up to 128 characters
; String entries are limited to 40 character
; Comments only with ';' in first position of line
; Leading blank will be discarded, trailing blanks NOT
;
; Alternately, you can start FREC with the -p and a PortHandle eg from Binkley
ComPort COM2
; FaxBaudrate normally has to be 19200 !!!
FaxBaudrate 19200
DataBaudrate 19200
; If FREC ist call as a faxreceiver
RingCnt 1
; The following statements are used to protocoll your faxes:
; Use all three keywords (FaxLog, FaxIdx and FaxPath) or none!
FaxLog e:\faxworks\fax.log
FaxIdx e:\faxworks\fax.idx
FaxPath e:\faxworks\
; Without the above three keyword, FREC stores faxes in FRECxxxx.TIF
; You can chose the extention:
TifExt .fax
; FREC creates everytime started a file 'FREC.DEB' in the default directory.
; You can use a (logfile) of you choice, the '+' sign allows continous writing
; to it.
FaxDebug +d:\point\log\frec.log
; What shall we do with bad scanlines ?
; leave them as they are
;LineBad Ignore
; remove them
;LineBad Delete
; replace the bad line with the previous line
LineBad Previous
; blank out the line
;LineBad Blank
; ATZ is the proper way to initialize your modem, DO NOT use AT&F, because
; unpredictable results can happen. Allways make shure, ATE1 is set!
Reset ATZ
; self explanatory
FaxClass 2
;FaxClass 2.0
;FaxClass 1
;Init AT+FLO=2
;Init AT+FNR=1,1,1,1
;Thanks to Gerold Pummer for this hint !
; With AT+FDIS (or with some faxmodems AT+FDCC) you can influence the
; comunications parameter vr,br,wd,ln,df,ec,bf,st
; vr 0 ... normal 204x98 dpi, 1 ... high 204x196
; br 0 .. 2400, 1 .. 4800, 2 .. 7200, 3 .. 9600, 4 .. 12000, 5 .. 14400 bps
; wd has to be 0
; ln has to be 2
; df 0 ... 1-D Huffman, 1 .. 2-D Read, both values are supported !
; ec has to be 0
; bf has to be 0
; st 0 - 7, time between two scanlines, 7 is 40ms.
;from version 3.03b on you MUST use the CAPABILTIES parameter:
Capabilities 1,3,0,2,1,0,0,0
Init AT+FBOR=0
;Init AT+FBO=0
; without AT+FCR=1 the modem never can receive a fax!
Init AT+FCR=1
; geht das in Class 2 ???
;Init AT+FNSF="0000119000855F10486172616C6420506f6C6C61636B2020"
; H a r a l d P o l l a c k
LocalID +43 1 701 99 3414
; FREC now is able to POLL faxes from a remote faxmachine or it will be
; polled FROM a remote fax.
; If you have a Fax-File ready for polling you MUST define 'PollFile' and
; 'FSENDCFG' and FSEND.EXE MUST be in the same directory as FREC.EXE or in
; the 'PATH'.
; Give a name for a file to held for a poll request:
PollFile d:\tif\myself.tif
; The complete path and name of the configuration file for FSEND.EXE
FSENDCFG d:\point\fax\fsend.cfg
; Some modems need a 'clean up' after working in FAX-mode
CleanUp ATZ
; The 'dialprefix' ATD and 'P' for pulse or 'T' for tone dial
Dial ATDT
; If FREC is used as an external CONVERTER of PAGEnnnn.FAX this
; MUST be defined:
BinkLog d:\point\log\binkley.log
;
; FillOrder for target TIF, normaly 1 for MSB first, can be set to 2 for
; LSB first.
OutFillOrder 1
; The following three Keywords must be defined if the generation of a
; NetMail announcing the fax is wished.
Inbound D:\POINT\INBOUND
;ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
; Change NAME and ADDRESS to your own name and address !!!!!!!
;DestName Harald Pollack
;DestAddr 2:313/9.59
;
;ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
; Change NAME and ADDRESS to your own name and address !!!!!!!
;SrcName Faxmachine
;SrcAddr 2:313/9.59
;Subject Incoming Fax
;ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
; New feature CheckCopyQuality No/Yes/Modem, only useful if the '-x' switch
; is NOT activ!
; setting 'CheckCopyQuality' to 'Yes' results in checking the received
; page data bei FREC itself. Depending on 'ConsecutiveBadMax' and
; 'PercentageGood' a Message ConFirmation, ReTrain Positiv or
; ReTrain Negativ (MCF, RTP or RTN) response is made to the post page
; message of the sender.
; If 'ConsecutiveBadMax' is below the detected value, a RTP is send.
; If 'PercentageGood' is 100 and bad lines are detected, a RTP is send.
; If 'PercentageGood' is less than 100, FREC sends:
; No badlines detected: MCF
; Percent badlines less than 100 but above 'PercentageGood': RTP
; Percent badlines less than 'PercentageGood': RTN
;
; Caution: faxmachines normaly disconnect line when receiving RTN!
CheckCopyQuality Yes
ConsecutiveBadMax 255
PercentageGood 100
; If you normally use the '-x' switch for two pass operation and your
; receiving conditions are weak, use 'ForceRetrain'. FREC will generate always
; a 'RTP' instead of 'MCF', forcing sending faxequipment to do training after
; each page. In this case, YOUR faxmodem has good chance to initiate a
; fallback if linequality becomes bad.
; Forceretrain
;-------------------------------------------------------
;FaxREC/2 for IBM OS/2 2.x Version 2.11b Oct 04 1994
;No Rights Reserved Dr.H.Pollack & B.Seidl
;-------------------------------------------------------
;
;Usage: FREC2.EXE [Option] [Option] ...
;Options:
; -p<handle> ... serial port handle (binkley mode)
; -t ........... trace modem activities on screen [OFF]
; -c<filename> . configuration file name [FREC.CFG]
; -k[n] ........ Compression of target TIFF [3]
; n=1 ...... uncompressed
; n=2 ...... Huffman compressed only
; n=3 ...... Huffman 1-D FAX as in CCITT T.4
; n=4 ...... Read 2-D FAX as in CCITT T.4
; n=4.1 .... Read 2-D compressed only
; n=32773 .. PackBits compressed
; -z ........... generate ZyXEL format fax file
; -1|2 ......... fax raw data is 1-D Huffman | 2-D Read
; -f[n] ........ fill order of fax rawdata [2]
; -i<filename> . inputfile with fax raw data (*,?)
; -e ........... create single page TIFF files
; -s<flag>...... WAIT_OK or WAIT_FCON [WAIT_FCON]
; -x ........... save only raw faxdata in PAGEnnnn.RAW files
; -d ........... erase *.RAW files after conversion
; -g<phoneno> .. Phone number to call for POLLING fax
; -j<pollID> ... dedicated ID (password) for this POLL request
; -h|-? ........ show this commandline parameter help screen
;
; ERRORLEVEL returned from FREC:
; 0 ... at least one page was received correctly
; 1 ... no page received or abortet bei ESC
; 252 . Initialisation of modem failed
; 253 . COM Port Error
; 254 . Error in FREC.CFG or inconsistent values for rawdata decoding
; 255 . System Error (Memory, Threadstart) or Commandline wrong
; Using FREC with BinkleyTerm:
;-----------------------------
;
; BinkleyTerm receives the fax and generates PAGExxxx.FAX and you want to
; store all pages in one TIFF.
; BINK.CMD
; ...
; If Exist %MailDir%\Fax\PAGE????.FAX Goto FAX
; Goto NoFAX
; :FAX
; FREC -i%MailDir%\Fax\Page????.Fax -k3 -c%MAILDIR%\Fax\FREC.CFG -f2
; ERASE %MailDir%\Fax\Page????.Fax
; :NOFAX
;
; BinkleyTerm receives the fax and generates PAGExxxx.FAX and you want to
; store each page in one TIFF.
; BINK.CMD
; ...
; If Exist %MailDir%\Fax\PAGE????.FAX Goto FAX
; Goto NoFAX
; :FAX
; For %i in (%MailDir\Fax\PAGE????.FAX) Do FREC -i%i -k3 <line wrapped>
; -c%MAILDIR%\Fax\FREC.CFG -f2 -e
; ERASE %MailDir%\Fax\Page????.Fax
; :NOFAX
; ExitBaud -1 +FCON, ModemFax +FCON in 2.50 EE or
; ExtrnMail -1 +FCON, Extern Spawn and ModemFax in 2.59
; BinkleyTerm spawns to EXITBAUD.CMD or EXTMAIL.CMD
; store all pages in one TIFF.
; FREC -p%3 -k3 -cX:\Fax\FREC.CFG -f1 -sWAIT_OK
;
; ExitBaud -1 +FCON, ModemFax +FCON in 2.50 EE or
; ExtrnMail -1 +FCON, Extern Spawn and ModemFax in 2.59
; BinkleyTerm spawns to EXITBAUD.CMD or EXTMAIL.CMD
; store each page in one TIFF.
; FREC -p%3 -k3 -cX:\Fax\FREC.CFG -f1 -sWAIT_OK -e
;
; FREC as a standalone Fax-receiver
; FREC -k3 -cX:\Fax\FREC.CFG -f1
;
; NEW NEW NEW NEW
; FREC as a standalone Fax-poller
; FREC -cX:\FAX\FREC.CFG -f1 -k3 -g<phone_to_poll>
; Please read also, and carefully FREC20.CFG and FREC.DOC