home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
OS2COM1.ZIP
/
READ.ME
Wrap
Text File
|
1988-02-24
|
2KB
|
52 lines
os2comm.c - a simple os/2 comm program - version 1.1 2/26/88
This program is intended as an example for those who wish to
read (and improve!) its code; it is not really intended to be very
useable as is. Source code is provided.
This program uses the multitasking features of OS/2 and the OS/2
communications device driver to provide a simple communications
function. It is not intended to provide complete communications
capabilities, instead it is intended to demonstrate the use of the comm
device driver under OS/2. In particular, it does not provide any
dialing scripts, file transfers, or other common features of
communications software. It does provide a simple glass TTY terminal
function. When used with the ANSI.SYS device driver, it can be used as
a serviceable VT100 emulator. It also provides a simple capture file,
which will capture every byte which comes in from the COM port.
To use this program, type OS2COMM at the OS/2 prompt,
followed by the port, baud rate, parity, databits, and stopbits, and
optionally a file name for a capture file:
OS2COMM COMx:baudrate,parity,databits,stopbits capture-filename
The format looks much like the MODE command.
For example:
OS2COMM COM1:1200,N,8,1 C:\work\capture.dat
would start communications using 1200 bits per second, no parity,
8 databits, and one stop bit. All received data would be captured
in a file called capture.dat in the \work directory on drive C:.
Once you have started OS2Comm, everything you type is sent to your
modem. Since OS2Comm does not have any facility to place a call under
program control, you must perform this function yourself. The command
to cause Hayes compatible modems to place a data call is "ATDT"
followed by the desired phone number. Note that uppercase is required
for modem commands.
To end this program, press Ctrl-Z. This will disconnect the phone line
and return you to the OS/2 prompt.
This program will run only in the protected mode of OS/2.
It will not run under DOS.
This program requires the use of the COM0x.SYS device driver
in CONFIG.SYS. Use COM01.SYS for AT class machines. Use
COM02.SYS for PS/2 machines.
This program was written by Jim Gilliland.