1sane-dc240(5)            SANE Scanner Access Now Easy            sane-dc240(5)
2
3
4

NAME

6       sane-dc240 - SANE backend for Kodak DC240 Digital Camera
7

DESCRIPTION

9       The  sane-dc240  library  implements  a  SANE (Scanner Access Now Easy)
10       backend that provides access to the Kodak DC240  camera.  THIS  IS  EX‐
11       TREMELY ALPHA CODE!  USE AT YOUR OWN RISK!!
12

DEVICE NAMES

14       The  current  version  of the backend only allows one camera to be con‐
15       nected.  The device name is always "0".
16

CONFIGURATION

18       The contents of the dc240.conf specify the serial port and baud rate to
19       use.  The baud rate specifies the maximum rate to use while downloading
20       pictures.  (The camera is always  initialized  using  9600  baud,  then
21       switches  to  the higher rate).  On a 450MHz Pentium, I usually have no
22       problems downloading at 115200 baud, though the camera sometimes has to
23       resend  packets  due  to  lost characters.  Results are better when the
24       "interrupt-unmask flag" is set in the IDE driver  (hdparm  -u1).   Sup‐
25       ported baud rates are: 9600, 19200, 38400, 57600, and 115200.
26
27       The  dumpinquiry  line  causes  some information about the camera to be
28       printed.
29
30       cmdrespause specifies how many usec (1,000,000ths of a second) to  wait
31       between  writing the command and reading the result. 125000 seems to be
32       the lowest I could go reliably.
33
34       breakpause specifies how many usec (1,000,000ths of a  second)  between
35       sending the "back to default" break and sending commands.
36
37       Empty  lines  and  lines  starting with a hash mark (#) are ignored.  A
38       sample configuration file is shown below:
39
40              port=/dev/ttyS0
41              # this is a comment
42              baud=115200
43              dumpinquiry
44              cmdrespause=125000
45              breakpause=1000000
46

FILES

48       /etc/sane.d/dc240.conf
49              The  backend  configuration  file  (see  also   description   of
50              SANE_CONFIG_DIR below).
51
52       /usr/lib64/sane/libsane-dc240.a
53              The static library implementing this backend.
54
55       /usr/lib64/sane/libsane-dc240.so
56              The shared library implementing this backend (present on systems
57              that support dynamic loading).
58
59

ENVIRONMENT

61       SANE_CONFIG_DIR
62              This environment variable specifies the list of directories that
63              may contain the configuration file.  On *NIX systems, the direc‐
64              tories are separated by a colon (`:'), under OS/2, they are sep‐
65              arated  by a semi-colon (`;').  If this variable is not set, the
66              configuration file  is  searched  in  two  default  directories:
67              first,   the   current  working  directory  (".")  and  then  in
68              /etc/sane.d.  If the value of the environment variable ends with
69              the  directory separator character, then the default directories
70              are searched after the explicitly  specified  directories.   For
71              example,  setting SANE_CONFIG_DIR to "/tmp/config:" would result
72              in directories tmp/config, ., and /etc/sane.d being searched (in
73              this order).
74
75       SANE_DEBUG_DC240
76              If the library was compiled with debugging support enabled, this
77              environment variable controls the debug level for this  backend.
78              A  value of 128 requests maximally copious debug output; smaller
79              levels reduce verbosity.
80
81

SEE ALSO

83       sane(7)
84
85

AUTHOR

87       Peter S. Fales
88
89
90       This backend borrows heavily from the sane-dc210(5) backend by Brian J.
91       Murrell  which  is  based somewhat on the sane-dc25(5) backend by Peter
92       Fales.
93
94       The manpage was largely copied from the sane-dc210(5) manpage.
95
96

BUGS

98       The major limitation that I know of is that the backend assumes the di‐
99       rectory in the camera is 100dc240.  Once the camera has taken more than
100       9999 pictures, the directory will  increment  to  101dc240.   Not  only
101       should we check for the additional directory, but pictures may actually
102       be found in multiple directories.
103
104       More general comments, suggestions, and inquiries  about  frontends  or
105       SANE   should   go   to   the   SANE   Developers   mailing  list  (see
106       http://www.sane-project.org/mailing-lists.html for details).  You  must
107       be  subscribed  to  the  list, otherwise your mail won't be sent to the
108       subscribers.
109
110
111
112                                  11 Jul 2008                    sane-dc240(5)
Impressum