Hi Rolf, the "buttons" section in the code shows this:
Buttons:
--button-update
Update button state
--button-1 [0] [read-only]
Button 1
--button-2 [0] [read-only]
Button 2
--original [0] [read-only]
Type of original to scan
--target [0]
Hi Matt,
Have you tested that your scanner resp. the backend sends data @ a push
button event?
Please test on the console:
(1) push any button
(2) $ SANE_DEBUG_PIXMA=11 scanimage -A
(3) check the response; I'm especially interested in following lines:
Buttons:
--button-update
Hello Everybody,
my name is Michael Rall. I'm a freelancing Softwaredeveloper from Germany.
For one of my projects I would like to create a SANE Backend for a
Web-Based ImageAquisition-Tool.
So basically my SANE Backend needs to call a Webservice an will receive
an Image as result.
What
Oh, mixed the values ...
action btest {
filter = "^button.*"
numerical-trigger {
from-value = 0
to-value = 1
}
desc = "Scan to file"
script =
Matt, you need something like this in your config:
action btest {
filter = "^button.*"
numerical-trigger {
from-value = 1
to-value = 0
}
desc = "Scan to file"
Thanks Wilhelm. I had changed that while trying to debug the problem,
not sure why this would be a problem. Have reverted to the
scanbd.conf from source, with modifications to sane.d directory and
comment out the unnecessary manufacturer scanner.d profiles. revised
config is attached -