Dec 062017
 
Cport is a C language interrupt-driven serial communication library. Supports the 16550, and has full source code.
File CPORT2.ZIP from The Programmer’s Corner in
Category C Source Code
Cport is a C language interrupt-driven serial communication library. Supports the 16550, and has full source code.
File Name File Size Zip Size Zip Type
COMDEMO.C 26662 6222 deflated
COMDEMO.DOC 1909 831 deflated
COMDEMO.EXE 24354 15473 deflated
CPORT.DOC 191484 35311 deflated
CPORT.H 11454 2709 deflated
CPORT.HPP 8140 1745 deflated
CPORTS.LIB 19456 9463 deflated
FILE.LST 445 229 deflated
README.!!! 1947 881 deflated
XMODEM.H 2196 662 deflated

Download File CPORT2.ZIP Here

Contents of the COMDEMO.DOC file




Comdemo - Serial Communications Demo.

Comdemo is a full duplex terminal program. It recognizes most
of the more common ANSI control sequence such as cursor
location and screen attributes. You can use Comdemo to
dial up a BBS or communicate with RS-232 equipment.

Comdemo will send Ctrl characters and keys such as the
escape key verbatim. Some Alt characters are reserved for
commands. They are as follows:


Alt A - Toggle between ANSI and TTY terminal.
Alt B - Next baud rate.
Alt C - Next COM port.
Alt D - Hayes dial command (sends the string "ATDT")
Alt E - Toggle echo mode.
Alt G - Hayes hang up command (sends the string "~~~+++~~~ATH0\r\n").
Alt H - Next handshake scheme.
Alt I - Initialize a Hayes modem (sends the string "ATZ").
Alt N - Append a line feed to a carriage return toggle.
Alt M - Toggle mode (8-1-N, 7-1-E).
Alt X - Quit Comdemo.
Pg Up - Upload a file (Xmodem)
Pg Dn - Download a file (Xmodem)


To dial up a BBS, set the COM port (Alt C), baud rate (Alt B),
word length (Alt W), number of stop bits (Alt S) and parity
(Alt P). If the BBS send ANSI escape codes make sure ANSI is
selected (Alt A). In some cases you will need to set LF on
(Alt N) as well. Now you can initialize your modem and dial.
Press Alt I to initialize the modem and then press Alt D followed
by the phone number and the enter key. If the initialize and dial
strings in Comdemo are not appropriate for your modem, you
can enter them by hand.

Comdemo will compile/link under Borland C/C++ and Microsoft C/C++.
If you are using Microsoft C/C++, make sure you link in the
graphics library.


 December 6, 2017  Add comments

Leave a Reply