[sane-devel] Button support for Canon PIXMA MG6250 and MG6350

Rolf Bensch rolf at bensch-online.de
Fri Jun 21 09:33:01 UTC 2013


Hi,

Based on the latest git version I added a new parameter to button
support: --scan-resolution.

Please patch all files from the archive file and test button support
with 'scanimage -A'. Now you should be able to get the dpi info from
your scanner.

If you like you can also patch doc/sane-pixma.man and check if the
description of the button parameters are ok your scanner.

Please report if the patch is working. Then I can commit this into git.

Many thanks for your help,
Rolf


Am 25.03.2013 10:35, schrieb Rolf Bensch:
> Hi Theo,
>
> I just committed button support patch to git.
>
> Sorry, I have no idea about the usb interface. Maybe somebody else can
> help with this issue.
>
> Many thanks for your help.
>
> Cheers,
> Rolf
>
>
>
> Am 24.03.2013 21:45, schrieb Theo:
>> Hi Rolf,
>>
>> regarding the scanner buttons: the MG6300 matches the MG6200. This would
>> make the patch as simple as this:||||
>>
>> diff --git a/backend/pixma_mp150.c b/backend/pixma_mp150.c
>> index 494c23e..febd06c 100644
>> --- a/backend/pixma_mp150.c
>> +++ b/backend/pixma_mp150.c
>> @@ -918,7 +918,7 @@ handle_interrupt (pixma_t * s, int timeout)
>>     * oo: original
>>     * tt: target
>>     * poll event with 'scanimage -A' */
>> -  if (s->cfg->pid == MG6200_PID)
>> +  if (s->cfg->pid == MG6200_PID || s->cfg->pid == MG6300_PID)
>>    /* button no. in buf[7]
>>     * size in buf[10] 01=A4; 02=Letter; 08=10x15; 09=13x18; 0b=auto
>>     * format in buf[11] 01=JPEG; 02=TIFF; 03=PDF; 04=Kompakt-PDF
>>
>>
>> Regarding the USB connectivity error: it occurred again today and I sort
>> of believe it was caused by a xsane. I did noticed the USB connection
>> name changed when the issue occurred. When it works, the name is
>> 'pixma:04A91765_20A814', when there are issues the name changes to
>> 'pixma:04A91765':
>>
>> With the connection issue:
>>   $ scanimage -L
>>   device `v4l:/dev/video0' is a Noname UVC Camera (046d:0825) virtual device
>>   device `pixma:MG6300_canon-printer' is a CANON Canon PIXMA MG6300
>> multi-function peripheral
>>   device `pixma:04A91765' is a CANON Canon PIXMA MG6300 multi-function
>> peripheral
>>
>> Without the connection issue:
>>   $ scanimage -L
>>   device `v4l:/dev/video0' is a Noname UVC Camera (046d:0825) virtual device
>>   device `pixma:MG6300_canon-printer' is a CANON Canon PIXMA MG6300
>> multi-function peripheral
>>   device `pixma:04A91765_20A814' is a CANON Canon PIXMA MG6300
>> multi-function peripheral
>>
>> Can you tell where this name is created?
>>
>> Thanks again, Theo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pixma_mp150.c.diff.tar.gz
Type: application/x-gzip
Size: 1780 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130621/c607e092/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane-pixma.man.diff
Type: text/x-patch
Size: 1939 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130621/c607e092/attachment-0001.bin>


More information about the sane-devel mailing list