home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / fax010.lzh / FSEND1.CFG < prev    next >
Text File  |  1994-12-29  |  9KB  |  265 lines

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;
  3. ;     FAXSEND.CFG
  4. ;
  5. ;     Created by Harald Pollack
  6. ;
  7. ; Configurations for FSEND.EXE Vers. 0.08b, Sept 4, 1994
  8. ; Version 0.09b, working in Class 2.0 on Zyxel :-)
  9. ; Each entry must start on FIRST position in line
  10. ; Each line can be 255 characters long (incl. CR+LF)
  11. ; Character-values may be up to 40 characters
  12. ; Only ';' as comment is valid
  13. ; Leading blanks in values are ignored, trailing blanks NOT !!!
  14. ;
  15.  
  16. ; ComPort for transmission. THIS IS A MUST !!!
  17. ComPort COM2
  18.  
  19. ; The two following values are used in the headerline of each page. LocalID
  20. ; is also send to the modem.
  21. LocalID +43 1 70199 3414
  22. LocalName Dr. Harald Pollack
  23.  
  24. LocalPhone +43 1 701 99 3102
  25.  
  26. ; Optinaly, a coverpage is generated.
  27.  
  28. CoverPage Yes
  29.  
  30. ; Declare a predefined graphic (BMP, black & white)
  31.  
  32. CoverGraphic d:\tif\cover1.bmp
  33.  
  34. ; FSEND is able to colaborate with FAXWORKS (tm):
  35. ;
  36. ; Use commandline switch '-#nnnnnn' to select a FXnnnnnn.FAX or
  37. ; '-#?' to send last edited fax (FAX.IDX - 1). Both FaxIdx and FaxLog
  38. ; MUST be defined to use this feature!
  39.  
  40. FaxIdx e:\faxworks\fax.idx
  41. FaxLog e:\faxworks\fax.log
  42. FaxPath e:\faxworks
  43.  
  44. ; DialRetry 1
  45.  
  46. ;DialWait 5
  47.  
  48. ;DataBaudRate 2400
  49. ;FaxBaudRate 19200
  50.  
  51. DataBaudRate 38400
  52. FaxBaudRate 38400
  53.  
  54. ; FSEND must know, what your modem is able to do. Use a terminalprogram and
  55. ; enter: AT+FCLASS=?
  56. ; If your modem responses with ERROR, then forget FSEND, else if a value
  57. ; of '2' or '2.0' is reported, you can use FSEND. Enter AT+FCLASS=2 (or
  58. ; AT+FCLASS=2.0 if possible) and if 'OK' is reported then AT+FDCC=? (or
  59. ; AT+FCC=? in Class 2.0). Chose the highest value for first, second, forth and
  60. ; fifth value and the lowest for the eighth value. You can simulate it by
  61. ; entering AT+FDCC=x,x,x,x,x,x,x,x and receiving 'OK'.
  62.  
  63. ; for highres, 9600 bps max
  64. ;Capabilities 1,3,0,2,0,0,0,0
  65.  
  66. ; for normal, 14400 bps max
  67. Capabilities 0,5,0,2,0,0,0,0
  68.  
  69. ; for highres, 14400 max and 2-D Read compression
  70. ;Capabilities 1,5,0,2,1,0,0,0
  71.  
  72. ; for snail fax
  73. ;Capabilities 1,0,0,2,1,0,0,0
  74.  
  75. ; Bring your modem in a stable and repoduceable state. 'ModemReset' is sent
  76. ; as FIRST command after initialising the ComPort (at DataBaudRate).
  77. Reset ATZ
  78.  
  79. ; Finaly, you can make a controlled cleanup with
  80. CleanUp ATZ
  81.  
  82. ; It is a very bad kind of doing, to initialise a modem with a long, cryptic
  83. ; string. Store all the values in a profile (with AT&Wn) and recall them with
  84. ; the above ATZ. Normaly, the manufacturer of your modems knows it better than
  85. ; you, so once AT&F and AT&Wn should be enough for proper working.
  86.  
  87. Init ATe0m2
  88.  
  89. ; Choose a fax class your modem can handle:
  90. FaxClass 1
  91. ;FaxClass 2
  92. ;FaxClass 2.0
  93.  
  94. ; Dialprefix, here and only here you should add dial modifier eg. X3 or 0W.
  95. Dial ATD
  96.  
  97. ; FSEND is able to use either TIFF or plain ASCII (8-Bit) Text to send.
  98. ; To distinguish between them, FSEND uses 'TextExtention'. If the file
  99. ; (entered with '-i') has TextExtention, than it is handled as ASCII text,
  100. ; else a TIFF with Compression=3 is expected.
  101. TextExtention .TXT
  102. TextExtension .SYS
  103.  
  104. ; Normally, FSEND creates each time called, a file FSEND.DEB and stores
  105. ; all activities in it. You can redefine this filename and prefix it with '+'
  106. ; to get a continous logfile. Try '?' as filename :-)
  107. FaxDebug +D:\POINT\LOG\FSEND.LOG
  108.  
  109. ; Some older (or cheaper) faxmodems echo all faxdata they receive from FSEND.
  110. ; To suppress the recording of this in the log, use
  111. ;NoGarbage
  112.  
  113. ; You do not want to have a headerline ?
  114.  
  115. ; NoHeaderLine 1
  116.  
  117. ; You do not want to have a footerline ?
  118.  
  119. ; NoFooterLine 1
  120.  
  121. ; Some explantion for the initialisation of your modem:
  122.  
  123. ; FSEND, in modem_init() does the following
  124.  
  125. ; 1) setting baudrate to <DataBaudrate>
  126. ; 2) sending <Reset> and waits for <OK>
  127. ; 3) sending AT+FCLASS=<chosen value>
  128. ; 4) sending <Init> as often as defined here
  129. ; 5) setting baudrate to <FaxBaudrate>
  130. ; 6) sending <Local ID>
  131. ; 7) sending <Capabilities>
  132. ; 9) sending AT+FCR=0 to disable reception
  133.  
  134. ; Each of this steps you can verify in FSEND.DEB or what name you ever gave
  135. ; these file.
  136.  
  137. ; At first tries, FSEND aborts often while doing the above. Try ATE1V1&W to
  138. ; switch to verbose mode and echo mode.
  139.  
  140. ; FSEND works well in Class 2 with Zyxel and Rockwell chipset based Modems.
  141. ; Class 2.0 is implemented yet only by Zyxel and USR. Class 2 works fine,
  142. ; Class 2.0 was only tested on Zyxel (ROM 6.12 and 6.13) and works fine too.
  143.  
  144. ; FSEND with USR was not tested by the autor. Users had reported, they can not
  145. ; bring USR to work with FSEND in Class 2.0.
  146.  
  147. ; FSEND Class 2.0 is implemented 'from the paper' of the standard.
  148.  
  149. ; Maybe FSEND is wrong.
  150. ; Maybe the standard is wrong.
  151. ; Maybe manufacturers had not made their homework.
  152.  
  153. ; Finaly, FSEND will never be ported to DOS, but for serious callers, the
  154. ; source code is available from the autor. There is NO copyright. You can
  155. ; do anything with FSEND or the source code EXCEPT:
  156.  
  157. ; DO NOT RENAME FSEND to elsewhat and distribute it!
  158.  
  159. ; DO NOT ALTER THE SOURCE CODE, COMPILE AND NAME IT "FSEND".
  160.  
  161. ; Please fell free to contact the autor:
  162.  
  163. ; FidoNet 2:313/9.59
  164. ; Internet HPOLLACK@gw1-x203.uibk.ac.at
  165.  
  166. ; Error reports without a copy of the FSEND.DEB are SENSELESS.
  167.  
  168. ; Many thanks to Bernhard Seidl and Gerold Pummer
  169. ; for excessive tests of various (beta) versions of FSEND.
  170.  
  171. ; Commandline parameters:
  172.  
  173. ;C:\FSEND /?
  174.  
  175.  
  176. ;--------------------------------------------------
  177. ;FSEND  Fax Send with Class 2/2.0 Modem Vers. 0.08b
  178. ;Serial No. 0000-0000-000000     No Rights Reserved
  179. ;Sep 04 1994                           Dr.H.Pollack
  180. ;--------------------------------------------------
  181.  
  182. ;FSEND.EXE -p<phonenumber> -i<filename> [options]
  183. ;Options:  -i<filename> . Filename(s) to send [*.TIF or *.TXT]
  184. ;          -p######### .. Phonenumber to call
  185. ;          -d<anything> . Recipient of Message [empty]
  186. ;          -c<filename> . Configurationfile [FSEND.CFG]
  187. ;          -testdcdoff... Do NOT test carrier (DCD)
  188. ;          -r[#] ........ Inputfile is FAX-RAW [FillOrder 1/2]
  189. ;          -t ........... Trace activities on screen
  190. ;          -x ........... Save each page as FXDTnnnn.BMP [off]
  191. ;          -h or /h or -? or /? showes this.
  192.  
  193. ; -i
  194.  
  195. ; You can enter input file as much as you like (and the OS/2 can handle :-).
  196. ; Wildcards like '*' and '?' are supported. Filenames without extention are
  197. ; treated as '*.TIF'. Single and multi page TIFF is supported.
  198.  
  199. ; -p
  200.  
  201. ; You can enter the phone number in one string or splitted by blanks (e.g.
  202. ; '-p0321 543 76 98') but do not use dashes or slashes inbetween the number.
  203. ; The phone number is put in the headerline of the fax.
  204.  
  205. ; -d
  206.  
  207. ; The same rule as in '-p'. There is no casetranslation.
  208.  
  209. ; -c
  210.  
  211. ; selfexplanating, I hope :-)
  212.  
  213. ; -testdcdoff
  214.  
  215. ; FSEND tests (in a background thread) the existence of Data Carrier. Some
  216. ; modems do not handle this signal in the right way, so you can switch off
  217. ; this test. An idication is, if an error is reported while 'handshaking sound'
  218. ; is produced. FSEND will (should :-) never hang to infinity even if this test
  219. ; is disabled, because all is checked by timeout. Checking DCD only speeds up
  220. ; the aborting sequence.
  221.  
  222. ; -r[#]
  223.  
  224. ; FSEND can send raw fax data (in the form BinkleyTerm produces PAGEnnnn.FAX),
  225. ; but it is strongly recommanded, to DO NOT USE THIS FEATURE because
  226. ; unpredictable results are the rule :-). This switch is only for testing.
  227.  
  228. ; -t
  229.  
  230. ; All informations which are written to FSEND.DEB is copied to the screen.
  231. ; Senseful while testing, but timeconsuming.
  232.  
  233. ; -x
  234.  
  235. ; For checking the validy of your source (TIF or TXT or RAW). A file
  236. ; FXDTnnnn.BMP is stored for each page. The BMP is inverse (last scanline
  237. ; first). This switch should be used only to test pagegeneration.
  238.  
  239. ; Finaly:
  240.  
  241. ; There is, in fact, no purpose, why FSEND should realy work. The Class 2
  242. ; fax communication rules (right, there is NO STANDARD) are crippled and each
  243. ; manufactuerer of faxmodem uses its own rules. Commercial faxprograms works
  244. ; fine with a great number of modems, but in fact, they tread each modem in a
  245. ; certain manner. It can not be the result of a free available faxprogram
  246. ; to work with each and every modem on the market. But it works with a lot
  247. ; of modems, more then expected :-).
  248.  
  249. ; Class 2.0 is an adopted and recommanded standard, but at the time, FSEND
  250. ; was written, only two modems (Zyxel and USR) was available with this class.
  251.  
  252. ; Hint (in case of errors :-)
  253.  
  254. ; 1) You are misinterpreting this document
  255. ; 2) FSEND could not interpret some lines, because you had mixed up Class 2
  256. ;    and Class 2.0 commands.
  257. ; 3) FSEND could not handle your TIF.
  258. ; 4) Your modem is misinterpreting commands from FSEND (the normal case :-)
  259. ; 5) Public telephone lines were NOT build for fax. Each errorfree page
  260. ;    should be treaded as a surprise.
  261. ; 6) Do NOT try to transmit at high speeds. Faxmachines normally sends with
  262. ;    4800 bps or less!
  263. ; 7) Your preferred faxprogram works well, FSEND not. Well that's a fact.
  264.  
  265.