sane-hpSection: SANE Scanner Access Now Easy (5)
Updated: 06 Dec 2002
Return to Main Contents
NAMEsane-hp - SANE backend for HP ScanJet scanners
DESCRIPTIONThe 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:
Support for models 5100C/5200C connected to the parallel port requires the ppSCSI driver available at http://www.torque.net/parport/ppscsi.html (under development)
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 "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
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 "hp" backend, but might be supported by another one. See http://www.mostang.com/sane. You can also watch the sane-devel mailinglist at http://www.mostang.com/sane/mail.html.
More details about the hp backend can be found on its homepage http://www.kirchgessner.net/sane.html.
DEVICE NAMESThis 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.
CONFIGURATIONThe 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 convertors 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.
SEE ALSOsane(7), sane-scsi(5), sane-usb(5)
AUTHORThe sane-hp backend was written by Geoffrey T. Dairiki. HP PhotoSmart PhotoScanner support by Peter Kirchgessner.
This document was created by man2html, using the manual pages.
Time: 00:24:16 GMT, March 05, 2024