HPCUPS-3.12.6 : Unable to communicate with device (code=12) : Photosmart_420_series

Bug #1024900 reported by Philippe Gaunet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

Manual install on linuxmint12 i686: HPLIP-3.12.6

bautista@laura ~/Téléchargements/HP-Photosmart420-linuxmint12/HPLIP-3.12.6/hplip-3.12.6 $ ./configure --with-hpppddir=/usr/share/ppd/HP --prefix=/usr --enable-udev-acl-rules --enable-qt4 --disable-libusb01_build --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-udev_sysfs_rules --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build

Then , make , sudo make install
Then reboot.
When login, Photosmart_420 was plugged .
Test print don't succeed .

  error: Unable to communicate with device (code=12): hp:/usb/Photosmart_420_series?serial=CN56J171CD048M

See attached og file hp-check-3.12.6.log.

Thanks in advance.

#############################################################################
bautista@laura ~ $ hp-check -t

HP Linux Imaging and Printing System (ver. 3.12.6)
Dependency/Version Check Utility ver. 15

Copyright (c) 2001-14 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz
or .run) to determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc)
or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases
(both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

Saving output in log file: /home/bautista/hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

 Kernel: 3.0.0-22-generic #36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012 GNU/Linux
 Host: laura
 Proc: 3.0.0-22-generic #36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012 GNU/Linux
 Distribution: linuxmint 12

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.12.6
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for linuxmint distro 12 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.12.6

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.12.6
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.12.6
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: Aucun fichier ou dossier de ce type

Current contents of '~/.hplip/hplip.conf' file:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1339241198
pending_upgrade_time = 0

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/Photosmart_420_series?serial=CN56J171CD048M"
printer_name =
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = true
type = 2

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

[installation]
date_time = 15/07/2012 11:24:51
version = 3.12.6

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs Ghostscript REQUIRED 7.05 9.04 OK -
 network Network-wget OPTIONAL - 1.12 OK -
 dbus DBus REQUIRED - 1.4.14 OK -
 scanimage Shell-Scanning OPTIONAL 1.0 1.0.22 OK -
 policykit Admin-Policy-framework OPTIONAL - 0.102 OK -
 xsane SANE-GUI OPTIONAL 0.9 0.998 OK -
 cups CUPS REQUIRED 1.1 1.5.0 OK 'CUPS Scheduler is running'

-------------------------
| General Dependencies |
-------------------------

 reportlab Python-PDF-Lib OPTIONAL 2.0 2.5 OK -
 libcrypto OpenSSL-Crypto-Lib REQUIRED - 1.0.0 OK -
 pil Python-Image-Lib OPTIONAL - 1.1.7 OK -
 pyqt4-dbus PyQt4-DBUS REQUIRED 4.0 4.8.5 OK -
 libjpeg JPEG-Lib REQUIRED - - OK -
 libpthread POSIX-Threads-Lib REQUIRED - 2.13 OK -
 python-dbus Python-DBUS REQUIRED 0.80.0 0.84.0 OK -
 python-devel Python-SDK REQUIRED 2.2 2.7.2 OK -
 pyqt4 Python-Qt4 REQUIRED 4.0 4.8.5 OK -
 cups-devel CUPS-SDK REQUIRED - 1.5.0 OK -
 sane-devel SANE-SDK REQUIRED - 1.0.22 OK -
 libusb USB-Lib REQUIRED - 1.0 OK -
 sane Scan-Lib REQUIRED - 1.0.22 OK -
 cups-image CUPS-Image-Lib REQUIRED - 1.5.0 OK -
 libnetsnmp-devel SNMP-Networking-SDK REQUIRED 5.0.9 5.4.3 OK -
 python-xml Python-XML-Lib REQUIRED - 2.0.1 OK -
 python-notify Desktop-notifications OPTIONAL - - OK -

------------------------------
| Compile Time Dependencies |
------------------------------

 gcc gcc-Compiler REQUIRED - 4.6.1 OK -
 libtool Build-tools REQUIRED - 2.4 OK -
 make GNU-Build-tools REQUIRED 3.0 3.81 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.12.6 OK -
 pcardext PhotoCard-Extension REQUIRED - 3.12.6 OK -
 hpmudext IO-Extension REQUIRED - 3.12.6 OK -

-----------------------
| Scan Configuration |
-----------------------

 hpaio HPLIP-SANE-Backend REQUIRED - 3.12.6 OK 'hpaio found in /etc/sane.d/dll.conf'
 scanext Scan-SANE-Extension REQUIRED - 3.12.6 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  -------------------------------------------- ------------------------
  hp:/usb/Photosmart_420_series?serial=CN56J17 HP Photosmart 420 series
  1CD048M

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

Photosmart_420
--------------
Type: Printer
Device URI: hp:/usb/Photosmart_420_series?serial=CN56J171CD048M
PPD: /etc/cups/ppd/Photosmart_420.ppd
PPD Description: HP Photosmart 420 Series, hpcups 3.12.6
Printer /usr/lib/cups/backend/hp failedis idle. enabled since dim. 15 juil. 2012 11:15:05 CEST
error: Unable to communicate with device (code=12): hp:/usb/Photosmart_420_series?serial=CN56J171CD048M
error: Device not found
error: Communication status: Failed

--------------
| PERMISSION |
--------------

groups user-groups Required - - OK bautista adm lp dialout cdrom plugdev avahi-autoipd lpadmin admin sambashare

USB Photosmart_420 Required - - OK Node:'/dev/bus/usb/007/002' Perm:' root lp rw- rw- rw- rw- r--'

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
None

Missing Optional Dependencies
-----------------------------
None

Total Errors: 1
Total Warnings: 0

Done.

Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :
Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Please provide some log files to analyze this issue.

 Can you delete the print queue for this printer in "system-config-printer" and re-configure the printer using command
 "hp-setup -g" in terminal window and post its terminal output here.

After it got configure run command "hp-toolbox -g" and check the status of the printer in the status tab and post its output here.

Next open another tab in the terminal window and run command"hp-testpage -g" and post its out put here.

Thanks & Regards,
Goutam Kodu

Changed in hplip:
status: New → In Progress
Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :

Hi,

Thanks for so quick reply.

I will do this on next saturday because the computer is in father's house of my wife ( not in my neighborhood ).

Have a good week.

Bests Regards,
 fedoramipfr

Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :
Download full text (126.2 KiB)

Hi Goutam,

See logs below.

Thanks & Regards.
      .Philippe.

root HP-Photosmart420-linuxmint12 # hp-setup -g

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 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-setup[3423]: debug: param=
hp-setup[3423]: debug: selected_device_name=None
hp-setup[3423]: debug: Sys.argv=['/usr/bin/hp-setup', '-g'] printer_name=None param= jd_port=1 device_uri=None remove=False
hp-setup[3423]: debug: Starting GUI loop...
Searching... (bus=usb, search=(None), desc=0)
hp-setup[3423]: debug: Probing bus: usb
hp-setup[3423]: debug: hp:/usb/Photosmart_420_series?serial=CN56J171CD048M
hp-setup[3423]: debug: hp:/usb/Photosmart_420_series?serial=CN56J171CD048M: back_end:hp is_hp:True bus:usb model:Photosmart_420_series serial:CN56J171CD048M dev_file: host: zc: port:1
hp-setup[3423]: debug: Cache miss: photosmart_420_series
hp-setup[3423]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[3423]: debug: Searching for section [photosmart_420_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[3423]: debug: Found section [photosmart_420_series] in file /usr/share/hplip/data/models/models.dat
hp-setup[3423]: debug: hp:/usb/Photosmart_420_series?serial=CN56J171CD048M: back_end:hp is_hp:True bus:usb model:Photosmart_420_series serial:CN56J171CD048M dev_file: host: zc: port:1
hp-setup[3423]: debug: hp:/usb/Photosmart_420_series?serial=CN56J171CD048M: back_end:hp is_hp:True bus:usb model:Photosmart_420_series serial:CN56J171CD048M dev_file: host: zc: port:1
hp-setup[3423]: debug: hp:/usb/Photosmart_420_series?serial=CN56J171CD048M: back_end:hp is_hp:True bus:usb model:Photosmart_420_series serial:CN56J171CD048M dev_file: host: zc: port:1
hp-setup[3423]: debug: ['unknown', 'mepis', 'debian', 'suse', 'mandriva', 'fedora', 'redhat', 'rhel', 'slackware', 'gentoo', 'redflag', 'ubuntu', 'xandros', 'freebsd', 'linspire', 'ark', 'pclinuxos', 'centos', 'igos', 'linuxmint', 'linpus', 'gos', 'boss', 'lfs']
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:libcrypto]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:gs]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:python23]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:libnetsnmp-devel]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:sane-devel]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:pil]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:cups]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:gcc]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:network]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:pyqt4-dbus]
hp-setup[3423]: debug: Missing dependency section in distros.dat: [unknown:0:libpthread]
hp-setup[3423]: debug: Missing dependency secti...

Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :

