home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / OS2COM1.ZIP / READ.ME
Text File  |  1988-02-24  |  2KB  |  52 lines

  1. os2comm.c - a simple os/2 comm program - version 1.1  2/26/88
  2.  
  3. This program is intended as an example for those who wish to
  4. read (and improve!) its code; it is not really intended to be very
  5. useable as is.  Source code is provided.
  6.  
  7. This program uses the multitasking features of OS/2 and the OS/2
  8. communications device driver to provide a simple communications
  9. function.  It is not intended to provide complete communications
  10. capabilities, instead it is intended to demonstrate the use of the comm
  11. device driver under OS/2.  In particular, it does not provide any
  12. dialing scripts, file transfers, or other common features of
  13. communications software.  It does provide a simple glass TTY terminal
  14. function.  When used with the ANSI.SYS device driver, it can be used as
  15. a serviceable VT100 emulator.  It also provides a simple capture file,
  16. which will capture every byte which comes in from the COM port.
  17.  
  18. To use this program, type OS2COMM at the OS/2 prompt,
  19. followed by the port, baud rate, parity, databits, and stopbits, and
  20. optionally a file name for a capture file:
  21.  
  22.    OS2COMM  COMx:baudrate,parity,databits,stopbits  capture-filename
  23.  
  24. The format looks much like the MODE command.
  25.  
  26. For example:
  27.  
  28.    OS2COMM  COM1:1200,N,8,1  C:\work\capture.dat
  29.  
  30.    would start communications using 1200 bits per second, no parity,
  31.    8 databits, and one stop bit.  All received data would be captured
  32.    in a file called capture.dat in the \work directory on drive C:.
  33.  
  34. Once you have started OS2Comm, everything you type is sent to your
  35. modem.  Since OS2Comm does not have any facility to place a call under
  36. program control, you must perform this function yourself.  The command
  37. to cause Hayes compatible modems to place a data call is "ATDT"
  38. followed by the desired phone number.  Note that uppercase is required
  39. for modem commands.
  40.  
  41. To end this program, press Ctrl-Z.  This will disconnect the phone line
  42. and return you to the OS/2 prompt.
  43.  
  44. This program will run only in the protected mode of OS/2.
  45. It will not run under DOS.
  46.  
  47. This program requires the use of the COM0x.SYS device driver
  48. in CONFIG.SYS.  Use COM01.SYS for AT class machines.  Use
  49. COM02.SYS for PS/2 machines.
  50.  
  51. This program was written by Jim Gilliland.
  52.