[sane-devel] Imageclass d530

Rolf Bensch rolf at bensch-online.de
Tue Dec 17 18:49:37 UTC 2013


Hi Nate,

I found 2 possible problems:
(1) It seems that the timeout isn't working. There's a patch for
pixma_common.c.
(2) The Windows driver sends a status request between send scan
parameters and request image block. There's a patch for pixma_imageclass.c.

Please try the patches one by one in the order shown above. If this
doesn't help, please create pixma.log again and an additional log file
with wireshark at the same time.

Cheers,
Rolf


Am 17.12.2013 18:13, schrieb Nate Fuhriman:
> still has issues. pixma.log attached.
> 
-------------- next part --------------
--- ./pixma_common.c	2013-12-17 19:20:17.000000000 +0100
+++ ../sane-backends/backend/pixma_common.c	2013-12-17 19:20:28.000000000 +0100
@@ -655,7 +655,10 @@
     {
       error = pixma_read (s->io, data, expected_len);
       if (error == PIXMA_ETIMEDOUT)
+      {
         PDBG (pixma_dbg (2, "No response yet. Timed out in %d sec.\n", tmo));
+        pixma_sleep (1000000);
+      }
     }
   while (error == PIXMA_ETIMEDOUT && --tmo != 0);
   if (error < 0)
-------------- next part --------------
--- ./pixma_imageclass.c	2013-12-17 19:20:17.000000000 +0100
+++ ../sane-backends/backend/pixma_imageclass.c	2013-12-17 19:20:32.000000000 +0100
@@ -565,6 +565,8 @@
   if (error >= 0)
     error = send_scan_param (s);
   if (error >= 0)
+    error = query_status (s);
+  if (error >= 0)
     error = request_image_block (s, 0, &ignore, &ignore2, &ignore, &ignore2);
   if (error < 0)
     {


More information about the sane-devel mailing list