home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / fax010.lzh / FREC20.CFG < prev    next >
Text File  |  1995-01-03  |  9KB  |  269 lines

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