<br>Hi, <br><br>I have similar problems to this with the pixma backend and a Canon MF4660 - only my MFP *always* returns the -ETIMEOUT response after moving the scan head to the end of the panel in preparation for the scan.<br>
<br>It looks like the backend is sending something to the scanner which puts it into a weird state, as I have to power-cycle to make it work again (unplugging is not enough, if I run scanimage -T, then plug into a Windows box it stil wont work)<br>
<br>I have not had sufficient time available to properly investigate what&#39;s happening, but it does look like a similar problem so thought it may be worth mentioning.<br><br>I will try diffing the scan snoop from windows with what&#39;s happening under Linux later, but I&#39;ve not yet found a quick/easy way to do this. <br>
<br>Steve <br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The only problem is that sometimes scanner gets hang and &#39;scanimage -T&#39;<br>

fails:<br>
scanimage: reading one scanline, 1920 bytes... &nbsp;FAIL Error: Error during<br>
device I/O<br>
<br>
More detailed (with SANE_DEBUG_PIXMA=21):<br>
<br>
$ scanimage -T<br>
[sanei_debug] Setting debug level of pixma to 21.<br>
[pixma] pixma version 0.15.0<br>
[pixma] pixma_collect_devices() found Canon imageCLASS MF4010 at<br>
libusb:001:004<br>
[pixma] sanei_bjnp_find_devices:<br>
[pixma] lo is not a valid IPv4 interface, skipping...<br>
[pixma] eth0 is not a valid IPv4 interface, skipping...<br>
[pixma] lo is not a valid IPv4 interface, skipping...<br>
[pixma] eth0 is IPv4 capable, sending broadcast..<br>
[pixma] scanner discovery finished...<br>
[pixma] pixma_find_scanners() found 1 devices<br>
[pixma] pixma_collect_devices() found Canon imageCLASS MF4010 at<br>
libusb:001:004<br>
[pixma] sanei_bjnp_find_devices:<br>
[pixma] lo is not a valid IPv4 interface, skipping...<br>
[pixma] eth0 is not a valid IPv4 interface, skipping...<br>
[pixma] lo is not a valid IPv4 interface, skipping...<br>
[pixma] eth0 is IPv4 capable, sending broadcast..<br>
[pixma] scanner discovery finished...<br>
[pixma] pixma_open(): Canon imageCLASS MF4010<br>
[pixma] Trying to clear the interrupt buffer...<br>
[pixma] &nbsp; no packets in buffer<br>
[pixma] Reader task started<br>
[pixma]<br>
[pixma] pixma_scan(): start<br>
[pixma] &nbsp; line_size=1920 image_size=1683840 channels=3 depth=8<br>
[pixma] &nbsp; dpi=75x75 offset=(0,0) dimension=640x877<br>
[pixma] &nbsp; gamma_table=0x828741c source=0<br>
[pixma] Reader task id=9082 (forked)<br>
scanimage: scanning image of size 640x877 pixels at 24 bits/pixel<br>
scanimage: acquiring RGB frame, 8 bits/sample<br>
scanimage: reading one scanline, 1920 bytes... &nbsp;[pixma] raw_width = 640<br>
[pixma] OUT &nbsp;T=3.345 len=10<br>
[pixma] &nbsp;00000000:f3 20 00 00 00 00 00 00 &nbsp;0c 00<br>
[pixma]<br>
[pixma] IN &nbsp; T=4.353 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 8 sec.<br>
[pixma] IN &nbsp; T=5.359 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 7 sec.<br>
[pixma] IN &nbsp; T=6.366 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 6 sec.<br>
[pixma] IN &nbsp; T=7.373 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 5 sec.<br>
[pixma] IN &nbsp; T=8.380 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 4 sec.<br>
[pixma] IN &nbsp; T=9.386 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 3 sec.<br>
[pixma] IN &nbsp; T=10.394 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 2 sec.<br>
[pixma] IN &nbsp; T=11.400 len=-9<br>
[pixma] &nbsp; ERROR: ETIMEDOUT<br>
[pixma]<br>
[pixma] No response yet. Timed out in 1 sec.<br>
[pixma] WARNING:Error in response phase. cmd:c0dd<br>
[pixma] &nbsp; If the scanner hangs, reset it and/or unplug the USB cable.<br>
[pixma] pixma_scan() failed ETIMEDOUT<br>
[pixma] read_image():reader task closed the pipe:0 bytes received,<br>
1683840 bytes expected<br>
[pixma] Reader task terminated: ETIMEDOUT<br>
FAIL Error: Error during device I/O<br>
[pixma] pixma_close(): Canon imageCLASS MF4010<br>
<br>
<br>
In this case, resetting scanner or unplugging USB cable helps.<br>
<br>
</blockquote></div><br>