[sane-devel] New scanner Canon MF4770N Multi function

Ralph Little littlesincanada at yahoo.co.uk
Fri Sep 20 21:20:52 UTC 2013


Hi,
Something else that didn't quite work during last night's testing was loading multiple pages into the ADF.
Using xsane, the first scan works fine. 
However, the ADF starts to load the second page towards the end of the first scan (fax-style) and appears to be waiting for xsane to request it.
xsane reckons that it is finished but the scanner is not. It ends up in a strange situation where the scanner and xsane are out of sync.

While in this state, xsane will not perform a scan because the scanner is busy. 
Everything is fine after the scan is cancelled on the scanner panel.
xsane is not expecting to be doing multiple scans in this setup.
Perhaps the pixma driver can detect this situation and issue a cancel to the scanner? 
It could perform the first scan, detect if there is paper still in the scanner and if so, send an abort to the scanner.

If I get time, I will play around with this tonight, but my time with the unit is running out.
Shame, this is a lot of fun.

Cheers,
Ralph





>________________________________
> From: Rolf Bensch <rolf at bensch-online.de>
>To: littlesincanada <littlesincanada at yahoo.co.uk> 
>Cc: sane-devel at lists.alioth.debian.org 
>Sent: Friday, September 20, 2013 1:14:14 PM
>Subject: Re: [sane-devel] New scanner Canon MF4770N Multi function
> 
>
>Hi Ralph,
>
>I found a patch for different flatbed (platen) and ADF page length
>handling. I adapted this for your scanner. Your scanner supports 11" for
>flatbed (platen) and 14" for ADF.
>
>Cheers,
>Rolf
>
>
>Am 20.09.2013 16:47, schrieb Rolf Bensch:
>> Hi Ralph,
>>
>> Am 20.09.2013 06:34, schrieb littlesincanada:
>>> Hi Rolf,
>>> OK, diff included for pixma-imageclass.c to git unstable.
>>>
>>> I figured out the issue with the underrun: when the printer is scanning
>>> with the ADF for Preview (full area scan), it auto detects the end of
>>> paper and terminates the scan earlier than the sane driver is expecting.
>>> It sees the end of the paper and knows to stop at that point (nothing
>>> left to scan).
>>>
>> Here the backend expects maximum paper length if you don't request a
>> smaller format from scanimage or xsane. The scanner stops scanning when
>> the paper went through the document feeder.
>>
>>> It cannot do this when scanning from the platen since it doesn't know
>>> where the end of the page is. Therefore, I don't get the warning when
>>> Previewing from the platen.
>>>
>> Sure, the scanner expects 11.7" paper length, but your scanner supports
>> only 11". Please replace the device define line with this one:
>>
>> DEV ("Canon imageCLASS MF4770n", "MF4770", MF4770_PID, 600, 640, 825,
>> PIXMA_CAP_ADF),
>>
>> This should fix this issue. Please report if this is successful. Then
>> I'll commit your patch to git.
>>
>> If you don't want to scan large documents above 11" on the document
>> feeder, I'll patch this later.
>>
>>> I couldn't really get any response from the buttons. My time with the
>>> printer is running out (I have to ship it to my daughter in Uni) so I'm
>>> going to have to call it a do at that.
>>>
>> You can check button support with scanimage. Please follow these items
>> for debugging:
>>
>> (1) Connect your scanner to the usb bus.
>> (2) 'export SANE_DEBUG_PIXMA=11' on the console.
>> (3) Press any button.
>> (4) 'scanimage -A' on the console.
>>
>> The response from scanimage should contain these lines:
>>
>>   Buttons:
>>     --button-update
>>         Update button state
>> [pixma] INTR T=1.655 len=32
>> [pixma]  00000000:00 10 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> [1] [read-only]
>>         Target operation type
>>     --scan-resolution <int> [0] [read-only]
>>         Scan resolution
>>
>> The [pixma] lines are from my scanner which is different from yours.
>>
>> (5) repeat from (3) for all other buttons.
>>
>> Please send me the [pixma] responses for all buttons. Then I can create
>> a patch for this.
>>
>> If you won't get [pixma] debug lines SANE doesn't support the buttons
>> from your scanner.
>>
>> Cheers,
>> Rolf
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130920/f28b0884/attachment.html>


More information about the sane-devel mailing list