home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / simirid.zip / simirid.txt < prev   
Text File  |  2011-06-17  |  1KB  |  27 lines

  1. Simirid.c
  2.  
  3. Program by John Dunlap, University of Washington Applied Physics Lab,
  4. February 2010, for simulating a connection between E-Kermit and
  5. C-Kermit via Iridium satellite modems, but can be used for any other
  6. purpose on serial connections.
  7.  
  8. This program runs on a Linux computer that has two serial ports:
  9.  
  10. Computer A ------------ Simirid computer ------------ Computer B
  11.  
  12. Computer A is connected to one of the Simirid computer's serial ports.
  13. Computer B is connected the Simirid computer's other port.  In each
  14. direction, random bytes are corrupted according to a selected frequency
  15. distribution, and delays are inserted.
  16.  
  17. Usage:
  18.  
  19.   simirid device1 device2 speed min_delay max_delay usbc err_rate
  20.  
  21. device1:   device name of a serial port, e.g. /dev/ttyS0
  22. device2:   device name of another serial port, e.g. /dev/ttyS1
  23. min_delay: minimum delay in seconds for a byte to arrive at the other end
  24. max_delay: maximum delay in seconds for a byte to arrive at the other end
  25. usbc:      microseconds between bytes
  26. err_rate:  floating-point number between 0.0 and 1.0
  27.