[sane-devel] canon pixma MX890 ADF empty test OK

Henry Ptasinski henry at logout.com
Thu Jun 20 22:58:11 UTC 2013


The mp150_scan() function issues a scan request to the printer before 
checking the paper status, which ends up leaving the printer in a 
confused state.  So the first attempt at scanning with an empty ADF 
properly returns an error, but then the printer doesn't respond to any 
future scan attempts without rebooting.

I moved the ADF empty check earlier in the function, and now can run 
scanimage numerous times with an empty ADF and the printer seems to be 
left in a sane state.

Multiple page scanning with ADF simplex also seems to work fine using 
scanimage, as long as I use the -b option with the correct number of pages.

If the ADF goes empty during a scan (i.e. less pages in ADF than 
specified with -b option), the printer stops responding at the end of 
the scan, and stays unresponsive until a reboot.

One thing I noticed is that, even when the number of pages scanned match 
(actual pages in ADF vs. -b flag), abort_session() is being called and 
suspect this might be causing some trouble.  I haven't found where 
that's happening yet.  It doesn't appear to be from inside mp150_scan().

---
Henry Ptasinski
henry at logout.com

On 05/24/2013 08:55 AM, Rolf Bensch wrote:
> Hi Tim,
>
> seeing an "error" while adf is impty is normal behaviour.
>
> What's about running an adf batch scan job empty? Can you start a new
> (single) scan job afterwards?
>
> Please use only usb connection while testing. On a 2nd step we can
> switch to LAN.
>
> Please be patient if you'll see some errors and it may seem that we are
> on the wrong way. We'll find a patch for this scanner.
>
> Cheers,
> Rolf
>
> p.s. please answer with my email as cc. I'm not checking the ml digest
> frequently.
>
>
>
> Am 22.05.2013 05:56, schrieb Tim:
>> Canon MX892 (US model)
>>
>> tested:
>> Loaded and unloaded ADF tray
>>
>> backend:
>> git clone as of 16 May, no changes
>>
>> rerelated software:
>> xsane 0.998
>> cnijfilter-mx890series-3.70-1.x86_64 from canon-asia
>> cnijfilter-common-3.70-1.x86_64 from canon-asia
>> cups-bjnp-1.2.1-x86_64-1_SBo from slackbuilds.org
>> 2.6.37.6c (tim at hp_lap) (gcc version 4.5.2 (GCC) ) #8 SMP
>> Slackware 13.37, x86_64
>>
>> environment:
>> SANE_DEBUG_PIXMA=11
>>
>> results:
>> loaded ADF tray works as expected, empty ADF tray gives appropriate
>> error (see attached log)
>>
>> Cheers,
>
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pixma_mp150.c.diff
Type: text/x-patch
Size: 2334 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130620/68bfde6c/attachment.bin>


More information about the sane-devel mailing list