[sane-devel] buttons-daemon for SANE genesys scanner
Pierre Willenbrock
pierre at pirsoft.dnsalias.org
Wed Jan 7 18:09:14 UTC 2009
Dhi Aurrahman schrieb:
> Dear All!
>
> I have CanonScan LiDE 50 with me (working well with SANE genesys backend),
> but I need to have a buttons-daemon for it.
> Anyone could help me how to do it? I think the first step is to snoop the
> USB message sent by the button when it is pressed.
> If you have experience on developing button daemon, please share it with me.
>
Hi Dio,
the buttons are on gpio pins:
GPIO1: SCAN button
GPIO2: FILE button
GPIO3: E-MAIL button
GPIO4: COPY button
these need to be polled, 0 means pressed. There is a remote possibility
that the used power saving mode renders the buttons useless.
The one thing missing is button support in the genesys backend. Since
this needs polling, it is probably best to hook into the
option-getter(if there is such a thing) and do the polling there(two usb
control transfers). Alternatively we could do the polling in a thread.
I have no experience with the sane interface itself, so comments/patches
are gladly accepted.
Regards,
Pierre
More information about the sane-devel
mailing list