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 relea

Re: [Libusbx-devel] libusb_control_transfer() stalls

2012-06-14 Thread Xiaofan Chen
On Thu, Jun 14, 2012 at 4:30 AM, Markus wrote: > On Wed, 13  11:55 , Tim Roberts wrote: >> >> OK, please allow me to ask a foolish question.  Do you really have an >> FX3, and not an FX2? >> > > You may; I might ask the one or other foolish question too on > this list in the future. > > But if it

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 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 should be

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

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 v1.0.12-RC1 now available

2012-06-14 Thread Sean McBride
On Tue, 12 Jun 2012 18:31:14 +0200, Ludovic Rousseau said: >I have similar warnings under Mac OS X when using -fstrict-aliasing in CFLAGS. > >$ make >make all-recursive >Making all in libusb > CC libusb_1_0_la-core.lo > CC libusb_1_0_la-descriptor.lo > CC libusb_1_0_la-io.lo

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 au

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

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 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 Open A

Re: [Libusbx-devel] libusb_control_transfer() stalls

2012-06-14 Thread Orin Eman
On Wed, Jun 13, 2012 at 6:29 AM, Xiaofan Chen wrote: > On Wed, Jun 13, 2012 at 9:17 PM, Markus wrote: > > On Wed, 13 13:24 , Pete Batard wrote: > >> > >> When achievable, being able to have a look at the data being sent on the > >> bus usually pays off, especially if you're not sure where to lo

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

2012-06-14 Thread Sean McBride
On Wed, 13 Jun 2012 14:03:22 +0100, Pete Batard said: >Now, I am still getting the following warnings, that look like false >positives, but that I have no clue how to address yet. > >--- >$ scan-build make >make all-recursiv

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.

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 devl

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 sui