1sane-dc240(5) SANE Scanner Access Now Easy sane-dc240(5)
2
3
4
6 sane-dc240 - SANE backend for Kodak DC240 Digital Camera
7
9 The sane-dc240 library implements a SANE (Scanner Access Now Easy)
10 backend that provides access to the Kodak DC240 camera. THIS IS
11 EXTREMELY ALPHA CODE! USE AT YOUR OWN RISK!!
12
14 The current version of the backend only allows one camera to be con‐
15 nected. The device name is always "0".
16
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) between writing
31 the command and reading the result should be used. 125000 seems to be
32 the lowest I could go reliably.
33
34 breakpause is the time in 1,000,000ths of a usec between sending the
35 "back to default" break 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
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
61 SANE_CONFIG_DIR
62 This environment variable specifies the list of directories that
63 may contain the configuration file. Under UNIX, the directories
64 are separated by a colon (`:'), under OS/2, they are separated
65 by a semi-colon (`;'). If this variable is not set, the config‐
66 uration file is searched in two default directories: first, the
67 current working directory (".") and then in /etc/sane.d. If the
68 value of the environment variable ends with the directory sepa‐
69 rator character, then the default directories are searched after
70 the explicitly specified directories. For example, setting
71 SANE_CONFIG_DIR to "/tmp/config:" would result in directories
72 "tmp/config", ".", and "/etc/sane.d" being searched (in this
73 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
83 sane(7)
84
85
87 Peter S. Fales
88
89
90 This backend borrows heavily from the dc210 backend by Brian J. Murrell
91 which is based somewhat on the dc25 backend by Peter Fales.
92
93 The manpage was largely copied from the dc210 manpage.
94
95
97 The major limitation that I know of is that the backend assumes the
98 directory in the camera is 100dc240. Once the camera has taken more
99 than 9999 pictures, the directory will increment to 101dc240. Not only
100 should we check for the additional directory, but pictures may actually
101 be found in multiple directories.
102
103 More general comments, suggestions, and inquiries about frontends or
104 SANE should go to the SANE Developers mailing list (see
105 http://www.sane-project.org/mailing-lists.html for details). You must
106 be subscribed to the list, otherwise your mail won't be sent to the
107 subscribers.
108
109
110
111 11 Jul 2008 sane-dc240(5)