HP LaserJet 2200 fails to work with hp-makeuri

Asked by Richard Palmer

Hello,

  I am trying to add a HP LaserJet 2200dn to CUPS using the hp-* tools.

hp-makeuri -ldebug [IP] returns:

HP Linux Imaging and Printing System (ver. 1.6.10)
Device URI Creation Utility ver. 4.3

Copyright (c) 2003-6 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-makeuri[6665]: debug: Trying IP address
hp-makeuri[6665]: debug: (xmit) Sending data on channel (3)
hp-makeuri[6665]: debug: 'msg=makeuri\nbus=net\nhostname=[IP]\nport=1\n'
hp-makeuri[6665]: debug: (xmit) Reading data on channel (3)
hp-makeuri[6665]: debug: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
hp-makeuri[6665]: debug: Exception: 5 (Unknown message type)
error: Device not found

and hp-setup refuses to believe it exists. But it does!. E.g.:

snmpwalk -Os -c public -v 1 [IP] 1.3.6.1.4.1.11.2.3.9.1.1.7.0
enterprises.11.2.3.9.1.1.7.0 = STRING: "G:Hewlett-Packard;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;MDL:HP LaserJet 2200;CLS:PRINTER;DES:Hewlett-Packard LaserJet 2200;MEM:16MB;OPTRAY:500Sheets"

This is on a Debian Etch system:

ii hplip 1.6.10-3etch1 HP Linux Printing and Imaging System (HPLIP)
ii hplip-data 1.6.10-3etch1 HP Linux Printing and Imaging - data files

Question #20557 seems to be about a failing network card, which doesn't seem to be the case here (as I can
connect to the printers website, and update the firmware ( Version: L.25.57 ) without a problem.

Any ideas ?.

Thanks,

Richard.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Richard Palmer
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Is it possible to try with the latest hplip? 1.6.10 is very old...

Thanks.

Aaron

Revision history for this message
Richard Palmer (richard-d-palmer) said :
#2

Hello Aaron,

  I've upgraded hplip (1.6.10 is the stable version in Debian Etch) to 2.8.4 and I now get this:

hplip@filestore:/var/cache/debconf$ hp-makeuri -g [IP]

HP Linux Imaging and Printing System (ver. 2.8.4)
Device URI Creation Utility ver. 4.4

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

hp-makeuri[12139]: debug: Trying IP address [IP]
hp-makeuri[12139]: debug: Not found.
error: Device not found

Could it be anything to do with the SNMP value for 1.3.6.1.4.1.11.2.3.9.1.1.7.0, as it seems to be missing the "MF" at the start of "MFG" ?.

regards,

Richard

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Richard,

Please run the snmpwalk again. On the other line I just see:

"..STRING: "G:Hewlett-Packard;.."

I want to compare the output...

A

Revision history for this message
Richard Palmer (richard-d-palmer) said :
#4

[richardp@salako testing]$ snmpget -Os -c public -v 1 [IP] 1.3.6.1.4.1.11.2.3.9.1.1.7.0
enterprises.11.2.3.9.1.1.7.0 = STRING: "G:Hewlett-Packard;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;
                                                                      MDL:HP LaserJet 2200;CLS:PRINTER;DES:
                                                                      Hewlett-Packard LaserJet 2200;MEM:16MB;OPTRAY:500Sheets"

(I've added some line breaks and spacing).

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#5

Richard,

It looks like there is some problem with the snmp because it's not returning the correct data.

You could try making the device uri by hand it would be something like:

hp:/net/LaserJet_2200_series?ip=192.168.1.100

Where the 192.168.1.100 is your IP address.

and then configure cups manually to use the printer;

http://localhost:631

Add network printer and use the device uri above. However this may not resolve the problem because when printing hplip does another check and if snmp isn't passing the correct data it may still fail. You may need to use the cups backend if this is the case.

Or you could try uninstalling and reinstalling snmp, etc.

Hope this helps.

Aaron

Revision history for this message
Richard Palmer (richard-d-palmer) said :
#6

Hello Aaron,

  Yes, Adding by hand it still sends the SNMP request at print time and it still fails to print.

  I don't think this is a problem with the snmp library, as the same machine is running a HP 4650 and 1100 through hplip without any problems. A few other people on the web have reported the same thing, see: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/25629 (unresolved), http://osdir.com/ml/printing.hplip.user/2006-05/msg00187.html (in which you feature).

It does look like a problem with the printer sending the wrong information, is there any way hplip could be relaxed to accept this?. Presumably it is looking to match "MFG" at the start of the string, could that be altered?.

regards,

Richard.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#7

The only other workaround might be to use the cups backend.

Sorry we don't have any alternatives. Although I'd be curious if you can print to the printer using a different system.

A

Revision history for this message
Richard Palmer (richard-d-palmer) said :
#8

Hello Aaron,

    I've switched to using the Internet Printing Protocol and a CUPS/Gutenprint PPD; all seems well so far.

    I'll click the "Problem Solved" button, although it's really more a case of problem deferred!.

Thanks for your efforts anyway,

Richard.