no scan with HP Leserjet Pro m28a MFP / HPLIP - print is OK
printing is ok with m28a (both usb and network).
hello
scanimage - L returns :
device `hpaio:
but scanning (scanimage / hpscan) returns :
failed: Error during device I/O
- tried different versions of hplip (installed from apt / from hp .run)
- tried with / without hp-plugin
- tried sudo
- tried on 2 different PC ( ubuntu 20.04 up to date, xubuntu 17) => same result
- tried vuescan software which did not find the scan
thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- bertrand
- Solved:
- 2020-08-02
- Last query:
- 2020-08-02
- Last reply:
- 2020-08-01
shivani mandora (shivani1708) said : | #1 |
Hi ,
Have you installed plugin to scan?
And on which distro ?
bertrand (b-j-free) said : | #2 |
hi,
I tried with AND without hplip-plugin (3.20.6), same result : print is OK, scan is not OK : failed: Error during device I/O
I tried on ubuntu 20.04 fress install ant xubuntu 17 (quite old system but apt upgrade ok)
the most disturbing is, in addition with the fact that print is ok, te result of hp-scan :
--
-----------------
| SELECT DEVICE |
-----------------
Num Scan device URI
-------- -------
0* hpaio:/
1 net:localhost:
2 escl:http://
3 net:192.
Enter number 0...3 for device (q=quit, <enter>=default: 0*) ?0
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/
Opening connection to device...
error: SANE: Error during device I/O (code=9)
----
thanks!
brian_p (claremont102) said : | #3 |
Hello Bertrand,
Please confirm that you are using Ubuntu 20.04 and provide information
from
systemctl list-units "ippusbxd*" | grep service
avahi-browse -rt _ipp._tcp
avahi-browse -rt _uscan._tcp
lpstat -l -e
What happens when you execute
simple-scan escl:http://
Cheers,
Brian.
bertrand (b-j-free) said : | #4 |
hi
thanks for your message
host is called "bj-boite", static IP : 192.10.1.100
printer is called "laser". It prints like a charm but doesn't scan.
# systemctl list-units "ippusbxd*" | grep service :
-
ippusbxd@
-
# avahi-browse -rt _ipp._tcp
-
+ wlp2s0 IPv4 laser @ bj-boite Internet Printer local
+ enp8s0 IPv6 laser @ bj-boite Internet Printer local
+ enp8s0 IPv4 laser @ bj-boite Internet Printer local
+ wlp2s0 IPv6 laser @ bj-boite Internet Printer local
= enp8s0 IPv6 laser @ bj-boite Internet Printer local
hostname = [bj-boite.local]
address = [fe80::
port = [631]
txt = ["printer-
= wlp2s0 IPv4 laser @ bj-boite Internet Printer local
hostname = [bj-boite.local]
address = [192.168.1.10]
port = [631]
txt = ["printer-
= enp8s0 IPv4 laser @ bj-boite Internet Printer local
hostname = [bj-boite.local]
address = [192.10.1.100]
port = [631]
txt = ["printer-
+ lo IPv4 HP LaserJet MFP M28-M31 Internet Printer local
+ lo IPv4 laser @ bj-boite Internet Printer local
= wlp2s0 IPv6 laser @ bj-boite Internet Printer local
hostname = [bj-boite.local]
address = [fe80::
port = [631]
txt = ["printer-
= lo IPv4 HP LaserJet MFP M28-M31 Internet Printer local
hostname = [bj-boite.local]
address = [127.0.0.1]
port = [60000]
txt = ["rfo=ipp/faxout" "Fax=T" "note=" "adminurl=" "qtotal=1" "txtvers=1" "priority=60" "usb_MDL=HP LaserJet MFP M28-M31" "usb_MFG=HP" "rp=ipp/print"]
= lo IPv4 laser @ bj-boite Internet Printer local
hostname = [bj-boite.local]
address = [127.0.0.1]
port = [631]
txt = ["printer-
-
# avahi-browse -rt _uscan._tcp
-
+ lo IPv4 HP LaserJet MFP M28-M31 _uscan._tcp local
= lo IPv4 HP LaserJet MFP M28-M31 _uscan._tcp local
hostname = [bj-boite.local]
address = [127.0.0.1]
port = [60000]
txt = ["txtvers=1" "vers=2.63" "rs=eSCL" "ty=HP LaserJet MFP M28a" "pdl=image/
-
# lpstat -l -e
-
HP_LaserJet_
laser permanent ipp://localhost
laser_bj_boite network none ipps://
-
# simple-scan escl:http://
=> simple-scan launches, tries to connect... and fails "impossible to connect scanning device" (translated from french)
Thanks
bertrand (b-j-free) said : | #5 |
I forgot to mention this warning on terminal when executing simple-scan escl:http://
(simple-
cheers
brian_p (claremont102) said : | #6 |
> ippusbxd@
That's ok. Ubuntu 20.04 installs ippusbxd and runs it when the device is plugged in.
Please see the IPP-over-USB sections at
https:/
(ipp-usb does the same job as ippusbxd).
> # simple-scan escl:http://
> => simple-scan launches, tries to connect... and fails "impossible to connect
> scanning device" >(translated from french)
Getting an output from 'avahi-browse -rt _uscan._tcp' indicates that the device
supports the eSCL protocol. The SANE escl backend (driver) should be able to do
scanning. It hasn't. This is likely a bug in the SANE backend. You have been unlucky.
Download and install sane-airscan from
https:/
The direct link to the file is
https:/
I would be interested in what you get for
scanimage -L
bertrand (b-j-free) said : | #7 |
hello,
the HP m28a is not air / wifi device, it's only usb.
installed sane-airscan =>
# scanimage -L
device `net:192.
device `net:localhost:
device `airscan:e0:HP LaserJet MFP M28-M31' is a eSCL HP LaserJet MFP M28-M31 eSCL network scanner
device `hpaio:
tried to scan with hp-scan from this new airscan device :
$ hp-scan
[...]
-----------------
| SELECT DEVICE |
-----------------
Num Scan device URI
-------- -------
0* net:localhost:
1 hpaio:/
2 airscan:e0:HP LaserJet MFP M28-M31
3 net:192.
Enter number 0...3 for device (q=quit, <enter>=default: 0*) ?2
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:e0:HP LaserJet MFP M28-M31
Opening connection to device...
error: SANE: Error during device I/O (code=9)
(I've also installed last version of sane packages from ppa:rolfbensch/
thanks
brian_p (claremont102) said : | #8 |
> the HP m28a is not air / wifi device, it's only usb.
Yes, I understand that and am perplexed that sane-airscan is not
working when you have ippusbxd running. ippusbxd basically turns
the m28a into a network scanner and sane-airscan now work with it.
This is the first time I have known sane-airscan to fail. Note that it
recognises and identifies the scanner. I have no more software to
recommend. Thanks for trying it.
If you removed ippusbxd from the system (it is easily put back) then
surely the hpaio device (with a plugin) should work? I do not know
what will happen with printing should you remove ippusbxd.
It turns out that I have met the m28a before:
https:/
It was troublesome then!
Cheers,
Brian.
brian_p (claremont102) said : | #9 |
Please could we have:
lpstat -t
and
lpinfo -v ?
--
Brian.
bertrand (b-j-free) said : | #10 |
$ lpstat -t
scheduler is running
no system default destination
matériel pour laser : hp:/usb/
laser accepte des requêtes depuis ven. 31 juil. 2020 17:27:48
printer laser is idle. enabled since ven. 31 juil. 2020 17:27:48
File "/usr/lib/
$ lpinfo -v
network socket
network http
network beh
file cups-brf:/
network ipp
network https
network lpd
network ipps
direct hp
network smb
thanks
bertrand (b-j-free) said : | #11 |
progress !
I did
- unplugg and replugg the MFP printer
- run "service cups restart" (airscan-discover did not detect the printer before that)
$ hp-scan
----------------
| SELECT DEVICE |
-----------------
Num Scan device URI
-------- -------
0 net:localhost:
1* hpaio:/
2 airscan:e0:HP LaserJet MFP M28-M31
3 escl:http://
4 net:192.
Enter number 0...4 for device (q=quit, <enter>=default: 1*) ?2
warning: No destinations specified. Adding 'file' destination by default.
Using device airscan:e0:HP LaserJet MFP M28-M31
Opening connection to device...
Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
Top left (x,y): (0.000000mm, 0.000000mm)
Bottom right (x,y): (215.899994mm, 0.000015mm)
Width: 215.899994mm
Height: 0.000015mm
Destination(s): file
Output file:
error: Unable to set option mode to value gray
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/home/
Warming up...
Scanning...
error: SANE: Invalid argument (code=4)
Closing device.
=> I guess I now have to set up airscan !
thanks a lot
brian_p (claremont102) said : | #12 |
> progress !
Good, but still not scanning? I would test using
scanimage -d "airscan:e0:HP LaserJet MFP M28-M31" > image.pnm
If it were me, I would purge ippusbxd and download and install ipp-usb from
the same place you got sane-airscan.
> => I guess I now have to set up airscan !
sane-airscan doesn't need any setting up - it should just work.
My tentative view is that this M28a device is not up to the job of scanning
with a modern protocol. If you have more progress or further thoughts, please
let us know.
Good luck,
Brian.
brian_p (claremont102) said : | #13 |
shivani mandora writes:
> Have you installed plugin to scan?
Is this the plugin that
https:/
says is not needed for the HP LaserJet Pro MFP M28a?
Or is it the one that models.dat says is unnecessary?
plugin=0
plugin-reason=0
You have known about this for 1.5 years. Isn't it about time to do something about it
instead of drifting along?
Also, do you have a M28a to use? Does scanning work? That's a nice simple question
to answer.
--
Brian.
bertrand (b-j-free) said : | #14 |
Hi !
I can use the scanner from now.
hplip 3.20.6 installed from hp .run
no plugin (models.dat => plugin=0 ; plugin-reason=0)
the scan won't be detected unless I unplugg/plugg it after rebooting.
airscan sane is the only way to use this MFP hp m28a, as mentionned in the post proposed by Brian (https:/
Thanks to all
Thank you so much Brian !
cheers