[sane-devel] Canon CanoScan CS3200F backend

Paweł Drewniak czajernia at gmail.com
Sun Feb 24 11:20:54 UTC 2008


The cs3200f experimental backend has not been developed for quite a while.
There was an unresolved bug where on some faster CPUs SANE failed to read
back the firmware. - please see
http://www.scanners-on-linux.com/node/43
I looked into it a bit, and found out that for some unknown reason, bytes
read must divide by 512 - otherwise sanei_usb_read_bulk will hang or return
EOF.
So here's the patch that I made - after applying, scanner finally worked.
Hope this could be useful for somebody.

Regards,
Paweł Drewniak

Index: cs3200f-drv.c
===================================================================
RCS file: /cvsroot/sane/experimental/cs3200f/cs3200f-drv.c,v
retrieving revision 1.2
diff -u -r1.2 cs3200f-drv.c
--- cs3200f-drv.c       31 Mar 2006 18:55:51 -0000      1.2
+++ cs3200f-drv.c       24 Feb 2008 11:16:01 -0000
@@ -85,7 +85,7 @@
  ***********************************************************************/

 #define FW_SIZE 39492
-#define FW_BUF_LEN ((FW_SIZE+63)&(~63))
+#define FW_BUF_LEN (FW_SIZE+444)

 static const unsigned char fw_md5_ref[16] =
   { 0xFF, 0x0C, 0xAE, 0x40, 0x3C, 0x64, 0x6B, 0x9A,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080224/b5a5c2f9/attachment.htm 


More information about the sane-devel mailing list