🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4269

Com1 read/write problem!??

#4269
From: djung
Date: Tue, 15 Jan 1991 15:38
21 lines
1574 bytes
I have a small problem concerning reading and writing the com1 port on a PC.
I'm not usually a PC programmer, but I want to write a small program that
sends and recieves data through com1 to/from a modem.  Using kermit set
to com1, 2400baud, xon/xoff, etc works fine.  But if I use the dos command
  echo hello modem > com1:
I just get an error (write failure or something).  I though this might
be because the com1 port had not been initialized, but if I do a PUSH
from kermit to put me in an OS shell, it doesn't help.  I also tried using
the Turbo Pascal MsDos() call to use the system function 04H (I forget
the name - outputs a character to AUX I think (Is this the same?)).  But
the machine just pauses for a while - then comes back to turbo without an
error - however nothing happens!

					-David.

PS: Thanks in advance for your reply.
 
------------------------
David Jung             |      /// An AMIGA a day keeps the Apples away.
University of Adelaide |    ///
South Australia.       | \\//   Internet: djung@eco.au.oz.au
Technical Details
Message-ID: <1991Jan16.010807.1@economics.adelaide.edu.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!economics.adelaide.edu.au!djung

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!economics.adelaide.edu.au!djung
From: djung@economics.adelaide.edu.au
Newsgroups: comp.os.msdos.programmer
Subject: Com1 read/write problem!??
Message-ID: <1991Jan16.010807.1@economics.adelaide.edu.au>
Date: 15 Jan 91 15:38:07 GMT
Sender: news@ucs.adelaide.edu.au
Organization: Economics, University of Adelaide
Lines: 21
Nntp-Posting-Host: eco.economics.adelaide.edu.au