OK, it's good to know about the WinUSB set-config limitation. Presumably
the same is true for the set-alt-interface call?

If you're interested, the project I'm porting (from libusb-0.1) is
FPGALink:

http://www.makestuff.eu/wordpress/software/fpgalink/

The performance difference is staggering. The libusb-0.1-based version
did about 26MiB/s, whereas the libusbx-based version pretty much maxes
out the bus, achieving about 43MiB/s, at least on Linux. Windows
performance is less impressive (something like 33MiB/s IIRC). I'm hoping
the forthcoming support for the libusbK back-end will improve that.

Interestingly I have been using my own fxload replacement for several
years, which I have now ported to libusbx (but not yet pushed to
github):

http://www.makestuff.eu/wordpress/software/fx2tools/

I tried setting the debug level higher but it had no effect; I suspect
the Windows and Ubuntu binaries hard-code it disabled. I'll try building
from source tomorrow.

In any event, I think I might have found my problem, and it's (surprise
surprise) in the firmware. The FX2 is...eccentric. I got everything
working nicely on Linux, Windows and MacOSX with both libusb-0.1 and
libusbx, but then made some supposedly innocuous firmware mods without
sufficient libusbx regression-testing; it worked with libusb-0.1 on
Linux so I went ahead and checked in the changes, but now I see that my
libusbx regression test fails, even on Linux. So I suspect I did
something silly to the firmware. I will trawl back through the
commit-log and try to get back to a known-good state.

Chris


On Mon, 2012-09-03 at 22:23 +0100, Pete Batard wrote:
<snip>


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to