sane-hp(5) | SANE Scanner Access Now Easy | sane-hp(5) |
sane-hp - SANE backend for HP ScanJet scanners
The sane-hp library implements a SANE (Scanner Access Now Easy) backend that provides access to HP ScanJet scanners which support SCL (Scanner Control Language by HP). The following scanners are known positively to work with this backend:
Model: Product id: Interface: ---------- ----------- ---------- ScanJet Plus C9195A HP Parallel Interface Card ScanJet IIc C1750A 3226 SCSI ScanJet IIcx C2500A 3332 SCSI ScanJet IIp C1790A SCSI ScanJet 3C C2520A 3503 SCSI ScanJet 3P C2570A 3406 SCSI ScanJet 4C C2520A SCSI ScanJet 4P C1130A 3540 SCSI ScanJet 4100C C6290A USB ScanJet 5P C5110A SCSI ScanJet 5100C C5190A parallel port ScanJet 5200C C7190A 3846 parallel port/USB ScanJet 6100C C2520A 3644 SCSI ScanJet 6200C C6270A 3828 SCSI/USB ScanJet 6250C C6270A 3828 SCSI/USB ScanJet 6300C C7670A SCSI/USB ScanJet 6350C C7670A SCSI/USB ScanJet 6390C C7670A SCSI/USB PhotoSmart C5100A R029,R030,R032 SCSI
Support for models 5100C/5200C connected to the parallel port requires the ppSCSI driver available at http://cyberelk.net/tim/parport/ppscsi.html and http://penguin-breeder.org/kernel/download/.
Support for models 5200C/62X0C/63X0C connected to the USB require the kernel scanner driver or libusb. See sane-usb(5) for more details.
The sane-hp backend no longer supports OfficeJet
multi-function peripherals. For these devices use the external
"hpoj" backend in version 0.90 and later of the "HP OfficeJet
Linux driver", available at
http://hpoj.sourceforge.net
Because Hewlett-Packard does no longer produce scanners that support SCL (beside the OfficeJets), the above list of supported scanners is complete. Other HP scanners are not supported by the sane-hp backend, but might be supported by another one. See http://www.sane-project.org/. You can also watch the sane-devel mailing list at http://www.sane-project.org/mailing-lists.html.
More details about the hp backend can be found on its homepage http://www.kirchgessner.net/sane.html.
This backend expects device names of the form:
Where special is the UNIX path-name for the special device that corresponds to the scanner. For SCSI scanners the special device name must be a generic SCSI device or a symlink to such a device. Under Linux, such a device name could be /dev/sga or /dev/sg2, for example. If the special device name contains "usb", "uscanner" or "ugen", it is assumed that the scanner is connected by USB. For the HP ScanJet Plus the special device name must be the device that corresponds to the parallel interface card that was shipped with the scanner. That is /dev/hpscan. A special driver is required for this card. See ftp://rvs.ctrl-c.liu.se/pub/wingel/hpscan for details. If the link does not work, try ftp://sunsite.unc.edu/pub/Linux/kernel/patches/scanners.
The contents of the hp.conf file is a list of options and device names that correspond to HP ScanJet scanners. Empty lines and lines starting with a hash mark (#) are ignored. See sane-scsi(5) and sane-usb(5) on details of what constitutes a valid device name.
Options specified in front of the first line that contains a device name are defaults for all devices. Options specified below a line that contains a device name apply just to the most recently mentioned device.
Supported options are connect-scsi, connect-device, enable-image-buffering, and dumb-read.
Option connect-scsi specifies that the scanner is connected to the system by SCSI. Input/output is performed using SCSI-commands. This is the default. But if your SCSI device name contains "usb", "uscanner" or "ugen", option connect-scsi must be specified. Otherwise it is assumed that the scanner is connected by USB.
Option connect-device specifies that the scanner is connected to the system by a special device. Input/output is performed by read()/write()-operations on the device. This option must be used for HP ScanJet Plus or scanners connected to USB which are accessed through a named device (e.g. /dev/usb/scanner0). For device names that contain "usb", "uscanner" or "ugen", it is not necessary to specify option connect-device.
Option enable-image-buffering stores the scanned image in memory before passing it to the frontend. Could be used in case of forward/backward moving scanner lamp.
Option dumb-read can be used to work around problems with "Error during device I/O". These problems may occur with certain SCSI-to-USB converters or Buslogic SCSI cards. The option should not be used for SCSI devices which are working correctly. Otherwise startup of frontends and changing parameters might be slower.
A sample configuration file is shown below:
/dev/scanner # this is a comment /dev/hpscan option connect-device
/dev/scanner is typically a symlink to the actual SCSI scanner device.
sane(7), sane-scsi(5), sane-usb(5) scanimage(1), xscanimage(1), scanimage(1)
The sane-hp backend was written by Geoffrey T. Dairiki.
HP PhotoSmart PhotoScanner support by Peter Kirchgessner.
13 Jul 2008 |