How to get a feedback in cups when the front panel of my CM1017 printer is open?

Asked by Eric

Hi,

I've got an HP CM1017 printer succefully installed on an debian 6.0.1 with Cups 1.4.4
When I send a test page to the printer with Cups, it's ok.
But when I send a test page, whereas the front panel is open, cups says the job is successfully done.
I want to know if it possible to have notification in cups, saying the front is open and suspending the job.
I already tried with a lexmark printer, so I know Cups can do that.

Thanks for your response,

Eric.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#1

Assuming HPLIP is installed, you can see the status of the printer if you open HP Device Manager by running the following command in the terminal.

==> hp-toolbox

Revision history for this message
Eric (mercier-eric) said :
#2

Thanks for your reply

Ok, with hp-toolbox it says "Door open" but in Cups, it keeps saying "Idle - "ready to print" "

Is there way to have the information "Door open" in the Cups interface?

Thanks

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#3

Hi Eric,

Status update shown in hp-toolbox is specific to HP printers. AFAIK cups does not provide this.

Revision history for this message
Eric (mercier-eric) said :
#4

Hi Sanjay,

Thanks again for your reply.

With another printer (a Lexmark Pro205), this kind of information are provided within cups:

http://tof.canardpc.com/view/0d3729a4-5f8d-4e87-aee6-085d6d24aa8f.jpg

So maybe there is way to forward this kind of information to Cups?

Thanks a lot!

Revision history for this message
Sanjay Kumar (sanjay-kumar14) said :
#5

Hi Eric,

Thanks for sharing this. I will check and let you know if there is any way of doing like this for HP printers. In case of HP Printers, HPLIP queries device for the status a)periodically, if auto refresh is inabled b)On Pressing Refresh Button in Toolbox. In the reply, printer sends a status code(Number), which then is needed to be converted into a proper string and then displayed. I will check and let you know if we can integrate it with cups display.

Revision history for this message
Eric (mercier-eric) said :
#6

Thanks a lot for your response.

Please let me know if I can help you

Revision history for this message
Eric (mercier-eric) said :
#7

If this could help, here are the models at my desk:

HP Color LaserJet 8550
HP Color LaserJet CM1015

Revision history for this message
Eric (mercier-eric) said :
#8

I did another test on a Brother MFC-490CW printer

As long as the printer cover is open, the job stay in "processing" state. As soon as the printer cover is closed, the printer print the test page and the job switch to "Completed" state.

With the HP, when I try to print with printer cover open, nothing is printed until I close it, but cups says the job is "completed" even if nothing is printed yet. If I'm not clear enough, please tell me: I'm not fluent in english.

I also remark that the hp printer use the hp: protocol, brother printer use lpd: protocol and lexmark use dnssd: protocol. I can see that in the "Connection" string of the printer page in cups.

I hope this could help.

Thanks a lot again

Revision history for this message
Johannes Meixner (jsmeix) said :
#9

FYI:

While a print job is processed by CUPS, i.e. while CUPS filters
and the CUPS backend (in particular the "hp" backend) are running,
those filters and the backend have an open channel to talk to
the cupsd so that they can set the printer-state-message attribute
and if needed also printer-state-reason keywords via messages
that they send to stderr with appropriate prefixes, see
http://www.cups.org/documentation.php/doc-1.5/man-filter.html

When no print job is processed, it is more complicated because then
whatever program which queries the device for its status
would need to talk via IPP to the cupsd to set things like
printer-state-message and printer-state-reason.
I don't know if arbitrary programs are allowed to do this, see
http://www.cups.org/documentation.php/doc-1.5/policies.html

Revision history for this message
Eric (mercier-eric) said :
#10

Thanks for your reply.

In fact, I do wish to have the real time state of the printer in cups, but just the state of a current job.

For example, I don't understand why cups says "job completed" when, obviously, the printer has its cover and wait for it to be closed to really begin the job.

If I'm not clear enough, please let me know, I only wish to help.

Revision history for this message
Eric (mercier-eric) said :
#11

Hello,

Do you have any news about this issue?

Thanks again

Can you help with this problem?

Provide an answer of your own, or ask Eric for more information if necessary.

To post a message you must log in.