Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-18 Thread Peter Stuge
John Chen wrote: > Would you please show me how did you get bmRequestType to value 0xC2. Please see the USB 2.0 spec 9.3.1 bmRequestType Table 9-2 page 248. http://www.usb.org/developers/docs/usb_20_10.zip //Peter -

Re: [Libusbx-devel] Map DeviceIoControl calls to libusb_control_transfer

2012-07-18 Thread John Chen
Tom, Would you please show me how did you get bmRequestType to value 0xC2. Many thanks. John On Mon, Jul 16, 2012 at 5:37 PM, Tim Roberts wrote: > John Chen wrote: > > > I need to convert a legacy app from win api calls to libusbx, most of the > legacy app is using DeviceIoControl , from lib

Re: [Libusbx-devel] Bus address of root hub

2012-07-18 Thread Pete Batard
On 2012.07.16 19:06, Pete Batard wrote: I have now logged an enhancement [1], currently targeted at 1.0.14, to see if we can ensure that root hubs identified by libusbx always have the same address, across all platforms. As part of this enhancement, the attached patch will ensure that root hub

Re: [Libusbx-devel] Bus address of root hub

2012-07-18 Thread Pete Batard
On 2012.07.18 15:58, Peter Stuge wrote: > Well the HC is not a USB device, so it does not fit into the > libusb-1.0 API device model, which is (only) for USB devices. This, I agree with, as long as we differentiate the HC part and the root hub part. > Again, the root hub is not a USB device Thi

Re: [Libusbx-devel] Bus address of root hub

2012-07-18 Thread Peter Stuge
Markus wrote: > I can't see a generally reliable way to get my hands on the HC > information while at the same time, being able to infer which > devices are connected (by means of libusb_get_bus_number() result). > Do I overlook something here? Well the HC is not a USB device, so it does not f

Re: [Libusbx-devel] Bus address of root hub

2012-07-18 Thread Alan Stern
On Wed, 18 Jul 2012, Markus wrote: > Hi Pete, > > thanks for you detailed reply. > > In the end it boils down to whether there is a chance to match > devices found by libusbx to a certain host controller. > > I can't see a generally reliable way to get my hands on the HC > information while at

Re: [Libusbx-devel] Bus address of root hub

2012-07-18 Thread Markus
Hi Pete, thanks for you detailed reply. In the end it boils down to whether there is a chance to match devices found by libusbx to a certain host controller. I can't see a generally reliable way to get my hands on the HC information while at the same time, being able to infer which devices are

Re: [Libusbx-devel] libusb_control_transfer() stalls

2012-07-18 Thread Markus
On Wed, 18 01:54 , Pete Batard wrote: > > Thanks for the info. I was hoping I could get my hands on an FX2 to > possibly add an upload feature to xusb that can be used against both FX2 > and FX3 (as the FX2 is more widespread), but I doubt I'll have a chance > to do that, so I'll probably just