[sane-devel] One Step Closer to Mac OS X Support

Karl Heinz Kremer khk at khk.net
Sun Nov 3 20:59:20 GMT 2002


I almost got my backend working today with Mac OS X. The most
important step was a fix to sanei_usb.c (the diff is attached
to this email). I am not that familiar with USB in general
or libusb to determine if this is safe for all platforms. 
all I know is it works on Linux as well. 

After corecting one byteorder problem in my backend, I was
actually able to initialize the backend, report all the 
options to XSane (including the dynamic stuff frm the
scanner) and to start a scan. I then got all the data
for a low resolution scan, but the acknowledge message
that the backend sends to the scanner never made it out -
the bulk write command just hangs. 

Karl Heinz

-- 
Karl Heinz Kremer                                  khk at khk.net
PGP Key at                 http://www.khk.net/download/khk.asc
EPSON Sane Backend:                         http://www.khk.net
-------------- next part --------------
--- sanei_usb.c.ORIG	Sun Nov  3 15:49:06 2002
+++ sanei_usb.c	Sun Nov  3 15:50:41 2002
@@ -542,7 +542,7 @@
 		     "(address: %d), ignoring the new one\n",
 		     devices[devcount].bulk_in_ep);
 	      else
-		devices[devcount].bulk_in_ep = address;
+		devices[devcount].bulk_in_ep = endpoint->bEndpointAddress;
 	    }
 	  else
 	    {
@@ -551,7 +551,7 @@
 		     "(address: %d), ignoring the new one\n",
 		     devices[devcount].bulk_out_ep);
 	      else
-		devices[devcount].bulk_out_ep = address;
+		devices[devcount].bulk_out_ep = endpoint->bEndpointAddress;
 	    }
 	}
 #else /* not HAVE_LIBUSB */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20021103/5358dcb3/attachment.sig>


More information about the sane-devel mailing list