Hallo Rolf, I can't notice any change of behavior here. To make sure, that I use the patched version, I manually deleted all libsane*.
See log attached. And the scan does not start, if I insert paper during the timeout countdown. The scanner beeps, so the firmware detects the inserted paper. But the scan does not start. Grüße Matthias On 20.05.2014 22:44, Rolf Bensch wrote: > Hi Matthias, > > Am 20.05.2014 17:49, schrieb Matthias Peter Walther: >> Hallo Rolf, >> >> sorry to bother you again. But here is another bug with my MX375. > No problem. > >> If I start an ADF-scan while the ADF is empty, the scanner does not >> recover and needs to be restarted by hand. > Attached patch should fix this. The patch is based on recent git code. > >> [...] >> >> I mean scanning ADF without paper in it is stupid, but it should not >> crash the device :) > It's not stupid. Maybe you started the job and forgot to put the paper > into the ADF. Then the job should start scanning if you put the paper > into the ADF *before* timeout counted down to 0 and aborts the job. > > Please test, if scanning starts if you put paper into the ADF during > timeout counts down. > > Cheers, > Rolf
mpw@Server1:~$ export SANE_DEBUG_PIXMA=11 mpw@Server1:~$ scanimage --source "Automatic Document Feeder" --batch=test%02d.pnm [sanei_debug] Setting debug level of pixma to 11. [pixma] pixma is compiled with pthread support. [pixma] pixma version 0.17.8 [pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:010 [pixma] pixma_find_scanners() found 1 devices [pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:010 [pixma] pixma_open(): Canon PIXMA MX370 Series Scanning -1 pages, incrementing by 1, numbering from 1 Scanning page 1 [pixma] Reader task id=140139417962240 (threaded) [pixma] Reader task started [pixma] [pixma] pixma_scan(): start [pixma] line_size=1914 image_size=2009700 channels=3 depth=8 [pixma] dpi=75x75 offset=(0,0) dimension=638x1050 [pixma] gamma_table=0x18c9f10 source=1 [pixma] threshold=127 threshold_curve=0 [pixma] ADF page count: 0 [pixma] OUT T=2.851 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=2.857 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=2.858 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=2.861 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=2.965 len=16 [pixma] 00000000:f3 20 00 00 00 00 00 00 00 00 00 00 00 00 00 10 [pixma] [pixma] IN T=2.965 len=24 [pixma] 00000000:06 06 00 00 00 00 00 00 03 01 00 00 00 00 00 00 [pixma] 00000010:00 00 21 00 00 00 00 db [pixma] [pixma] Current status: paper=1 cal=0 lamp=0 busy=0 [pixma] INTR T=3.097 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] Sending time: '14/05/21 09:45' [pixma] OUT T=3.097 len=36 [pixma] 00000000:eb 80 00 00 00 00 00 00 00 00 00 00 00 00 00 14 [pixma] 00000010:31 34 2f 30 35 2f 32 31 20 30 39 3a 34 35 00 00 [pixma] 00000020:00 00 00 49 [pixma] [pixma] IN T=3.099 len=8 [pixma] 00000000:06 06 00 00 00 00 00 00 [pixma] [pixma] No paper in ADF. Timed out in 9 sec. [pixma] INTR T=3.353 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] Sending time: '14/05/21 09:45' [pixma] OUT T=3.353 len=36 [pixma] 00000000:eb 80 00 00 00 00 00 00 00 00 00 00 00 00 00 14 [pixma] 00000010:31 34 2f 30 35 2f 32 31 20 30 39 3a 34 35 00 00 [pixma] 00000020:00 00 00 49 [pixma] [pixma] IN T=3.355 len=8 [pixma] 00000000:06 06 00 00 00 00 00 00 [pixma] [pixma] No paper in ADF. Timed out in 8 sec. [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] Reader task terminated: ENO_PAPER [pixma] read_image():reader task closed the pipe:0 bytes received, 2009700 bytes expected scanimage: sane_read: Document feeder out of documents Scanned page 1. (scanner status = 7) [pixma] pixma_close(): Canon PIXMA MX370 Series mpw@Server1:~$ scanimage > test.pnm [sanei_debug] Setting debug level of pixma to 11. [pixma] pixma is compiled with pthread support. [pixma] pixma version 0.17.8 [pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:010 [pixma] pixma_find_scanners() found 1 devices [pixma] pixma_collect_devices() found Canon PIXMA MX370 Series at libusb:001:010 [pixma] pixma_open(): Canon PIXMA MX370 Series [pixma] Reader task started [pixma] [pixma] pixma_scan(): start [pixma] line_size=1914 image_size=1678578 channels=3 depth=8 [pixma] dpi=75x75 offset=(0,0) dimension=638x877 [pixma] gamma_table=0x2389f10 source=0 [pixma] threshold=127 threshold_curve=0 [pixma] ADF page count: 0 [pixma] Reader task id=140364930856704 (threaded) [pixma] OUT T=2.979 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=2.980 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] read_image():reader task closed the pipe:0 bytes received, 1678578 bytes expected scanimage: sane_read: Error during device I/O [pixma] pixma_close(): Canon PIXMA MX370 Series
-- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org