Re: [netatalk-admins] toner low errors


Subject: Re: [netatalk-admins] toner low errors
From: Darren Atkinson (atkinson@cs.ucsd.edu)
Date: Sat Aug 15 1998 - 19:45:06 EDT


I thank Wesley and Andras for their responses, but unfortunately they
didn't fix the problem. My first thought was that I was using the -w
flag to pap (from psf) and that the string "Printer Error: toner is
low" certainly doesn't match "waiting". But, even when I just use pap
by itself without the -w flag, I still experience the same problem:

murdoch % /usr/bin/pap -p paanini /usr/lib/atalk/pagecount.ps
Trying 3841.134:157 ...
status: PrinterError: toner is low; source: AppleTalk
status: PrinterError: toner is low; source: AppleTalk
status: PrinterError: toner is low; source: AppleTalk
status: PrinterError: toner is low; source: AppleTalk
status: PrinterError: toner is low; source: AppleTalk

I recompiled pap with its debugging messages and also hacked the code
a little bit to ignore the error. But now I get this:

murdoch % ./pap -p paanini /usr/lib/atalk/pagecount.ps
Trying 3841.134:157 ...
OPEN >
< OPENREPLY
status: PrinterError: toner is low; source: AppleTalk
ignoring error <<< my comment
Connected to paanini:LaserWriter@CSE.
READ 1 >
SENDSTATUS >
< STATUS
TICKLE >

The connection eventually times out. I don't think I just blindly
ignore the failed open reply. If you look at the code, the port
number seems to be extracted from the reply:

            bcopy( &nn.nn_sat, &sat, sizeof( struct sockaddr_at ));
>>>> sat.sat_port = rbuf[ 4 ];
            quantum = rbuf[ 5 ];

The printer is set for "LOW TONER = CONT" so that can't be the
problem. As a matter of fact, we've bought some defective toner
cartridges that work just fine using TCP/IP except the printer always
says "LOW TONER".

What I'm thinking is that this is probably a another bug in HP's PAP
implementation. If "LOW TONER = STOP" then yes, the open should fail.
But, if "LOW TONER = CONT", then the open should succeed. So, I guess
I really need yet another kludge to be added to pap/psf to work around
this problem. Is there any way to open the connection and ignore the
error?

Thanks,
Darren

----------------------------------------------------------------------
In reply to the following message:

>From root@fido.hu Sat Aug 15 08:34:39 1998
Date: Sat, 15 Aug 1998 17:34:34 +0200 (CEST)
From: Kadinger Andras <bandit@freeside.elte.hu>
To: Darren Atkinson <atkinson@cs.ucsd.edu>
Subject: Re: [netatalk-admins] toner low errors

Hi Darren,

I've just spent an hour exploring the various media handling options an
option menus of our 4MV, and I stumbled across an option in the front
panel: CONFIG | LOW TONER should be set to CONT to make the printer
continue printing (vs. STOP, where it doesn't allow further printing).

Of course, Wesley is also right regarding the '-w' parameter.

Hope, this helps,

Sincerely,
Andras Kadinger
bandit@freeside.elte.hu



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:33:05 EST