home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / fax010.lzh / FREC.CFG < prev    next >
Text File  |  1994-11-17  |  8KB  |  262 lines

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;
  3. ;     FREC.CFG
  4. ;
  5. ; Configuration for FREC.EXE
  6. ; Each entry has to start on the first position of a line
  7. ; Each line may have up to 128 characters
  8. ; String entries are limited to 40 character
  9. ; Comments only with ';' in first position of line
  10. ; Leading blank will be discarded, trailing blanks NOT
  11. ;
  12.  
  13. ; Alternately, you can start FREC with the -p and a PortHandle eg from Binkley
  14. ComPort COM2
  15. ; FaxBaudrate normally has to be 19200 !!!
  16. FaxBaudrate 19200
  17. DataBaudrate 19200
  18. ; If FREC ist call as a faxreceiver
  19. RingCnt 1
  20.  
  21. ; The following statements are used to protocoll your faxes:
  22. ; Use all three keywords (FaxLog, FaxIdx and FaxPath) or none!
  23. FaxLog e:\faxworks\fax.log
  24. FaxIdx e:\faxworks\fax.idx
  25. FaxPath e:\faxworks\
  26. ; Without the above three keyword, FREC stores faxes in FRECxxxx.TIF
  27. ; You can chose the extention:
  28. TifExt .fax
  29.  
  30. ; FREC creates everytime started a file 'FREC.DEB' in the default directory.
  31. ; You can use a (logfile) of you choice, the '+' sign allows continous writing
  32. ; to it.
  33.  
  34. FaxDebug +d:\point\log\frec.log
  35.  
  36. ; What shall we do with bad scanlines ?
  37. ; leave them as they are
  38. ;LineBad Ignore
  39. ; remove them
  40. ;LineBad Delete
  41. ; replace the bad line with the previous line
  42. LineBad Previous
  43. ; blank out the line
  44. ;LineBad Blank
  45.  
  46. ; ATZ is the proper way to initialize your modem, DO NOT use AT&F, because
  47. ; unpredictable results can happen. Allways make shure, ATE1 is set!
  48. Reset ATZ
  49. ; self explanatory
  50. FaxClass 2
  51. ;FaxClass 2.0
  52. ;FaxClass 1
  53. ;Init AT+FLO=2
  54. ;Init AT+FNR=1,1,1,1
  55. ;Thanks to Gerold Pummer for this hint !
  56. ; With AT+FDIS (or with some faxmodems AT+FDCC) you can influence the
  57. ; comunications parameter vr,br,wd,ln,df,ec,bf,st
  58. ; vr   0 ... normal 204x98 dpi, 1 ... high 204x196
  59. ; br   0 .. 2400, 1 .. 4800, 2 .. 7200, 3 .. 9600, 4 .. 12000, 5 .. 14400 bps
  60. ; wd   has to be 0
  61. ; ln   has to be 2
  62. ; df   0 ... 1-D Huffman, 1 .. 2-D Read, both values are supported !
  63. ; ec   has to be 0
  64. ; bf   has to be 0
  65. ; st   0 - 7, time between two scanlines, 7 is 40ms.
  66.  
  67. ;from version 3.03b on you MUST use the CAPABILTIES parameter:
  68.  
  69. Capabilities 1,3,0,2,1,0,0,0
  70.  
  71. Init AT+FBOR=0
  72. ;Init AT+FBO=0
  73. ; without AT+FCR=1 the modem never can receive a fax!
  74. Init AT+FCR=1
  75.  
  76. ; geht das in Class 2 ???
  77. ;Init AT+FNSF="0000119000855F10486172616C6420506f6C6C61636B2020"
  78. ;                               H a r a l d   P o l l a c k
  79.  
  80. LocalID +43 1 701 99 3414
  81.  
  82.  
  83. ; FREC now is able to POLL faxes from a remote faxmachine or it will be
  84. ; polled FROM a remote fax.
  85.  
  86. ; If you have a Fax-File ready for polling you MUST define 'PollFile' and
  87. ; 'FSENDCFG' and FSEND.EXE MUST be in the same directory as FREC.EXE or in
  88. ; the 'PATH'.
  89.  
  90. ; Give a name for a file to held for a poll request:
  91.  
  92. PollFile d:\tif\myself.tif
  93.  
  94. ; The complete path and name of the configuration file for FSEND.EXE
  95.  
  96. FSENDCFG d:\point\fax\fsend.cfg
  97.  
  98. ; Some modems need a 'clean up' after working in FAX-mode
  99. CleanUp ATZ
  100.  
  101. ; The 'dialprefix' ATD and 'P' for pulse or 'T' for tone dial
  102. Dial ATDT
  103.  
  104. ; If FREC is used as an external CONVERTER of PAGEnnnn.FAX this
  105. ; MUST be defined:
  106. BinkLog d:\point\log\binkley.log
  107. ;
  108. ; FillOrder for target TIF, normaly 1 for MSB first, can be set to 2 for
  109. ; LSB first.
  110. OutFillOrder 1
  111.  
  112. ; The following three Keywords must be defined if the generation of a
  113. ; NetMail announcing the fax is wished.
  114. Inbound D:\POINT\INBOUND
  115.  
  116. ;ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
  117.  
  118. ; Change NAME and ADDRESS to your own name and address !!!!!!!
  119.  
  120. ;DestName Harald Pollack
  121. ;DestAddr 2:313/9.59
  122. ;
  123. ;ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
  124. ; Change NAME and ADDRESS to your own name and address !!!!!!!
  125.  
  126. ;SrcName Faxmachine
  127. ;SrcAddr 2:313/9.59
  128. ;Subject Incoming Fax
  129.  
  130. ;ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
  131.  
  132. ; New feature CheckCopyQuality No/Yes/Modem, only useful if the '-x' switch
  133. ; is NOT activ!
  134. ; setting 'CheckCopyQuality' to 'Yes' results in checking the received
  135. ; page data bei FREC itself. Depending on 'ConsecutiveBadMax' and
  136. ; 'PercentageGood' a Message ConFirmation, ReTrain Positiv or
  137. ; ReTrain Negativ (MCF, RTP or RTN) response is made to the post page
  138. ; message of the sender.
  139. ; If 'ConsecutiveBadMax' is below the detected value, a RTP is send.
  140. ; If 'PercentageGood' is 100 and bad lines are detected, a RTP is send.
  141. ; If 'PercentageGood' is less than 100, FREC sends:
  142. ; No badlines detected: MCF
  143. ; Percent badlines less than 100 but above 'PercentageGood': RTP
  144. ; Percent badlines less than 'PercentageGood': RTN
  145. ;
  146. ; Caution: faxmachines normaly disconnect line when receiving RTN!
  147.  
  148. CheckCopyQuality Yes
  149.  
  150. ConsecutiveBadMax 255
  151. PercentageGood 100
  152.  
  153. ; If you normally use the '-x' switch for two pass operation and your
  154. ; receiving conditions are weak, use 'ForceRetrain'. FREC will generate always
  155. ; a 'RTP' instead of 'MCF', forcing sending faxequipment to do training after
  156. ; each page. In this case, YOUR faxmodem has good chance to initiate a
  157. ; fallback if linequality becomes bad.
  158.  
  159. ; Forceretrain
  160.  
  161. ;-------------------------------------------------------
  162. ;FaxREC/2 for IBM OS/2 2.x   Version 2.11b   Oct 04 1994
  163. ;No Rights Reserved               Dr.H.Pollack & B.Seidl
  164. ;-------------------------------------------------------
  165. ;
  166. ;Usage: FREC2.EXE [Option] [Option] ...
  167. ;Options:
  168. ;      -p<handle> ... serial port handle (binkley mode)
  169. ;      -t ........... trace modem activities on screen [OFF]
  170. ;      -c<filename> . configuration file name [FREC.CFG]
  171. ;      -k[n] ........ Compression of target TIFF [3]
  172. ;          n=1 ...... uncompressed
  173. ;          n=2 ...... Huffman compressed only
  174. ;          n=3 ...... Huffman 1-D FAX as in CCITT T.4
  175. ;          n=4 ...... Read 2-D FAX as in CCITT T.4
  176. ;          n=4.1 .... Read 2-D compressed only
  177. ;          n=32773 .. PackBits compressed
  178. ;      -z ........... generate ZyXEL format fax file
  179. ;      -1|2 ......... fax raw data is 1-D Huffman | 2-D Read
  180. ;      -f[n] ........ fill order of fax rawdata [2]
  181. ;      -i<filename> . inputfile with fax raw data (*,?)
  182. ;      -e ........... create single page TIFF files
  183. ;      -s<flag>...... WAIT_OK or WAIT_FCON [WAIT_FCON]
  184. ;      -x ........... save only raw faxdata in PAGEnnnn.RAW files
  185. ;      -d ........... erase *.RAW files after conversion
  186. ;      -g<phoneno> .. Phone number to call for POLLING fax
  187. ;      -j<pollID> ... dedicated ID (password) for this POLL request
  188. ;      -h|-? ........ show this commandline parameter help screen
  189. ;
  190.  
  191. ; ERRORLEVEL returned from FREC:
  192.  
  193. ; 0 ... at least one page was received correctly
  194. ; 1 ... no page received or abortet bei ESC
  195. ; 252 . Initialisation of modem failed
  196. ; 253 . COM Port Error
  197. ; 254 . Error in FREC.CFG or inconsistent values for rawdata decoding
  198. ; 255 . System Error (Memory, Threadstart) or Commandline wrong
  199.  
  200. ; Using FREC with BinkleyTerm:
  201. ;-----------------------------
  202.  
  203. ;
  204. ; BinkleyTerm receives the fax and generates PAGExxxx.FAX and you want to
  205. ; store all pages in one TIFF.
  206.  
  207. ; BINK.CMD
  208. ; ...
  209. ; If Exist %MailDir%\Fax\PAGE????.FAX   Goto FAX
  210. ; Goto NoFAX
  211. ; :FAX
  212. ; FREC -i%MailDir%\Fax\Page????.Fax -k3 -c%MAILDIR%\Fax\FREC.CFG -f2
  213. ; ERASE %MailDir%\Fax\Page????.Fax
  214. ; :NOFAX
  215.  
  216. ;
  217. ; BinkleyTerm receives the fax and generates PAGExxxx.FAX and you want to
  218. ; store each page in one TIFF.
  219.  
  220. ; BINK.CMD
  221. ; ...
  222. ; If Exist %MailDir%\Fax\PAGE????.FAX   Goto FAX
  223. ; Goto NoFAX
  224. ; :FAX
  225. ; For %i in (%MailDir\Fax\PAGE????.FAX) Do FREC -i%i -k3 <line wrapped>
  226. ;     -c%MAILDIR%\Fax\FREC.CFG -f2 -e
  227. ; ERASE %MailDir%\Fax\Page????.Fax
  228. ; :NOFAX
  229.  
  230. ; ExitBaud -1 +FCON, ModemFax +FCON in 2.50 EE or
  231. ; ExtrnMail -1 +FCON, Extern Spawn and ModemFax in 2.59
  232.  
  233. ; BinkleyTerm spawns to EXITBAUD.CMD or EXTMAIL.CMD
  234. ; store all pages in one TIFF.
  235.  
  236. ; FREC -p%3 -k3 -cX:\Fax\FREC.CFG -f1 -sWAIT_OK
  237. ;
  238.  
  239. ; ExitBaud -1 +FCON, ModemFax +FCON in 2.50 EE or
  240. ; ExtrnMail -1 +FCON, Extern Spawn and ModemFax in 2.59
  241.  
  242. ; BinkleyTerm spawns to EXITBAUD.CMD or EXTMAIL.CMD
  243. ; store each page in one TIFF.
  244.  
  245. ; FREC -p%3 -k3 -cX:\Fax\FREC.CFG -f1 -sWAIT_OK -e
  246. ;
  247.  
  248. ; FREC as a standalone Fax-receiver
  249.  
  250. ; FREC -k3 -cX:\Fax\FREC.CFG -f1
  251. ;
  252.  
  253. ; NEW NEW NEW NEW
  254.  
  255. ; FREC as a standalone Fax-poller
  256.  
  257. ; FREC -cX:\FAX\FREC.CFG -f1 -k3 -g<phone_to_poll>
  258.  
  259. ; Please read also, and carefully FREC20.CFG and FREC.DOC
  260.  
  261.  
  262.