[sane-devel] how do I use scanner hardware sensors (e.g. scan button)?
Arthur Hebert
arthur at evcl.com
Tue Jan 19 18:14:07 UTC 2010
Thanks Allan. I am comfortable digging in and writing code, much more so for
scripting languages (e.g. bash, python) than compiled/linked languages (e.g.
C).
A few related questions come to mind:
* Is scanimage considered a frontend or a backend?
* How do I read/poll the scan-button hardware state from the device?
(Note: scanimage
--help | grep "\-\-scan" results in "no" even when I hold down the button)
* How do I invoke the fujitsu backend by itself (e.g. to see hardware
states, and to make use of JPEG output)?
* I installed the SDK from the download
page<http://www.ellert.se/twain-sane/>on my OS X 10.5. My system
developer tools are installed. Where did the SDK
install the source code? How do I build from it?
-Arthur
On Mon, Jan 18, 2010 at 4:20 PM, m. allan noah <kitno455 at gmail.com> wrote:
> Button support is one of the weak parts of sane. The button options
> exposed by the fujitsu backend (and most others) are read-only. They
> can be 'polled' periodically by a front-end program, which will then
> activate the appropriate command to perform the requested action. They
> cannot be used directly. Unfortunately, there is not a good
> general-purpose polling frontend yet written, though there is a good
> start in our old experimental tree.
>
> allan
>
> On Mon, Jan 18, 2010 at 5:49 PM, Arthur Hebert <arthur at evcl.com> wrote:
> > Hello,
> >
> > I have setup SANE to work with my Fujitsu fi-6130 scanner. How do I use
> SANE
> > to work with my scanner's "Scan" button? The regular command,
> >
> >> scanimage --format tiff > foo.tiff
> >
> > works as expected. However, the command
> >
> >> scanimage --format tiff --scan=yes > foo.tiff
> >
> > results in the error
> >
> >> scanimage: unrecognized option `--scan=yes'
> >
> >
> > My system is Mac OS X 10.5. The command scanimage --help produces output,
> > which includes awareness of the hardware sensors:
> >
> >>
> >> ... <snip>
> >>
> >> Sensors:
> >> --top-edge[=(yes|no)] [no] [hardware]
> >> Paper is pulled partly into adf
> >> --a3-paper[=(yes|no)] [no] [hardware]
> >> A3 paper detected
> >> --b4-paper[=(yes|no)] [no] [hardware]
> >> B4 paper detected
> >> --a4-paper[=(yes|no)] [no] [hardware]
> >> A4 paper detected
> >> --b5-paper[=(yes|no)] [no] [hardware]
> >> B5 paper detected
> >> --page-loaded[=(yes|no)] [no] [hardware]
> >> Page loaded
> >> --omr-df[=(yes|no)] [no] [hardware]
> >> OMR or double feed detected
> >> --cover-open[=(yes|no)] [no] [hardware]
> >> Cover open
> >> --power-save[=(yes|no)] [no] [hardware]
> >> Scanner in power saving mode
> >> --email[=(yes|no)] [no] [hardware]
> >> Email button
> >> --manual-feed[=(yes|no)] [no] [hardware]
> >> Manual feed selected
> >> --scan[=(yes|no)] [no] [hardware]
> >> Scan button
> >> --function <int> [0] [hardware]
> >> Function character on screen
> >> --double-feed[=(yes|no)] [no] [hardware]
> >> Double feed detected
> >> --error-code <int> [0] [hardware]
> >> Hardware error code
> >> --skew-angle <int> [0] [hardware]
> >> Requires black background for scanning
> >>
> >> Type ``scanimage --help -d DEVICE'' to get list of all options for
> DEVICE.
> >>
> >> List of available devices:
> >> fujitsu:fi-6130dj:90080
> >
> > Thanks,
> > Arthur
> > --
> > sane-devel mailing list: sane-devel at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> > Unsubscribe: Send mail with subject "unsubscribe your_password"
> > to sane-devel-request at lists.alioth.debian.org
> >
>
>
>
> --
> "The truth is an offense, but not a sin"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100119/4efb565f/attachment.htm>
More information about the sane-devel
mailing list