home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / romes100.zip / ROMES.INF (.txt) < prev    next >
OS/2 Help File  |  1999-09-11  |  271KB  |  2,097 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4. RoboticsMessenger (RM/2) controls the USR Message Modems (Plus and Pro) 
  5.  
  6. With RM/2 (in conjunction with e.g. Faxworks, HyperAccessLite, VDIAL/2) the 
  7. Phonetools delivered with the Modem are fully substituted by OS/2-Programs, so 
  8. there is no need to start a WINOS/2-Session. 
  9.  
  10. Thanks to Manfred Agne <Manfred.Agne@munich.netsurf.de> who has spend Rossen a 
  11. Sybil License :-))) so the development of this complex solution was possible 
  12.  
  13.  
  14. ΓòÉΓòÉΓòÉ 2. Installation ΓòÉΓòÉΓòÉ
  15.  
  16. Installation is simple. Just unzip the archive and run install.cmd. No entries 
  17. are done in the config.sys or in the OS/2 ini files. For removing simply delete 
  18. the selected directory. 
  19.  
  20.  
  21. ΓòÉΓòÉΓòÉ 3. Setup ΓòÉΓòÉΓòÉ
  22.  
  23. Open RoboticsMessenger/2. 
  24. For the correct settings consult also the smp_sdk.pdf file available at 
  25. ftp://ftp.3Com.de/pub (ATTENTION Developers: it contains some bugs !!). 
  26. It is also recommended to upgrade the code of the modem to the latest available 
  27. one. Look at ftp://ftp.3Com.de/pub and choose the dos version of the update (in 
  28. case you don't want to install windows9x - and there are a plenty of good 
  29. reasons for not doing that). 
  30.  
  31. If you do a 'right mouse click' in RM/2 you can select the 'used font'and its 
  32. size (e.g. WarpSans 9.0 works fine with 1024X768 screenresolution) 
  33.  
  34. As the log file pops in front whenever you do an action adjust its size and 
  35. position so it will no longer disturb, but give you useful informations. 
  36.  
  37. Now click on the 'Modem-Setup' Button and make the settings on the correspondig 
  38. Notebook pages. 
  39.  
  40.  
  41. ΓòÉΓòÉΓòÉ 3.1. Message Modem ΓòÉΓòÉΓòÉ
  42.  
  43. These settings are valid for all Modem Types (Plus and Pro) 
  44.  
  45. 1. Self Mode 
  46. enables the 'self mode' of the message modems, so that they can receive faxes 
  47. and messages independent from the computer. Please select first the correct 
  48. Modem Type, if you own the MESSAGE PRO activate the corresponding checkbox. If 
  49. you select to disable the self-mode, this setting is saved until the next start 
  50. of the RoboticsMessenger/2. Each time you start the RoboticsMessenger/2, or 
  51. after using the 'Initialize' Button on the 'Main-Page' the self-mode is 
  52. activated! (Auto-Initialize). 
  53. MESSAGE MODEM (The AT command is AT+MCS=1 for on, AT+MCS=0 for off). 
  54. MESSAGE MODEM PRO (The AT command is AT+MCA=1 for on, AT+MCA=0 for off). 
  55.  
  56. TIP: Cause the RoboticsMessenger/2 uses a auto-initialize routine everytime 
  57. he's started, deselect - if you want to deactivate the self-mode permanently - 
  58. the 'autoinit' checkbox. 
  59.  
  60. TIP: Some users complained that the selfmode is deactivated everytime after 
  61. they used another communication program (e.g. an internet dialer). If you read 
  62. your modem handbook carefully, you'll find some AT-COMMANDS for storing the 
  63. actual mode (with selfmode enabled !) in a NVRAM PROFILE. After making the 
  64. correct settings (naturally you must also use this profile as default) the 
  65. modem will deactivate the 'selfmode' when it goes into the 'datamode' and 
  66. restores the 'selfmode' after finishing the communication program. Quite nice, 
  67. cause from now on you never have to activate the 'selfmode' again, so RTFM ;-). 
  68. But be careful not to mess up your profile, if this happens send a ATZ4 to the 
  69. modem so that the custom default settings made by 3COM/USRobotics are used. 
  70.  
  71. 2. Call Monitor 
  72. enables the 'Message Control Monitor', i.e. audio signals are routed to the 
  73. speaker (AT command is AT+MCM=1 for on, AT+MCM=0 for off) 
  74.  
  75. 3. Voice Reception 
  76. enables the reception of voice messages (AT command is AT+MCV=1 for on, 
  77. AT+MCV=0 for off) 
  78.  
  79. 4. Fax Reception 
  80. enables the reception of faxes (AT command is AT+MCF=1 for on, AT+MCF=0 for 
  81. off) 
  82.  
  83. 5. DialUp Retrieval 
  84. enables the remote retrieve of the stored voice messages (AT command is 
  85. AT+MCD=1 for on, AT+MCD=0 for off). Consult your Modem Handbook for using this 
  86. feature 
  87.  
  88. 6. Report Clock (NOT IN THE PHONETOOLS) 
  89. reports the current clock setting (AT command is AT+MCC?) 
  90.  
  91. 7. Reset Clock (NOT IN THE PHONETOOLS) 
  92. (Re-)starts the build-in clock (AT command is AT+MCC) 
  93.  
  94. 8. Incoming Rings 
  95. sets the number of incoming rings before the modem answers between 3-6 (AT 
  96. command is AT+MCR=X) 
  97.  
  98. ATTENTION For a correct teamwork together with a faxing program (e.g. Faxworks) 
  99. you should select in the faxprogram a smaller amount of 'incoming rings' than 
  100. in the 'modem setup'. Example: When you defined in RoboticsMessenger/2, that 
  101. the MESSAGE MODEM should answer after 5 Rings, you should select in Faxworks 3 
  102. or less rings, cause otherwise the messages are stored into the modem memory 
  103. and the faxprogram has no chance to get the connection. : 
  104.  
  105. 9. Voice Message Duration 
  106. specifies the duration of received voice messages in seconds, range 1-254, 0 or 
  107. 255 is no limitation (AT command AT+MVD=X) 
  108.  
  109. 10. FaxID 
  110. Your complete phone number including the country code (e.g. ++49 30 1234567) 
  111. ATTENTION it seems that the modem has an bug ! 
  112.  
  113. 11. Dialup Password 
  114. sets up and stores the dialup password. Insert a 4-digit string e.g. 1111 (AT 
  115. Command is AT+MCP=4-digit string) 
  116.  
  117. 12. Change COM Port 
  118. Select the COM Port to which your modem is connect to, then press chance COM 
  119. Port 
  120.  
  121. 13. Read Settings 
  122. reads the stored settings. 
  123. ATTENTION there is no 'autoread' like in the Phonetools, cause this slows down 
  124. the use. 
  125.  
  126. 14. New Settings 
  127. Transfers and stores the new settings to your modem 
  128. ATTENTION this could take some time, wait till the log shows ok. 
  129.  
  130.  
  131. ΓòÉΓòÉΓòÉ 3.2. Message Modem Pro ΓòÉΓòÉΓòÉ
  132.  
  133. Originally there should be exclusively to OS/2 the possibility to do a 
  134. fax-forwarding as introduced with the modem-code 14.2.7. As USRobotics /3Com 
  135. has withdrawn/not implemented this feature in Version 12.2.8 available on as 
  136. the latest modemcode there is only a message on this page. 
  137.  
  138.  
  139. ΓòÉΓòÉΓòÉ 3.3. Greetings ΓòÉΓòÉΓòÉ
  140.  
  141. 1. Play Greeting 
  142. plays the greeting message recorded by you (press stop to interrupt) (AT 
  143. command AT+MVP=0) 
  144.  
  145. 2. Record Greeting 
  146. records the greeting message, press stop at the end of your recording (AT 
  147. command AT+MVR=0) 
  148.  
  149. 3. Play "MEMORY FULL" Message (NOT IN THE PHONETOOLS) 
  150. plays the memory full message recorded by you (press stop to interrupt) (AT 
  151. command AT+MVP=255) 
  152.  
  153. 4. Record "MEMORY FULL" Message (NOT IN THE PHONETOOLS) 
  154. records the memory full message, press stop at the end of your recording. (AT 
  155. command AT+MVR=1) 
  156.  
  157.  
  158. ΓòÉΓòÉΓòÉ 3.4. Special ΓòÉΓòÉΓòÉ
  159.  
  160. 1. Update NVRAM (NOT IN THE PHONETOOLS) 
  161. updates the stored informations 
  162.  
  163. 2. Erase Flash Memory (NOT IN THE PHONETOOLS) 
  164. erases the user sector (see next point), its mirror and the messages sector, 
  165. i.e. all stored information is lost! BE CAREFUL WHEN USING IT, it is only for 
  166. maintenance purposes! (AT command AT+MEA) 
  167.  
  168. 3. Erase User Sector (NOT IN THE PHONETOOLS) 
  169. erases the user sector which holds, the FaxID string, the outgoing message and 
  170. the memory full message. BE CAREFUL WHEN USING IT, it is only for maintenance 
  171. purposes! (AT command AT+MEU) 
  172.  
  173.  
  174. ΓòÉΓòÉΓòÉ 3.5. Editing of the added frec cfg ΓòÉΓòÉΓòÉ
  175.  
  176. This step is necessary for converting the Raw G3 faxes and GSM sound files to 
  177. TIFF and WAV, without these settings frec and pcmtowav won't function! 
  178.  
  179. Open with any editor (e.g. e.exe) the file frec.cfg and adjust the following 
  180. lines 
  181.  
  182. LocalID Your FAX ID; e.g ++49 30 1234567 
  183. ComPort The COM port where your modem is attached; e.g. COM2 
  184.  
  185. THIS IS THE MINIMUM SETTING FOR FREC and only a subset. Please consult the frec 
  186. chapter for a complete documentation 
  187.  
  188.  
  189. ΓòÉΓòÉΓòÉ 3.6. We are ready to lift off ;-) ΓòÉΓòÉΓòÉ
  190.  
  191. Now you're ready. 
  192.  
  193. Start RoboticsMessenger/2, lay back and enjoy the windoze free 'total recall' 
  194. of your message modem. 
  195.  
  196.  
  197. ΓòÉΓòÉΓòÉ 4. Usage ΓòÉΓòÉΓòÉ
  198.  
  199. On the next pages you'll find detailed explanations how to use 
  200. RoboticsMessenger/2 
  201.  
  202.  
  203. ΓòÉΓòÉΓòÉ 4.1. Main Page ΓòÉΓòÉΓòÉ
  204.  
  205. Starting the RoboticsMessenger/2 makes an autoinitialisation, this means all 
  206. for the use necessary parameters are enabled, also the self-mode (even when you 
  207. have disabled it in the modem setup). According to our experiences you should 
  208. not run into any trouble with the activated self-mode even when using other 
  209. programs. But if you want to deactivate the self-mode for permanent you can 
  210. find in modem setup a checkbox. If you have deactivated the 'autoinit' in the 
  211. modem setup you have to press first 'Initialize' before doing other actions. 
  212.  
  213. click the 'Status Report'-Button to get a detailed report of the received 
  214. messages. You can scroll through the message window by using the mouse, the 
  215. down and up, or the page buttons on your keyboard. 
  216. Btw. 'D', 'H', 'M' stands for the Day(s), Hour(s) and Minute(s) since the last 
  217. reset of the internal modem clock. 'R' stands for released, and 'C' for 
  218. cleared. 
  219. If you click on the arrow near the 'drop-down-list' window titled 'Modem 
  220. Report' you'll get some informations about your modem, like the used memory, if 
  221. the outgoing messages are there etc. 
  222.  
  223.  
  224. If you select an voice file and press 'play voice message' you can hear the 
  225. message through your modems speaker. By a right mouse click and selecting 'user 
  226. break' you can interrupt the playing. 
  227.  
  228. Click 'memory dump' to transfer the received messages into your computer. 
  229. Instead of the title 'Modem Report' now appears a text showing you how many % 
  230. of the memory has been transferred and how many kByte are already transferred 
  231. until now. 
  232. ATTENTION: this could take some time !, wait till the log says ok (transfer 
  233. speed is around 2kbyte/s). (AT command is AT+MTM). 
  234.  
  235. Then press 'make message files', to seperate the transferred dump.dat into Raw 
  236. G3 faxes and GSM sound files. The files are stored in the subdirectories 'fax' 
  237. and 'voice'. 
  238.  
  239. Now press 'convert msg files', to convert the faxes to Tiff and the voices to 
  240. wav. The generated messages will appear at the 'message files' page. 
  241.  
  242. ATTENTION: All actual received faxes are stored in ONE SINGLE FAX FILE. This 
  243. has the advantage, that interrupted faxes are somehow 'glued' together, but on 
  244. the other hand the disadvantage that different faxes are stored together in one 
  245. fax. 
  246.  
  247. You can delete the received messages selecting 'erase all messages'. (AT 
  248. command AT+MEM). This button erases the modem memory. 
  249. Unfortunately it is not possible to delete single messages, but this is a 
  250. <feature> of 3Com we can't change. 
  251.  
  252.  
  253. ΓòÉΓòÉΓòÉ 4.1.1. Error correction ΓòÉΓòÉΓòÉ
  254.  
  255. After processing 'memory dump' which transfers the modem memory to a file named 
  256. 'dump.dat' you can try the command line tool splitdump.exe by Dr.Pollack (this 
  257. file is also copied to your RM/2 folder). 
  258. Usage: splitdump.exe dump.dat. 
  259.  
  260. If the received messages have 'bad blocks' (this appeared often with the early 
  261. flash biosses) you can patch them by selecting the bad block and pressing 
  262. 'patch block' on the seperate 'pacht dump file' page. 
  263. REMEMBER THIS IS AN ULTIMA RATIO if nothing else works, always try splitdump 
  264. before patching. 
  265.  
  266. You can start Romes with the 'log' parameter, so all AT-Commands and their 
  267. return codes are stored in a log file. If RoboticsMessenger/2 fails to work you 
  268. can send us the log for error correction. 
  269.  
  270. If you got a Fax which sqeezes in printing several pages on one load it with 
  271. PMView and scale only the width in the printing dialog to get the right numbers 
  272. of pages (resulting width should be 21cm for A4, or 21,59cm for legal, but 
  273. maybe you have to experiment). When printing you get a readable document (but 
  274. not a professional looking fax). 
  275.  
  276.  
  277. ΓòÉΓòÉΓòÉ 4.2. Message Files page ΓòÉΓòÉΓòÉ
  278.  
  279. There you can delete, see or hear the received files, individually for fax and 
  280. wav. In the upper window are informations shown for every selected file (Wav 
  281. and Fax), e.g.:  .gsm : 16, this means the original file was a GSM-Soundfile of 
  282. 16 secs. duration, or fg3 : 6 stands for Fax Raw G3-File with 6 pages 
  283.  
  284. To play a sound file select it from the left window and press the 'play' button 
  285. or make a double leftbutton mouseclick. You can interrupt it by pressing 
  286. 'stop'. To function you first have to compile a gsm.dll by using the added 
  287. sources out of the gsm.zip package. (Legal rights forcing us to do this 
  288. unpleasurable step. Please look also at know bugs and limitations). 
  289.  
  290. The fax files can be viewed and printed selecting a file from the right window 
  291. and then pressing 'view fax' or make a double leftbutton mouseclick. This will 
  292. start faxview with the given file in your fax directory. 
  293.  
  294.  
  295. ΓòÉΓòÉΓòÉ 4.2.1. Usage of RAW G3 faxes and GSM-Files ΓòÉΓòÉΓòÉ
  296.  
  297. You can also view the raw G3 faxes by using the faxviewer of Dr.Pollack. This 
  298. is the only Raw G3 faxviewer for OS/2 we know). 
  299.  
  300. But this is only for a first impression and not recommended at all (especially 
  301. with faxes more than one page, cause when printing them they are sqeezed to one 
  302. page). 
  303.  
  304. You better convert the raw G3 faxes with frec.exe to tiff (the standard OS/2 
  305. fax-format), it can also generate the right settings for working together with 
  306. faxworks :-). As a benefit for converting them you get remarkably 'cleaner' and 
  307. 'crispier' faxes. 
  308.  
  309. Once converted the files can be viewed (and printed, etc.) with the faxviewer 
  310. by Dr.Pollack, impos/2, Pmview, Faxworks... 
  311.  
  312. Btw. frec can also generate RAW G3 FAXES out of the transfered dump.dat (try 
  313. this if RM/2 fails, cause frec has some command line parameters for 'incorrect' 
  314. received faxes). 
  315.  
  316. You can convert the GSM sound files also by using pcm2wav, but unfortunately 
  317. (see know bugs and limitations) you first have to compile the added sources 
  318. from the gsm.zip package to get a gsm.dll :-(( (but you should take a close 
  319. look on it). For the usage of pcm2wav read the added documentation. 
  320.  
  321.  
  322. ΓòÉΓòÉΓòÉ 4.3. Commands Page ΓòÉΓòÉΓòÉ
  323.  
  324. In the upper window you can type any AT-Command you want e.g.: ati6. After 
  325. pressing 'EXECUTE' the command will be sent to the modem and in the lower 
  326. window you'll get the modems response. 
  327.  
  328.  
  329. ΓòÉΓòÉΓòÉ 5. Faxview ΓòÉΓòÉΓòÉ
  330.  
  331. FAXVIEW is designed to work as: 
  332.  
  333.       1) Viewer for images files in TIF or BMP format 
  334.  
  335.       2) Printutility for images files in TIF or BMP format 
  336.  
  337.       3) Realtime fax viewer for FREC and FSEND 
  338.  
  339.       4) Utility to create fonts for FSEND from OS/2 installed fonts 
  340.  
  341.       5) Utility to change color of image and save (as BMP or TIF) 
  342.  
  343.       6) Maintainance of FAX.LOG and VOICE.LOG 
  344.  
  345.       7) User interface for playback of voice files in VOICE.LOG 
  346.  
  347.  FAXVIEW is a PM application and needs FAXIMG.DLL to work properly. 
  348.  
  349.  The HUFFMAN.DLL is not longer supported! 
  350.  
  351.  
  352. ΓòÉΓòÉΓòÉ 5.1. Faxview Usage ΓòÉΓòÉΓòÉ
  353.  
  354. The 'normal' use is quite simple, cause for the most used commands 'open file', 
  355. 'print', 'turn 180 degrees', 'next page', 'previous page', 'open fax log', 
  356. 'open voice log', 'save file' and 'zoom' there are buttons in the taskbar. 
  357.  
  358. Using Faxview the first time you should choose in the menue 'options' 'save 
  359. preferences', so a faxview ini is written (either in the path where faxview is 
  360. stored or in the /os2/ path) and all choices you've made (printer, window 
  361. settings, open path, open file type etc.) are reminded for the next start. 
  362.  
  363. In 'advanced' use you can select many options by menue. 
  364.  
  365. FILE lets you open, close or reload a BMP, TIF or TIF in EPS image. br. Save 
  366. the file as bmp or tif in different 'tastes', save it as icon, or add the 
  367. specific icon to the file. 
  368. You can print the file with options and select the printer. 
  369. Store the device capabilities (screen, printer and sound). Tiff tag is not 
  370. implemented yet. 
  371. Open the logs (voice.log and fax log). 
  372. And exit the program (Alt x). 
  373.  
  374. EDIT lets you select or deselect the whole file or parts of it. 
  375. You can copy the selected to the OS/2 cliboard, or paste the clipboard. 
  376.  
  377. OPTIONS lets adjust the fax to scaled (Alt s, prefered), unscaled (Alt u), zoom 
  378. (Alt z) or scale it to the Faxview window (prefered, scaled has also to be 
  379. selected). 
  380. You can change the drawing mode to Gpi Draw and Winbilevelmode (go to command 
  381. lines for more information). 
  382. Rotate the image (90, 180 and 270 degrees). 
  383. Invert the image if shown as negative (Alt n). 
  384. Optimize the color palette (if you use 256 colors or less). 
  385. Save the choosen preferences (this means all that you've selected is saved as 
  386. preference in the faxview.ini). 
  387. Make fax fonts (necessary for sending faxes with fsend out of fax*.lzh). 
  388. Additionally there are some possibilities to chance the image (Graymode, 
  389. Colormode and convert it to different Color- and Grayresolutions, or to Black 
  390. and White). 
  391.  
  392. VIEW lets you select the page you want to view. 
  393.  
  394. HELP shows the product information and lets you select a wav file to play. 
  395. Showing help is not implemented yet. 
  396.  
  397.  
  398. ΓòÉΓòÉΓòÉ 5.2. COMMAND LINE PARAMETERS ΓòÉΓòÉΓòÉ
  399.  
  400. FAXVIEW accepts a few commandline options: These are additional informations 
  401. and not needed for using Faxview together with the RoboticsMessenger/2. 
  402.  
  403. -VOICELOG 
  404. -FAXLOG 
  405. FAXVIEW starts with the LogWindow. Path to FAX.LOG and VOICE.LOG should be 
  406. stored in FAXVIEW.INI by entering the correct path and 'Save Preferences'. 
  407.  
  408. -GPIDRAW 
  409. Formerly, this was named '-FASTDRAW', but has changed in version 0.39a. It is 
  410. possible to influence this by 'Option' in menu. 
  411.  
  412. Normally, FAXVIEW uses a double buffering image routine to display or print a 
  413. bitmap. First the bitmap is copy to a memory device and the resulting hBitmap 
  414. is than drawn to screen/printer by GpiWCBitBlt, which is also performing 
  415. streching or shrinking if in 'scale' mode. 
  416.  
  417. If using '-GPIDRAW' (or selecting it in menu), GpiDrawBits (streched if scaled) 
  418. draws directly to screen/printer and no hBitmap is created. 
  419.  
  420. The default (double buffering and GpiWCBitBlt) seems to work on each display 
  421. and printer. The creation of the intermediare bitmap is fast enough for little 
  422. images (not more than 200 pixel per direction), but with larger images, 
  423. -GPIDRAW improves speed enormously, but as said above, it does not work on each 
  424. device... 
  425.  
  426. -WINBILEVELMODE 
  427. Obviously, WINDOWS (3.x) applications treat bilevel (black&white) bitmaps 
  428. differently than OS/2 PM when drawing to a device. Due to the fact, that 
  429. bilevel bitmaps HAVE a ColorTable, color of resulting image can be interpreted 
  430. as indexed (0-bits refer to ColorIndex 0 and 1-bits refer to ColorIndex 1) as 
  431. described in Microsfts Windows Software Development Kit Reference or strictly 
  432. 0-bits have background color and 1-bits have foreground color as described in 
  433. OS/2 GPI reference. As a surprise, most WINDOWS (3.x) application use methode 
  434. of GPIREF and most OS/2 applications use methode of MS Windows SDK. CONFUSING! 
  435.  
  436. Normally, FAXVIEW works in the mode that ColorIndex is only used from GPI 
  437. itself, while in WINBILEVELMODE, foreground and background colors are set 
  438. according to ColorIndex. Try carefully before using... not fully tested! 
  439.  
  440. This parameter is also accessable via menu - option. 
  441.  
  442. -NEGATIVMODE 
  443. It can be watched, that some applications (WINDOWS and OS/2 PM) additionally 
  444. inverse there produced bitmaps and can only treat inverted bitmaps in the right 
  445. way. This parameter works INDEPENDANTLY of the menu - option selection and 
  446. should be used only in batch printing. Try carefully before using... not fully 
  447. tested! 
  448.  
  449. -IDLEPRINT 
  450. Printing is quite fast and depends on the printer device driver. Certain 
  451. printer drivers (esp if used in 'printer specific data' mode) are very slow and 
  452. blocks in fact the whole system. With this option, such drivers will work in 
  453. 'idle time', a portion of time, where no other activity takes place. this makes 
  454. the printout more timeconsumeing, but other tasks are as fast as usual. Try 
  455. with care! 
  456.  
  457. -PRINT | -PRINT<QUEUENAME> 
  458. This is a switch to enable batch-print-facility of FAXVIEW. You can print one 
  459. (and ONLY one) file (single or multipage TIF or BMP) to the default printer - 
  460. this is the printer you have enabled by clicking right mouse button on the 
  461. desktops printer icon and selecting 'Set default' (in german 'Standard')- or to 
  462. 'queuename' - use excatly the same name as directory in SPOOL is named - . No 
  463. wildcards ('?' or '*') should be in 
  464. '-b<filename>'. FAXVIEW is started iconized (same as additional -ICON). 
  465.  
  466. -FROMPAGE<startpage> 
  467. Submit pagenumber for startpage to print (no space in commandline!). 
  468.  
  469. -TOPAGE<endpage> 
  470. Submit pagenumber for endpage to print (no space in commandline!). 
  471.  
  472. -PAGES<pagecount> 
  473. Submit pagecount for number of pages from startpage (no space in commandline!). 
  474.  
  475. These three keywords are only usefull if '-PRINT' is used. 
  476.  
  477. -QUEUE<QUEUENAME> 
  478. Preselect a printerqueue for further working as default printer (is highlighted 
  479. in 'Printer Setup'). 
  480.  
  481. -PAGEDESC 
  482. If TIF-format, entries PageNo, DocumentName, ImageDescription, SoftWare and 
  483. DateTime are printed also (if exist). 
  484.  
  485. -ICON 
  486. FaxView is started 'iconized', useful eg. when used as a pipe-server. 
  487.  
  488. -B <TIF_or_BMP_file> or -B<TIF_or_BMP_file> 
  489. -I <TIF_or_BMP_file) or -I<TIF_or_BMP_file> 
  490. FAXVIEW will 'come up' with the file you have chosen. You can use wildcards (* 
  491. or ?). In this case only the filedialog (when selecting OPEN) will point to the 
  492. selected path. The optional blank between the switch character and the filename 
  493. has only historycal reasons. 
  494.  
  495. -P <name_of_a_pipe> 
  496. Alternativ method to use FaxView in conjunction with FREC. FIRST start FaxView 
  497. (eg. FAXVIEW -P\PIPE\VIEW1 [-ICON]). FaxView will wait for FREC, if this is 
  498. called with -v\PIPE\VIEW1 too. If -ICON option is used, each time FREC 
  499. activates FaxView, FaxView is restored to screen. When FREC finishes, FaxView 
  500. will be iconized again. 
  501.  
  502. -D <ID_string> 
  503. DO NOT USE THIS OPTION !!! It's mentioned here only for completeness! FREC uses 
  504. this option to 'transmit' vital values for the 'realtimemode'. If used from the 
  505. commandline, unpredictable results (eg crash of the whole WPS) may occure!!! 
  506.  
  507. -E 
  508. Normaly, FAXVIEW tries to 'collect' (partially) numerical named files (e.g. 
  509. PAGEnnnn.TIF) to present as multipaged. If using this switch, each file is 
  510. treated as single page. This feature is also per default enabled for extention 
  511. *.FAX! 
  512.  
  513. -ERRORLOG 
  514.  
  515. Faxview must be called with '2>ERROR.LOG' in commandline to redirect stderr to 
  516. file ERROR.LOG. 
  517.  
  518. -#<idx_no> 
  519. This is a special commandline option to easyly load fax files via the 
  520. indexnumber. Fax files MUST be in the directory where FaxLog points to. The 
  521. FaxLog can be set in file menu and saved by options. 
  522.  
  523. To load FX000123.FAX simply enter '-#123'. This feature also works in batch 
  524. print mode. To load the last recent stored fax, '-#?' can be used. Information 
  525. about the index is extracted from FAX.IDX, which is normally in the same 
  526. directory as FAX.LOG. 
  527.  
  528. If the received fax from FREC should be printed immediatly (and FaxLog and 
  529. FaxIdx is enabled) simply use: 
  530.  
  531. FAXVIEW -#? -PRINT 
  532.  
  533. -T<taskno> 
  534. Select a tasknumber for a specific instance of FAXVIEW. For each tasknumber a 
  535. different entry in FAXVIEW.INI is maintained. 
  536.  
  537. -SCALE or -UNSCALE 
  538.  
  539. Overwrites the (default) setting from INI. 
  540.  
  541. ONLY FOR TESTING:-K<TIFF_Compression_Scheme_for_Rawdata> 
  542.  
  543. Same as for FREC, default '-k3' is assumed, see also '-R' below! 
  544.  
  545. -R or -R<TIFF_FillOrder_for_Rawdata> 
  546.  
  547. Default '-r1' is assumed. FAXVIEW is able to read fax rawdata as yielded by 
  548. some mailers. 
  549.  
  550. Valid values are only 1 and 2! 
  551.  
  552. ATTENTION! If compression or fillorder does not exactly match the requirements 
  553. of raw data, it is highly possible, that PM (and WPS) will CRASH! Do not use 
  554. it! 
  555.  
  556. Use FREC to convert fax raw data! 
  557.  
  558. -HIGHRES or -LOWRES 
  559.  
  560. Raw fax data is assumed (if in 'scale-mode') in 204x196dpi (default) or 
  561. 204x98dpi, as submitted by command. 
  562.  
  563. -S<Gamma_or_BlackTrigger> 
  564.  
  565. Values between 0.1 and 4.99 are treated as gamma values for DIFFUSED and 
  566. DITHERED representation (trigger for black is set to 127 = 50%). Values from 5 
  567. to 254 (2 - 99%) are treated as trigger for BLACK&WHITE (BiLevel) where gamma 
  568. is set to 1.0. You can influence both gamma and black trigger by entering both 
  569. values consecutive: 
  570.  -S1.2 .... selects gamma 
  571.  -S135 .... selects black trigger 
  572.  
  573. ATTENTION! This is valid only for printing if SIZING of image is selected! 
  574.  
  575. Menu Option - Change image is not (yet) influenced of '-S' switch! 
  576.  
  577. If '-r' or '-k' is used, a raw fax file MUST by supplied by commandline ('-b' 
  578. or '-i'). The commandline options as described ONLY FOR TESTING are NOT TESTED 
  579. in batch printing and therefore will not work as assumed!!! 
  580.  
  581. FileDialog now allows to select values for raw data (other than BMP, TIF or TIF 
  582. in EPS). use this VERY, VERY carefully! If supplied values do not match 
  583. EXACTLY, PM (and WPS) will crash and reboot is neccessary! 
  584.  
  585. FAXVIEW stores (if enabled) its system values (Origin, Size, Maximized, Scaled, 
  586. FilePath and FileType) in FAXVIEW.INI. This file may either be located in the 
  587. same drive and directory where FAXVIEW.EXE is stored or directory which is 
  588. declared by SET USER_INI= in CONFIG.SYS. If no such environment is found, 
  589. FAXVIEW.INI is created in X:\OS2\ where X is your OS/2 bootdrive. This may be 
  590. helpful if FAXVIEW is installed on a network server and each workstation could 
  591. have its own settings. 
  592.  
  593. At startup, FAXVIEW searches X:\OS2\ and if there is no FAXVIEW.INI, it assumes 
  594. the file is where FAXVIEW.EXE is stored (on first start, the INI file is 
  595. therefore placed here). You can copy FAXVIEW.INI to the users bootdrive to fix 
  596. the settings. 
  597.  
  598. If printing, only the cursor changes to sign 'print in progress'. No security 
  599. is done for the case you finish FAXVIEW irregulary (eg by window list or some 
  600. 'killers') when printing!!! 
  601.  
  602.  
  603. ΓòÉΓòÉΓòÉ 5.2.1. One additional word for printing ΓòÉΓòÉΓòÉ
  604.  
  605. It was reported, that bilevel images, which are well display on screen, were 
  606. printed INVERS (and are also shown invers in spool file). 
  607.  
  608. I have searched, what this could be, but only possibility: printer driver does 
  609. NOT check colormap in bilevel bitmap. In bilevel BMP, colorvalue 0 is normaly 
  610. 0,0,0 and colorval 1 is normaly 255,255,255. Black pixels are therefore 0 and 
  611. white pixels 1 (is in fact an idex to 'colormap'). 
  612.  
  613. It is also legal, to use 255,255,255 for colorval 0 and 0,0,0 for colorval 1. 
  614.  
  615. Black pixels are than represented by 1 and white pixels by 0. I know some 
  616. software (and maybe some printerdrivers do also) which IGNORES colormap and 
  617. uses colorinformation only from pixelvalue (which is WRONG)! 
  618.  
  619. Bug reports are wellcomed, but please do not ask for new features. FAXVIEW is 
  620. primarly designed as 'realtime viewer' (and it will work perfectly :-). 
  621.  
  622. Viewing TIF and BMP should also work, but printing 'may' only work. 
  623.  
  624. One final word to 'Scaled' and 'Unscaled': 
  625.  
  626. In 'realtime mode' you MUST use 'Unscaled' and size the image with the 
  627. commandline option (-STANDARD, -PREVIEW, -LARGE or -BITS) when calling FREC!!! 
  628.  
  629. TIF images (TIF) with X_Resolution NOT EQUAL to Y_Resolution (eg. fax in 
  630. 'normal' = 204x98 dpi) are shown only in 'scaled' mode in right size! In 
  631. 'unscaled' mode, FAXVIEW shows a 1:1 image from the source file, which could 
  632. result in shrinked or enlarged (unscaled) images! This is NO BUG! 
  633.  
  634. Printouts to paper (eg DIN A4) are adjusted in a way, that either the image is 
  635. 'centered' if images size is less then papersize or the image shrinked to fit 
  636. in page. 
  637.  
  638. In order to construct faxes from text files, you may need other fonts than 
  639. (internally) supplied with FSEND. FAXVIEW gives you the possibility to 
  640. 'convert' PM fonts (in fact all installed fonts in OS/2) to a fonttype, FSEND 
  641. can use to create a faxpage. It is strongly recommended, to use only fixed 
  642. (nonproportional) fonts. Proportional fonts are also accepted, but with a fixed 
  643. character width (the maximal width a character can have). 
  644.  
  645. With the supplied application FONTEDIT you can 'proportionalize' fonts and 
  646. FSEND may use it. Keep in mind, that fonts may by 'copyrighted'! 
  647.  
  648. One LAST word to fax rawdata files: 
  649. USE FREC to convert them to TIF! FAXVIEW MAY display them, but WITHOUT any 
  650. mechanism to 'resynchronise' if distorted rawdata is encountered! The 
  651. possibility to hang your PM is VERY HIGH, because ABSOLUTLY NO TESTS will be 
  652. done on rawdata. 
  653.  
  654. Saving of an image is possible (BMP or TIF), but only the 'shown' image can be 
  655. saved. So use 'Reload page' if the original contents should be saved (in cases 
  656. the original is changed). When saving to an existing TIF file, the user is 
  657. asked for 'Overwrite', 'Cancel' or 'Append'. If choosing 'Append', the image is 
  658. appended to existing TIF but PageNumbers of this TIF (if existing) are not 
  659. updated. 
  660.  
  661.  
  662. ΓòÉΓòÉΓòÉ 6. Frec ΓòÉΓòÉΓòÉ
  663.  
  664.                                Frec Version x.yyz
  665.                                 Reference Manual
  666.  
  667.  These Informations are for completeness and only needed if you want to use frec
  668.                                for other purposes.
  669.  
  670.            Created 1992 - 1999 by Dr. Harald Pollack & Bernhard Seidl
  671.  
  672.  
  673. ΓòÉΓòÉΓòÉ 6.1. ABBREVIATIONS USED IN THIS DOCUMENTATION ΓòÉΓòÉΓòÉ
  674.  
  675. DTE . . . . . . . . . . Data Terminal Equipment, your PC 
  676. DCE . . . . . . . . . . Data Communication Equipment, your MODEM 
  677.  
  678. CCITT/ITU T.4 . . . . . International standard for coding fax data. 
  679. CCITT/ITU T.30  . . . . International standard for transmitting fax over a 
  680. public switched telephone network. 
  681.  
  682. ANSI/EIA/TIA-578-1990 . Asynchronous Facsimile DCE Control Standard Service 
  683. Class I (the common used class 1). 
  684.  
  685. ANSI/TIA/EIA-592-1993 . Asynchronous Facsimile DCE Control Standard Service 
  686. Class II (the real class 2.0). 
  687.  
  688.  
  689. ΓòÉΓòÉΓòÉ 6.2. WARRANTY ΓòÉΓòÉΓòÉ
  690.  
  691. There is no warranty on this program. You can use it for your own risk. 
  692. The program should work the best way it can. If you detect some malefunction or 
  693. bugs, please report it with the correspondent FREC.DEB log file to the autor. 
  694. Without the log file it is almost inpossible to find and fix a bug. Common bugs 
  695. will be corrected if they are of vital interrest to the program. Wishes for 
  696. some extentions (but not printing and viewing) and hints for making things 
  697. better are welcome. 
  698.  
  699.  
  700. ΓòÉΓòÉΓòÉ 6.3. SOURCE CODE OF THE PROGRAM ΓòÉΓòÉΓòÉ
  701.  
  702. There was very much work and brain in creating Frec. To much for one person. 
  703. So, if anybody has senseful interrest in getting the source code (IBM CSet) he 
  704. could get it. There is only one restriction: do not name your program 'Frec'. 
  705. You can do anything with the sourcecode, read it, sell it, eat it, use it, but 
  706. please do not make a clone named Frec. 
  707. Due to the enhancement to FREC.DLL necessary includes (CLGLOBAL.H and 
  708. COMCAPI.H) are not supplied. 
  709.  
  710.  
  711. ΓòÉΓòÉΓòÉ 6.4. UPGRADING TO A NEW VERSION ΓòÉΓòÉΓòÉ
  712.  
  713. New versions of Frec are always packed in LZH type archives. It is recommended 
  714. to replace all EXE and DLL files and not to use parts of older version 
  715. (especially DLL files). New versions of Frec often use new or modified 
  716. configuration entries and commandline options. Please read all available 
  717. documentation carefully before using a new version. 
  718.  
  719.  
  720. ΓòÉΓòÉΓòÉ 6.5. THE CONFIGURATION FILE ΓòÉΓòÉΓòÉ
  721.  
  722. The configuration file keeps all information required. FREC.CFG needs to be 
  723. modified to suit your system. Please have a look at the sample configuration 
  724. file included in the Frec package. In the following section all keywords and 
  725. parameters are listed and described. 
  726.  
  727. USER 
  728. Name of user of this application may be defined here (31 characters max.). See 
  729. also KEY. 
  730.  
  731. KEY 
  732. A hex digit string to verify users certification. Keyword USER must also be 
  733. defined BEFOR this keyword is used. 'USER' plus 'KEY' gives a personal 
  734. signature which will be used for some features. A valid key may be obtained 
  735. from author. 
  736.  
  737. NOLOGONBAD 
  738. If Frec is used in conjunction with third party environment (e.g. FaxWorks, see 
  739. also FAXLOG and FAXIDX keywords) and this keyword is used, no log entry will be 
  740. generated if there occured an error while receiving or no fax session was 
  741. established. 
  742.  
  743. [TASK <n>] 
  744. Starts a section within the configuration file which only effects the selected 
  745. task. To end a section you can either use another [TASK <n>] keyword which 
  746. would start another section or use the keyword [COMMON], described below. 
  747.  
  748. [COMMON] 
  749. All keywords after this statement belong to all tasks. 
  750.  
  751. CONFIGEND 
  752. Frec will stop working off the configuration file and everything following this 
  753. keyword will be ignored. 
  754.  
  755. LOGBINKLEYSTYLE 
  756. Using this keyword Frec will generate BinkleyTerm like log entries. 
  757.  
  758. USROBOTICS 
  759. Special keyword to indicate that a USRobotics modem is used. Must be set to 
  760. allow some workarounds for nonstandardized actions! 
  761.  
  762. FAESPECIAL 
  763. Some modems on the market have a certain behaviour, if used in adaptiv 
  764. autoanswer and fax class 1 or 1.0 (AT+FAE=1). If modem detects a fax call it 
  765. responses with FAX and CONNECT to indicate the successful session 
  766. establishment. If modem detects a data call, it responses with DATA and 
  767. reenters the command mode. So software has to send ATO to modem to establish 
  768. the data session which is triggered by this parameter. 
  769.  
  770. OLDDTR 
  771. Frec uses the methode of 'DTR-drop' (switching modemline DTR off and on) to 
  772. reset the modem and to force a on-hook condition. This switching might be done 
  773. in two ways (different calls to DosDevIOCtl). 
  774.  
  775. CLMINIMIZEDNOVIEW 
  776. If FREC.DLL is called from a minimized CantaLoup/2, FaxView is not started at 
  777. all. If machine is highly stressed this is recommanded. 
  778.  
  779. CHANGEBAUD <n> 
  780. Some modems on the market must have 19200 bps set in phase C (faxdata 
  781. reception). To properly switch to 19200 bps, FAXBAUDRATE must be set to 19200 
  782. also. Depending on value <n>, the switch is performed at different states of 
  783. (nonstandardized) Class 2 protocol: 
  784.  
  785.       0 . . . nothing happens, is equal to not using this keyword 
  786.  
  787.       1 . . . FaxBaudRate is set a startup 
  788.  
  789.       2 . . . FaxBaudRate is set, when +FCON is detected 
  790.  
  791.       3 . . . FaxBaudRate is set, when OK is detected 
  792.  
  793.  Note: If CHANGEBAUD is used without parameter <n>, a value of 1 is assumed 
  794.  (for compatibility of older versions of Frec). If using n=2, Frec must be 
  795.  called, when modemresponse FAX is received! 
  796.  Almost all Rockwell chipset modems report 'FAX' before '+FCON'. Unfortunately 
  797.  there is no common rule which says what value of this keyword is required for 
  798.  a specific modem. You have to try it out ... 
  799.  
  800.  FORCERETRAIN 
  801.  If Frec is used to receive only raw fax data in PAGEnnnn.RAW files, no 
  802.  checking of copyquality is done at all. Enabling this feature will always send 
  803.  RTP(ReTrain Positiv) instead of MCF (MessageConFirmation) to sender of fax. 
  804.  Preferable on known weak or bad phonelines. 
  805.  Attention: Fax transmissions by fax modems and unknown fax software (trashware 
  806.  :-) may fail when receiving this post page message. 
  807.  
  808.  LOGLEVEL <n> 
  809.  Writing to FAXDEBUG depends on this value (0 to 5). 
  810.  
  811.       0 ... do NOT write to FAXDEBUG (is equal to 'FAXDEBUG NUL') 
  812.  
  813.       1 ... ERROR only 
  814.  
  815.       2 ... ERROR + SEND + RECEIVE only 
  816.  
  817.       3 ... ERROR + SEND + RECEIVE + ACTION only 
  818.  
  819.       4 ... ERROR + SEND + RECEIVE + ACTION + WAIT FOR only 
  820.  
  821.       5 ... ERROR + SEND + RECEIVE + ACTION + WAIT FOR + INFO (default) 
  822.  
  823.  DEBUG 
  824.  Enables a lot of stuff for debugging. Do not use, because LOG will increase 
  825.  enormous. 
  826.  
  827.  TIFEXT <extension> 
  828.  Default extension for saved fax files ".TIF" may be overwritten. If 
  829.  commandline switch '-ZFAX' is used, this is automatically overwritten by 
  830.  ".FAX" and if '-SFF' is used, extension ".SFF" is used. Use this to enable 
  831.  some compatibility to third party software. 
  832.  Attention: If '-ZFAX' or '-SFF' switch is used, TIFEXT is not used! 
  833.  
  834.  FAXEXT <extension> 
  835.  Default extension for saved fax files ".FAX" if FAXLOG and FAXIDX is used. May 
  836.  be overwritten, but FAXVIEW and third parties applications will never find the 
  837.  file from index number. If commandline switch '-FAX' or '-SFF' is used, FAXEXT 
  838.  is never used. 
  839.  
  840.  INBOUND <path to inbound> 
  841.  If DESTNAME and DESTADDR are also defined, a netmail (????????.PKT) is created 
  842.  each time a fax is stored. Is not in affect, if '-x' commandline switch is 
  843.  used! 
  844.  
  845.  DESTNAME <string> 
  846.  If this, INBOUND and DESTADDR is defined in FREC.CFG, a netmail is created and 
  847.  addressed to. 
  848.  
  849.  DESTADDR <FidoNet style address> [<paket password>] 
  850.  Must be defined to create an announcing netmail. Address MUST be in strict 4D 
  851.  format (zone:net/node.point). To address a node, point 0 must be used. 
  852.  
  853.  SRCNAME <string> 
  854.  Used to form the 'From:' part of the announcing netmail. Default is: "FREC". 
  855.  
  856.  SRCADDR <FidoNet style address> 
  857.  Normally this is the address of local system. Defaults to DESTADDR. 
  858.  
  859.  SUBJECTRECFAX <string or '%'> 
  860.  Used in creation of announcing netmail on incoming fax. If '%' is the first 
  861.  (or only) character, the filename in which the fax is stored will be placed in 
  862.  subject part of netmail. Default is: "Announcement of incoming FAX". 
  863.  
  864.  RINGCNT <n> 
  865.  Number of rings FREC is skipping till modem goes off-hook. In stand alone mode 
  866.  only. 
  867.  
  868.  TEXTCOLOR <colorvalue> 
  869.  Select color of characters on Frec status screen: 
  870.  
  871.       0 . . . BLACK 
  872.  
  873.       1 . . . BLUE 
  874.  
  875.       2 . . . GREEN 
  876.  
  877.       3 . . . CYAN 
  878.  
  879.       4 . . . RED 
  880.  
  881.       5 . . . MAGENTA 
  882.  
  883.       6 . . . BROWN 
  884.  
  885.       7 . . . LIGHTGRAY 
  886.  
  887.       8 . . . DARKGRAY 
  888.  
  889.       9 . . . LIGHTBLUE 
  890.  
  891.       10  . . LIGHTGREEN 
  892.  
  893.       11  . . LIGHTCYAN 
  894.  
  895.       12  . . LIGHTRED 
  896.  
  897.       13  . . LIGHTMAGENTA 
  898.  
  899.       14  . . YELLOW 
  900.  
  901.       15  . . WHITE 
  902.  
  903.  TEXTBACKGROUNDCOLOR <colorvalue> 
  904.  Select color of background on Frec status screen. 
  905.  
  906.  FRAMECOLOR <colorvalue> 
  907.  Select color of the frame on Frec status screen. 
  908.  
  909.  CLPAGEOK <script or errorlevel or shellno> 
  910.  If FREC.DLL is called from CantaLoup/2, a simple mechanism will allow further 
  911.  actions of the mailer if faxreception was sucessful: 
  912.  - A positiv value forces mailer to exit with this errorlevel. 
  913.  - A negativ value forces mailer to 'shell' to abs(value). 
  914.  - A name of a script forces the mailer to execute it. 
  915.  
  916.  POLLFILE <filename> [<numerical page indicator>] 
  917.  Name of file which is passed to FSEND if FREC is frontend for a pollserver. 
  918.  Can be defined as often as needed. 
  919.  
  920.  The filenames are collected and when calling FSEND (DLL or EXE) a temporary 
  921.  file is created where all filenames and pageindicators are stored. FSEND is 
  922.  called with '-o@<temp_file>' to pass filenames. Pollfiles can also be supplied 
  923.  by '-o' and '-o@' commandline switch. 
  924.  
  925.  Attention: Not used if Frec acts as a fax poll requester ('-g' parameter)! 
  926.  This prevents Frec to call Fsend! May be in further versions both send and 
  927.  receive in one call would be possible! 
  928.  
  929.  FSENDCFG <configuration file for FSEND> [<commandline parameter>] 
  930.  Is the key for Frec to work also as a frontend for Fsend to satisfy 
  931.  faxpolling. See also POLLFILE. It is no longer supported, to choose between 
  932.  FSEND.EXE and FSEND.DLL! From now on, FREC searches for FSEND.DLL in LIBPATH. 
  933.  After the name of the config file for FSEND, optional commandline parameters 
  934.  for FSEND may be submitted to DLL. These parameter are submitted as last, so 
  935.  it will overwrite any choice from FREC itself. 
  936.  Note: If primarly a fax pollservice is offered, use Fsend as the frontend. 
  937.  Fsend is also capable to receive fax if configured right. 
  938.  
  939.  CHECKCOPYQUALITY <YES or NO> 
  940.  Enables special algorithms to decide if page was of acceptable quality or if a 
  941.  retrain should be performed by sender. If not a single scanline is received 
  942.  correctly, a RTN (ReTrain Negativ) is sent. This means a total page reject and 
  943.  sender normally gives up! 
  944.  Attention: If '-x' commandline switch is in effect (saving raw data) or ECM is 
  945.  selected, copyquality is NOT checked. 
  946.  
  947.  Note: Frec shows copyquality both in DEBUGFILE and onscreen, like "Page n 
  948.  decompressed <lc,blc,cblc,llc>". 
  949.   lc . . . total decompressed correct scanlines, 
  950.   blc  . . total detected bad lines, 
  951.   cblc . . detected maximal consecutive bad scanlines and 
  952.   llc  . . lost scanlines if LINEBAD DELETE is selected. 
  953.  This may match modems +FPTS (+FPS) report but if FREC has detected more errors 
  954.  than modem, FRECs decision counts and modems page status parameter is 
  955.  overwritten! 
  956.  
  957.  PERCENTAGEGOOD <1-100> 
  958.  Gives Frec an upper boundry for deciding to send RTP (ReTrain Positiv) and 
  959.  force a retrain. If the percentual part of correct received scan lines is 
  960.  equal or above this value, a MCF (MessageCoFirmation) is sent. Defaults to 100 
  961.  (%) but should be set to 95 or 99 if partial page errors could be accepted. 
  962.  
  963.  CONSECUTIVEBADMAX <1-255> 
  964.  If detected consecutive bad scanlines are above this limit, FREC will send a 
  965.  RTP. Consecutive bad scanlines are normally a good sign for a mismatch in 
  966.  compression (1-D versus 2-D) or bitorder of faxdata (try with '-f1' or '-f2' 
  967.  command line parameter). 
  968.  
  969.  LOCALID <local faxnumber> 
  970.  Is used to form CSI (Called Subscriber Identification) or CIG (CallInG 
  971.  subscriber identification). CSI is sent to modem as +FLID (+FLI) and CIG is 
  972.  sent as +FCIG (+FPI). 
  973.  Attention: This parameter is mandatory, Frec is stopped if not defined! 
  974.  
  975.  Note: Only '+', ' ' and '0' - '9' are valid characters! All other characters 
  976.  are invalid and strictly discarded by Frec. String length is limited to 20 
  977.  characters. 
  978.  
  979.  STATIONID <your company or elsewhat>This information is only transmitted, if 
  980.  faxmodem is able to handle NSF (NonStandardFacility) frames. Usualy, class 1 
  981.  modems can do it. 
  982.  
  983.  LINEBAD <IGNORE or DELETE or PREVIOUS or BLANK> 
  984.  If a bad scanline is detected, Frec could either IGNORE (default) or DELETE or 
  985.  copy the PREVIOUS one or leave it BLANK. 
  986.  
  987.  Note: Detection of bad scanlines is not a trivial job. On bad phone lines 
  988.  normally single bits change their state and resynchronisation (to next 
  989.  scanline) could be performed. If DCE-DTE connection is distorted (e.g. 14400 
  990.  bps carrier in class 2 with 19200 bps DCE-DTE), one ore more bytes are lost 
  991.  and resynchronisation may skip one ore more scanlines. 
  992.  
  993.  Hint: Avoid 14400 bps carrier in class 2! Keep in mind, that time between 
  994.  scanlines effects transmission time more than bitrate. Use class 1 if 
  995.  highspeed is wished. Frec can decide if overall performance is good enough. 
  996.  Even if modem accepts 14400 bps training, DCE-DTE connection may limit the 
  997.  result. Because of DLE-shielding bursts of more than 1920 CPS may occure! A 
  998.  carrier of 14400 bps yields in 14400 / 8 = 1800 CPS. 
  999.  
  1000.  FAXCLASS <1 or 1.0 or 2 or 2.0 or 2.1> 
  1001.  Select a fax class, your modem is able to handle. Frec is designed to deal 
  1002.  with the standardized methods of class 1 (EIA/TIA-578) or class 2.0 
  1003.  (EIA/TIA-592). ONE version of the manufacturer specific class 2 (publicated 
  1004.  either as CLASS_2.TXT from SUPRA or for the 28800 bps V.FC data-pump from 
  1005.  ROCKWELL) is relativly compatible to class 2.0 in receive mode. Frec supports 
  1006.  (without any warranty) this class 2 also. 
  1007.  
  1008.  Although nobody will believe, first choice of fax class should always be class 
  1009.  1. All lowprice modems support this class in an excellent manner. As a rule of 
  1010.  thumb: the cheaper the modem the lower the fax class :-) 
  1011.  
  1012.  Manufacturer specific fax classes other then the above (like Zyxels class 6 or 
  1013.  the AT#.. version of class 2) or not supported! 
  1014.  
  1015.  FAXBAUDRATE <DCE-DTE bitrate> 
  1016.  Only if fax class 2.0 (two point zero) is used, higher values than 19200 can 
  1017.  be defined here. In class 1 or class 2 strictly use 19200 or leave the default 
  1018.  of 19200. 
  1019.  
  1020.  Some modem on the market allow higher bitrates than 19200 in class 1 and class 
  1021.  2. For 14400 bps carrier, 38400 bps DCE-DTE is highly recommended in this case 
  1022.  of modem. 
  1023.  
  1024.  DATABAUDRATE <DCE-DTE bitrate> 
  1025.  Set to a desirable bitrate or do not use this setting. 
  1026.  
  1027.  RESET <modem command> 
  1028.  It is recommended to use either ATZ or AT&Fn to bring modem to well defined 
  1029.  state. See also flowchart of initialisation. A response of OK must come from 
  1030.  modem or FREC will abort. 
  1031.  
  1032.  Note: modem_init() is not performed if Frec is called with '-p' command line 
  1033.  parameter. 
  1034.  
  1035.   Save callers BaudRate 
  1036.   Switch BaudRate to DataBaudRate 
  1037.   If RESET is defined -> send <modem command> to modem 
  1038.   Wait for OK response 
  1039.   If response not equal OK or timeout -> abort Frec 
  1040.   If FaxBaudRate not equal to DataBaudRate -> switch to FaxBaudRate 
  1041.   Send AT+FCLASS=n to modem 
  1042.   Wait for OK response 
  1043.   If response not equal OK or timeout -> abort Frec 
  1044.   While INIT 
  1045.   Send <modem command> to modem 
  1046.   Wait for OK response 
  1047.   If response not equal OK or timeout -> abort Frec 
  1048.   If fax class is 2 (or 2.0) -> send AT+FLID (+FLI) to modem 
  1049.   Wait for OK response 
  1050.   If response not equal OK or timeout -> abort Frec 
  1051.   Send AT+FCR=1 to modem 
  1052.   Wait for OK response 
  1053.   If response not equal OK or timeout -> abort Frec 
  1054.   Send AT+FDCC (+FCC) to modem 
  1055.   Wait for OK response 
  1056.   If response not equal OK or timeout -> abort Frec If FREC should poll a fax 
  1057.  from elsewhere -> 
  1058.   Send AT+FSPL=1 (+FSP) to modem 
  1059.   Wait for OK response 
  1060.   If response not equal OK or timeout -> abort Frec 
  1061.   Send AT+FCIG (+FPI) to modem 
  1062.   Wait for OK response 
  1063.   If response not equal OK or timeout -> abort Frec 
  1064.   else -> 
  1065.   If FREC is frontend for FSEND to satisfy poll request -> 
  1066.   Send AT+FLPL=1 (+FLP) to modem 
  1067.   Wait for OK response 
  1068.   If response not equal OK or timeout -> abort Frec 
  1069.  
  1070.  ATTENTION! If FREC is called from elsewhere (mailer or other front end)all of 
  1071.  the above initialisation and decisions MUST be performed before FREC is 
  1072.  called! Changing to FaxBaudRate (if CHANGEBAUD is defined) will occure after 
  1073.  receiving OK just before AT+FDR is sent. Keep in mind, that certain modems 
  1074.  need 19200 bps just before switching to fax class! 
  1075.  
  1076.  INIT <modemcommand> 
  1077.  Unlimited number of additional commands to modem which must be acceptable in 
  1078.  the appropiate fax class. See also the flow chart which is performed while 
  1079.  initializing the modem. A response of OK must come from modem or Frec will 
  1080.  abort. 
  1081.  
  1082.  CAPABILITIES <vr,br,wd,ln,df,ec,bf,st[,jp]> 
  1083.  Default is 0,3,0,2,0,0,0,0,0 which means: normal resolution, maximal 9600 bps 
  1084.  in V.29 modulation, 8 inches paperwidth, endless paperlength, 1-D Huffman 
  1085.  coded data, no ECM, no BFT and 0 ms wait between scanlines. 
  1086.  
  1087.  With these values, successful transmission to each receiving station is 
  1088.  possible. If the receiver is not capable of any of these values, Fsend will 
  1089.  adjust to such values, the receiver can (and must) handle. 
  1090.  
  1091.   vr (vertical resolution): 
  1092.   00 . . . normal 204x98  dpi (R8 x  3.85/mm), 
  1093.   01 . . . fine  204x196 dpi (R8 x  7.7/mm), 
  1094.   02 . . . high  204x392 dpi (R8 x  15.4/mm), 
  1095.   04 . . . extra  408x392 dpi (R16 x 15.4/mm), 
  1096.   08 . . . 200x100 dpi, 
  1097.   10 . . . 200x200 dpi, 
  1098.   20 . . . 200x400 dpi, 
  1099.   40 . . . 300x300 dpi, 
  1100.   80 . . . 400x400 dpi (not defined in T.32) 
  1101.  All values for 'vr' are in hexadecimal notation! 
  1102.  Not all resolutions are supported! 
  1103.  
  1104.   br (bit rate): 
  1105.   0 . . .  2400 bps 
  1106.   1 . . .  4800 bps 
  1107.   2 . . .  7200 bps 
  1108.   3 . . .  9600 bps 
  1109.   4 . . . 12000 bps 
  1110.   5 . . . 14400 bps 
  1111.  
  1112.   wd (page width): 
  1113.   R8   R16  200  300  400 
  1114.    d/mm  d/mm  dpi  dpi  dpi 
  1115.   0 . . . 1728  3456  1728  2592  3456 (A4 width) 
  1116.   1 . . . 2048  4096  2048       (B4 width) 
  1117.   2 . . . 2432  4864  2432       (A3 width) 
  1118.   3 . . . 1216  2432          (A5 width) 
  1119.   4 . . .  864  1728          (A6 width) 
  1120.  Not all resolutions are supported! 
  1121.  
  1122.   ln (page length): 
  1123.   0 . . . A4 length, 297 mm (not supported) 
  1124.   1 . . . B4 length, 364 mm (not supported) 
  1125.   2 . . . Unlimited length 
  1126.  
  1127.   df (compression scheme): 
  1128.   0 . . . 1-D Modified Huffman (ITU T.4), 
  1129.   1 . . . 2-D Modified read (ITU T.4), 
  1130.   2 . . . 2-D Uncompressed mode (ITU T.4), (not supported) 
  1131.   3 . . . 2-D Modified modified read (ITU T.6) 
  1132.  
  1133.   ec (error correction): 
  1134.   0 . . . do not use ECM  1 . . . Enable Annex A/T.30, ECM (only supported in 
  1135.  class 1) 
  1136.   2 . . . Enable Annex C/T.30, half duplex (not supported) 
  1137.   3 . . . Enable Annex C/T.30, full duplex (not supported) 
  1138.  
  1139.   bf (binary file): 
  1140.   00  . . Disable file transfer modes, 
  1141.   01  . . Select enable BFT (ITU T.434), (not supported) 
  1142.   02  . . Select document transfer mode, (not supported) 
  1143.   04  . . Select edifact mode, (not supported) 
  1144.   08  . . Select basic transfer mode, (not supported) 
  1145.   10  . . Select character mode Annex D/T.4, (not supported) 
  1146.   20  . . Selcet mixed mode Annex E/T.4, (not supported) 
  1147.   40  . . Select processable mode (ITU T.505) (not supported) 
  1148.  All values for 'bf' are in hexadecimal notation !!! 
  1149.  
  1150.   st (time/scanline): 
  1151.   vr = 0   vr > 0 
  1152.   0 . . .  0 ms    0 ms 
  1153.   1 . . .  5 ms    5 ms 
  1154.   2 . . . 10 ms    5 ms 
  1155.   3 . . . 10 ms   10 ms 
  1156.   4 . . . 20 ms   10 ms 
  1157.   5 . . . 20 ms   20 ms 
  1158.   6 . . . 40 ms   20 ms 
  1159.   7 . . . 40 ms   40 ms 
  1160.  
  1161.   jp (JPEG coding): 
  1162.   00  . . Disable JPEG coding, 
  1163.   01  . . Enable JPEG coding (ITU T.81), (not supported) 
  1164.   02  . . Full color mode, (not supported) 
  1165.   04  . . Enable preferred Huffman tables, (not supported) 
  1166.   08  . . 12 bits/pel/component, (not supported) 
  1167.   10  . . No subsampling (1:1:1), (not supported) 
  1168.   20  . . Custom illuminant, (not supported) 
  1169.   40  . . Custom gamut range (not supported) 
  1170.  All values for 'jp' are in hexadecimal notation !!! 
  1171.  
  1172.  CLEANUP <modem command> 
  1173.  Define any modemcommand which will be sent to. No check for any response is 
  1174.  done. CLEANUP is performed in hang_up() like: 
  1175.  
  1176.  If fax class is 1 -> send ATH0 to modem Drop DTR line for 300 ms 
  1177.  If FaxBaudRate not equal to DataBaudRate -> switch to DatabaudRate 
  1178.  If actual BaudRate not equal to callers BaudRate -> Switch to callers BaudRate 
  1179.  If CLEANUP is defined -> Send <modem command> to modem Trash modem response 
  1180.  
  1181.  FAXPATH [SUB [PWD]] <path to where incoming faxes are stored> 
  1182.  This entry is MANDATORY! 
  1183.  
  1184.  If combined with FAXLOG and FAXIDX, compatibility to third parties programs is 
  1185.  given, incoming faxes are stored in <path>\FXnnnnnn.FAX files and entries in 
  1186.  FAXLOG is done. FAXIDX is also incremented. 
  1187.  
  1188.  If used without FAXLOG and FAXIDX (at least one of both keywords must have OFF 
  1189.  in CFG), incoming faxes are stored in <path>\FRECnnnn.TIF, where '.TIF' may be 
  1190.  replaced by setting TIFEXT in CFG (look there). 
  1191.  
  1192.  Filetemplates are no more supported! 
  1193.  
  1194.  Values for SUB and PWD can be supplied. If caller sends a SUB-frame 
  1195.  (Subaddressing), incoming faxes are store in the FAXPATH with the defined SUB 
  1196.  for it. Optionally, a PWD (password) can be defined. If caller sends SUB and 
  1197.  PWD, both must match to select FAXPATH. 
  1198.  
  1199.  It is recommanded, to define one FAXPATH without SUB and PWD, to give caller 
  1200.  without this a chance. 
  1201.  
  1202.  Examples: 
  1203.  
  1204.  FaxPath X:\PATH\ALLFAXES 
  1205.  FaxPath 123 Y:\LANPATH\USERFAX 
  1206.  FaxPath 123 987 Y:\LANPATH\PROTFAX 
  1207.  
  1208.  First one is the 'normal' entry and compatible with former versions of FREC. 
  1209.  Second one defines a subaddress (123) which yields in routing faxes with 
  1210.  subaddress 123 to this path. Third one defines a password (987) protected path 
  1211.  for callers, who supply both. FAXPATH is also used, to form fully qualified 
  1212.  drive,path and filenames for FAXLOG and FAXIDX, which means, that each 
  1213.  'subaddres' has its own log and index! 
  1214.  
  1215.  ATTENTION !!! 
  1216.  NEVER supply 'relativ' pathes anywhere in config! Alsways use absolut path 
  1217.  (drive:\dir\). The trailing backslash can be omitted. 
  1218.  
  1219.  FAXLOG <file name> | OFF 
  1220.  Filename to FAX.LOG and only neccessary, if other than 'FAX.LOG'. Received 
  1221.  faxes from FREC will be joined to FAX.LOG. Each well received fax (hangup code 
  1222.  0) is flagged as 'Rcvd'. If fax is received in (partial) error or even no 
  1223.  session was established at all, entry in FAXLOG is flagged as 'BadRcv'. See 
  1224.  also keyword NOLOGONBAD. 
  1225.  
  1226.  FAXIDX <file name> | OFF 
  1227.  Filename to FAX.IDX and only neccessary, if other than 'FAX.IDX'. 
  1228.  
  1229.  FAXDEBUG <[+]x:\path\frec.log> 
  1230.  This is FREC log and debugging file. Nearly all activities are stored in this 
  1231.  file. If a '+' precedes the path, append mode is used: one log is chained to 
  1232.  the next. Select NUL as filename to disable logging. The logfile contains a 
  1233.  lot of informations in case of errors or situations where help is needed. 
  1234.  Bugreports to the author are only senseful if this logfile is part of the 
  1235.  report. 
  1236.  
  1237.  DIAL <dial command> 
  1238.  Default, a ATD is used. You can define here ATDP or ATDT, if your modem is not 
  1239.  able to distinct between pulse and tone dialing. 
  1240.  
  1241.  COMPORT <COM device> 
  1242.  This keyword is mandatory. If Frec is called with port handle (from elsewhere) 
  1243.  this keyword must exist! The name of the com device is used as a unique 
  1244.  identifier for internal use. 
  1245.  
  1246.  INITFIFO 
  1247.  If a hardware fifo (UART 16550) is detected by COM-device driver, the fifo is 
  1248.  initiallized to Rx=8 and Tx=16. 
  1249.  
  1250.  BINKLOG <file name> 
  1251.  Fully qualified drive, path and filename to your mailers log file. Used either 
  1252.  if FREC works only as an converter for PAGEnnnn.FAX to TIF or if FREC is used 
  1253.  in two pass mode (filename may be any). Supported is BinkleyTerm 2.50 EE (by 
  1254.  Michael Buenter), BinkleyTerm 2.59, 2.60 and 2.60 XE (by Vince Periello and 
  1255.  authorized coauthors) and CantLoup/2 (by Michael Buenter). 
  1256.  Xenia/2 (by Arjen Lentz) is not (yet) supported, because the raw fax is stored 
  1257.  in Zyxels ZFAX format, which is in fact only useable for one single page. 
  1258.  Maybe, Arjen will be able to read 'spagetti code' in future and switch to 
  1259.  senseful fax formats :-) 
  1260.  Obviously, Arjen was going again his own incompatible way. As reported by some 
  1261.  users, Xenia is able to store multipage fax rawdata in a format with extension 
  1262.  QFX which points to an intermediate format of QL2FAX. As supposed, Xenia does 
  1263.  not hit :-) 
  1264.  There is some new, but minor tested stuff in FREC, which is able to handle the 
  1265.  original fax rawdata format of QL2FAX. 
  1266.  
  1267.  DEBUGIDLEPRIORITY <value> or DEBUGREGULARPRIORITY <value> 
  1268.  These keywords, which are mutual exclusive, define the priority (0-31) for the 
  1269.  task (thread) which writes the data to FAXDEBUG file. Default is IDLEPRIORITY 
  1270.  30. Change this setting only, if you are absolutly sure knowing what you do! 
  1271.  Lower priority may yield in a endless blocking debug_thread! No data will be 
  1272.  written to FAXDEBUG and FREC may become 'uncloseable'. On very slow or high 
  1273.  stressed machines, you can try REGULARPRIORITY 0, if IDLEPRIORITY blocks 
  1274.  writing to FAXDEBUG. 
  1275.  
  1276.  Attention: It was reported by users, that some CPU load meters (like MEMSize 
  1277.  or CPUDrive) will TOTALY brake down working of debug_thread. If FREC seems to 
  1278.  be blocked, quite after fax reception is finished, and will never be closed 
  1279.  (even if 'killed') than omit using of such utilities! 
  1280.  
  1281.  SAVEIDLEPRIORITY <value> or SAVEREGULARPRIORITY <value> 
  1282.  These keywords, which are mutual exclusive, define the priority (0-31) for the 
  1283.  task (thread) which writes fax file to disk. Default is IDLEPRIORITY 31. Lower 
  1284.  priority may slow down writing, yielding in incorrect faxreception! 
  1285.  SAVEPRIORITY must be higher than 
  1286.  
  1287.  DEBUGPRIORITY. On slow or high stressed machines, try REGULARPRIORITY 1. You 
  1288.  can disable this priority switching by using the '-fastsave' commandline 
  1289.  switch (which is in fact the same as REGULARPRIORITY 0). 
  1290.  DATETIMEFILE 
  1291.  Special keyword to create TIF filename in the form of 
  1292.  
  1293.  YYMMDD-HHMMSS.TIF (or .FAX) 
  1294.  
  1295.  FaxPath has to point to a storage device which is capabel of LONG filenames 
  1296.  (HPFS or EXT2) otherwise ERROR_FILE_IO is returned. 
  1297.  
  1298.  'FaxLog OFF' must also be used, else this feature is disabled. 
  1299.  
  1300.  Based on a suggestion from Lutz Buchheister. 
  1301.  
  1302.  TSIFILENAME 
  1303.  Special keyword to create TIF filename in the form of 
  1304.  
  1305.   <TSI>.<n>.TIF (or .FAX) 
  1306.  
  1307.  The <TSI> part is constructed from the digits of a received TSI, '+' and ' ' 
  1308.  are replaced by '-'. TSI is always 20 character long. 
  1309.  
  1310.  The <n> part is an incrementing number (starting with 1) to make fax from same 
  1311.  caller unique. 
  1312.  
  1313.  If no TSI is received, <TSI> is replaced by "FROM-UNKNOWN". 
  1314.  
  1315.  FaxPath has to point to a storage device which is capabel of LONG filenames 
  1316.  (HPFS or EXT2) otherwise ERROR_FILE_IO is returned. 
  1317.  
  1318.  'FaxLog OFF' must also be used, else this feature is disabled. 
  1319.  
  1320.  Based on a suggestion from Lutz Buchheister. 
  1321.  
  1322.  SOURCEFILENAME 
  1323.  This keyword is used (and only senseful) if FREC acts as fax raw data 
  1324.  converter (-i<rawfile>). Converted fax data is stored in a file, which is made 
  1325.  from the supplied filename and TIFEXT. 
  1326.  
  1327.  'FaxLog OFF' must also be used, else this feature is disabled. 
  1328.  
  1329.  Based on a suggestion from Aglaja Przyborski. 
  1330.  
  1331.  PIPECRLF 
  1332.  If a pipe (-a in commandline) is used to capture status, a leading CR + LF is 
  1333.  inserted in the line. 
  1334.  
  1335.  Additional information: 
  1336.  
  1337.  All file and path specifiers in configuration file are checked against 
  1338.  %<environment>%. If a valid environment entry is found, %<env>% is replaced by 
  1339.  the content of the variable, e.g.: 
  1340.  
  1341.  SET LOG=D:\LOGFILES 
  1342.  
  1343.  BinkLog %LOG%\BINKLEY%TASK%.LOG 
  1344.  FaxDebug %LOG%\FREC%TASK%.LOG 
  1345.  
  1346.  A special 'replacement' is done in all file name entries in configuration file 
  1347.  when '%TASK%' is detected. %TASK% (must be uppercase) is replaced by the 
  1348.  defined task number. 
  1349.  
  1350.  If using FREC.DLL with Cantaloup mailer, the task number from mailer is 
  1351.  provided to Frec. Nevertheless you can overwrite this task number in 
  1352.  'ExtrnDesc' by using '-TASK<n>' command line parameter. 
  1353.  
  1354.  If a debug file is defined and this debug file can not be accessed, than a 
  1355.  'default' in the root of the current drive (\FREC.DEB) is used instead. It is 
  1356.  strongly recommended to use a debug file !! In case of misbehaviour 99% of 
  1357.  faults can be localized quickly and (from the author :-). 
  1358.  
  1359.  
  1360. ΓòÉΓòÉΓòÉ 6.6. FREC COMMAND LINE PARAMETERS AND SYNTAX ΓòÉΓòÉΓòÉ
  1361.  
  1362. The format of the commandline is as follows: 
  1363.  
  1364. FREC <switch> <switch> ... 
  1365.  
  1366. -c<config file> 
  1367. Default Frec assumes the configuration file is named FREC.CFG and located in 
  1368. the current directory. The '-c' command line parameter can be used to define an 
  1369. other path and file name. 
  1370.  
  1371. Configuration file can also be supplied via environment: 
  1372.  
  1373. SET FAX=x:\path\frec.cfg 
  1374.  
  1375. or 
  1376.  
  1377. SET FAXCFG=x:\path\frec.cfg 
  1378.  
  1379. -Task<n> 
  1380. Where <n> specifies the task number to be used. See also [TASK <n>] and 
  1381. [COMMON] keywords in configuration file. If this parameter is not used the 
  1382. common task will be used. 
  1383.  
  1384. -s<WAIT_OK> 
  1385. In accordance to fax standards, Frec uses the +FCO (or +FCON) response from 
  1386. modem to detect a fax call (in fact the HDLC-flags in V.21). If Frec is called 
  1387. from a FidoNet mailer than +FCO (or +FCON) is already received when Frec takes 
  1388. over control (this modem response is used to spwan Frec) and '-sWAIT_OK' 
  1389. parameter must be used to ensure correct functionality. Default is WAIT_FCON 
  1390. that means Frec will wait for +FCO (or +FCON) modem response in class 2.0 (or 
  1391. 2). 
  1392.  
  1393. -x 
  1394. Realtime decompression and creation of Tiff is switched off. Frec will work in 
  1395. a minimal state and will save raw data as it comes out of the modem if '-x' 
  1396. parameter is used. Only inserted DLEs are stripped and received bytes are 
  1397. inverted back to their regular form (MSB first) in class 2.0 (or 2). 
  1398. Note: This parameter also is used to perform the first passage of two passage 
  1399. fax receive mode. A 'BINKLOG' file must be defined to store all session 
  1400. parameters needed for the second passage (convertig raw fax data to Tiff). Also 
  1401. see '-i' parameter. 
  1402.  
  1403. -p<com port handle> 
  1404. If this parameter is used, Frec assumes it is called by a FidoNet mailer or 
  1405. other front end. Note: The port handle is not the same as the port number (e.g. 
  1406. COM1)! The port handel must be put at Frec's proposal by the FidoNet mailer or 
  1407. front end. Only 'FAXBAUDRATE' is set if 'CHANGEBAUD' is selected in 
  1408. configuration file. No modem initialisation is performed. Hang_up() and 
  1409. close_port() are called. While in hang_up() DTR-drop and 'CLEANUP' is 
  1410. performed, close_port() should be without any effect. Note: All initialisation 
  1411. must be done by the FidoNet mailer or other front end. 
  1412.  
  1413. -PollSEP<numerical page indicator> 
  1414. Is used to make a SEP (SElective Polling) frame when polling a fax from 
  1415. somebody. Also see '-o' parameter and 'POLLFILE'. 
  1416. Attention: Only '0' - '9', '#' and '*' are valid characters. All other 
  1417. characters are invalid and strictly discarded by Frec. String length is limited 
  1418. to 20 characters. '-PollSEP' can be used in Class 1 and 2.0 (if supported by 
  1419. the modem) only! 
  1420.  
  1421. -PollPWD<numerical password> 
  1422. Is used to make a PWD (PassWorD) frame when polling a fax from somebody. Also 
  1423. see '-o' parameter and 'POLLFILE'. 
  1424. Attention: Only '0' - '9', '#' and '*' are valid characters. All other 
  1425. characters are invalid and strictly discarded by Frec. String length is limited 
  1426. to 20 characters. '-PollPWD' can be used in Class 1 and 2.0 (if supported by 
  1427. the modem) only! 
  1428.  
  1429. -NoFineSign 
  1430. Some general switched network suppliers demand a special sign on each fax page 
  1431. transmitted in 'fine resolution'. Frec therefore places a small black rectangle 
  1432. in the right bottom corner of each 'fine resolution' page to satisfy that. 
  1433. Using '-NoFineSign' this feature will be deactivated. 
  1434.  
  1435. -FastSave 
  1436. Overrides 'SAVE...PRIORTY' keyword in configuration file. The fax file is 
  1437. savedwith priority REGULAR 0. This effects only Tiff saving and not saving fax 
  1438. raw data in PAGEnnnn.RAW files. 
  1439.  
  1440. -PollServer 
  1441. If Frec is used as a front end for FSEND to satisfy poll requests, Frec is 
  1442. disabled to receive fax. T.4 transmitter bit in class 1 is not cleared because 
  1443. a lot of fax machines and fax modem will fail if that is done. 
  1444.  
  1445. -DISPoll 
  1446. Normally, if Frec is used to poll a fax form somebody, a DTC (Digital Transmit 
  1447. Command) is sent to indicate your wish to poll for a fax instead of sending a 
  1448. fax. For class 1 alternativly a DIS (Digital Identification Signal) may be 
  1449. sent, mainly to test the fax poll server if capable of this condition. 
  1450.  
  1451. -ZFAX 
  1452. Frec will store received fax files in a format defined by ZyXEL. FREC will 
  1453. decompress received fax data and compress it again in 1-D Huffman compression. 
  1454. So, in opposit to other fax receiving software, which will store raw fax data 
  1455. with all line errors in ZFAX format, FREC will store corrected fax data! File 
  1456. extension is set to '.FAX' and 'OUTFILLORDER' is set to '2'. 
  1457.  
  1458. -SFF 
  1459. Frec will store received fax files in a format defined by CAPI 2.0 
  1460. specification. FREC will decompress received fax data and compress it again in 
  1461. SFF 1-D Huffman like compression. So, in opposit to other fax receiving 
  1462. software, which will store raw fax data with all line errors FREC will store 
  1463. corrected fax data! File extension is set to '.SFF' and 'OUTFILLORDER' is set 
  1464. to '2'. 
  1465.  
  1466. -ECMraw 
  1467. If this parameter is used, all received fax data will be stored in 
  1468. 'BLOCKnnn.RAW' files in case of an ECM (Error Correction Mode) connection. The 
  1469. contents of these files is in fact senseless for the user, but from vital 
  1470. interest for Frec if any ECM protocol failure is detected. 
  1471.  
  1472. -ECMError<error count> 
  1473. For testing purposes only! Do not use it! 
  1474. Attention: ECM reception in class 1 is already implemented in Frec. The 
  1475. functionality is not fully tested yet. This parameter says Frec to act as if 
  1476. partial frame errors have been detected which shall force the sender to 
  1477. retransmitted the corrupted data. 
  1478.  
  1479. -g<phone number> 
  1480. Frec calls the phone number to poll for a fax. Keep in mind, that some fax 
  1481. modems (in class 2) are not able to poll for a fax. In that case use class 1 
  1482. instead if your fax modem supports it. 
  1483.  
  1484. -o<poll file> 
  1485. Exactly the same as 'POLLFILE' in configuration file. The file name will be 
  1486. added to the list of files which will be sent if an fax poll request from 
  1487. somebody is received. You can send bitmap ('.BMP'), Tiff ('.TIF') or text files 
  1488. (also see 'TEXTEXTENSION'). You can define as much files as the command line 
  1489. can accept. Wildcards ( *, ?) are also allowed. 
  1490.  
  1491. -o@<file name> 
  1492. As an enhancement to the '-o' option, you can instead define a pointer file, 
  1493. which contains the file names. Each line must contain only one filename. 
  1494. Wildcards (*, ?) are allowed. In accordance to 'selective poll', a 'numerical 
  1495. page indicator' may also be given. 
  1496. Content of file POLLFILE.LST: 
  1497.  
  1498.  X:\PATH\NEWLIST.TXT 
  1499.  Y:\OTHERPATH\FILELIST.TXT 1 
  1500.  Z:\NEWPATH\ECHOLIST.TXT 2 
  1501.  
  1502. Which means, NEWLIST will be sent to all callers whereas FILELIST only will be 
  1503. sent to those callers supplying '1' in SEP frame and ECHOLIST only will be sent 
  1504. to callers supplying '2' in SEP frame. If the caller does not use any SEP 
  1505. frame, than ALL three files will be sent. 
  1506.  
  1507. -a<pipe name> 
  1508. A pipe of the given name will be created to which all screen output will be 
  1509. sent. 
  1510.  
  1511. Note: Frec uses DosCreateNPipe() with open mode NP_ACCESS_OUTBOUND (outbound 
  1512. pipe - server to client) and pipe modes NP_NOWAIT (non blocking mode) and 
  1513. NP_TYPE_MESSAGE (message type pipe) to create the pipe. DosConnectNPipe() is 
  1514. used to connect the pipe, DosWrite() to write to the pipe and 
  1515. DosDisConnectNPipe() and DosClose() to close the pipe at program termination. 
  1516.  
  1517. See also PIPECRLF above! 
  1518.  
  1519. -k<Tiff compression> 
  1520. Select a compression scheme (default is 3) used for the stored decoded fax 
  1521. files. The following compression schemes are available: 
  1522.  
  1523.  <1> . . . uncompressed, 
  1524.  <2> . . . 1-D Huffman, without EOL 
  1525.  <3> . . . 1-D Huffman, as defined in T.4 
  1526.  <4> . . . 2-D Read, as defined in T.4 
  1527.  <4.1> . . 2-D Read, without EOL, starting from an imaginary white line 
  1528.  <32773> . PackBits compression. 
  1529.  
  1530. Note: Compression scheme 5 (LZW) is not supported because of copyright 
  1531. protections in various countries. 
  1532.  
  1533. -i<raw fax data file name> 
  1534. Frec 'conversion only' mode is selected when using this parameter. Any number 
  1535. of '-i' parameters are allowed (the only limit is the maximum length of a 
  1536. single command line). Wildcards (*, ?) are supported. Frec reads in raw fax 
  1537. data (exactly as received from modem) - e.g. as stored by Frec using '-x' 
  1538. parameter or also raw fax data files generated by internal fax routines of some 
  1539. FidoNet mailers like BinkleyTerm or CantaLoup/2. If a mailer log file (see 
  1540. 'BINKLOG') is defined, required fax session information (resolution, coding 
  1541. scheme, ...) will be extracted from it. This performes the second passage of 
  1542. Frec's two passage operating method (also see '-x' parameter). 
  1543. Note: Try with '-f1' or '-f2' if conversion fails because of bitorder mismatch. 
  1544. Also try '-FDCC:vr,br,...' parameter to specify session parameters manually. 
  1545. See also RAW FAX DATA CONVERSION elsewhere in this document! 
  1546.  
  1547. -FDCC:<capabilities> 
  1548. This parameter replaces '-1' and '-2' parameters. It can be used to submit a 
  1549. DCC (current session capabilities) value for the raw fax data supplied with 
  1550. '-i' parameter. Only values for compression scheme and resolution are used. 
  1551.  
  1552. -h or -? 
  1553.  A short help screen is shown. This printout can be redirected into a file. 
  1554.  
  1555. -v<faxviewer> 
  1556. If FREC is not operating in raw data mode ('-x' parameter), an external fax 
  1557. viewer can be used to display an incoming fax in realtime on the screen. 
  1558. Note: On slow or highly stressed machines, especially in class 2 or class 2.0 
  1559. negotiation of session parameters may fail or no fax data is displayed. Also 
  1560. see 'CLMINIMIZEDNOVIEW'. 
  1561.  
  1562. There are TWO possible modes to use: 
  1563.  
  1564.  1) <faxviewer> is the name of a compatible viewer (obviously FAXVIEW.EXE), 
  1565. which will be started (by DosStartSession) and closed by FREC. 
  1566.  
  1567.  2) <faxviewer> is the name of a pipe (eg. '\PIPE\LINE1'). In this case the 
  1568. viewer (FAXVIEW.EXE) must be already loaded and is only actived by FREC (by 
  1569. pipe). 
  1570.  
  1571. -BITS or -LARGE or -STANDARD or -PREVIEW Scaling option for optional external 
  1572. fax viewer. 
  1573. Note: Do not use 'scaled' option in FAXVIEW.EXE. 
  1574.  
  1575. -q 
  1576. If the external fax viewer is used in combination with '-i' mode, Frec waits 
  1577. after each page for a keystroke and puts focus to the viewers window (see also 
  1578. -pid). This option is helpful to watch each single page of a fax. 
  1579.  
  1580. -pid 
  1581. Normally, the caller from viewer is detected by the PPID (parent process id). 
  1582. In some circumstances, the callers parent may be the WPS itself so with this 
  1583. commandline option the caller itself (PID) gets the focus. 
  1584.  
  1585. -f<1_or_2> 
  1586. Bitorder in fax raw data. Default is 2, which is the 'normal' order. 
  1587.  
  1588. -e 
  1589. Forces Frec to generate single page Tiff files. Default, all pages are stored 
  1590. together in one multipage Tiff file. But not all programs are able to read 
  1591. allpages stored in a multipage Tiff file. 
  1592.  
  1593. -d 
  1594. If used, input files ('-i') are deleted after conversion. Use this option VERY 
  1595. CAREFULLY !!! Input raw data file is erased in any case, regardless if 
  1596. conversion was successful or not! 
  1597.  
  1598. -datetimefile 
  1599. See DATETIMEFILE above. 
  1600.  
  1601. -TSIFilename 
  1602. See TSIFILENAME above. 
  1603.  
  1604. -WatchDog<seconds> 
  1605. Change internal watchdog interval (default 300 sec) to other values or even 
  1606. disable function (0 sec). 
  1607.  
  1608. ATTENTION! 
  1609. Watchdog function not fully tested. If any unexpected watchdog timeout occurs, 
  1610. please inform author (with complete LOG) and disable feature by '-WatchDog0'. 
  1611.  
  1612. -CheckRes 
  1613. If FREC is used as a raw fax data converter (decompressor) and no resolution of 
  1614. raw data is known, than FREC uses (with this switch) a simple algorithm to 
  1615. decide either original was normal (204x98 dpi) or high (204x196 dpi) 
  1616. resolution. Algorithm is based on the fact, that an A4 high page contains 
  1617. aprox. 1200 scanlines in normal and aprox. 2400 scanlines in high resolution. 
  1618. Real trigger is 1500 scanlines, if scanlinecount is below, than normal else 
  1619. high resolution is supposed. 
  1620.  
  1621. -RawDLE 
  1622. In certain circumstances, raw faxdata contains additional DLE bytes (0x10) 
  1623. which were inserted by DCE to make datatransmission transparent. With this 
  1624. switch, those DLE bytes are stripped also. 
  1625.  
  1626. -Mlo 
  1627. Downloaded raw faxfiles from ELSA Microlink Officemodem will be decompressed in 
  1628. a better way, session data is excerpted from the file itself. 
  1629.  
  1630.  
  1631. ΓòÉΓòÉΓòÉ 6.6.1. RAW FAX DATA CONVERSION ΓòÉΓòÉΓòÉ
  1632.  
  1633. Often, fax data (from a faxmodem) is only available in a raw format (which will 
  1634. be in fact the original bitstream as it comes over the phoenline) so some 
  1635. conversion (better decompression) is needed to get the original document back 
  1636. again. 
  1637.  
  1638. While FAXVIEW has minimal cababilities to do such a raw data conversion, FREC 
  1639. is designed to do this job! 
  1640.  
  1641. All you need is a very simple FREC.CFG: 
  1642.  
  1643. LocalID <your name> 
  1644. ComPort <any string> 
  1645. FaxPath <path where results are stored> 
  1646. FaxClass 2 
  1647. FaxDebug frec.log 
  1648. Loglevel 5 
  1649. Debug 
  1650.  
  1651. The last two lines are not really neccessary, but will help to find out of 
  1652. which format the raw fax data is stored in the supplied file. 
  1653.  
  1654. There are exactly TWO commandline parameters, which influence raw fax data 
  1655. decompression: 
  1656.  
  1657. -f<1 or 2> tells FREC in which order the single bits in a byte are to read. 
  1658. Default is '-f2' so you will only use '-f1' explicitly. 
  1659.  
  1660. -FDCC:1,3,0,2,<0 or 1> tells FREC either "1-D modified Huffman" (0) or "2-D 
  1661. modified Real Address" (1) compression should be used. The first value in this 
  1662. example (1) is also used by FREC and determines the vertical resolution of the 
  1663. document (0 ... 204x98 dpi, 1 ... 204x196 dpi). All other values are only used 
  1664. in 'ImageDescription' tag of TIF. 
  1665.  
  1666. A good strategy is now described: 
  1667.  
  1668. First of all, the form of rawdata is normally CONSTANT for a certain faxmodem 
  1669. (and software which stores the raw data), so the correct value for '-f' 
  1670. parameter must be only ONCE determined. 
  1671.  
  1672. Second, the compression scheme (1-D or 2-D) is also predefined by the settings 
  1673. for the fax reception itself (it is out of scope of this document, to describe 
  1674. the various possibilities to setup a faxmodem but always try to use 1-D 
  1675. compression). 
  1676.  
  1677. Now, let's assume, you have a file named PAGE0001.FAX (only a example!). First 
  1678. use NO additional commandline parameters: 
  1679.  
  1680. FREC [-cFREC.CFG] -iPAGE0001.FAX 
  1681.  
  1682. Screen output may look like: 
  1683.  
  1684. Reading page 1 FAX-Rawdata from PAGE0001.FAX ... 
  1685. no RTC received (1 EOL) 
  1686. Page 1 decompressed <72E,72B,557,0> 
  1687.  
  1688. The three (hexadecimal) values (detected scanlines,bad scanlines,grouped bad 
  1689. scanlines,0) are a first hint, that decompression parameters were WRONG. If you 
  1690. do not know about compression scheme (1D or 2-D), you can do a second trial 
  1691. (with 2-D decompression enabled): 
  1692.  
  1693. FREC [-cFREC.CFG] -iPAGE0001.FAX -FDCC:1,5,0,3,1 
  1694.  
  1695. Sreen output may look like: 
  1696.  
  1697. Reading page 1 FAX-Rawdata from PAGE0001.FAX ... 
  1698. no RTC received (1 EOL) 
  1699. Page 1 decompressed <735,39D,47,0> 
  1700.  
  1701. Well, also a mistake. 
  1702.  
  1703. Now try 1-D compression (default) AND reversed bitorder (in TIF specification 
  1704. named 'FillOrder') by applying '-f1' as additional commandline parameter: 
  1705.  
  1706. FREC [-cFREC.CFG] -iPAGE0001.FAX -f1 
  1707. Screen output: 
  1708.  
  1709. Reading page 1 FAX-Rawdata from PAGE0001.FAX ... 
  1710. Page 1 decompressed <740,8,3,0> 
  1711.  
  1712. Hit! Minor scanline errors, but the result should be useable. 
  1713.  
  1714. Due to various reasons, fax rawdata file may contain MORE than one page. FREC 
  1715. is highly optimized, to recognize this fact and split the pages. A possible 
  1716. screen out may therefore look like: 
  1717.  
  1718. Reading page 1 FAX-Rawdata from PAGE0001.FAX ... 
  1719. Reading page 2 FAX-Rawdata from PAGE0001.FAX ... 
  1720. no RTC received (1 EOL) 
  1721. Page 1 decompressed <470,4D,3,0> 
  1722. no RTC received (1 EOL) 
  1723. Page 2 decompressed <46F,2B,3,0> 
  1724.  
  1725. The raw data had contained NO RTC (Return To Control) sign (6x EOL) so FREC has 
  1726. assumed start of new page by other algorithm (predocument training in Phase C) 
  1727. if applicable. 
  1728.  
  1729. There could be various forms of fax raw data. NOT ALL may be decompressable or 
  1730. are decompressed with more than one page continously. 
  1731.  
  1732. Any application, which yields (only) fax raw data, should never be named 'fax 
  1733. program' (simple 'fax rawdata saver' could be a choice for a name :-). 
  1734.  
  1735. Only FREC does, what every (simple) fax machine can: decompressing raw data 
  1736. bitstream (quite as comeing over the phoneline) in realtime! So (only) FREC can 
  1737. reject faulty pages or force fax sender to retrain if line is distorted! 
  1738.  
  1739. Keep in mind! FREC stores always CORRECT imagedata, because fax raw data is 
  1740. decompressed in realtime and after (successful) reception (recompressed and) 
  1741. stored! If some distorted lines appear in stored image, than the distortion 
  1742. itself is (correct compressed) stored and NOT a distorted scanline. 
  1743.  
  1744.  
  1745. ΓòÉΓòÉΓòÉ 6.7. FAX SERVICE CLASS COMMAND SET ΓòÉΓòÉΓòÉ
  1746.  
  1747. This is a short explanation of the fax service class command set used by Frec. 
  1748. The commands in parantheses are for fax service class 2.0! 
  1749.  
  1750. AT+FCLASS=2 (AT+FCLASS=2.0): 
  1751.  
  1752. Command to set modem to Fax mode. Modem will manage fax session and negotiates 
  1753. (T.30 protocol). 
  1754.  
  1755. AT+FDCC=vr,br,wd,ln,df,ec,bf,st (AT+FCC): 
  1756.  
  1757. With this command you can set the communications parameter of your fax modem. 
  1758.  
  1759.  vr (vertical resolution): 
  1760.  0 . . . normal (204x98 dpi) 
  1761.  1 . . . high (204x196 dpi) 
  1762.  br (bit rate): 
  1763.  0 . . . 2400 bit/s (V.27ter) 
  1764.  1 . . . 4800 bit/s (V.27ter) 
  1765.  2 . . . 7200 bit/s (V.29 or V.17) 
  1766.  3 . . . 9600 bis/s (V.29 or V.17) 
  1767.  4 . . . 12000 bit/s (V.33 or V.17) 
  1768.  5 . . . 14400 bit/s (V.33 or V.17) 
  1769.  wd (page width): 
  1770.  has to be 0 for use with Frec (1728 pixels) 
  1771.  ln (page length): 
  1772.  This has to be 2 (unlimited length) for use with Frec. 
  1773.  dt (data compression): 
  1774.  0 . . . 1-D Huffman 
  1775.  1 . . . 2-D Read (also see the '-2' command line parameter) 
  1776.  ec (error correction): 
  1777.  0 . . . disable error correction mode 
  1778.  1 . . . enable ECM (only in class 1) 
  1779.  bf (binary file) 
  1780.  This has to be 0 for use with Frec. 
  1781.  st (time per scanline) 
  1782.  0 - 7 . 0 ms - 40 ms 
  1783.  
  1784. AT+FLID="..." (AT+FLI): 
  1785.  
  1786. Command to set local station ID. 
  1787.  
  1788. AT+FCIG="..." (AT+FPI): 
  1789.  
  1790. Command to set local poll ID. Class 2 modems hardly supports this, usefull only 
  1791. in Class 2.0! 
  1792.  
  1793. AT+FLPL=1 (AT+FLP): 
  1794.  
  1795. Command to indicate that the local station can serve a poll request from a 
  1796. remote fax. A valid fax document must be ready for sending (with Fsend). 
  1797.  
  1798. AT+FSPL=1 (AT+FSP): 
  1799.  
  1800. Command to indicate that the local station wants to poll a fax from a remote 
  1801. fax. The remote fax must have a document ready to poll. Frec can be use either 
  1802. as a 'poller' or as a 'pollserver'! 
  1803.  
  1804. If you want to know if your modems supports fax-polling do the following short 
  1805. test: AT+FLPL=? (AT+FLP). If only '0' is reported, than you modem is obviously 
  1806. not able to support poll ('0,1' must be reported). 
  1807.  
  1808. AT+FBOR=n (AT+FBO): 
  1809.  
  1810. This command is often misunderstood and not so easy to explain. 
  1811. Normally, FBOR is zero, meaning databits comming over the line were stored from 
  1812. right to left in a byte (you can see in fax raw data the byte pattern 4D 9A 80 
  1813. which stands for an empty, white scanline). Some fax modems and software uses 
  1814. the invers byte order, which corresponds to FBOR is one (you see the patter B2 
  1815. 59 01). 
  1816. Binkley's internal fax reception inverses the bytes also and stores them in the 
  1817. B2 59 01 order although Binkley gets them as 4D 9A 80. Frec defaults to 
  1818. Binkley's (inverted) byteordering. 
  1819.  
  1820. AT+FCR=1 (AT+FCR): 
  1821. The fax modem never can receive a fax when +FCR is not set to 1. 
  1822.  
  1823. AT+FDR (AT+FDR): 
  1824.  
  1825. Command to release HDLC-frames in phase B. 
  1826.  
  1827. +FCON (+FCO): 
  1828.  
  1829. The fax modem response to signal that the remote station is a calling fax 
  1830. machine. Initializes phase B. 
  1831.  
  1832. +FTSI (+FTI): 
  1833.  
  1834. The fax modem response to show who is calling. This response is followed by the 
  1835. caller's ID string. 
  1836.  
  1837. +FDTC (+FTC): 
  1838.  
  1839. The fax modem response to show who is polling. This response is followed by the 
  1840. caller's ID string. This is the one and only sign for Frec to decide that a 
  1841. remote fax wants to poll on us! 
  1842.  
  1843. +FDCS (+FCS): 
  1844.  
  1845. The fax modem response to show the current session results. The information is 
  1846. shown in the same manner as +FDIS (+FIS). 
  1847.  
  1848. CONNECT (CONNECT): 
  1849.  
  1850. This message signals the end of frame exchange and start of page data 
  1851. transmission. 
  1852.  
  1853. +FHNG (+FHS), +FPTS (+FPS) and +FET (+FET): 
  1854.  
  1855. Faxmodem responses at the end of pagedata transfer. 
  1856.  
  1857. +FK (+FKS): 
  1858.  
  1859. If there is some timing problem with the conversion, Frec will abort with this 
  1860. command. 
  1861.  
  1862.  
  1863. ΓòÉΓòÉΓòÉ 6.8. FREC AS A STAND ALONE FAX RECEIVER ΓòÉΓòÉΓòÉ
  1864.  
  1865. To use Frec as a stand alone fax receiver simply start the program with the 
  1866. syntax as follows: 
  1867.  
  1868. FREC -cX:\FAX\FREC.CFG -k3 
  1869.  
  1870. Where 'X:\FAX\FREC.CFG' is the path and file name of your Frec configuration 
  1871. file and '-k3' the selected compression scheme. 
  1872.  
  1873.  
  1874. ΓòÉΓòÉΓòÉ 6.9. FREC AS A STAND ALONE FAX POLL REQUESTER ΓòÉΓòÉΓòÉ
  1875.  
  1876. To poll for a fax from somebody, the syntax is as follows: 
  1877.  
  1878. FREC -cX:\FAX\FREC.CFG -g123456 -pollsep12 
  1879.  
  1880. Where 'X:\FAX\FREC.CFG' is the path and file name of your Frec configuration 
  1881. file, '123456' is the phone number of the remote fax machine and '12' is an 
  1882. optional page indicator transmitted via a selective polling (SEP) frame. 
  1883.  
  1884.  
  1885. ΓòÉΓòÉΓòÉ 7. Pcm2wav ΓòÉΓòÉΓòÉ
  1886.  
  1887. PCM2WAV is a command line tool for converting P(ulse)C(ode)M(odulated) Sound 
  1888. Files to the Wav Format and the other way round. 
  1889.  
  1890. Usage: 
  1891.  
  1892. pcm2wav [option] [option] [...] 
  1893. Options: 
  1894.  
  1895.       -i<source filename(s)> 
  1896.  
  1897.       -o<path [and name] for target> 
  1898.  
  1899.       -s<samplerate [Hz] for target> 
  1900.  
  1901.       -k<Type of conversion> 
  1902.  
  1903.            0 ..... any known format to RIFF PCM WAV 
  1904.  
  1905.            1 ..... WAV to 2 Bit Zyxel ADPCM 
  1906.  
  1907.            2 ..... WAV to 3 Bit Zyxel ADPCM 
  1908.  
  1909.            3 ..... WAV to 4 Bit Zyxel ADPCM 
  1910.  
  1911.            9 ..... WAV to 4 Bit Zyxel DVI ADPCM 
  1912.  
  1913.            10 .... WAV to Zyxel 8 Bit PCM A-Law 
  1914.  
  1915.            11 .... WAV to Zyxel 8 Bit PCM ?-Law 
  1916.  
  1917.            *21 .... WAV to 2 Bit Rockwell ADPCM 
  1918.  
  1919.            *22 .... WAV to 3 Bit Rockwell ADPCM 
  1920.  
  1921.            *23 .... WAV to 4 Bit Rockwell ADPCM 
  1922.  
  1923.            24 .... WAV to 8 Bit Rockwell PCM 
  1924.  
  1925.            31 .... Raw 2 Bit Rockwell ADPCM to RIFF WAV 
  1926.  
  1927.            32 .... Raw 3 Bit Rockwell ADPCM to RIFF WAV 
  1928.  
  1929.            33 .... Raw 4 Bit Rockwell ADPCM to RIFF WAV 
  1930.  
  1931.            100 ... Raw 8 Bit WAV to RIFF WAV 
  1932.  
  1933.            200 ... Raw 16 Bit WAV to RIFF WAV 
  1934.  
  1935.            300 ... Raw 16 Bit CD Audio to RIFF WAV 
  1936.  
  1937.            301 ... WAV to Raw 16 Bit CD Audio 
  1938.  
  1939.            **400 ... Raw USR GSM to RIFF WAV 
  1940.  
  1941.            **401 ... WAV to GSM (XTreem/VoiceConnect) 
  1942.  
  1943.            **402 ... WAV to USR GSM 6.10 
  1944.  
  1945.            ***403 ... WAV to USR 4 bit G.721 ADPCM 
  1946.  
  1947.            404 ... WAV to USR 4 bit IMA ADPCM 
  1948.  
  1949.       -b<bits> ........ create 8 or 16 bit PCM WAV 
  1950.  
  1951.       -w .............. target RIFF WAV type [1] 
  1952.  
  1953.            1 ............. 8 or 16 Bit PCM 
  1954.  
  1955.            6 ............. 8 Bit A-Law PCM 
  1956.  
  1957.            7 ............. 8 Bit ?-Law PCM 
  1958.  
  1959.            17 ............ 4 Bit IMA ADPCM 
  1960.  
  1961.            **49............. MS GSM 6.10 
  1962.  
  1963.            **771............ embedded USR GSM 6.10 (RapidCommVoice) 
  1964.  
  1965.       -g<gain> ........ apply gain (0.1 - 10.0) 
  1966.  
  1967.       -n .............. smooth (noisefilter) 
  1968.  
  1969.       -h<frequence> ... apply HighPass filter 
  1970.  
  1971.       -l<frequence> ... apply LowPass filter 
  1972.  
  1973.       -f .............. apply 300 - 3400 Hz Bandpassfilter 
  1974.  
  1975.       -t<type of filter> 
  1976.  
  1977.            1 ... critical damping 
  1978.  
  1979.            2 ... Bessel 
  1980.  
  1981.            3 ... Butterworth 
  1982.  
  1983.            4 ... Chebyshew 0.5 dB overshoot 
  1984.  
  1985.            5 ... Chebyshew 1.0 dB overshoot 
  1986.  
  1987.            6 ... Chebyshew 2.0 dB overshoot 
  1988.  
  1989.            7 ... Chebyshew 3.0 dB overshoot 
  1990.  
  1991.       -q ............... quiet mode 
  1992.  
  1993.       -d ............... delete source after conversion 
  1994.  
  1995.       -h or /h or -? or /? shows this. 
  1996.  
  1997.  *)  only displayed (and useable) if ADPCMDLL.DLL is detected. 
  1998.  **)  only displayed (and useable) if GSMDLL.DLL is detected. 
  1999.  ***) only displayed (and useable) if G72XDLL.DLL is detected. 
  2000.  
  2001.  Due to copyright and patent restrictions, neither of the above mentioned DLL 
  2002.  is distributed. But sourcecode which makes somebody able to create these DLLs 
  2003.  is freely available in internet. 
  2004.  
  2005.  Without ADPCM.DLL, Rockwell 2, 3 and 4 bit ADPCM is decoded with a simple, no 
  2006.  patented, methode. The result is not so good, but speach is well 
  2007.  understandable enough. 
  2008.  
  2009.  Conversion of raw CD format to/from WAV is disabled and for further studies. 
  2010.  
  2011.  The '-w771' option is experimental. This format is not documented anywhere, 
  2012.  but PCM2WAV can read and convert such RIFF WAV type files (thanks to Dmitri 
  2013.  Novoselov for supplying some examples).PCM2WAV does voice format conversion 
  2014.  'in memory', so large files will result in hugh memory need and/or will 
  2015.  increase OS/2 swap file enormous. Stream conversion (multithreaded) is under 
  2016.  study. 
  2017.  
  2018.  
  2019. ΓòÉΓòÉΓòÉ 8. Getting in Touch ΓòÉΓòÉΓòÉ
  2020.  
  2021. e-mail: rossen_assenov@hotmail.com, or aglaja@ibm.net 
  2022. for frec, pcm2wav and faxview: Harald.Pollack@datanews.at 
  2023.  
  2024. If you don't like something in this program, discover any bugs or have any 
  2025. suggestions, please let us know why or what they are by e-mailing a message. 
  2026. This program is FREEWARE. but if you like it and want to send some money - 
  2027. please, use the e-mail address to let us know, all money is invested for 
  2028. further development. 
  2029.  
  2030.  
  2031. ΓòÉΓòÉΓòÉ 9. Other ΓòÉΓòÉΓòÉ
  2032.  
  2033. For a freespeaking phone program look for vdial323.zip (or newer) by Rossen 
  2034. Assenov. It works great with the USRobotics Message Modems and can be found on 
  2035. hobbes, os2ss and leo. Homepage http://www.buntspecht.de/vdial/ 
  2036. VDial is also FREEWARE. 
  2037.  
  2038. The complete fax107.lzh is available at http://www.buntspecht.de/fax/ 
  2039.  
  2040. Thanks to all who supported us: 
  2041.  
  2042. Manfred Agne <Manfred.Agne@munich.netsurf.de> for spending a Sybil-Licencse 
  2043. Ulf Bartholomeus 
  2044. Jens Schiffler 
  2045. Marcus Specht visit him at http://www.buntspecht.de 
  2046. Ulrich Steinwedel visit his homepage at http://www.messagecentral.de to get 
  2047. solutions for DOS Windows9x/NT and Linux. 
  2048. Mr. Marburger by 3COM 
  2049. 3COM 
  2050.  
  2051. All who have mailed us suggestions and failure-reports. 
  2052.  
  2053. and last but first: 
  2054.  
  2055. Dr. Harald Pollack without his kindly help and without his programs some 
  2056. problems would still exist. 
  2057.  
  2058.  
  2059. ΓòÉΓòÉΓòÉ 10. Known Bugs and Limitations ΓòÉΓòÉΓòÉ
  2060.  
  2061. Limitations: 
  2062.  
  2063. Although Dr.Pollack has developed a GSM to WAV converter, you have to compile 
  2064. the sources by yourself as THE USE of the GSM codec (not the codec itself) is 
  2065. protected by legal rights and therefore the gsm.dll can't be distributed as 
  2066. compiled version as long Dr.Pollack has no license. It is recommended to take a 
  2067. serious look into the sources. If anybody wants to help Dr.Pollack (and us) 
  2068. please contact Dr.Pollack (Harald.Pollack@datanews.at) 
  2069.  
  2070. Frec, pcm2wav and Faxview have a lot of options (e.g. working together with 
  2071. Faxworks/PMfax, saving files in other directories/drives), but unfortunately a) 
  2072. you have to edit the corresponding settings manually and b) the cooperation 
  2073. with the RoboticsMessenger/2 is then distorted. 
  2074.  
  2075. Most errors we've been told had been errors in the modem setup - one user had 
  2076. his modem profile totally messed up - or failures during sending/receiving 
  2077. faxes. In all these cases Romes fails, cause it's (as long the errors aren't 
  2078. symptomatic) impossible to correct these failures by software. For converting 
  2079. the received faxes Dr.Pollack has build in several error-corrections (in his 
  2080. own words "belts and braces" and additionally "more magic" ;-). But due to the 
  2081. above mentioned problems we can't garantuee that everything works. Even (as one 
  2082. user suggested) to make Romes payable and therefore hiring developers won't 
  2083. solve this situation. 
  2084.  
  2085. If you 'refresh' the modem clock older messages have a date in the future. 
  2086.  
  2087. The returned messages from the modem at the commands page are limited to 255 
  2088. Characters. This is a problem with Sybil. So for querying the modem settings 
  2089. better use a 'real' terminal program like ZOC or HyperAccess. 
  2090.  
  2091.  
  2092. ΓòÉΓòÉΓòÉ 11. Legal Stuff ΓòÉΓòÉΓòÉ
  2093.  
  2094. Idea Aglaja Przyborski, Realisation Rossen Assenov 
  2095.  
  2096. RoboticsMessenger/2 (C) Copyright 1998-1999 by Rossen Assenov. 
  2097. Frec, Pcm2wav and Faxview 1999 by Dr. Harald Pollack.