Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!violet.berkeley.edu!izumi From: izumi@violet.berkeley.edu (Izumi Ohzawa) Newsgroups: comp.sys.ibm.pc Subject: Re: Accessing the comm port with MS C Message-ID: <19956@agate.BERKELEY.EDU> Date: 5 Feb 89 03:53:16 GMT References: <411@lakart.UUCP> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 30 In article <411@lakart.UUCP> dg@lakart.UUCP (David Goodenough) writes: >I've just been landed with a project to write some software that communicates >with the modem and printer ports on a PC. I'm going to be using MS C V5.1, >but I have no real idea how to go about writing / reading / testing the >state of the ports. I need the following: > >1. Check if the modem port has a character to read >2. Get that character >3. Write a character to the modem port >4. Write a character to the printer port > >Also, if there is any code that needs to be executed to initiate the modem >port to run at 9600 (or possibly 19200) BPS, and 8N1, I'd want to know >about that too. > All of the above are supported by COMx port drivers which conform to FOSSIL driver specification. These drivers replace and extend BIOS INT14h. You should be able to get a copy of the driver from most BBS systems particularly those running OPUS BBS software. These BBS software itself heavily depend on the driver. And binaries are in public domain. Also, I saw a FOSSIL driver in WSMR-SIMTEL20 archive. Izumi Ohzawa izumi@violet.berkeley.edu ...ucbvax!violet!izumi