2008-02-14 01:57:19 +00:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>sane-dc240.5</TITLE>
|
|
|
|
</HEAD>
|
2021-02-14 12:22:49 +00:00
|
|
|
<BODY BGCOLOR=#FFFFFF TEXT=#000000><H1 ALIGN=CENTER><IMG SRC="/images/sane.png" HEIGHT=117 WIDTH=346></H1>
|
2008-02-14 01:57:19 +00:00
|
|
|
<H1>sane-dc240.5</H1>
|
|
|
|
<HR>
|
|
|
|
<PRE>
|
|
|
|
<!-- Manpage converted by man2html 3.0.1 -->
|
|
|
|
<B><A HREF="sane-dc240.5.html">sane-dc240(5)</A></B> SANE Scanner Access Now Easy <B><A HREF="sane-dc240.5.html">sane-dc240(5)</A></B>
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>NAME</H2><PRE>
|
|
|
|
sane-dc240 - SANE backend for Kodak DC240 Digital Camera
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
The <B>sane-dc240</B> library implements a SANE (Scanner Access Now Easy)
|
2021-02-14 12:22:49 +00:00
|
|
|
backend that provides access to the Kodak DC240 camera. THIS IS EX-
|
|
|
|
TREMELY ALPHA CODE! USE AT YOUR OWN RISK!!
|
2008-02-14 01:57:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>DEVICE NAMES</H2><PRE>
|
2020-03-29 05:47:02 +00:00
|
|
|
The current version of the backend only allows one camera to be con-
|
2008-02-14 01:57:19 +00:00
|
|
|
nected. The device name is always "0".
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>CONFIGURATION</H2><PRE>
|
|
|
|
The contents of the <I>dc240.conf</I> specify the serial port and baud rate to
|
2021-02-14 12:22:49 +00:00
|
|
|
use. The <B>baud</B> rate specifies the maximum rate to use while downloading
|
2008-02-14 01:57:19 +00:00
|
|
|
pictures. (The camera is always initialized using 9600 baud, then
|
|
|
|
switches to the higher rate). On a 450MHz Pentium, I usually have no
|
|
|
|
problems downloading at 115200 baud, though the camera sometimes has to
|
|
|
|
resend packets due to lost characters. Results are better when the
|
2021-02-14 12:22:49 +00:00
|
|
|
"interrupt-unmask flag" is set in the IDE driver (<I>hdparm</I> <I>-u1</I>). Sup-
|
2008-02-14 01:57:19 +00:00
|
|
|
ported baud rates are: 9600, 19200, 38400, 57600, and 115200.
|
|
|
|
|
2021-02-14 12:22:49 +00:00
|
|
|
The <B>dumpinquiry</B> line causes some information about the camera to be
|
2008-02-14 01:57:19 +00:00
|
|
|
printed.
|
|
|
|
|
2022-01-19 20:53:37 +00:00
|
|
|
<B>cmdrespause</B> specifies how many usec (1,000,000ths of a second) to wait
|
|
|
|
between writing the command and reading the result. 125000 seems to be
|
2008-02-14 01:57:19 +00:00
|
|
|
the lowest I could go reliably.
|
|
|
|
|
2022-01-19 20:53:37 +00:00
|
|
|
<B>breakpause</B> specifies how many usec (1,000,000ths of a second) between
|
|
|
|
sending the "back to default" break and sending commands.
|
2008-02-14 01:57:19 +00:00
|
|
|
|
|
|
|
Empty lines and lines starting with a hash mark (#) are ignored. A
|
|
|
|
sample configuration file is shown below:
|
|
|
|
|
|
|
|
port=/dev/ttyS0
|
|
|
|
# this is a comment
|
|
|
|
baud=115200
|
|
|
|
dumpinquiry
|
|
|
|
cmdrespause=125000
|
|
|
|
breakpause=1000000
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>FILES</H2><PRE>
|
2017-05-22 22:39:44 +00:00
|
|
|
<I>/usr/local/etc/sane.d/dc240.conf</I>
|
2008-02-14 01:57:19 +00:00
|
|
|
The backend configuration file (see also description of
|
|
|
|
<B>SANE_CONFIG_DIR</B> below).
|
|
|
|
|
2017-05-22 22:39:44 +00:00
|
|
|
<I>/usr/local/lib/sane/libsane-dc240.a</I>
|
2008-02-14 01:57:19 +00:00
|
|
|
The static library implementing this backend.
|
|
|
|
|
2017-05-22 22:39:44 +00:00
|
|
|
<I>/usr/local/lib/sane/libsane-dc240.so</I>
|
2008-02-14 01:57:19 +00:00
|
|
|
The shared library implementing this backend (present on systems
|
|
|
|
that support dynamic loading).
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>ENVIRONMENT</H2><PRE>
|
|
|
|
<B>SANE_CONFIG_DIR</B>
|
|
|
|
This environment variable specifies the list of directories that
|
2022-01-19 20:53:37 +00:00
|
|
|
may contain the configuration file. On *NIX systems, the direc-
|
|
|
|
tories are separated by a colon (`:'), under OS/2, they are sep-
|
|
|
|
arated by a semi-colon (`;'). If this variable is not set, the
|
|
|
|
configuration file is searched in two default directories:
|
|
|
|
first, the current working directory (".") and then in <I>/usr/lo-</I>
|
2021-02-14 12:22:49 +00:00
|
|
|
<I>cal/etc/sane.d.</I> If the value of the environment variable ends
|
|
|
|
with the directory separator character, then the default direc-
|
|
|
|
tories are searched after the explicitly specified directories.
|
|
|
|
For example, setting <B>SANE_CONFIG_DIR</B> to "/tmp/config:" would re-
|
|
|
|
sult in directories <I>tmp/config</I>, <I>.</I>, and <I>/usr/local/etc/sane.d</I> be-
|
|
|
|
ing searched (in this order).
|
2008-02-14 01:57:19 +00:00
|
|
|
|
|
|
|
<B>SANE_DEBUG_DC240</B>
|
|
|
|
If the library was compiled with debugging support enabled, this
|
|
|
|
environment variable controls the debug level for this backend.
|
|
|
|
A value of 128 requests maximally copious debug output; smaller
|
|
|
|
levels reduce verbosity.
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>SEE ALSO</H2><PRE>
|
|
|
|
<B><A HREF="sane.7.html">sane(7)</A></B>
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>AUTHOR</H2><PRE>
|
|
|
|
Peter S. Fales
|
|
|
|
|
2022-01-19 20:53:37 +00:00
|
|
|
This backend borrows heavily from the <B><A HREF="sane-dc210.5.html">sane-dc210(5)</A></B> backend by Brian J.
|
|
|
|
Murrell which is based somewhat on the <B><A HREF="sane-dc25.5.html">sane-dc25(5)</A></B> backend by Peter
|
|
|
|
Fales.
|
2008-02-14 01:57:19 +00:00
|
|
|
|
2022-01-19 20:53:37 +00:00
|
|
|
The manpage was largely copied from the <B><A HREF="sane-dc210.5.html">sane-dc210(5)</A></B> manpage.
|
2008-02-14 01:57:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
|
|
<H2>BUGS</H2><PRE>
|
2021-02-14 12:22:49 +00:00
|
|
|
The major limitation that I know of is that the backend assumes the di-
|
|
|
|
rectory in the camera is 100dc240. Once the camera has taken more than
|
2022-01-19 20:53:37 +00:00
|
|
|
9999 pictures, the directory will increment to 101dc240. Not only
|
2008-02-14 01:57:19 +00:00
|
|
|
should we check for the additional directory, but pictures may actually
|
|
|
|
be found in multiple directories.
|
|
|
|
|
2022-01-19 20:53:37 +00:00
|
|
|
More general comments, suggestions, and inquiries about frontends or
|
|
|
|
SANE should go to the SANE Developers mailing list (see
|
|
|
|
<I>http://www.sane-project.org/mailing-lists.html</I> for details). You must
|
|
|
|
be subscribed to the list, otherwise your mail won't be sent to the
|
2008-02-14 01:57:19 +00:00
|
|
|
subscribers.
|
|
|
|
|
2009-05-03 21:14:31 +00:00
|
|
|
11 Jul 2008 <B><A HREF="sane-dc240.5.html">sane-dc240(5)</A></B>
|
2008-02-14 01:57:19 +00:00
|
|
|
</PRE>
|
|
|
|
<HR>
|
|
|
|
<ADDRESS>
|
|
|
|
Man(1) output converted with
|
|
|
|
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
|
|
|
|
</ADDRESS>
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|