🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #915

Re: Setting up serial ports

#915
From: Norman Goldstein
Date: Thu, 31 Dec 1992 19:48
45 lines
2520 bytes
zjtp04@trc.amoco.com (John T. Penn) writes:
: 
: In article <1992Dec30.200952.5153@panther.mot.com>, ronf@panther3.panther.mot.com (Ron Feigen) writes:
: > Being my first post, I hope this is the appropriate newgroup.
: > 
: > I am a Unix/C/Assembler type that finds himself in the position of having to
: > write/port an app. on an IBM PC.  One of the functions needed is to establish
: > carrier on a modem.  My problem?  How do I setup the com?: port using 'C'.
: > Asking the user to use the DOS mode command would be sort of kludgy.
: > Can anybody give some leads?  Books?  Examples?
: > 
: > Anyhelp would be greatly appreciated!!!!!!!!
: > 
: > 
: > Thanks in advance, 
: > -- 
: > 
: > >
: > Ron Feigen
: > ronf@panther.mot.com
: 
: 
: There are numerous ways of initializing a serial port with 'C'. My standard
: method is to directly write to the UART addresses. A more commonly used method
: is to use a library function such as `_bios_serialcom`. Most `C` compilers for
: DOS have this function or one that is similar. If you wish to write directly
: to the port addresses, the proper function to use would be 'outp','outport`,
: `outportb', etc., again depending on the compiler you are using.
: Good Hunting...
: 
: John

If you want all the hardware details of the serial port, of course the
hardware spec (e.g. for National Semiconductor 16450) will have all the
"hard" :-) details.  Borland is offering a sample driver (source) from their
bulletin board, (408)439-9096; it is called SERIAL.ZIP.  I have a shareware
product called SERIOUS which is a DOS installable device driver for 
serial ports, and offers a C/C++/ASM interface to the application programmer.
It is available in the net ibm archives, and various boards elsewhere.  If
you want to try it, and have trouble finding it, please let me know.
-- 
NAME 	Norman Goldstein
EMAIL	norman@mda.ca
SNAIL	13800 Commerce Parkway, Richmond BC, Canada V6V 2J3
PHONE	(604) 278-3411 ext 2779 (Voice); (604) 278-2936 (FAX)
Technical Details
Message-ID: <3923@mdavcr.mda.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!mdavcr!norman
References: <1992Dec31.081322@trc.amoco.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!mdavcr!norman
From: norman@mdavcr.mda.ca (Norman Goldstein)
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer,comp.sys.ibm.pc.programmer,comp.lang.c++,comp.lang.c
Subject: Re: Setting up serial ports
Message-ID: <3923@mdavcr.mda.ca>
Date: 31 Dec 92 19:48:35 GMT
References: <1992Dec31.081322@trc.amoco.com>
Followup-To: alt.msdos.programmer
Organization: MacDonald Dettwiler, 13800 Commerce Parkway, Richmond, BC, Canada  V6V 2J3
Lines: 45