HP Smart_Tank_500_series Unable to communicate with device

Asked by Jose Carmona

Hello,
I am able to print, but I cannot scan. I am receiving the message:

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

or

Unable to open device 'hpaio:/usb/Smart_Tank_500_series?serial=..... : Error I/O of the device.

or

Smart_Tank_500_series .... Device communication error (5012)

In order to be able to print I have changed printer URI configuration to:
usb://HP/Smart%20Tank%20500%20series?serial=XXXXXXXXX&interface=1
previous value was:
hp:/usb/Smart_Tank_500_series?serial=XXXXXXX

I also tried:
sudo apt purge ippusbxd

that I found in another post, but it didn't work for me.

I am using xubuntu 20.04 64bits.
My printer is: HP Smart Tank 500 (usb only)
hplip 3.21.8
libusb01-build=no <----I don't know if this has something that is affecting the connection.

please help.
Thank you.

Question information

Language:
English Edit question
Status:
Expired
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
brian_p (claremont102) said :
#1

Purging ippusbxd was a good move; its behaviour is unreliable.
Now follow up by installing the much better ipp-usb and sane air-scan.

 https://github.com/alexpevzner/sane-airscan (Main page).
 https://download.opensuse.org/repositories/home:/pzz/xUbuntu_20.04/amd64/ (Packages)

When you have installed the packages connect the Smart Tank 500
to USB. Please execute these two commands and post the outputs here.

  scanimage -L

  airscan-discover

Revision history for this message
Jose Carmona (jjlinux30) said :
#2

Hello @brian_p,

Please find the output from both commands:

scanimage -L
device `hpaio:/usb/Smart_Tank_500_series?serial=XXXXXXXX' is a Hewlett-Packard Smart_Tank_500_series all-in-one

airscan-discover
[devices]

I have tried by adding/editing sane bakends at /etc/sane.d/ . But no effect at all.
example (file hp500.conf):
#-------------------------------------------------------------------
#File created to configure the Smart Tank 500 series scanner.

usb 0x03f0 0x2b54
#-------------------------------------------------------------------

I got the vendor and product values from 'lsusb' command:
  Bus 002 Device 008: ID 03f0:2b54 HP, Inc Smart Tank 500 series

I also checked the syslog:
  Oct 22 00:24:50 linux-desktop xsane: io/hpmud/musb.c 427: Found interface conf=0, iface=1, altset=0, index=1
  Oct 22 00:24:50 linux-desktop xsane: io/hpmud/musb.c 389: Active kernel driver on interface=1 ret=0
  Oct 22 00:24:50 linux-desktop xsane: io/hpmud/musb.c 535: claimed 7/1/2 interface
  Oct 22 00:24:50 linux-desktop xsane: io/hpmud/musb.c 769: invalid deviceid ret=-9: Recurso no disponible temporalmente (resource not available temporally)
  Oct 22 00:24:50 linux-desktop xsane: io/hpmud/musb.c 561: released 7/1/2 interface

Revision history for this message
brian_p (claremont102) said :
#3

Jose,

It looks like you have not installed ipp-usb and sane-airscan.
Have you?

Revision history for this message
Jose Carmona (jjlinux30) said (last edit ):
#4

Hello, sorry I didn't mention that.
Yes I have installed both:

ipp-usb ya está en su versión más reciente (0.9.19-1+50.1). (is already installed to its most recent version)

sane-airscan ya está en su versión más reciente (0.99.27-1+87.1). (is already installed to its most recent version)

Bellow output from airscan:

jose@linux-desktop:~$ airscan-discover
[devices]
jose@linux-desktop:~$

I was looking for the meaning of "hpaio" because when installing using the hplip, printer is added as "hp:/usb/..." but scanner is being recognized as "hpaio:/usb/..."
But I have no clue why or what does that mean.

Revision history for this message
brian_p (claremont102) said :
#5

Can you scan with

  simple-scan "hpaio:/usb/Smart_Tank_500_series?serial=XXXXXXXX"
or
  xsane "hpaio:/usb/Smart_Tank_500_series?serial=XXXXXXXX"

Revision history for this message
Jose Carmona (jjlinux30) said :
#6

Hello here are the outputs.

jose@linux-desktop:~$ simple-scan "hpaio:/usb/Smart_Tank_500_series?serial=XXXXXXX"

(simple-scan:4220): Gtk-WARNING **: 21:01:41.809: Calling org.xfce.Session.Manager.Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “Inhibit”

(simple-scan:4220): Gtk-WARNING **: 21:01:41.809: Calling org.xfce.Session.Manager.IsInhibited failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “IsInhibited”

>>With the GUI interface following message is displayed:
Fail to scan
Cannot connect to scanner.

>>Please note that I am replacing serial number with XXXXXXX just for posting. When I run the commands I put the hardware/correct value. =)

jose@linux-desktop:~$ xsane "hpaio:/usb/Smart_Tank_500_series?serial=XXXXXXXX"
>>This command only shows GUI message:
Failed to open device "hpaio:/usb/Smart_Tank_500_series?serial=XXXXXXXX":
Error I/O of the device.

------------------------------
I also tried all possible combinations that comes to my mind:
jose@linux-desktop:~$ xsane "hp:/usb/Smart_Tank_500_series?serial=XXXXXXXX"
jose@linux-desktop:~$ simple-scan "hp:/usb/Smart_Tank_500_series?serial=XXXXXXXX"
jose@linux-desktop:~$ simple-scan "usb://HP/Smart%20Tank%20500%20series?serial=XXXXXXXX&interface=1"
jose@linux-desktop:~$ simple-scan "usb://HP/Smart Tank 500 series?serial=XXXXXXXX&interface=1"
jose@linux-desktop:~$ xsane "usb://HP/Smart%20Tank%20500%20series?serial=XXXXXXXX&interface=1"
jose@linux-desktop:~$ xsane "usb://HP/Smart Tank 500 series?serial=XXXXXXXX&interface=1"

>>Non of them worked.

Revision history for this message
Jose Carmona (jjlinux30) said :
#7

Hello I have being doing some research and found the following:

With HPLIP 0.9.9, all USB I/O takes place with libusb. Libusb allows USB drivers to be written in User Mode instead of Kernel Mode. Kernel modules "printer" and "usblp" are no longer required. Libusb allows unique low-level control that was not available in the kernel modules. Without libusb, full I/O support is not available for many HP devices.

[https://developers.hp.com/hp-linux-imaging-and-printing/tech_docs/overview]

configure files makes the validation:
checking for libusb_init in -lusb-1.0... yes
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes

So I assume libusb is available in my system.
The think is that I don't see why libusb is being disabled from HPLIP:

jose@linux-desktop:~/Descargas/hplip-3.21.8$ hp-check
........
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
........

Any suggestion? How can I change such settings?

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.