home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / ek / simirid / simirid.txt < prev   
Text File  |  2020-01-01  |  1KB  |  35 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<-------->[1]Linux[2]<---------->Computer B
  11.  
  12. Computer A is connected to the Simirid computer's serial port 1.
  13. Computer B is connected to the Simirid computer's serial port 2.
  14. The dashed line is a null modem cable.
  15.  
  16. In each direction, random bytes are corrupted according to a selected
  17. average frequency, and delays are inserted.
  18.  
  19. Usage:
  20.  
  21.   simirid device1 device2 speed min_delay max_delay usbc err_rate
  22.  
  23. device1:   device name of a serial port, e.g. /dev/ttyS0
  24. device2:   device name of another serial port, e.g. /dev/ttyS1
  25. min_delay: minimum delay in seconds for a byte to arrive at the other end
  26. max_delay: maximum delay in seconds for a byte to arrive at the other end
  27. usbc:      microseconds between bytes
  28. err_rate:  floating-point number between 0.0 and 1.0
  29.  
  30. Example:
  31.  
  32.   simirid /dev/ttyS0 /dev/ttyS1 9600 1 4 100 0.3
  33.  
  34. _______________________________________________________________________________
  35.