[sane-devel] Problems with Canon Pixma MP500 on Buffalo Linkstation

Wittawat Yamwong wy-sane-devel at arcor.de
Wed Mar 14 00:09:25 CET 2007


Hi Thomas,

On Tuesday 13 March 2007 20:09, t.tensi at gmx.de wrote:
>
> I have problems with getting sane running on a Buffalo
> Linkstation II with a Canon Pixma MP500 scanner connected to
> the USB port.
>
> Installed is the current sane snapshot from March 11th, but
> I have also been unsuccessful with the stable version 1.18
> before.
>
> [...]
> But whenever I try to scan I get the following output (with DLL
> and PIXMA debug variables set to 128), there is a timeout:
>
> # scanimage -v --format tiff >fred.tif
> ====================
> [sanei_debug] Setting debug level of dll to 128.
> [...]
> [pixma]
> [pixma] OUT  T=2.970 len=16
> [pixma]  00000000:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 0c
> [pixma]
> [pixma] IN   T=2.971 len=20
> [pixma]  00000000:06 06 00 00 00 00 00 00  01 00 00 00 03 00 02 00
> [pixma]  00000010:00 21 00 d9
> [pixma]
> [pixma] Current status: paper=0 cal=0 lamp=0 busy=33
> [pixma] WARNING:Timed out in wait_until_ready()
> [pixma] OUT  T=2.984 len=16
> [pixma]  00000000:f3 20 00 00 00 00 00 00  00 00 00 00 00 00 00 0c
> [pixma]
> [pixma] IN   T=3.000 len=20
> [pixma]  00000000:06 06 00 00 00 00 00 00  01 00 00 00 03 00 02 00
> [pixma]  00000010:00 21 00 d9
> [pixma]

Hmm... It seems that sanei_usb_set_timeout() doesn't work as expected on 
Buffalo Linkstation. The total timeout is actually hardcoded to 60 seconds 
but, from the debug message, it took only 2.984 - 2.971 = 0.013 second before 
timed out. Does the backend work on your desktop(or laptop) computer?

Please try modifying a part of the function wait_until_ready in 
backend/pixma_mp150.c like this:

[...]
  while (!is_calibrated (s))
    {
      pixma_sleep(1000000); /* <========== INSERT THIS LINE */
      error = handle_interrupt (s, 1000);
      if (s->cancel)
        return PIXMA_ECANCELED;
[...]

and run it again.

Regards
-- 
Wittawat Yamwong
Hannover, Germany



More information about the sane-devel mailing list