Ok, so I&#39;ve taken the more detailed logs : <br><br>$ scanimage -L<br>device `pixma:04A926B0_4175H0007854&#39; is a CANON Canon imageCLASS MF4690 multi-function peripheral<br>$ export SANE_DEBUG_PIXMA=10<br>$ export SANE_DEBUG_SANEI_USB=255<br>
$ export SANE_DEBUG=255<br>$ export SANE_DEBUG_PIXMA=21<br>$ scanimage -T&nbsp; 2&gt; /tmp/sane_dbg_log_mf4660_01.txt<br><br>As observed before, it appears that the initial writes are working (since the scanner is getting set to &quot;Scanning Mode&quot; according to the front panel display), but the reads are all timing out :<br>
<br>[sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes<br>[sanei_usb] 000 DB 20 00 00 00 00 00 00 00 00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; . ........<br>[sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10 bytes<br>[pixma] OUT&nbsp; T=3.474 len=10<br>
[pixma]&nbsp; 00000000:db 20 00 00 00 00 00 00&nbsp; 00 00<br>[pixma]<br>[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes<br>[sanei_usb] 000 06 06&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ..<br>[sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 2 bytes<br>
[pixma] IN&nbsp;&nbsp; T=3.510 len=2<br>[pixma]&nbsp; 00000000:06 06<br>[pixma]<br>[sanei_usb] sanei_usb_write_bulk: trying to write 21 bytes<br>[sanei_usb] 000 DD 20 00 00 00 00 00 00 0B 00 01 00 00 00 00 00 . ..............<br>[sanei_usb] 010 00 00 00 00 FF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .....<br>
[sanei_usb] sanei_usb_write_bulk: wanted 21 bytes, wrote 21 bytes<br>[pixma] OUT&nbsp; T=3.510 len=21<br>[pixma]&nbsp; 00000000:dd 20 00 00 00 00 00 00&nbsp; 0b 00 01 00 00 00 00 00<br>[pixma]&nbsp; 00000010:00 00 00 00 ff<br>[pixma]<br>[sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes<br>
[sanei_usb] sanei_usb_read_bulk: read returned EOF<br>[pixma] BUG:Unmapped SANE Status code 5<br>[pixma] IN&nbsp;&nbsp; T=3.513 len=-9<br>[pixma]&nbsp;&nbsp; ERROR: ETIMEDOUT<br>[pixma]<br><br>gzipped full log is attached<br><br><br><div class="gmail_quote">
2009/1/17 Nicolas Martin <span dir="ltr">&lt;<a href="mailto:nicolas.martin@freesurf.fr">nicolas.martin@freesurf.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">[pixma] BUG:Unmapped SANE Status code 5<br>
<br>
</div>Something happens during the usb transaction, probably in<br>
sanei_usb_read_bulk() , here (seems like no data is read from scanner):<br>
<br>
 &nbsp;if (read_size == 0)<br>
 &nbsp; &nbsp;{<br>
 &nbsp; &nbsp; &nbsp;DBG (3, &quot;sanei_usb_read_bulk: read returned EOF\n&quot;);<br>
 &nbsp; &nbsp; &nbsp;*size = 0;<br>
==&gt; &nbsp; return SANE_STATUS_EOF;<br>
 &nbsp; &nbsp;}<br>
<br>
So let&#39;s dig a little bit more.<br>
Could you run the scanimage command like this:<br>
<br>
$ export SANE_DEBUG_SANEI_USB=255<br>
$ export SANE_DEBUG=255<br>
$ export SANE_DEBUG_PIXMA=21<br>
$ scanimage -T &nbsp;2&gt; /tmp/logfile<br>
<br>
zip, and send back the file /tmp/logfile you get.<br>
<br>
But I&#39;ll also map the error code 5 (SANE_STATUS_EOF) in the backend to<br>
get a more explicit error message.<br>
<br>
Nicolas<br>
<br>
Le samedi 17 janvier 2009 à 15:51 +0000, Steve Hardy a écrit :<br>
<div><div></div><div class="Wj3C7c">&gt; Great, thanks for the quick reply!<br>
&gt;<br>
&gt; Here is the output of the scanimage -T<br>
&gt;<br>
&gt; $ export SANE_DEBUG_PIXMA=10<br>
&gt; $ scanimage -T<br>
&gt; [sanei_debug] Setting debug level of pixma to 10.<br>
&gt; [pixma] pixma version 0.15.0<br>
&gt; [pixma] pixma_collect_devices() found Canon imageCLASS MF4690 at<br>
&gt; libusb:005:004<br>
&gt; [pixma] sanei_bjnp_find_devices:<br>
&gt; [pixma] eth0 is IPv4 capable, sending broadcast..<br>
&gt; [pixma] pixma_find_scanners() found 1 devices<br>
&gt; [pixma] pixma_collect_devices() found Canon imageCLASS MF4690 at<br>
&gt; libusb:005:004<br>
&gt; [pixma] sanei_bjnp_find_devices:<br>
&gt; [pixma] eth0 is IPv4 capable, sending broadcast..<br>
&gt; [pixma] pixma_open(): Canon imageCLASS MF4690<br>
&gt; [pixma] Trying to clear the interrupt buffer...<br>
&gt; [pixma] &nbsp; no packets in buffer<br>
&gt; [pixma] Reader task id=12781 (forked)<br>
&gt; scanimage: scanning image of size 640x877 pixels at 24 bits/pixel<br>
&gt; scanimage: acquiring RGB frame, 8 bits/sample<br>
&gt; scanimage: reading one scanline, 1920 bytes... &nbsp; &nbsp;[pixma] Reader task<br>
&gt; started<br>
&gt; [pixma]<br>
&gt; [pixma] pixma_scan(): start<br>
&gt; [pixma] &nbsp; line_size=1920 image_size=1683840 channels=3 depth=8<br>
&gt; [pixma] &nbsp; dpi=75x75 offset=(0,0) dimension=640x877<br>
&gt; [pixma] &nbsp; gamma_table=0x8ade184 source=0<br>
&gt; [pixma] raw_width = 640<br>
&gt; [pixma] OUT &nbsp;T=3.565 len=10<br>
&gt; [pixma] &nbsp;00000000:f3 20 00 00 00 00 00 00 &nbsp;0c 00<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=3.567 len=14<br>
&gt; [pixma] &nbsp;00000000:06 06 03 00 00 41 03 00 &nbsp;41 10 00 00 00 68<br>
&gt; [pixma]<br>
&gt; [pixma] Current status: paper=0 cal=0 lamp=16<br>
&gt; [pixma] Current status: paper=0 cal=0 lamp=16<br>
&gt; [pixma] OUT &nbsp;T=3.568 len=20<br>
&gt; [pixma] &nbsp;00000000:cf 60 00 00 00 00 00 00 &nbsp;0a 00 01 00 00 00 00 00<br>
&gt; [pixma] &nbsp;00000010:00 00 00 ff<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=3.575 len=2<br>
&gt; [pixma] &nbsp;00000000:06 06<br>
&gt; [pixma]<br>
&gt; [pixma] OUT &nbsp;T=3.575 len=20<br>
&gt; [pixma] &nbsp;00000000:cf 60 00 00 00 00 00 00 &nbsp;0a 00 01 00 00 04 00 00<br>
&gt; [pixma] &nbsp;00000010:00 00 00 fb<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=3.582 len=2<br>
&gt; [pixma] &nbsp;00000000:06 06<br>
&gt; [pixma]<br>
&gt; [pixma] OUT &nbsp;T=3.598 len=10<br>
&gt; [pixma] &nbsp;00000000:db 20 00 00 00 00 00 00 &nbsp;00 00<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=3.633 len=2<br>
&gt; [pixma] &nbsp;00000000:06 06<br>
&gt; [pixma]<br>
&gt; [pixma] OUT &nbsp;T=3.633 len=21<br>
&gt; [pixma] &nbsp;00000000:dd 20 00 00 00 00 00 00 &nbsp;0b 00 01 00 00 00 00 00<br>
&gt; [pixma] &nbsp;00000010:00 00 00 00 ff<br>
&gt; [pixma]<br>
&gt; [pixma] BUG:Unmapped SANE Status code 5<br>
&gt; [pixma] IN &nbsp; T=3.636 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 8 sec.<br>
&gt; [pixma] IN &nbsp; T=4.640 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 7 sec.<br>
&gt; [pixma] IN &nbsp; T=5.645 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 6 sec.<br>
&gt; [pixma] IN &nbsp; T=6.646 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 5 sec.<br>
&gt; [pixma] IN &nbsp; T=7.648 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 4 sec.<br>
&gt; [pixma] IN &nbsp; T=8.652 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 3 sec.<br>
&gt; [pixma] IN &nbsp; T=9.653 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 2 sec.<br>
&gt; [pixma] IN &nbsp; T=10.657 len=-9<br>
&gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; [pixma]<br>
&gt; [pixma] No response yet. Timed out in 1 sec.<br>
&gt; [pixma] WARNING:Error in response phase. cmd:404a<br>
&gt; [pixma] &nbsp; &nbsp;If the scanner hangs, reset it and/or unplug the USB cable.<br>
&gt; [pixma] OUT &nbsp;T=10.657 len=10<br>
&gt; [pixma] &nbsp;00000000:ef 20 00 00 00 00 00 00 &nbsp;00 00<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=10.663 len=2<br>
&gt; [pixma] &nbsp;00000000:06 06<br>
&gt; [pixma]<br>
&gt; [pixma] OUT &nbsp;T=10.663 len=10<br>
&gt; [pixma] &nbsp;00000000:f3 20 00 00 00 00 00 00 &nbsp;0c 00<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=10.667 len=14<br>
&gt; [pixma] &nbsp;00000000:06 06 03 01 00 41 03 00 &nbsp;41 10 00 01 00 66<br>
&gt; [pixma]<br>
&gt; [pixma] Current status: paper=1 cal=0 lamp=16<br>
&gt; [pixma] Current status: paper=1 cal=0 lamp=16<br>
&gt; [pixma] OUT &nbsp;T=10.668 len=10<br>
&gt; [pixma] &nbsp;00000000:f3 20 00 00 00 00 00 00 &nbsp;0c 00<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=10.670 len=14<br>
&gt; [pixma] &nbsp;00000000:06 06 03 01 00 41 03 00 &nbsp;41 10 00 01 00 66<br>
&gt; [pixma]<br>
&gt; [pixma] Current status: paper=1 cal=0 lamp=16<br>
&gt; [pixma] Current status: paper=1 cal=0 lamp=16<br>
&gt; [pixma] OUT &nbsp;T=10.670 len=20<br>
&gt; [pixma] &nbsp;00000000:cf 60 00 00 00 00 00 00 &nbsp;0a 00 01 00 00 00 00 00<br>
&gt; [pixma] &nbsp;00000010:00 00 00 ff<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=10.674 len=2<br>
&gt; [pixma] &nbsp;00000000:06 06<br>
&gt; [pixma]<br>
&gt; [pixma] OUT &nbsp;T=10.674 len=10<br>
&gt; [pixma] &nbsp;00000000:f3 20 00 00 00 00 00 00 &nbsp;0c 00<br>
&gt; [pixma]<br>
&gt; [pixma] IN &nbsp; T=10.677 len=14<br>
&gt; [pixma] &nbsp;00000000:06 06 03 01 00 41 03 00 &nbsp;41 10 00 01 00 66<br>
&gt; [pixma]<br>
&gt; [pixma] Current status: paper=1 cal=0 lamp=16<br>
&gt; [pixma] Current status: paper=1 cal=0 lamp=16<br>
&gt; [pixma] pixma_scan() failed ETIMEDOUT<br>
&gt; [pixma] Reader task terminated: ETIMEDOUT<br>
&gt; [pixma] read_image():reader task closed the pipe:0 bytes received,<br>
&gt; 1683840 bytes expected<br>
&gt; FAIL Error: Error during device I/O<br>
&gt; [pixma] pixma_close(): Canon imageCLASS MF4690<br>
&gt; $<br>
&gt;<br>
&gt; 2009/1/17 Nicolas Martin &lt;<a href="mailto:nicolas.martin@freesurf.fr">nicolas.martin@freesurf.fr</a>&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; This Multifunction scanner should be candidate to be handled<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; by the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; pixma backend, where it is declared.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; In order to check what&#39;s going on, could you run scanimage as<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; follows:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $ export SANE_DEBUG_PIXMA=10<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; $ scanimage -T<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; and send back the content of the console.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Nicolas<br>
&gt;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Steve Hardy<br><br>Applied Realtime Systems Limited<br><a href="http://www.appliedrealtime.co.uk">www.appliedrealtime.co.uk</a><br>Tel &nbsp;: 0845 8678251<br>Fax : 0845 8678241<br>