On Sat, Jun 26, 2021 at 05:32:51PM +0100, Brian Potkin wrote: > On Sat 26 Jun 2021 at 11:06:36 -0400, Federico Grau wrote: > > On Fri, Jun 25, 2021 at 11:39:24PM +0100, Brian Potkin wrote: > > > On Fri 25 Jun 2021 at 17:47:55 -0400, Federico Grau wrote: > > > > > > > > > > > Hello Debian Printing Team, > > > > > > > > Please Cc: me on responses, as I'm not currently subscribed to this mailing > > > > list. Advise if that's required. Via IRC I am regularly present on OFTC > > > > #debian-printing (UTC-4). > > > > > > > > > > > > I'm trying to get an "HP ScanJet Pro 3500 f1 Flatbed Scanner" working with > > > > Debian ... > [...] > > > Bus 003 Device 003: ID 03f0:5305 HP, Inc HP ScanJet Pro 3500 f1 > [...] > > bInterfaceClass 7 Printer > > bInterfaceSubClass 1 Printer > > bInterfaceProtocol 4 > [...] > This appears twice and is a strong indication that the scanner is an > IPP-over-USB (7/1/4) device and should be detected as such by ipp-usb. > See > > https://wiki.debian.org/CUPSDriverlessPrinting > > ipp-usb is a recommended package and should be there on the system. > Check that the service is active when the scanner is plugged into USB: > > systemctl status ipp-usb > > With sane-airscan installed please give > > scanimage -L > > and > > airscan-discover > In brief, success with basic scanning after installing and selecting sane-airscan. Thank you Brian (and pabs that was trying to suggest this to me in IRC)! The ipp-usb package was installed, but not sane-airscan (in this test Debian build). For completeness, below is the output of the requested commands after installing sane-airscan and rebooting (just in case to remove as many variables). It's unclear to me the relationship between SANE and CUPS in the context with a dedicated scanner (makes sense with a MFD). Is configuring a CUPS "print-queue" required? Not sure if there's a brief explanation, or pointer where can one learn more about this? Clearly there is more testing to try, and I'll read over wiki.d.o CUPSDriverlessPrinting. Also, is there any quick info on the link between sane_open() and sane_hpaio_open()? Expect it's a registered callback function, but where? The SANE API docs seem more "front end" focused (e.g. https://sane-project.gitlab.io/standard/api.html#sane-open). I'll continue testing functionality further, and hope to share more findings in the next week or so. This scanner is replacing a legacy HP Scanjet N6310, which required a windows system. I'm so glad to shed that dependency with this new unit. Many thanks again! donfede # console output of test commands after installing sane-airscan, rebooting, # and connecting scanner donfede@bwing:~$ systemctl status ipp-usb ● ipp-usb.service - Daemon for IPP over USB printer support Loaded: loaded (/lib/systemd/system/ipp-usb.service; static) Active: active (running) since Sat 2021-06-26 13:24:57 EDT; 20s ago Docs: man:ipp-usb(8) Main PID: 1522 (ipp-usb) Tasks: 10 (limit: 4571) Memory: 12.5M CPU: 84ms CGroup: /system.slice/ipp-usb.service └─1522 /sbin/ipp-usb udev Jun 26 13:24:57 bwing systemd[1]: Started Daemon for IPP over USB printer support. donfede@bwing:~$ donfede@bwing:~$ scanimage -L device `hpaio:/usb/HP_ScanJet_Pro_3500_f1?serial=xxxx1234xxxx' is a Hewlett-Packard HP_ScanJet_Pro_3500_f1 all-in-one device `hpaio:/net/hp_scanjet_pro_3500_f1?ip=127.0.0.1&queue=false' is a Hewlett-Packard hp_scanjet_pro_3500_f1 all-in-one device `airscan:e0:HP ScanJet Pro 3500 f1 (USB)' is a eSCL HP ScanJet Pro 3500 f1 (USB) ip=127.0.0.1 donfede@bwing:~$ donfede@bwing:~$ airscan-discover [devices] HP ScanJet Pro 3500 f1 (USB) = http://127.0.0.1:60000/eSCL/, eSCL donfede@bwing:~$ echo $? 0 donfede@bwing:~$ donfede@bwing:~$ time hp-scan -g -d 'hpaio:/usb/HP_ScanJet_Pro_3500_f1?serial=xxxx1234xxxx' -s file -o test01.png ... Using device hpaio:/usb/HP_ScanJet_Pro_3500_f1?serial=xxxx1234xxxx Opening connection to device... DEBUG 21: before sane.openDevice error: SANE: Error during device I/O (code=9) real 0m4.101s user 0m0.707s sys 0m0.826s donfede@bwing:~$ root@bwing:~# ss -aptunx | grep 6000 tcp LISTEN 0 4096 *:60000 *:* users:(("ipp-usb",pid=1522,fd=14)) root@bwing:~# # success scan, selecting airscan device donfede@bwing:~$ time hp-scan -g -s file -o test01.png HP Linux Imaging and Printing System (ver. 3.21.2) Scan Utility ver. 2.2 Copyright (c) 2001-18 HP 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. DEBUG 10: {'hpaio:/usb/HP_ScanJet_Pro_3500_f1?serial=xxxx1234xxxx': ['HP_ScanJet_Pro_3500_f1'], 'hpaio:/net/hp_scanjet_pro_3500_f1?ip=127.0.0.1&queue=false': ['hp_scanjet_pro_3500_f1'], 'airscan:e0:HP ScanJet Pro 3500 f1 (USB)': ['HP ScanJet Pro 3500 f1 (USB)']}: hp-scan[1633]: debug: getDeviceUri(None, None, ['hpaio'], {'scan-type': (<built-in function gt>, 0)}, , True) hp-scan[1633]: debug: Mode=0 ----------------- | SELECT DEVICE | ----------------- Num Scan device URI -------- ---------------------------------------------------------- 0* hpaio:/usb/HP_ScanJet_Pro_3500_f1?serial=xxxx1234xxxx 1 hpaio:/net/hp_scanjet_pro_3500_f1?ip=127.0.0.1&queue=false 2 airscan:e0:HP ScanJet Pro 3500 f1 (USB) Enter number 0...2 for device (q=quit, <enter>=default: 0*) ?2 Using device airscan:e0:HP ScanJet Pro 3500 f1 (USB) Opening connection to device... DEBUG 21: before sane.openDevice DEBUG 22: after sane.openDevice hp-scan[1633]: debug: Supported source Options: ['Flatbed', 'ADF', 'ADF Duplex'] size=3 hp-scan[1633]: debug: Device supported resolutions [75, 150, 200, 240, 300, 400, 500, 600, 1200] Resolution: 300dpi Mode: gray Compression: JPEG Scan area (mm): Top left (x,y): (0.000000mm, 0.000000mm) Bottom right (x,y): (215.899994mm, 297.179993mm) Width: 215.899994mm Height: 297.179993mm Destination(s): file Output file: /home/donfede/test01.png hp-scan[1633]: debug: Supported modes: ['color', 'gray'] size=2 Warming up... Scanning... hp-scan[1633]: debug: expected_bytes = 8950500 hp-scan[1633]: debug: Expecting to read 8.5 MB from scanner. hp-scan[1633]: debug: format=0 hp-scan[1633]: debug: format_name=gray hp-scan[1633]: debug: last_frame=1 hp-scan[1633]: debug: ppl=2550 hp-scan[1633]: debug: lines=3510 hp-scan[1633]: debug: depth=8 hp-scan[1633]: debug: bpl=2550 hp-scan[1633]: debug: byte_format=RGBA hp-scan[1633]: debug: pad_bytes=0 Reading data: [\ ] 0% hp-scan[1633]: debug: Gray Read 2550 bytes hp-scan[1633]: debug: Gray Read 5100 bytes hp-scan[1633]: debug: Gray Read 7650 bytes hp-scan[1633]: debug: Gray Read 10200 bytes ... hp-scan[1633]: debug: Gray Read 8947950 bytes hp-scan[1633]: debug: Gray Read 8950500 bytes hp-scan[1633]: debug: Scan thread exiting... Read 8.5 MB from scanner. hp-scan[1633]: debug: PPL=2550 lines=3510 depth=8 BPL=2550 pad=0 total_read=8950500 total_write=35802000 Closing device. Outputting to destination 'file': Done. real 0m26.772s user 0m5.195s sys 0m0.979s donfede@bwing:~$ echo $? 0 donfede@bwing:~$
Attachment:
signature.asc
Description: PGP signature