[comp.laser-printers] Problems printing from Sun386i to HPLJ III

wagner@CHEPIL.WERU.KSU.EDU (Larry Wagner) (04/10/91)

I was informed that this may be a better group to ask this question, so here it is.

I have recently recieved an HP Laserjet III printer which has
replaced an HP Laserjet II.  The LJ III was just substituted in place of the
LJ II.  No problems were evident with the LJ II, but the LJ III will not
complete print jobs (except small ones under a couple of pages) - leaving
the formfeed indicator on instead of finishing the print job.  This occurs
regardless of whether the files have been sent via lpr or through PC-NFS
using WP5.1 on PCs.  The following error message occurs on the console
every time the problem occurs:


<<< Tue Apr  9 09:09:07 1991 >>>
cat: write error: No such device or address



The following is the /etc/ypprintcap entry pertinent to this printer.  It
is essentially identical to the default one supplied for a LJ II on Sun 386i
machines.

/etc/ypprintcap
---------------
# NOTICE: This file is automatically maintained. If
# you edit it manually, make sure you use the correct format.

generic_hp:pw#80:pl#60:sh:ms=-parity,-cstopb,-clocal,-cread,crtscts,ixon,-opost:of=/usr/lib/hplaserjet:

lp1|chepil-tty02:lp=/dev/tty02:br#19200:rm=chepil:rp=lp1:sd=/var/spool/lp1:tc=generic_hp:


Here is the hplaserjet filter script:

/usr/lib/hplaserjet
-------------------

#!/bin/csh -f
#
# @(#)hplaserjet 1.1 88/10/27 Sun Microsystems Inc 1988
#
#
# This is the output filter form use with HP laserjets I and II.
# It is called via the of entry in the generic_hp printcap entry
# All it does is send the escape sequence to the printer, so that:
#	CR is mapped to CR
#	LF is mapped to CR LF
#	FF is mapped to CR FF
/usr/bin/echo -n 'E&k2G'
/usr/bin/cat
if ($status == 0) then
	exit 0
else
	exit 1
endif


Thanks in advance for any help.

--
--------------------------------------------------------------------------------
Larry E. Wagner                     | wagner@chepil.weru.ksu.edu
USDA-ARS Wind Erosion Research Unit | wagner@matt.ksu.ksu.edu
105B East Waters Hall, KSU          | ...!{rutgers,texbell}!ksuvax1!weru!wagner
Manhattan, KS 66506                 |phone (913)532-6807
--------------------------------------------------------------------------------

tony@SDD.HP.COM (Tony Parkhurst) (04/17/91)

In article <9104111904.AA07579@crayola.cs.UMD.EDU>, wagner@CHEPIL.WERU.KSU.EDU (Larry Wagner) writes:
 
|> I have recently recieved an HP Laserjet III printer which has
|> replaced an HP Laserjet II.  The LJ III was just substituted in place of the
|> LJ II.  No problems were evident with the LJ II, but the LJ III will not
|> complete print jobs (except small ones under a couple of pages) - leaving
|> the formfeed indicator on instead of finishing the print job.  This occurs
|> regardless of whether the files have been sent via lpr or through PC-NFS
|> using WP5.1 on PCs.  The following error message occurs on the console
|> every time the problem occurs:
|> <<< Tue Apr  9 09:09:07 1991 >>>
|> cat: write error: No such device or address

If you are hooked up via rs-232, make sure that the printer is in Xon/Xoff
mode, NOT DTR.


 
|> /usr/lib/hplaserjet
|> -------------------
 
|> /usr/bin/echo -n 'E&k2G'


I don't know how this looked to you, but there should be two escapes in
this string:

	<esc>E<esc>&k2G


--
		Tony Parkhurst	( tony@sdd.HP.COM )

"free people need no drug laws" -- James A. Parker