Discussion:
[OpenIndiana-discuss] help with debug sane/hpaio needed
Stephan Althaus
2018-11-01 09:41:26 UTC
Permalink
Hello!

I need help debugging what's exactly going wrong when trying a scan..

------------------------------------------------------------

Background

------------------------------------------------------------

The package printer/hplip provides the sane-backend "hpaio"
after creating the empty directory /tec/sane.d/dll.d/
i was able to detect the USB Multifunction device

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

When i start a scan, the device is succesfully queried:
***@oi:~$ hp-scan
HP Linux Imaging and Printing System (ver. 3.15.9)
Scan Utility ver. 2.2

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

warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/Deskjet_2050_J510_series?serial=CN1771H0JT05QV
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.900009mm, 297.010681mm)
  Width: 215.900009mm
  Height: 297.010681mm

------------------------------------------------------------

ERROR : DEVICE BUSY

------------------------------------------------------------

If i try a scan, i get the error "DEVICE BUSY"

Is there some tool to examine wha'ts going on on the usb port??

Any hints how to get to the root cause are welcome :-)

------------------------------------------------------------

LOG

------------------------------------------------------------

***@oi:~$ hp-scan -i -g


HP Linux Imaging and Printing System (ver. 3.15.9)
Scan Utility ver. 2.2

Copyright (c) 2001-15 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-scan[1969]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type':
(<built-in function gt>, 0)}, , True)
hp-scan[1969]: debug: Mode=0
hp-scan[1969]: debug: Cache miss: deskjet_2050_j510_series
hp-scan[1969]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[1969]: debug: Searching for section [deskjet_2050_j510_series]
in file /usr/share/hplip/data/models/models.dat
hp-scan[1969]: debug: Found section [deskjet_2050_j510_series] in file
/usr/share/hplip/data/models/models.dat
hp-scan[1969]: debug: Cache miss: hp_color_laserjet_2605dn
hp-scan[1969]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-scan[1969]: debug: Searching for section [hp_color_laserjet_2605dn]
in file /usr/share/hplip/data/models/models.dat
hp-scan[1969]: debug: Found section [hp_color_laserjet_2605dn] in file
/usr/share/hplip/data/models/models.dat
hp-scan[1969]: debug:
{'hpaio:/usb/Deskjet_2050_J510_series?serial=CN1771H0JT05QV':
['Deskjet_2050_J510']}
warning: No destinations specified. Adding 'file' destination by default.
Using device hpaio:/usb/Deskjet_2050_J510_series?serial=CN1771H0JT05QV
Opening connection to device...
hp-scan[1969]: debug: Supported source Options: ['Flatbed'] size=1
hp-scan[1969]: debug: Device supported resolutions [75, 100, 200, 300,
600, 1200]

Resolution: 300dpi
Mode: gray
Compression: JPEG
Scan area (mm):
  Top left (x,y): (0.000000mm, 0.000000mm)
  Bottom right (x,y): (215.900009mm, 297.010681mm)
  Width: 215.900009mm
  Height: 297.010681mm
Destination(s): file
Output file:
hp-scan[1969]: debug: Supported modes: ['lineart', 'gray', 'color'] size=3
warning: File destination enabled with no output file specified.
Setting output format to PNG for greyscale mode.
warning: Defaulting to '/etc/sane.d/hpscan001.png'.

Warming up...


Scanning...
error: SANE: Device busy (code=3)
Closing device.

Loading...