On Mon, Jan 21, 2013 at 8:04 PM, Solovjev P.S. <solov...@rain.ifmo.ru> wrote: > I sent the files as standard attachments (not as text), but apparently > github converted attachment to the text. > zip file attached to this email. > > Device descriptors are added to the attachment. > > Best result was with libusbx (git) + libusbK. But last transfer to > control endpoint with error (see logs).
Thanks. Now the debug log helps. 1) Firstly this is an USB composite device with 4 interfaces: Interface 0: Audio Control (using control endpoint only) Interface 1: Audio Streaming (EP03, ISOC OUT) Interface 2: HID (EP81, Interrupt IN) Interface 3: Custom interface (using control endpoint only). What is the interface you want to use in your application? I believe it is Interface 3 for your DFU. DFU uses control endpoint only so it matches with your device. 2) For libubsx 1.0.14, there is an issue which already fixed in git. https://github.com/libusbx/libusbx/commits/master https://github.com/libusbx/libusbx/commit/09759d5836766fb3b886824cd669bc0dfc149d00 That explained the error message you see in "log_1.0.14_with_WinUSB.txt". [ 0.124797] [000016bc] libusbx: debug [libusb_open] could not open device: LIBUSB_ERROR_ACCESS Cannot open device 3) How do you install the driver? Do you install the driver over the whole USB composite device or only the specific interface? You should use Zadig to install the device driver for interface 3. 4) You are using a DFU program. What is the program? Do you have the URL? 5) The DFU program seems to need to support USB reset. Take note WinUSB.sys will not support that. "Device really in Runtime Mode, send DFU detach request... Resetting USB..." 6) It seems to me the DFU program may need some modification to suit your device. Apparently Interface 0 is not what you want, rather interface 3 is what you want. Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2012 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to dfu-u...@lists.gnumonks.org Opening DFU capable USB device... ID 275c:0003 Run-time device DFU version 0110 Claiming USB DFU Runtime Interface... Determining device status: state = appIDLE, status = 0 Device really in Runtime Mode, send DFU detach request... Resetting USB... Opening DFU USB Device... Found DFU: [275c:0003] devnum=0, cfg=1, intf=0, alt=0, name="UNDEFINED" Claiming USB DFU Interface... Setting Alternate Setting #0 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 0110 Device returned transfer size 64 Dfu suffix version 100 bytes_per_hash=1065 Copying data from PC to DFU device Starting download: [sign_endpoints] no endpoints found for interface 0 [ 2.243384] [00000b08] libusbx: debug [winusbx_submit_control_transfer] will use interface 0 -- Xiaofan ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel