I plugged the device into a linux box and got some better error messages.
 "bConfigurationValue" above should be 1 instead of 0, and I was not
respected wLength from the GET_DESCRIPTOR setup packet.  And I had a struct
padding problem.  After fixing all those things I can now libusb_open()
under cygwin, woohoo!

Dan.


On Thu, Apr 18, 2013 at 1:47 PM, Daniel Goertzen <
d...@networkintegritysystems.com> wrote:

> Thanks Tim.  Descriptors below.  I have no endpoints; I want to fool with
> control transactions first(little steps).  Total length is 18.
>
> Dan.
>
> static const configuration_descriptor_t static_config = {
>  sizeof(configuration_descriptor_t), // bLength
> 0x02, // bDescriptorType
> 0, // wTotalLength (calculate later)
>  1, // bNumInterfaces
> 0, // bConfigurationValue
> 4, // iConfiguration
>  0x80, // bmAttributes
> 250 // bMaxPower
> };
>
> static const interface_descriptor_t static_iface = {
> sizeof(interface_descriptor_t), // bLength
>  0x4, // bDescriptorType
> 0, // bInterfaceNumber
> 0, // bAlternateSetting
>  0, // bNumEndpoints
> 0xff, // bInterfaceClass
> 0xff, // bInterfaceSubClass
>  0xff, // bInterfaceProtocol
> 5 // iInterface
> };
>
>
>
> On Thu, Apr 18, 2013 at 12:23 PM, Tim Roberts <t...@probo.com> wrote:
>
>> Daniel Goertzen wrote:
>> > I have libusbx compiling under cygwin now and can look at the device
>> > descriptors for all attached devices, but I cannot libusb_open() my
>> > device.  The error given is -12 (LIBUSB_ERROR_NOT_SUPPORTED).
>> >
>> > I ran zadig and bound my device to WinUSB, but still no luck (I have
>> > to admit, I don't exactly understand how that all works).
>> >
>> > One thing of note, zadig shows the WinUSB version number as
>> > 6.1.76000.16385, whereas the version number on my Windows 8 system
>> > is 6.2.9200.16384.
>>
>> 7600 is the master build number for Win 7.  9200 is the master build
>> number for Win 8.  The WinUSB installation process only installs the DLL
>> and driver if the version is newer than what's already on the system.
>>
>>
>> > Also of note, I am trying to connect to a LPC11u24 with unproven
>> > firmware.  The uC is seeing GET_DESCRIPTOR and SET_ADDRESS commands
>> > and nothing else.  My device descriptor is below.
>>
>> What does the configuration descriptor look like?
>>
>> --
>> Tim Roberts, t...@probo.com
>> Providenza & Boekelheide, Inc.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> libusbx-devel mailing list
>> libusbx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/libusbx-devel
>>
>
>
>
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to