Re: [Libusbx-devel] [PATCH 1/2] Core: Fix Clang warnings v2

2012-06-14 Thread Pete Batard
The 2 Clang patches as well as the speed designation patch suggested by Xiaofan have now been pushed to git. As changes were applied to core, if you have an opportunity to test before release, please do so. These warning fixes should be fairly safe, but you never know... Official v1.0.12

Re: [Libusbx-devel] [PATCH 1/2] Core: Fix Clang warnings v2

2012-06-14 Thread Xiaofan Chen
On Thu, Jun 14, 2012 at 7:50 PM, Pete Batard p...@akeo.ie wrote: The 2 Clang patches as well as the speed designation patch suggested by Xiaofan have now been pushed to git. As changes were applied to core, if you have an opportunity to test before release, please do so. These warning fixes

Re: [Libusbx-devel] libusb_control_transfer() stalls

2012-06-14 Thread Markus
On Wed, 13 13:24 , Pete Batard wrote: Well, all I can say is that we seem to be getting a stall report by WinUSB indeed. ... If you see the expected 0x4000 wValue, and the rest of the request is the same, then the problem is likely to be with the device rather than libusbx or WinUSB.

Re: [Libusbx-devel] libusb_control_transfer() stalls

2012-06-14 Thread Pete Batard
On 2012.06.14 15:43, Markus wrote: when looking at the URBs, I don't spot any difference except for the address. (...) I'm getting increasingly convinced that it's a device issue. Looks that way. If the values you get in the Control requests are the one you populated in the app, there's not

Re: [Libusbx-devel] libusbx v1.0.12-RC1 now available

2012-06-14 Thread Pete Batard
On 2012.06.12 14:37, Xiaofan Chen wrote: I think I have mentioned this before, the new VS11 Beta can not convert the existing VS2010 project properly. I don't have access to the 2011 beta, but given Microsoft's history with Visual Studio, it's not surprising... I think this is not a real

Re: [Libusbx-devel] libusb_control_transfer() stalls

2012-06-14 Thread Pete Batard
Hi Markus, On 2012.06.12 15:32, Markus wrote: I'd like to replace a vendor tool for firmware download to a developement board by using libusbx. OK. As of now, I can read and write memory by using vendor request control transfers. According to the manufacturer this is the way to go for

Re: [Libusbx-devel] libusbx and Zadig?

2012-06-14 Thread Peter Stuge
g...@novadsp.com wrote: Assuming I need a user-mode interface to a custom USB Bulk class device: 1. Can I use Zadig to install a WinUSB driver for the VID/PID? Yes, that's one of the things it is meant for. You can also use libwdi in your own program, to do what zadig does, but in a more

Re: [Libusbx-devel] libusbx and Zadig ...?

2012-06-14 Thread g...@novadsp.com
Hello Pete, On 13/06/2012 10:38, Pete Batard wrote: Absolutely. This is what Zadig was designed for. Does Zadig have its own list? Wondering about Zadig .INF files and Nullsoft/Inno style installers. 2. If Zadig installs the driver correctly, can I then simply open the device using the

Re: [Libusbx-devel] Allow sending of SET_CONFIGURATION for active configuration in Windows

2012-06-14 Thread Xiaofan Chen
On Wed, Jun 13, 2012 at 7:04 PM, Toby Gray toby.g...@realvnc.com wrote: Sorry, my email client decided to send that email as HTML. Here is the contents as plain text: On 13/06/12 11:13, Toby Gray wrote: Hi, I've been trying to use libusbx to connect to an Android device via the Android

Re: [Libusbx-devel] libusb_control_transfer() stalls

2012-06-14 Thread Tim Roberts
Markus wrote: Thanks, Pete. As Wireshark doesn't capture USB on Windows, it looks as I'll have to resort to a proprietary tool. Can you (or somebody else reading the list) recommend something worthwhile in a price range 500$ ? I've used USB Monitor from HHD Software for many years. Their

Re: [Libusbx-devel] [PATCH 1/2] Core: Fix Clang warnings

2012-06-14 Thread Pete Batard
On 2012.06.13 19:19, Sean McBride wrote: Have you looked at the HTML that scan-build generates? Good point. Now that looked at it more closely, it is possible to fix the issue at core.c:647 by switching a malloc to a calloc. What happens there is that Clang sees a path where we may have a

Re: [Libusbx-devel] libusbx and Zadig ...?

2012-06-14 Thread Pete Batard
On 2012.06.13 12:19, g...@novadsp.com wrote: Does Zadig have its own list? Wondering about Zadig .INF files and Nullsoft/Inno style installers. Yes it does. See https://lists.sourceforge.net/lists/listinfo/libwdi-devel It should also be OK to send Zadig/libwdi requests on this list if it