[sane-devel] Canon MX370 / MX430 / MX510 / MX925 - Button Support

Rolf Bensch rolf at bensch-online.de
Fri Mar 21 17:40:24 UTC 2014


Hi Matthias,

Sorry I cannot find any button related data in the log file. Therefore
your scanner has no button support.

Unless you may find button support on a Windows machine or with binary.
Then please sniff the usb communication (e.g. with wireshark) and send
the log file to me.

Cheers,
Rolf


Am 21.03.2014 00:03, schrieb Matthias Peter Walther:
> Hello,
> 
> I tested every button. As far as I understand, the device has 4
> Operation modes. The choice of the operating mode may influence the
> button behavior. I set it to "scanner", after I tried out the four
> buttons for the four different operation modes.
> 
> The results as attachment.
> 
> Grüße
> MPW
> 
> Am 20.03.2014 16:52, schrieb Rolf Bensch:
>> Hi Matthias,
>>
>> Please test all buttons and look if the debug output will change. The
>> code says that some scanners ask to set the time when byte 3 is set.
>>
>> Cheers,
>> Rolf
>>
>>
>> Am 19.03.2014 00:31, schrieb Matthias Peter Walther:
>>> Hello,
>>>
>>> I think it works. That would be so cool.
>>>
>>> Thank you so much for your work on this and with the adf, too!
>>>
>>> I'll try out scanbd later. Do I have to do further code changes or is
>>> scanbd supposed to work just like that with that single additional line?
>>>
>>> Is it capable of detecting different buttons? So that it would be
>>> possible to sort the scans into different directories by different
>>> buttons? That would be so awesome. I pressed the button '9' on the
>>> dialpad. I think the menu buttons doesn't work, but the numbers do.
>>>
>>> Bye
>>> Matthias
>>>
>>> Am 18.03.2014 23:13, schrieb Rolf Bensch:
>>>> Hi,
>>>>
>>>> If you like, please test button support for your scanner.
>>>>
>>>> If button support is working, you can use scanbd to control scanning via
>>>> your scanner's buttons. You can find more infos about this in the
>>>> mailing lists archive, e.g. here:
>>>> http://sane.10972.n7.nabble.com/template/NamlServlet.jtp?macro=search_page&node=3&query=scanbd&days=0&sort=date
>>>>
>>>> To enable button support, add one single line with your scanner-pid in
>>>> file pixma_mp150.c in function handle_interrupt() between lines 927 and
>>>> 928, e.g.
>>>> || s->cfg->pid == MX370_PID
>>>>
>>>> Test procedure:
>>>> (1) 'export SANE_DEBUG_PIXMA=11'
>>>> (2) press any button
>>>> (3) check output from 'scanimage -A'
>>>>
>>>> You should see something like this:
>>>>
>>>>   Buttons:
>>>>     --button-update
>>>>         Update button state
>>>> [pixma] INTR T=1.670 len=32
>>>> [pixma]  00000000:00 40 00 00 00 00 00 00  00 00 00 00 00 00 00 00
>>>> [pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
>>>> [pixma]
>>>>     --button-1 <int> [1] [read-only]
>>>>         Button 1
>>>>     --button-2 <int> [0] [read-only]
>>>>         Button 2
>>>>     --original <int> [0] [read-only]
>>>>         Type of original to scan
>>>>     --target <int> [4] [read-only]
>>>>         Target operation type
>>>>     --scan-resolution <int> [0] [read-only]
>>>>         Scan resolution
>>>>
>>>> Please report your results.
>>>>
>>>> Cheers,
>>>> Rolf
> 



More information about the sane-devel mailing list