🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #217

Programming HP Plotters over RS-232

#217
From: Joel Spolsky
Date: Thu, 29 Mar 1990 03:29
21 lines
1484 bytes
Hi yall, a quick question; we've got this HP Plotter attached to COM1
(over RS232) and I have tried to program it with

	plotter = fopen("COM1");
	fprintf (plotter, "...");

but every once in a while some buffer overflows and I get nasty DOS
"Write error on COM1, Abort Retry Ignore Fail" messages scribbled all
over my otherwise extremely beautiful VGA graphic screen.

What am I doing wrong? Do I have to write my own routines to write one
character at a time to the UART and check when it is ready for
another? will this solve my problem at all? or is there an easier way?

Many thanks,

+----------------+----------------------------------------------------------+
|  Joel Spolsky  | bitnet: spolsky@yalecs.bitnet     uucp: ...!yale!spolsky |
|                | internet: spolsky@cs.yale.edu     voicenet: 203-436-1538 |
+----------------+----------------------------------------------------------+
                                                      #include <disclaimer.h>
Technical Details
Message-ID: <20621@cs.yale.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!yale!cs.yale.edu!spolsky-joel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!yale!cs.yale.edu!spolsky-joel
From: spolsky-joel@CS.Yale.EDU (Joel Spolsky)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Programming HP Plotters over RS-232
Message-ID: <20621@cs.yale.edu>
Date: 29 Mar 90 03:29:44 GMT
Sender: news@cs.yale.edu
Reply-To: spolsky-joel@CS.Yale.EDU (Joel Spolsky)
Organization: Yale University Computer Science Dept, New Haven CT  06520-2158
Lines: 21