190 lines
4.7 KiB
HTML
190 lines
4.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of sane-cardscan</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>sane-cardscan</H1>
|
|
Section: SANE Scanner Access Now Easy (5)<BR>Updated: 10 Feb 2010<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<P>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
sane-cardscan - SANE backend for Corex CardScan usb scanners
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
The
|
|
<B>sane-cardscan</B>
|
|
|
|
library implements a SANE (Scanner Access Now Easy) backend which
|
|
provides access to the Corex CardScan 800c & 600c small-format scanners.
|
|
<P>
|
|
The backend supports only grayscale and color modes and media of
|
|
(theoretically) infinite length.
|
|
<P>
|
|
This backend may support other scanners. The best
|
|
way to determine level of support is to get a trace of the windows
|
|
driver in action, and send it to the author.
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
The cardscan backend supports the following options:
|
|
<P>
|
|
|
|
mode m
|
|
<DL COMPACT><DT id="1"><DD>
|
|
Selects the mode for the scan. Options are "Gray" and "Color".
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>CONFIGURATION FILE</H2>
|
|
|
|
The configuration file "cardscan.conf" is used to tell the backend how to look
|
|
for scanners, and provide options controlling the operation of the backend.
|
|
This file is read each time the frontend asks the backend for a list
|
|
of scanners, generally only when the frontend starts. If the configuration
|
|
file is missing, the backend will use a set of compiled defaults, which
|
|
are identical to the default configuration file shipped with SANE.
|
|
<P>
|
|
|
|
Scanners can be specified in the configuration file in 2 ways:
|
|
<P>
|
|
|
|
"usb 0x04c5 0x1042" (or other vendor/product ids)
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Requests backend to search all usb busses in the system for a device
|
|
which uses that vendor and product id. The device will then be queried
|
|
to determine if it is a cardscan scanner.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
"usb /dev/usb/scanner0" (or other device file)
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Some systems use a kernel driver to access usb scanners. This method is untested.
|
|
</DL>
|
|
|
|
<P>
|
|
Additionally, there are two configuration options that control the protocol
|
|
used by the backend:
|
|
<P>
|
|
<P>
|
|
|
|
"lines_per_block 16" (or other number from 1 to 32)
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Controls the number of lines of image data which will be acquired in each pass.
|
|
Older scanners will require this number set lower, often 1.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
"has_cal_buffer 1" (1 or 0)
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Causes the backend to get calibration data from scanner during initialization.
|
|
Older scanners do not support this request, and must be set to 0.
|
|
</DL>
|
|
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
The backend uses a single environment variable, SANE_DEBUG_CARDSCAN, which
|
|
enables debugging output to stderr. Valid values are:
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="6"><DD>
|
|
5 Errors
|
|
<BR>
|
|
|
|
10 Function trace
|
|
<BR>
|
|
|
|
15 Function detail
|
|
<BR>
|
|
|
|
20 Option commands
|
|
<BR>
|
|
|
|
25 SCSI/USB trace
|
|
<BR>
|
|
|
|
30 SCSI/USB detail
|
|
<BR>
|
|
|
|
35 Useless noise
|
|
</DL>
|
|
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>KNOWN ISSUES</H2>
|
|
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="7"><DD>
|
|
The scanner does not seem to have much control possible, so the backend
|
|
cannot set x/y coordinate values, resolutions, etc. These things could
|
|
be simulated in the backend, but there are plenty of command line tools.
|
|
<BR>
|
|
|
|
<BR>
|
|
|
|
The backend also does not send all the commands that the windows driver
|
|
does, so it may not function the same.
|
|
<BR>
|
|
|
|
<BR>
|
|
|
|
The backend does not have the calibration or ejection options of the
|
|
windows driver.
|
|
<BR>
|
|
|
|
<BR>
|
|
|
|
</DL>
|
|
|
|
<P>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>CREDITS</H2>
|
|
|
|
The hardware to build this driver was provided to the author by:
|
|
<BR> Jeff Kowalczyk <jtk a t yahoo d o t com>
|
|
<P>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?7+sane">sane</A>(7),
|
|
<A HREF="/cgi-bin/man/man2html?5+sane-usb">sane-usb</A>(5)
|
|
<P>
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
m. allan noah: <kitno455 a t gmail d o t com>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="9"><A HREF="#lbAC">DESCRIPTION</A><DD>
|
|
<DT id="10"><A HREF="#lbAD">OPTIONS</A><DD>
|
|
<DT id="11"><A HREF="#lbAE">CONFIGURATION FILE</A><DD>
|
|
<DT id="12"><A HREF="#lbAF">ENVIRONMENT</A><DD>
|
|
<DT id="13"><A HREF="#lbAG">KNOWN ISSUES</A><DD>
|
|
<DT id="14"><A HREF="#lbAH">CREDITS</A><DD>
|
|
<DT id="15"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="16"><A HREF="#lbAJ">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:04 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|