Ok, thanks, I&#39;m going to take a look over the code as I&#39;m interested in helping out if possible &amp; gaining some familiarity.<br><br>The list bounced the last message due to the attachement size being over the 100k limit, so I&#39;ve temporarily put the USB trace at <a href="http://www.appliedrealtime.co.uk/tmp/USBLog1_MF4660.zip">http://www.appliedrealtime.co.uk/tmp/USBLog1_MF4660.zip</a> <br>
<br>Steve<br><br><div class="gmail_quote">2009/1/18 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;">
Thanks for the log, this will be very helpful, as I&#39;m just figuring out<br>
there&#39;s something weird with the dd20 (select_source) message, the<br>
length is one byte too long (but it apparently used to work with the<br>
MF4270, MF4140 and MF4150), so I really need to review that with Dennis<br>
(did not discuss with him yet) before proposing a change.<br>
<br>
Will keep you posted anyway.<br>
<br>
Nicolas<br>
<br>
Le dimanche 18 janvier 2009 à 12:24 +0000, Steve Hardy a écrit :<br>
<div><div></div><div class="Wj3C7c">&gt; Great, thanks.<br>
&gt;<br>
&gt; I have not had time to do any analysis yet, but I have taken a snoop<br>
&gt; trace under windows as you suggested (zipped trace attached).<br>
&gt;<br>
&gt; One additional bit of info is that the scanner would not work under<br>
&gt; windows until I power-cycled it, similar to Linux, printer said<br>
&gt; &quot;scanning mode&quot; but the applications found it unresponsive.<br>
&gt;<br>
&gt; I guess this means the sane initialisation messages must be wrong, as<br>
&gt; it appears the scanner ends up in a funny state after attempting to<br>
&gt; use it on Linux?<br>
&gt;<br>
&gt; The trace attached captures the following actions<br>
&gt; - Plug in the USB to the printer<br>
&gt; - Press the &quot;Scan&quot; button on the device<br>
&gt; - Open the Canon MF toolbox application to perform a scan<br>
&gt; - Initiate a scan from software (not via the printer button)<br>
&gt; - Scan one blank page<br>
&gt; - Stop and save snoop trace<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Steve<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2009/1/18 Nicolas Martin &lt;<a href="mailto:nicolas.martin@freesurf.fr">nicolas.martin@freesurf.fr</a>&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Thanks for this log, will review it with Dennis Lou, who wrote<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; ImageClass part of the pixma backend, and will keep you<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; posted.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Seems like it is always failing on the select_source message,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; maybe the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; scanner does not expect it as is, and this may require to get<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; a Windows<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; snoop trace (using SnoopyPro, this is very easy to do), to<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; check if some<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; protocol messages are different for this MFP.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Nicolas<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Le dimanche 18 janvier 2009 à 09:39 +0000, Steve Hardy a<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; écrit :<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Ok, so I&#39;ve taken the more detailed logs :<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; $ scanimage -L<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; device `pixma:04A926B0_4175H0007854&#39; is a CANON Canon<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; imageCLASS<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; MF4690 multi-function peripheral<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; $ export SANE_DEBUG_PIXMA=10<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; $ export SANE_DEBUG_SANEI_USB=255<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; $ export SANE_DEBUG=255<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; $ export SANE_DEBUG_PIXMA=21<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; $ scanimage -T &nbsp;2&gt; /tmp/sane_dbg_log_mf4660_01.txt<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; As observed before, it appears that the initial writes are<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; working<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; (since the scanner is getting set to &quot;Scanning Mode&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; according to the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; front panel display), but the reads are all timing out :<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_write_bulk: trying to write 10 bytes<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] 000 DB 20 00 00 00 00 00 00 00<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; 00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; . ........<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; bytes<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] OUT &nbsp;T=3.474 len=10<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] &nbsp;00000000:db 20 00 00 00 00 00 00 &nbsp;00 00<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma]<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] 000 06 06<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ..<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 2 bytes<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] IN &nbsp; T=3.510 len=2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] &nbsp;00000000:06 06<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma]<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_write_bulk: trying to write 21 bytes<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] 000 DD 20 00 00 00 00 00 00 0B 00 01 00 00 00 00<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; 00 . ..............<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] 010 00 00 00 00 FF<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.....<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_write_bulk: wanted 21 bytes, wrote 21<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; bytes<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] OUT &nbsp;T=3.510 len=21<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] &nbsp;00000000:dd 20 00 00 00 00 00 00 &nbsp;0b 00 01 00 00 00<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 00 00<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] &nbsp;00000010:00 00 00 00 ff<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma]<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [sanei_usb] sanei_usb_read_bulk: read returned EOF<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] BUG:Unmapped SANE Status code 5<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] IN &nbsp; T=3.513 len=-9<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma] &nbsp; ERROR: ETIMEDOUT<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; [pixma]<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>