Logs file "HPLIP_3.12.6_logs_files_on_linuxmint12_i686-for-Goutam-2012-07-21.txt"

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi,

Thank you for the logs. The channel to get the status of the printer is not opening for this printer. Due to which the driver is returning unable to communicate to the printer. Sometimes this could be because the printer is not returning any status due to a corrupt firmware installed in printer (or) sometimes this could be because of the "hp-systray" process trying to update the status of the printer.

Can you try couple of things to debug this issue and help us.

1. Kill the "hp-systray" process.
2. Delete the existing print queue for this printer in "system-config-printer"
3. Restart you PC and restart your printer.
4.Connect your printer to different USB port.
5. Capture output of "lsusb -d 03f0:1502 -v and post it here.
6. Re-configure the printer with "hp-setup" command and run command "hp-toolbox" and check what is the status of the printer in "status" tab and check if the print queue is enabled in "Printer Control" tab.

Thanks,
Goutam

Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :
Download full text (127.8 KiB)

Hi,

First, the printer works perfectly on both MacOSX 10.6 and Windows vista .

Thanks &Regards,
    . Philippe .

1. Done
2. Done
3. Done
4. Done

5.. "lsusb -d 03f0:1502 -v"

bautista@laura ~/HP-Photosmart420-linuxmint12/HPLIP-3.12.6 $ sudo lsusb -d 03f0:1502 -v

