> From [EMAIL PROTECTED] Wed Nov 14 06:29:44 2001
> Date: Wed, 14 Nov 2001 14:25:53 +0100
> From: =?iso-8859-2?Q?Edi_=A9uc?= <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Hp4k sync problem
>
> Hi.
>
> I have a HP Lj4000 printer connected to my computer via parallel (SPP)
> port (I also tried a newer computer with EPP and no difference).  I have
> ifhp 3.4.7 installed. The bidirectional printer port works (if I echo 
> a PLJ command to the /dev/lp0, I get the response with cat /dev/lp0). 
> But when I try to print, nothing happens, because the filter waits for the
> response from the printer. The last words in the log file are these:
>
> --------------------------------------------------------------
> (of) code = 30010, 'status buffer overflow' at 14:13:19.543
> (of) using model 'hp4000' at 14:13:57.154
> (of) pagecount using 'pjl info pagecount' at 14:13:57.196
> (of) setting up printer at 14:13:57.198
> (of) starting OF mode passthrough at 14:13:57.200
> (of) getting sync using 'pjl echo' at 14:13:57.201
> ---------------------------------------------------------------
>
> If I then stop the lprng and cat the /dev/lp0, I get the status. 
>
> My confs:
>
> printcap:
> LaserIII|LaserJet III
>         :lp=/dev/lp0
>       :sd=/var/spool/lpd/LJ3
>       :ifhp=model=hp4000,of_options=pagecount waitend status
>       :filter=/usr/local/libexec/filters/ifhp
>       :of=/usr/local/libexec/filters/ifhp
>       :ps=/tmp/print.log
>       :rw
>       :sh
>
> ifhp.conf unchanged. Kernel 2.2.15. 
>
> If I run ifhp directly with the /dev/lp0 device and debug it seems like it 
> doesn't know how to read the port. 
>
> Any ideas?
>
> Thanx,
> Edi

I suspect you are running Linux.  The problem here is that
a parallel port is not really a true bidirectional data channel.
It needs to be 'turned around'.  This is done by using the following:

write some stuff
check to see if there is pending input using a special IOCTL
  call
if there is input then read some input

Due to implemenation problems (the parport folks have my sympathy on this)
it is difficult to do this correctly without having intimate knowledge
of the output device.

I have thought about adding code in ifhp to see if the output device
is a parallel port device,  and if so,  then after each write doing
a check.

I may get around to it,  but it will not be simple.

Patrick

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to