Ed Greshko ed.greshko@greshko.com wrote:
Well, it is possible that the printers are defined such that cups can access them but not in such a way that hplip recognizes them.
The scanner portion of the All-In-One machines is not handled by cups. If the OP runs hp-setup, selects 'Network' then 'Advanced' and 'Manual Discovery' and enters the IP address of the printer, it will be discovered, and the URI will be shown, something like:
Model Host Name Device URI
HP Laserjet 3055 192.168.1.12 hp:/net/HP_Laserjet_3055?ip=192.168.1.12
Write down the URI. You can continue to set up the printer and fax as you wish. Your system now knows where the scanner 'is' and hp-scan should work without specifying the --device=<name> parameter.
HP-scan appears to only do one page at a time. You cannot use the adf feature and get tiff/png outputs.
The hp scanning structure (and Hp-scan) is SANE based so scanimage is instakked and works. It is easy to use in a script so you don't have to remember the settings! Batch settings allow you to set the page start, page count and count direction: +2 for the front of double sided pages and -2 for the stack flipped over. These are not available with hp-scan. Note that the command api is NOT the same with hp-scan, nor as featured. My record is something above 300 pages in one pass with scanimage. gscan2pdf is used to create the pdf file later, maybe after a pass using unpaper to straighten the images, adjust contrast or whatever.
################## ##!/bin/bash # script 'scanner' export hp="hp:/net/HP_LaserJet_3055?ip=192.168.1.12" # takes 5 parameters cd $1 echo -e " Please wait while scanning commences.......\n" # letter is -y 280, legal is -y 355 scanimage --device-name=$hp --source auto --resolution 150 --format tiff --mode Color --contrast 125 -x 220 -y 290 --batch=$2%d.tiff --batch-start=$3 --batch-count=$4 --batch-increment=$5 ############### Geoff
On 3/6/19 12:21 PM, R. G. Newbury wrote:
Ed Greshko ed.greshko@greshko.com wrote:
Well, it is possible that the printers are defined such that cups can >access them but not in such a way that hplip recognizes them.
The scanner portion of the All-In-One machines is not handled by cups.
FWIW, that is why I said "printer" in that when he runs hp-tool box it shows that no printers are defined. So, I'm attempting to get that rectified first.
If the OP runs hp-setup, selects 'Network' then 'Advanced' and 'Manual Discovery' and enters the IP address of the printer, it will be discovered, and the URI will be shown, something like:
Model Host Name Device URI
HP Laserjet 3055 192.168.1.12 hp:/net/HP_Laserjet_3055?ip=192.168.1.12
Write down the URI. You can continue to set up the printer and fax as you wish. Your system now knows where the scanner 'is' and hp-scan should work without specifying the --device=<name> parameter.
Well, no need (as far as I've ever experienced) to write down the URI.
The HP 4620 is an "All in One" device and running the hp-setup will set up both the Printer and the Fax.
After that, I have found, all I need do is either run xsane from hp-tool or manually and it will pickup the URI. That is, no need whatsoever to use a script. I don't know, and haven't researched, how xsane finds the URI.
I've never used the hp-scan command. I'm quite happy with the GUI of xsane and the ability to select either the flatbed or document feeder as well as the various output options.