[sane-devel] Problems with libusb and Snapscan 1236U (maybe similar to others): USB dump

Oliver Schwartz Oliver.Schwartz@gmx.de
Fri, 5 Mar 2004 00:31:17 +0100


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> With libusb? I don't think so. But counting packets works fine.
> I've implemented it in the mustek_usb backend now and (at least for
> me) there are no more timeouts.

I have to admit this is a bit above my head. How do I know how many=20
urbs are sent / received if I do a bulk transfer? It seems you're=20
using an estimate in mustek_usb, but how do you know how many bytes=20
you're transferring in one urb? Even if I find out this number for my=20
scanner model, how would I know if it is correct for all other=20
scanner modules the backend supports?

I must say I quite dislike the whole idea of making an estimate on the=20
number of urbs in the backend. Shouldn't this be handled in libusb=20
directly?=20

=2D -Oliver
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAR7xI/V6sbrmfIuMRAg5GAJ9ky6jFbZB+zSNAfIcRZeiZHF4MmACfS9WL
2JW+s6/V/olouLUDEBm0PGE=3D
=3DzCYL
=2D----END PGP SIGNATURE-----