Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* XOFF problem with HP printer on DS5000/200
@ 1992-03-13 19:12 Mike McCarrick
  1992-03-16 22:01 ` Mike McCarrick
  0 siblings, 1 reply; 2+ messages in thread
From: Mike McCarrick @ 1992-03-13 19:12 UTC (permalink / raw)


I am trying to attach an HP Laserjet III (w/ Postscript) to my
DS5000/200 running Ultrix 4.0.  The printcap entry is included at the
end for your information.

The problem seems to be that the DECstation doesn't respond quickly 
enough th XOFF's from the printer.  That is, if I eavesdrop on the 
serial line, I can see that the printer sends an XOFF, the DS continues
sending, the printer then sends a bunch more XOFF's and then complains
about and I/O Config error (buffer overflowing).  The DS does eventually
stop sending data, but only after overflowing the printers input buffer.

Has anyone else seen or solved this problem?  Is it a problem with the 
HPLJ sendin XOFF too late (when the buffer is too close to full), i.e.
is there another printer that would work correctly?

Thanks for any help,
Dr. Mike McCarrick
UCLA Plasma Physics Lab
mmccarri@physics.ucla.edu

/etc/printcap entry follows:

# @(#)printcap	2.2 (ULTRIX) 4/12/89
lp|lp0|0|Local Postscript printer:\
	:af=/usr/adm/lpacct:\
	:br#19200:\
	:ct=dev:\
	:fc#0177777:\
	:fs#000003:\
	:if=/usr/lib/lpdfilters/ln03rof:\
	:lf=/usr/adm/lperr:\
	:lp=/dev/tty00:\
	:mc#20:\
	:mx#0:\
	:of=/usr/lib/lpdfilters/ln03rof:\
	:pl#66:\
	:pw#80:\
	:rw:\
	:sd=/usr/spool/lpd:\
	:sh:\
	:uv=4.0:\
	:xc#0177777:\
	:xf=/usr/lib/lpdfilters/xf:\
	:xs#044000:



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: XOFF problem with HP printer on DS5000/200
  1992-03-13 19:12 XOFF problem with HP printer on DS5000/200 Mike McCarrick
@ 1992-03-16 22:01 ` Mike McCarrick
  0 siblings, 0 replies; 2+ messages in thread
From: Mike McCarrick @ 1992-03-16 22:01 UTC (permalink / raw)



In <1992Mar13.191235.29572@physics.ucla.edu> I wrote:

>I am trying to attach an HP Laserjet III (w/ Postscript) to my
>DS5000/200 running Ultrix 4.0.  The printcap entry is included at the
>end for your information.

>The problem seems to be that the DECstation doesn't respond quickly 
>enough th XOFF's from the printer.  That is, if I eavesdrop on the 
>serial line, I can see that the printer sends an XOFF, the DS continues
>sending, the printer then sends a bunch more XOFF's and then complains
>about and I/O Config error (buffer overflowing).  The DS does eventually
>stop sending data, but only after overflowing the printers input buffer.

>Has anyone else seen or solved this problem?  Is it a problem with the 
>HPLJ sendin XOFF too late (when the buffer is too close to full), i.e.
>is there another printer that would work correctly?

I received a couple of requests to post any solution, so here it is:
The needed patch came from Klaus Harbo <harbo@euromath.dk>, which he
in turn received from John Voss <j.voss@ucq.edu.au>.  The patch is 
applied to /usr/sys/machine/common/conf.c and goes like this:

> 
>     *** /usr/sys/machine/common/conf.c.orig	Tue Feb 12 10:46:23 1991
>     --- /usr/sys/machine/common/conf.c	Tue Feb 12 10:47:53 1991
>     ***************
>     *** 1072,1077 ****
>     --- 1072,1078 ----
> 
>       #ifdef mips
>       int	cnopen(),cnclose(),cnread(),cnwrite(),cnioctl(),cnselect();
>     + int	cnstop();
>       #endif mips
> 
>       #ifdef vax
>     ***************
>     *** 1896,1902 ****
>       #endif vax
>       #ifdef mips
>	  /* d_ttys will be filled in by cninit */
>     !	cnioctl,	nulldev,	nulldev,	0, 
>	  cnselect,	nodev,		0,	0},
>       #endif mips
>	  {dzopen, 	dzclose,	dzread, 	dzwrite,	/*1*/
>     --- 1897,1903 ----
>       #endif vax
>       #ifdef mips
>	  /* d_ttys will be filled in by cninit */
>     !	cnioctl,	cnstop,		nulldev,	0, 
>	  cnselect,	nodev,		0,	0},
>       #endif mips
>	  {dzopen, 	dzclose,	dzread, 	dzwrite,	/*1*/
> 

After rebuilding the kernel, the printer now works perfectly! Thanks Klaus!

Regards,
Dr. Mike McCarrick
Plasma Physics Lab, UCLA


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1992-03-16 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-03-13 19:12 XOFF problem with HP printer on DS5000/200 Mike McCarrick
1992-03-16 22:01 ` Mike McCarrick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox