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