[sane-devel] Canon MX925 - does not recover when ADF out of paper

Rolf Bensch rolf at bensch-online.de
Fri Feb 28 20:32:17 UTC 2014


Hi Kay,

There is an ADF empty bug in the code.

If you like you can try to fix it. I cannot do this 'cause I have no ADF
scanner.

Other users reported setting the page count in xsane shold be a workaround.

Cheers,
Rolf


Am 19.02.2014 22:33, schrieb kay at drangmeister.net:
> Hi all
>
> (I'm new to the list so please bear with me if I'm not into netiquette
> of it yet.)
>
> I own a Canon MX925 scanner and successfully run the current sane from
> the PPA. Since I don't know how to see the exact version:
>
> $ sane-find-scanner -v
> # This is sane-find-scanner from sane-backends 1.0.25git
> # found USB scanner (vendor=0x04a9 [Canon], product=0x176b
>    [MX920 series]) at libusb:002:025
>
> I did a scan from within gimp (File/create/xsane/device dialog...)
> scanned with ADF selected, but no paper in it (it works fine WITH
> paper :-)), got an error message ("no paper") after several (5-10)
> seconds, put a paper in the ADF and retried, but it was not able
> to scan again (Printer display still says "please wait", GIMP says
> "Error during device I/O" (in German)).
>
> $ gimp &>mx925.log
>
> result:
>
> [sanei_debug] Setting debug level of pixma to 11.
> [pixma] pixma is compiled with pthread support.
> [pixma] pixma version 0.17.6
> [pixma] pixma_collect_devices() found Canon PIXMA MX920 Series at
> libusb:002:025
> [pixma] pixma_find_scanners() found 1 devices
> [pixma] pixma_collect_devices() found Canon PIXMA MX920 Series at
> libusb:002:025
> [pixma] pixma_open(): Canon PIXMA MX920 Series
> [pixma] INTR T=4.576 len=32
> [pixma]  00000000:00 00 00 01 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]
> [pixma] INTR T=4.832 len=32
> [pixma]  00000000:00 00 00 01 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]
> [pixma] INTR T=14.177 len=32
> [pixma]  00000000:00 00 00 01 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]
> [pixma] [pixma] Reader task id=-1294972096 (threaded)
> Reader task started
> [pixma]
> [pixma] pixma_scan(): start
> [pixma]   line_size=5032 image_size=35183744 channels=1 depth=8
> [pixma]   dpi=600x600 offset=(64,8) dimension=5032x6992
> [pixma]   gamma_table=0x9fe951c source=1
> [pixma]   threshold=127 threshold_curve=0
> [pixma]   ADF page count: 0
> [pixma] Setting non-blocking mode
> [pixma] OUT  T=18.556 len=288
> [pixma]  00000000:3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31
> [pixma]  00000010:2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 75 74
> [pixma]  00000020:66 2d 38 22 20 3f 3e 3c  63 6d 64 20 78 6d 6c 6e
> [pixma]  00000030:73 3a 69 76 65 63 3d 22  68 74 74 70 3a 2f 2f 77
> [pixma]  00000040:77 77 2e 63 61 6e 6f 6e  2e 63 6f 6d 2f 6e 73 2f
> [pixma]  00000050:63 6d 64 2f 32 30 30 38  2f 30 37 2f 63 6f 6d 6d
> [pixma]  00000060:6f 6e 2f 22 3e 3c 69 76  65 63 3a 63 6f 6e 74 65
> [pixma]  00000070:6e 74 73 3e 3c 69 76 65  63 3a 6f 70 65 72 61 74
> [pixma]  ...
> [pixma]
> [pixma] IN   T=18.615 len=365
> [pixma]  00000000:3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31
> [pixma]  00000010:2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 75 74
> [pixma]  00000020:66 2d 38 22 20 3f 3e 0d  0a 3c 63 6d 64 20 78 6d
> [pixma]  00000030:6c 6e 73 3a 69 76 65 63  3d 22 68 74 74 70 3a 2f
> [pixma]  00000040:2f 77 77 77 2e 63 61 6e  6f 6e 2e 63 6f 6d 2f 6e
> [pixma]  00000050:73 2f 63 6d 64 2f 32 30  30 38 2f 30 37 2f 63 6f
> [pixma]  00000060:6d 6d 6f 6e 2f 22 3e 0d  0a 09 3c 69 76 65 63 3a
> [pixma]  00000070:63 6f 6e 74 65 6e 74 73  3e 0d 0a 09 09 3c 69 76
> [pixma]  ...
> [pixma]
> [pixma] XML message sent to scanner:
> <?xml version="1.0" encoding="utf-8" ?><cmd
> xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/"><ivec:contents><ivec:operation>StartJob</ivec:operation><ivec:param_set
>
>
>
> servicetype="scan"><ivec:jobID>00000001</ivec:jobID><ivec:bidi>1</ivec:bidi></ivec:param_set></ivec:contents></cmd>
>
> [pixma] XML response back from scanner:
> <?xml version="1.0" encoding="utf-8" ?>
> <cmd xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/">
>     <ivec:contents>
>         <ivec:operation>StartJobResponse</ivec:operation>
>         <ivec:param_set servicetype="scan">
>             <ivec:response>OK</ivec:response>
>             <ivec:response_detail/>
>             <ivec:jobID>00000001</ivec:jobID>
>         </ivec:param_set>
>     </ivec:contents>
> </cmd>
> [pixma] OUT  T=18.617 len=390
> [pixma]  00000000:3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31
> [pixma]  00000010:2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 75 74
> [pixma]  00000020:66 2d 38 22 20 3f 3e 3c  63 6d 64 20 78 6d 6c 6e
> [pixma]  00000030:73 3a 69 76 65 63 3d 22  68 74 74 70 3a 2f 2f 77
> [pixma]  00000040:77 77 2e 63 61 6e 6f 6e  2e 63 6f 6d 2f 6e 73 2f
> [pixma]  00000050:63 6d 64 2f 32 30 30 38  2f 30 37 2f 63 6f 6d 6d
> [pixma]  00000060:6f 6e 2f 22 20 78 6d 6c  6e 73 3a 76 63 6e 3d 22
> [pixma]  00000070:68 74 74 70 3a 2f 2f 77  77 77 2e 63 61 6e 6f 6e
> [pixma]  ...
> [pixma]
> [pixma] IN   T=18.621 len=510
> [pixma]  00000000:3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31
> [pixma]  00000010:2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 75 74
> [pixma]  00000020:66 2d 38 22 20 3f 3e 0d  0a 3c 63 6d 64 20 78 6d
> [pixma]  00000030:6c 6e 73 3a 69 76 65 63  3d 22 68 74 74 70 3a 2f
> [pixma]  00000040:2f 77 77 77 2e 63 61 6e  6f 6e 2e 63 6f 6d 2f 6e
> [pixma]  00000050:73 2f 63 6d 64 2f 32 30  30 38 2f 30 37 2f 63 6f
> [pixma]  00000060:6d 6d 6f 6e 2f 22 0d 0a  78 6d 6c 6e 73 3a 76 63
> [pixma]  00000070:6e 3d 22 68 74 74 70 3a  2f 2f 77 77 77 2e 63 61
> [pixma]  ...
> [pixma]
> [pixma] XML message sent to scanner:
> <?xml version="1.0" encoding="utf-8" ?><cmd
> xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/"
> xmlns:vcn="http://www.canon.com/ns/cmd/2008/07/canon/"><ivec:contents><ivec:operation>VendorCmd</ivec:operation><ivec:param_set
>
>
>
> servicetype="scan"><ivec:jobID>00000001</ivec:jobID><vcn:ijoperation>ModeShift</vcn:ijoperation><vcn:ijmode>1</vcn:ijmode></ivec:param_set></ivec:contents></cmd>
>
> [pixma] XML response back from scanner:
> <?xml version="1.0" encoding="utf-8" ?>
> <cmd xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/"
> xmlns:vcn="http://www.canon.com/ns/cmd/2008/07/canon/">
>     <ivec:contents>
>         <ivec:operation>VendorCmdResponse</ivec:operation>
>         <ivec:param_set servicetype="scan">
>             <ivec:response>OK</ivec:response>
>             <ivec:response_detail/>
>             <vcn:ijoperation>ModeShiftResponse</vcn:ijoperation>
>             <vcn:ijresponse>OK</vcn:ijresponse>
>             <vcn:ijresponse_detail/>
>         </ivec:param_set>
>     </ivec:contents>
> </cmd>
> [pixma] OUT  T=18.721 len=16
> [pixma]  00000000:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 10
> [pixma]
> [pixma] IN   T=18.722 len=24
> [pixma]  00000000:06 06 00 00 00 00 00 00  0b 01 01 00 00 00 00 00
> [pixma]  00000010:00 00 21 00 00 00 00 d2
> [pixma]
> [pixma] Current status: paper=1 cal=0 lamp=0 busy=0
> [pixma] No paper in ADF. Timed out in 9 sec.
> [pixma] No paper in ADF. Timed out in 8 sec.
> [pixma] INTR T=21.089 len=32
> [pixma]  00000000:00 00 00 01 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]
> [pixma] No paper in ADF. Timed out in 7 sec.
> [pixma] No paper in ADF. Timed out in 6 sec.
> [pixma] No paper in ADF. Timed out in 5 sec.
> [pixma] No paper in ADF. Timed out in 4 sec.
> [pixma] No paper in ADF. Timed out in 3 sec.
> [pixma] No paper in ADF. Timed out in 2 sec.
> [pixma] No paper in ADF. Timed out in 1 sec.
> [pixma] No paper in ADF. Timed out in 0 sec.
> [pixma] pixma_scan() failed ENO_PAPER
> [pixma] read_image():reader task closed the pipe:0 bytes received,
> 35183744 bytes expected
> [pixma] Reader task terminated: ENO_PAPER
> [pixma] Reader task started
> [pixma] Reader task id=-1294972096 (threaded)
> [pixma]
> [pixma] pixma_scan(): start
> [pixma]   line_size=5032 image_size=35183744 channels=1 depth=8
> [pixma]   dpi=600x600 offset=(64,8) dimension=5032x6992
> [pixma]   gamma_table=0x9fe951c source=1
> [pixma]   threshold=127 threshold_curve=0
> [pixma]   ADF page count: 0
> [pixma] OUT  T=71.078 len=288
> [pixma]  00000000:3c 3f 78 6d 6c 20 76 65  72 73 69 6f 6e 3d 22 31
> [pixma]  00000010:2e 30 22 20 65 6e 63 6f  64 69 6e 67 3d 22 75 74
> [pixma]  00000020:66 2d 38 22 20 3f 3e 3c  63 6d 64 20 78 6d 6c 6e
> [pixma]  00000030:73 3a 69 76 65 63 3d 22  68 74 74 70 3a 2f 2f 77
> [pixma]  00000040:77 77 2e 63 61 6e 6f 6e  2e 63 6f 6d 2f 6e 73 2f
> [pixma]  00000050:63 6d 64 2f 32 30 30 38  2f 30 37 2f 63 6f 6d 6d
> [pixma]  00000060:6f 6e 2f 22 3e 3c 69 76  65 63 3a 63 6f 6e 74 65
> [pixma]  00000070:6e 74 73 3e 3c 69 76 65  63 3a 6f 70 65 72 61 74
> [pixma]  ...
> [pixma]
> [pixma] IN   T=71.079 len=8
> [pixma]  00000000:15 15 00 00 00 00 00 00
> [pixma]
> [pixma] XML message sent to scanner:
> <?xml version="1.0" encoding="utf-8" ?><cmd
> xmlns:ivec="http://www.canon.com/ns/cmd/2008/07/common/"><ivec:contents><ivec:operation>StartJob</ivec:operation><ivec:param_set
>
>
>
> servicetype="scan"><ivec:jobID>00000001</ivec:jobID><ivec:bidi>1</ivec:bidi></ivec:param_set></ivec:contents></cmd>
>
> [pixma] XML response back from scanner:
> 
> [pixma] pixma_scan() failed EPROTO
> [pixma] Reader task terminated: EPROTO
> [pixma] Setting non-blocking mode
> [pixma] read_image():reader task closed the pipe:0 bytes received,
> 35183744 bytes expected
> [pixma] pixma_close(): Canon PIXMA MX920 Series
>
>
> Hope this helps,
>
> Kind regards,
> Kay
>
> --------------------------------------------------------------
>
> Is the message too long, is there some moderation process, or is
> there a problem with my email registration? I sent through the
> same address I used for subscribing.
>
> Thanks a lot and kind regards,
> Kay
>
>




More information about the sane-devel mailing list