                          Faker Program
                          07/09/97 -med

Congratulations on bringing light into the dark room! You've 
found the Fake Fonix development tool! 

Overview:

This is a program used to test the Fryers driver without 
requiring the use of a Fonix instrument. This can be useful to 
test out the operation of a program without tying up a Fonix 
instrument for long periods of time. 

This program should not be used in place of a full test. It is 
only valuable as a tool to help in the development of an 
application that communicates with a Fonix instrument when a 
Fonix instrument is not readily available. 

This program is work in progress. Very few functions have been 
actually implemented, and the implementation is sparse. It is not 
intended to be a full emulation of actual equipment. You should 
always use the actual equipment to determine proper operation of 
a program. 

This is NOT a supported program. It is provided "AS IS". 
Developers can adapt it to their particular needs. 

Usage: 

The program requires a computer running MSDOS with a serial port, 
preferably on COM1. An old 286 or 386 will do just fine. 

You will need a null modem cable to make the computer's serial 
port look like a Fonix device. 

Connect the Fake Fonix computer to the computer running the 
application with a null modem cable between the serial ports on 
the two computers. Start the Faker program on the computer being 
used as a Fake Fonix device. Then run the application on the 
other computer. 

When running, the Fake Fonix computer will show status 
information on the screen as it services commands. See the source 
code and Fryers documents for what it all means. 'Cmd' is the 
command that Faker received from the instrument. 'Rsp' is the 
response Faker sent back to the computer. 'Err' is any error that 
occurred in the transmission.

The Faker program requires Fryers V4.00 or higher to be running 
on the computer it is used on.

Command line options:

When you start the Faker program, you can modify it's operation 
with the following command line options. 


  FAKER [opt1 opt2 opt3]


 Options:
   Z - Don't show status information
       (may help performance on slow computers)

   C1 - Use COM1   (only port1 and port2 are supported)
   C2 - Use COM1   (see SetPort program to change Fryers ports.)

   Q - Disable Quick Terminate support
   
   B19200 - override baudrate to 19200
            (9600 is default)   
            Possible: 4800,9600,19200,28800,38400,57600,115200  
   
   R50 - Set poll delay time in ms (default is 50ms). 



   Note: although the following options are checked for, they 
   don't actually do anything yet. In time, they will attempt to 
   make the Fake Fonix computer perform a better emulation of the 
   selected device. Currently, the Fake Fonix program will return 
   an instrument type of -1 ($FFFF) indicating that it is "fake."

   6500 - Emulate a 6500
   FP40 - Emulate a FP40
   FA10 - Emulate a FA10
   FA12 - Emulate a FA12
   FA18 - Emulate a FA18


The program will currently respond to limited FA1x, FP40, and 
6500 commands all the time. In the future sometime if time is 
available, the DeviceType will be used to adapt the code to make 
the Fake Fonix computer look more like the specified instrument. 

Remember, Faker is a development tool. Don't expect too much from 
it. You will need the appropriate Fonix instrument to do actual 
development. 

<eof>
