home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0651.ZIP / CCE_0651.PD / AUTOFAX / AUTOFAX.DOC < prev    next >
Text File  |  1985-11-20  |  21KB  |  428 lines

  1. The facsimile (or just FAX, for short) mode of communications 
  2. continues to increase in use on the HF bands.  A number of 
  3. additional government and commercial stations transmit a variety 
  4. of information ranging from weather satellite to press photo's.  
  5. Something interesting to copy can be found most hours of the day 
  6. on many frequencies.
  7.  
  8. My earlier programs for the  Atari 800/800XL/130XE and the 
  9. Commodore 64 and 128 computers ( December 1985 and October 1986 73 
  10. Amateur Radio, respectively) work very well, but can receive only 
  11. one chart at a time and can not automatically save charts to disk. 
  12. One thing FAX isn't is fast. Normal FAX charts can take 10 to 15 
  13. minutes to receive.  Initially it's fun to watch the charts be 
  14. displayed on the computer but after awhile one wishes the charts  
  15. could be recorded over a period of time (say a day or more) and 
  16. reviewed at leisure later.  
  17.   
  18. AUTOFAX TO THE RESCUE
  19.  
  20. My latest computer program, AUTOFAX, solves these problems.  It 
  21. provides numerous features to enhance receiving FAX signals, 
  22. including:
  23.  
  24.    COMPUTER CONTROLLED UNATTENDED RECEPTION OF CHARTS.  The user 
  25.    can construct a program schedule containing up to 20 steps 
  26.    including date, time, disk file name, and all other parameters 
  27.    associated with receiving a chart.
  28.  
  29.    
  30.    OPTIONAL CONTROL OF RECEIVER FREQUENCY.  If you are using a 
  31.    Kenwood TS440 or R5000 receiver and connect it to the 
  32.    computer's serial port as described in the article "Control 
  33.    Your Rig from a PC" in the August 1989 issue of 73, AUTOFAX 
  34.    will control the receive frequency as well.
  35.  
  36.    FLEXIBLE FAX RECEIVE PARAMETERS.  AUTOFAX will receive FAX 
  37.    signals using speeds of 60, 120, and 240 lines per minute.  
  38.    Charts may be 320, 640, or 1280 pixels wide and 1600 lines long 
  39.    (at 320 pixels per line).
  40.  
  41.    CONVENIENT VIEWING OF CHARTS.  The received charts are viewed 
  42.    on the computer's monitor.  The operator has full control over 
  43.    the display by course and fine horizontal and vertical 
  44.    scrolling of the display.  Both the color monitor (in medium 
  45.    resolution) and the superb monochrome monitors are supported.
  46.    
  47.    CHARTS SAVED TO DISK FILES.  Charts may be saved to disk files 
  48.    in two different formats.  One format is compatible with the 
  49.    popular drawing program DEGAS.  DEGAS will allow additional 
  50.    processing of the chart including adding color, animation, and 
  51.    hardcopy on numerous printers. 
  52.  
  53.    SIMPLE INTERFACE CIRCUIT.  A simple two IC circuit  is required 
  54.    to connect your receiver to the Atari ST's serial port.  All 
  55.    circuit components are easily obtained and any normal 
  56.    construction technique may be used.
  57.  
  58.    SIMPLE OPERATION.  AUTOFAX uses the Atari ST's MacIntosh like 
  59.    mode of operation to good advantage.  Most operations are 
  60.    controlled via 'pull down' menu's.  See Figure 4 for an 
  61.    example.  No complicated commands need be learned.  The user 
  62.    simply uses the computer's mouse to point at an option and 
  63.    'click' the mouse button to select the option.
  64.  
  65.  
  66. SYSTEM COMPONENTS
  67.  
  68. The components of this system are shown in the block diagram in 
  69. Figure 1 and consist of a suitable HF receiver, a tone detector, 
  70. an Atari ST computer, and the program AUTOFAX.  Also shown is an 
  71. optional RS232 to TTL converter in case you wish to have the 
  72. computer control the frequency of your Kenwood receiver.
  73.  
  74. RECEIVER REQUIREMENTS  The receiver you use should be a stable, 
  75. good quality, general coverage receiver with SSB capability.  If 
  76. your receiver provides acceptable  ease of tuning and frequency 
  77. stability for SSB voice signals, it should be suitable for 
  78. facsimile reception.  I primarily use a Kenwood TS440S 
  79. transceiver, but have also used a Sony ICF2010 receiver.
  80.  
  81. TONE DETECTOR.  The tone detector is a simple circuit that 
  82. connects between the receiver audio output and the computer's 
  83. RS232 serial port.   The circuit, shown in Figure 2, is based on 
  84. two IC's.  The NE565 phased locked loop IC functions as a simple 
  85. tone detector. The 50k potentiometer (marked 'TUNE') is used to 
  86. adjust the PLL center frequency.  The LM324 quad op-amp IC is used 
  87. as a low pass filter and level convertor to provide a 12 and 5 
  88. volt output signals.  We use the 12 volt output here to drive the 
  89. Atari ST computer.  The 5 volt output is suitable for computers 
  90. requiring a TTL level signal (Commodore 64/128, Atari 
  91. 800/800XL/130XE, etc.) and is not used with the Atari ST.  The LED 
  92. is used for tuning purposes.  Note that two op-amps within the 
  93. LM324 are not used in this circuit.  They could be used for 
  94. additional filtering or other functions.
  95.  
  96. The circuit uses only simple, commonly available components.  Your 
  97. friendly local Radio Shack or other suppliers should be able to 
  98. provide all of the components.  The resistors are all 1/8 watt and 
  99. 10% tolerance components.  All capacitors are ceramic disks and 
  100. are in microfarads, except for the two electrolytics (shown with 
  101. the polarity '+' marker) which are rated for 20 volts.
  102.  
  103. Since only low frequencies are used, any construction technique 
  104. may be used to put the circuit together ... a circuit board, 
  105. point-to-point, etc.
  106.  
  107. ATARI ST COMPUTER.  The Atari ST computer and the program AUTOFAX 
  108. are the heart of the system and control all aspects of its 
  109. operation.  The ATARI ST is a very capable computer system that 
  110. uses the Motorola 68000 microprocessor and may have from .5 to 4 
  111. megabytes of memory.  The ST features a mode of operation very 
  112. similar to the MacIntosh's thus it is very 'user friendly' for 
  113. this application.
  114.  
  115. All connections to the ST are via the RS232 serial port.   The 
  116. tone detector circuit's output is connected to pin 22 and ground 
  117. to pin 7. Additional pins of this connector are used if you use 
  118. the optional RS-232 to TTL converter.
  119.   
  120. RS232 TO TTL CONVERTER.  This optional circuit (see Figure 3) is 
  121. used to convert the computer's RS232 serial port's voltages to the 
  122. TTL levels required by the Kenwood TS440 transceiver and R5000 
  123. receiver.  The connections to the Atari are via pins 1 through 7 
  124. of the serial port.  Radio connections are via the 6 pin DIN 
  125. connector, ACC1.  The circuit was originally presented in the 
  126. August 1989 issue of 73 Amateur Radio.  Please refer to that 
  127. article for more information.  Note that this circuit is only 
  128. required if you wish to have the ST able to control your receive 
  129. frequency.
  130.  
  131.  
  132. AUTOFAX PROGRAM OPERATION
  133.  
  134. AUTOFAX uses the graphical user interface capabilities totally to 
  135. result in a sophisticated program that does not require a PHD in 
  136. computer science to operate!  All operations are via the ST's pull 
  137. down menus.  Figures 4 to 7 are sample print outs of the ST's 
  138. screen with each of the pull down menus highlighted.  The ST's 
  139. mouse is used to point at a desired menu and operation from the 
  140. menu.  'Clicking' the mouse button will then invoke the operation.  
  141. The following is a brief discussion of major functions of the 
  142. menus.
  143.  
  144. DATA FILES.  These menu options (Figure 4) provide capabilities 
  145. related to the storage and retrieval of received FAX charts.  The 
  146. first two options (Load and Save File) are used to load and save 
  147. FAX buffer contents to and from the attached disk drive.  The FAX 
  148. buffer is 128,000 bytes long ... suitable for receiving charts up 
  149. to 1280 pixels wide and 1600 lines long! The Load and Save DEGAS 
  150. File options are used to load and save a single screens worth of a 
  151. chart to or from a disk file that is compatible with the popular 
  152. drawing program named DEGAS.  DEGAS provides the ability to touch 
  153. up charts, add color, add animation, and print a hardcopy to 
  154. dozens of supported printers.
  155.  
  156. The last three options provide disk file management utility 
  157. functions. Set Path is used to set the default disk drive to be 
  158. used for all disk file operations.  This option will be especially 
  159. useful if you happen to have a hard disk drive.  
  160.  
  161. The Directory option will provide a listing of the names of the 
  162. files currently on disk, followed by the amount of free space on 
  163. the drive.  
  164.  
  165. The Delete File option allows the permanent removal of a disk file 
  166. that is no longer required.
  167.  
  168. SET UP MENU (Figure 5).  
  169.  
  170. The SET UP menu provides the ability to specify the lines per 
  171. minute (LPM) receiving rate, pixels per line, and other options  
  172. for the Manual FAX mode of reception. To choose the desired LPM 
  173. receive rate, simply use the mouse to pull down the SET UP menu, 
  174. then high light the desired rate (60, 120, and 240 LPM are 
  175. available), then click the left mouse button.  The next time you 
  176. pull down this menu the selected rate will have a little check 
  177. mark to its left to indicate the present rate.
  178.  
  179. In a similar manner, three chart widths are available: Normal - 
  180. 640 pixels per line, Wide - 1280 pixels per line, and Narrow - 320 
  181. pixels per line.  Selection of the desired width is the same as 
  182. described above.
  183.  
  184. The Line Skip option may be used to specify how many lines are to 
  185. be skipped between lines that are displayed.  It is used to 
  186. control the aspect ratio of received charts.  Its value will vary 
  187. with the chart being received and the present width setting.  I 
  188. usually find that a skip value of 1 or 2 is correct for a normal 
  189. width.  When this option is chosen , the computer will ask you to 
  190. enter a value of 0 to 9, and then press Return.  The next time the 
  191. SET UP menu is pulled down, the skip value will be displayed.  
  192.   
  193. The last SET UP menu option is the Clear Buffer option which, when 
  194. selected, will clear the memory chart buffer.  The buffer has room 
  195. to for the following lines of chart:
  196.  
  197.                           Receive minutes at 120 LPM vs. skip
  198.      Width     Lines      0   1   2   3   4   5   6   7   8   9
  199.      -------   -----     --- --- --- --- --- --- --- --- --- ---
  200.      Normal    1600       13  26  40  53  66  79  93 106 119 133
  201.      Wide      800         6  13  20  26  33  40  46  53  60  66
  202.      Narrow    3200       26  53  80 106 133 160 186 213 240 266
  203.  
  204. Also shown in the above table is the number of minutes of 
  205. reception that the buffer can hold for the various skip count 
  206. values.  For example, the buffer can hold over two hours of chart 
  207. using a width of narrow and a skip count of four!  This is great 
  208. for unattended monitoring a frequency to look for FAX 
  209. transmissions.
  210.  
  211. MAN. FAX MENU (Figure 6)
  212.  
  213. This menu provides various options for the control of the manual 
  214. mode of FAX reception.
  215.  
  216. The Start option will start the process of the reception of a 
  217. chart by the computer using the parameters as set up by the SET UP 
  218. menu.  The chart is stored in the memory buffer starting at the 
  219. beginning of the buffer, overwriting any existing chart.
  220.  
  221. The Stop option will halt the receive process until the next Stop 
  222. or Continue option.  While halted, the present synchronization 
  223. state and memory buffer position are maintained.
  224.  
  225. The Continue option will resume the reception of a FAX chart from 
  226. the point where the Stop option was selected. 
  227.   
  228. The Sync option may be used to synchronize the computer reception 
  229. of a chart with the station transmitting the chart.  After 
  230. starting the reception during the first part of a chart, select 
  231. this option.  The computer will display the received chart and 
  232. direct you to point the mouse to the desired left margin of the 
  233. chart (usually a white vertical bar during the first portion of 
  234. each chart) and click the left mouse button.  The remainder of 
  235. this chart will be received properly centered on the computer's 
  236. display.  The Reset option may be used to reset to the top of the 
  237. memory buffer without altering the synchronization.
  238.  
  239. Finally, the View Chart option may be selected to view the 
  240. contents of the memory buffer on the computer's display.  The 
  241. chart will be displayed until the left mouse button is clicked, 
  242. which will return to the menu mode of operation.  While the chart 
  243. is being displayed, extensive options are available to control the 
  244. portion of the chart to be displayed.  The options are controlled 
  245. by the following keys:
  246.  
  247.   KEYS USED          RESULTING ACTION
  248.   ------------------ -------------------------------------------   
  249.   Up arrow           Move up in the buffer 1/4 inch.
  250.   Down arrow         Move down in the buffer 1/4 inch.
  251.   Right arrow        Move to right in buffer 1/4 inch.
  252.   Left arrow         Move to left in buffer 1/4 inch.
  253.   Clr-Home           Move to top of current window of buffer.
  254.   Shift-Up arrow     Move to next window up in buffer.
  255.   Shift-Down arrow   Move to next window down in buffer.
  256.   Shift-Right arrow  Move to right side of a wide width buffer.
  257.   Shift-Left arrow   Move to left side of a wide width buffer.
  258.   Shift-Clr-Home     Move to top of memory buffer.
  259.   Left mouse button  Discontinue chart display.  Return to menu.
  260.  
  261. Use these chart scrolling options to select the portion of a chart 
  262. to be saved during the next Save Degas File option from the DATA 
  263. FILES menu.  The Save Degas File option will save exactly the 
  264. contents of the computer display.
  265.  
  266. AUTO FAX MENU (Figure 7)
  267.  
  268. This final menu provides the powerful, automatic FAX reception 
  269. features for which this programmed is named.  AUTOFAX is centered 
  270. around the concept of a reception schedule that may be up to 20 
  271. steps long with each step specifying the following items:
  272.  
  273.   Frequency, in khz., that the attached Kenwood TS440 or R5000
  274.   receiver is to be set to.  If a receiver is not directly   
  275.   connected to the computer, this is simply a memo field.
  276.   Mode of receiver operation.  The choices are U=USB, L=LSB, 
  277.   A=AM.
  278.  
  279.   Comment field to be used as desired.  Examples are the call and
  280.   location of the station to be received.
  281.  
  282.   Date to start reception.  Date formats are xx/xx/19xx.  The 
  283.   special date value of TODAY my be used to start reception
  284.   regardless of the actual date.
  285.  
  286.   Time to start reception.  Time formats ar xx:xx.  The special
  287.   time format of NOW may be used to start reception regardless
  288.   of the actual time.
  289.  
  290.   Minutes to record a chart.  Values may be from 001 to 999,
  291.   although the longest practical length is the length of time
  292.   that can be accommodated in the memory buffer using the
  293.   following Width, LPM, and Skip values.  See the chart presented
  294.   in the SET UP menu discussion.
  295.  
  296.   Width of chart.  The values may be Normal, Narrow, or Wide.
  297.  
  298.   LPM receive rate.  The values may be 60, 120, or 240.
  299.  
  300.   S or desired Skip value.  The skip value can be 0 to 9.
  301.  
  302.   File Name.  The disk file will be used to hold the contents of
  303.   the memory buffer after the specified number of minutes of chart
  304.   are received. 
  305.  
  306. The Load Schedule and Save Schedule AUTO FAX menu options will 
  307. load and save a receive schedule to and from a disk file, 
  308. respectively.  Any number of receive schedules may be saved on 
  309. disk.
  310.  
  311. The Edit Schedule invokes a full screen editor to allow the entry 
  312. and/or edit of a the current receive schedule.  The editor 
  313. displays the schedule headings and all 20 schedule steps.  The 
  314. arrow keys are used to highlight the schedule step to be modified.  
  315. Then the right arrow will signal you wish to change this line.  
  316. Now all keyboard keys are active to allow the line to be changed 
  317. or entered.  Pressing the Return key signals that you are finished 
  318. with the line.  The Control-Insert and Control-Delete keys may be 
  319. used to insert or delete a line in the middle of a schedule.  The 
  320. schedule items are position dependent ... they must be lined up 
  321. exactly under the headings shown.  When all changes are completed, 
  322. pressing Control-Z will return to menu mode operation.
  323.  
  324. The Start Schedule will display the receive schedule and start up 
  325. the Auto FAX mode of operation.  The computer will sequentially 
  326. search through the schedule for the first entry that is in the 
  327. future and will then wait for that step's starting date and time.  
  328. The step is highlighted and the present date and time are 
  329. displayed.  If the computer is controlling your receiver's 
  330. frequency and mode, then those values are set appropriately per 
  331. the schedule step values. The computer will do each step in the 
  332. schedule, until the end is reached, where the computer will simply 
  333. continue at the top of the schedule.  The user may halt Auto FAX 
  334. operation at any time by simply entering Control-Z.
  335.  
  336. The View Files option of the AUTO FAX menu may be used to direct 
  337. the computer to sequentially step through each step of the 
  338. schedule, load in the data file holding the received FAX chart, 
  339. and display the chart until the left mouse button is clicked.  
  340. This provides a quick way to examine the charts after collection.
  341.  
  342. The Terminal Emulator provides a method to send characters 
  343. directly from your computer's keyboard to your Kenwood receiver.  
  344. This feature is handy for checking out your interface circuit or 
  345. or using other receiver remote control features that are not 
  346. supported by AUTOFAX.
  347.  
  348. Finally, the Set Date/Time option allows those of us who do not 
  349. have a built in date and time chip to set the date and time after 
  350. first running AUTOFAX.
  351.  
  352. The example receive schedule shown samples weather info from the 
  353. Pacific ocean from NPM (Pearl Harbor), the Gulf area from WLO 
  354. (Slidell, La.), Canada from CFH (Halifax, N.S.), continental US 
  355. form the Air Force Weather Service (Elkhorn, Ne.), and several 
  356. GOES satellite pictures from NAM (Norfolk, Va.)!  This entire
  357. 24 hour  schedule is conducted unattended by the computer, with 
  358. all received charts stored on disk for later viewing. 
  359.  
  360. USING THE SYSTEM
  361.  
  362. Turn on your computer then double click on the file GFABASRO.PRG.  
  363. This file is the run only version of the program GFA BASIC (which 
  364. is what AUTOFAX is written in) and select file AUTOFAX.BAS when 
  365. the file selector box appears.  AUTOFAX will then load off disk 
  366. and run.  
  367.   
  368. Connect the tone detector circuit to your receiver's audio output 
  369. and to the computers serial port.  Also connect the RS-232 to TTL 
  370. interface circuit to the receiver and computer if you are using 
  371. the computer control of receive frequency option.  Power up the 
  372. receiver and the tone detector and tune in a strong FAX signal 
  373. until the characteristic screech-screech sound is of medium pitch.  
  374. A moderate level of receiver audio output will be required.  Now 
  375. adjust the Tune control until the LED blinks in time with the 
  376. received audio.  Using the mouse, select the MAN. FAX menu item 
  377. and the Start option.  Now again select the MAN. FAX menu item and 
  378. select the View Chart option.  You should see the chart being 
  379. displayed horizontally from top to bottom on the computers 
  380. display.  Fine tune the receiver and/or the tone detector for the 
  381. sharpest copy.
  382.  
  383. WHERE TO TUNE
  384.  
  385. By far the best FAX signals at my location are from NAM out of 
  386. Norfolk, Va.  Current frequencies are 3357, 8080, 10865, 16410, 
  387. and 20225 khz.  Weather charts and satellite photographs of all 
  388. types are broadcast nearly continuously.
  389.  
  390. The Air Force Weather Service broadcasts a variety of weather 
  391. charts also nearly continuously from Offutt AFB at Elk Horn, Ne. 
  392. on 3231, 5096, 6904, 10576, 11120, and 19326 khz.
  393.  
  394. Coastal station WLO from Slidell, La. provides weather information 
  395. pertinent to the gulf coastal area and surrounding states.  
  396. Frequencies are 6852, 9157, and 11145 khz.
  397.  
  398. Finally, CFH from Halifax, N.S., Canada, provides charts during 
  399. the first 15 to 30 minutes of each hour on 4271, 6330, 10536, and 
  400. 13520 khz.  As you might expect, their information centers on 
  401. Canada or Canadian waters.
  402.  
  403. GETTING THE PROGRAM
  404.  
  405. The program is essentially share-ware at this time.  It has been 
  406. uploaded to GENIE and is available there.  The tone detector 
  407. circuit diagram and other figures mentioned above are available 
  408. for $5 from:
  409.  
  410.      Gary Sargent
  411.      4227 Willow Run Dr.
  412.      Dayton, Ohio  45430
  413.  
  414. For an extra $10 (or $15 total), I will include a 3.5 diskette 
  415. containing all of the program and other files, saving you the 
  416. download expense.
  417.  
  418. I can not accept CODs or credit cards (US funds only, please).  
  419. Personal checks or postal money orders in U.S. funds are 
  420. acceptable.  
  421.  
  422. Autofax is an outgrowth of the earlier VISIFAX programs for the 8 
  423. bit Atari and the Commodore 64 computers.  Visifax packages 
  424. (software diskette, 73 Amateur Radio magazine article reprint, and 
  425. other info) is still available at the address above for $15 each.  
  426. Be sure to specify the computer.
  427.  
  428.