Bus 003 Device 002: ID 03f0:1502 Hewlett-Packard PhotoSmart 420 series
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x1502 PhotoSmart 420 series
  bcdDevice 1.00
  iManufacturer 1 HP
  iProduct 2 Photosmart 420 series
  iSerial 3 CN56J171CD048M
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 129
    bNumInterfaces 3
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 2mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 6 Imaging
      bInterfaceSubClass 1 Still Image Capture
      bInterfaceProtocol 1 Picture Transfer Protocol (PIMA 15470)
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 10
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 3
      bInterfaceClass 7 Printer
      bInterfaceSubClass 1 Printer
      bInterfaceProtocol 2 Bidirectional
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x03 EP 3 OUT
        bmAttributes 2
          Transfer Type ...

Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :
Revision history for this message
goutam kodu (goutam-hplip) wrote :

HI Philippe,

Thank you for the logs.

On analysis i could found that recently we had the integration of Libusb1.0 version in our source and as this device is old and it uses a diffenent set of usb communication protocol we are seeing this issue in hplip 3.12.6.

My suggestion to solve this problem is to uninstall the hplip-3.12.6 and install hplip-3.12.4 (downgrading).

To uninstall hplip-3.12.6:
   cd hplip-3.12.6
  sudo make uninstall

To install hplip-3.12.4:

1.Download the hplip-3.12.4.run file from http://sourceforge.net/projects/hplip/files/hplip/3.12.4/hplip-3.12.4.run/download
2. Install it by running command "sh hplip-3.12.4.run"

Please let us know if the device is working fine with hplip-3.12.4 version.

Regards,
Goutam

Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :
Download full text (13.9 KiB)

Hi Goutam,

I tried to install hplip-3.12.4 by running command "sh hplip-3.12.4.run" but it don't work.

So I install it manually

See the logs below

Bests Regards,
   . Philippe .

#################################################################

1/.
#bautista@laura ~/HP-Photosmart420-linuxmint12/HPLIP-3.12.4 $ md5sum hplip-3.12.4.run
a3a5415a44e2f13dd02b94545858bcbd hplip-3.12.4.run

2/.
#bautista@laura ~/HP-Photosmart420-linuxmint12/HPLIP-3.12.4 $ sh hplip-3.12.4.run
Verifying archive integrity... All good.
Uncompressing HPLIP 3.12.4 Self Extracting Archive.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Revision history for this message
Philippe Gaunet (fedoramipfr) wrote :
Revision history for this message
Walter Ribeiro (wribeirojr) wrote :

I have the same message: "Unable to communicate with device" with printer HP Laserjet m1536dnf MFP.
Installing printer using Ubuntu configuration interface, it works, but without scan.

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi Walter
Can you give us more details on this.
Can you provide "hp-check" command output and did you configure the device using "hp-setup" command ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.