Ok, thanks, I'm going to take a look over the code as I'm interested in helping out if possible & gaining some familiarity.<br><br>The list bounced the last message due to the attachement size being over the 100k limit, so I'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"><<a href="mailto:nicolas.martin@freesurf.fr">nicolas.martin@freesurf.fr</a>></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'm just figuring out<br>
there'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">> Great, thanks.<br>
><br>
> I have not had time to do any analysis yet, but I have taken a snoop<br>
> trace under windows as you suggested (zipped trace attached).<br>
><br>
> One additional bit of info is that the scanner would not work under<br>
> windows until I power-cycled it, similar to Linux, printer said<br>
> "scanning mode" but the applications found it unresponsive.<br>
><br>
> I guess this means the sane initialisation messages must be wrong, as<br>
> it appears the scanner ends up in a funny state after attempting to<br>
> use it on Linux?<br>
><br>
> The trace attached captures the following actions<br>
> - Plug in the USB to the printer<br>
> - Press the "Scan" button on the device<br>
> - Open the Canon MF toolbox application to perform a scan<br>
> - Initiate a scan from software (not via the printer button)<br>
> - Scan one blank page<br>
> - Stop and save snoop trace<br>
><br>
> Thanks,<br>
><br>
> Steve<br>
><br>
><br>
><br>
> 2009/1/18 Nicolas Martin <<a href="mailto:nicolas.martin@freesurf.fr">nicolas.martin@freesurf.fr</a>><br>
> Thanks for this log, will review it with Dennis Lou, who wrote<br>
> the<br>
> ImageClass part of the pixma backend, and will keep you<br>
> posted.<br>
><br>
> Seems like it is always failing on the select_source message,<br>
> maybe the<br>
> scanner does not expect it as is, and this may require to get<br>
> a Windows<br>
> snoop trace (using SnoopyPro, this is very easy to do), to<br>
> check if some<br>
> protocol messages are different for this MFP.<br>
><br>
> Nicolas<br>
><br>
><br>
> Le dimanche 18 janvier 2009 à 09:39 +0000, Steve Hardy a<br>
> écrit :<br>
><br>
> > Ok, so I've taken the more detailed logs :<br>
> ><br>
> > $ scanimage -L<br>
> > device `pixma:04A926B0_4175H0007854' is a CANON Canon<br>
> imageCLASS<br>
> > 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 2> /tmp/sane_dbg_log_mf4660_01.txt<br>
> ><br>
> > As observed before, it appears that the initial writes are<br>
> working<br>
> > (since the scanner is getting set to "Scanning Mode"<br>
> according to the<br>
> > 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<br>
> > 00 . ........<br>
> > [sanei_usb] sanei_usb_write_bulk: wanted 10 bytes, wrote 10<br>
> bytes<br>
> > [pixma] OUT T=3.474 len=10<br>
> > [pixma] 00000000:db 20 00 00 00 00 00 00 00 00<br>
> > [pixma]<br>
> > [sanei_usb] sanei_usb_read_bulk: trying to read 2 bytes<br>
> > [sanei_usb] 000 06 06<br>
> ..<br>
> > [sanei_usb] sanei_usb_read_bulk: wanted 2 bytes, got 2 bytes<br>
> > [pixma] IN T=3.510 len=2<br>
> > [pixma] 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<br>
> > 00 . ..............<br>
> > [sanei_usb] 010 00 00 00 00 FF<br>
> .....<br>
> > [sanei_usb] sanei_usb_write_bulk: wanted 21 bytes, wrote 21<br>
> bytes<br>
> > [pixma] OUT T=3.510 len=21<br>
> > [pixma] 00000000:dd 20 00 00 00 00 00 00 0b 00 01 00 00 00<br>
> 00 00<br>
> > [pixma] 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 T=3.513 len=-9<br>
> > [pixma] ERROR: ETIMEDOUT<br>
> > [pixma]<br>
><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 : 0845 8678251<br>Fax : 0845 8678241<br>