[sane-devel] backend update request: sane-pixma

ibu ☉ ibu at radempa.de
Tue Jul 12 21:48:27 UTC 2011


Dated 2011-07-12 17:11, m. allan noah <kitno455 at gmail.com> said:
> 2011/7/12 Gernot Hassenpflug <aikishugyo at gmail.com>:
>> 2011/7/12 ibu ☉ <ibu at radempa.de>
>>> Which other tests can I do?
>>
>> I suppose you could try with xsane (perhaps as root if permissions problems
>> occur).
> 
> try using scanimage -b to make sure batch mode works....
> 
> allan

Two bad experiences using sane-pixma for Canon PIXMA MX360:

1) USB cabling

Using a longer, non-shielded USB-cable (connected directly to my
machine) I got this error
  scanimage: sane_read: Error during device I/O
  Scanned page 1. (scanner status = 9)
immediately returning to the command prompt. Then the scanjob began (ADF
begun feeding the paper), and after a few seconds - presumably after the
MFP memory was full or some IO timeout of the device - the paper was
stuck in the middle of the ADF. With shielded USB-cable I had no
problems at all, although it was connected to a USB-hub. This behaviour
was reprodicible some hours later. (I've not tried neither the long
cable on the USB-hub nor the short directly on my host.)

2) ADF having no more paper leads to timeout and necessity to restart device

Scanning via ADF works fine, both with scanadf and with scanimage -b,
just when all pages have been scanned a timeout error is reported and I
have to switch off and on the device to be able to continue.

Below I've copied a command line and part of the debug output; I had
only 1 page in the ADF. When I scan more pages, the "underrun detected"
appears after each page has been done.

I found a rather similar bug, however the solution offered there will
not work since I'm using yesterday's git:
https://alioth.debian.org/tracker/?func=detail&atid=410366&aid=312353&group_id=30186

How can I further debug the issue or what can I try out?

Cheers,
ibu



$ SANE_DEBUG_PIXMA=11 scanimage -d pixma:04A9174D_XXXXXX
--batch=/tmp/x.pnm --source 'Automatic Document Feeder' --resolution 300
--mode Gray

...

[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>EndJob</ivec:operation><ivec:param_set
servicetype="scan"><ivec:jobID>00000001</ivec:jobID></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>EndJobResponse</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] WARNING:image size mismatches
[pixma]     10718400 expected (4200 lines) but 8888616 received (3483 lines)
[pixma] pixma_read_image():completed (underrun detected)
[pixma] Reader task terminated
Scanned page 1. (scanner status = 5)
Scanning page 2
[pixma] Reader task id=2692 (forked)
[pixma] Reader task started
[pixma]
[pixma] pixma_scan(): start
[pixma]   line_size=2552 image_size=10718400 channels=1 depth=8
[pixma]   dpi=300x300 offset=(0,0) dimension=2552x4200
[pixma]   gamma_table=0x1e42e68 source=1
[pixma] OUT  T=24.489 len=16
[pixma]  00000000:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 10
[pixma]
[pixma] IN   T=44.494 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 8 sec.
[pixma] IN   T=64.498 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 7 sec.
[pixma] IN   T=84.502 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 6 sec.
[pixma] IN   T=104.506 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 5 sec.
[pixma] IN   T=124.510 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 4 sec.
[pixma] IN   T=144.515 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 3 sec.
[pixma] IN   T=164.519 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 2 sec.
[pixma] IN   T=184.522 len=-9
[pixma]   ERROR: ETIMEDOUT
[pixma]
[pixma] No response yet. Timed out in 1 sec.
[pixma] WARNING:Error in response phase. cmd:f320
[pixma]   If the scanner hangs, reset it and/or unplug the USB cable.
[pixma] pixma_scan() failed ETIMEDOUT
[pixma] Reader task terminated: ETIMEDOUT
[pixma] read_image():reader task closed the pipe:0 bytes received,
10718400 bytes expected
scanimage: sane_read: Error during device I/O
Scanned page 2. (scanner status = 9)
[pixma] pixma_close(): Canon PIXMA MX360




More information about the sane-devel mailing list