On Thu, Apr 1, 2010 at 6:21 PM, Ivan Dodig <madi...@gmail.com> wrote:
> Well there has to be. I'm using the application provided with the firmware
> to blink a LED on the board. Don't think that would be possible without an
> OUT endpoint. Can you please specify what do you think is wrong with the
> listing? As far as I know it shows one more interface (control 0 is not
> shown) and that's OK?
>
>> >
>> > bus/device  idVendor/idProduct
>> > bus-0/\\.\libusb0-0004--0x04cc-0x1235     04CC/1235
>> > - Manufacturer : NXP Semiconductors
>> > - Product      : Keil MCB2140 HID
>> > - Serial Number: DEMO
>> >   wTotalLength:         41
>> >   bNumInterfaces:       1
>> >   bConfigurationValue:  1
>> >   iConfiguration:       0
>> >   bmAttributes:         80h
>> >   MaxPower:             50
>> >     bInterfaceNumber:   0
>> >     bAlternateSetting:  0
>> >     bNumEndpoints:      1
>> >     bInterfaceClass:    3
>> >     bInterfaceSubClass: 0
>> >     bInterfaceProtocol: 0
>> >     iInterface:         86
>> >       bEndpointAddress: 81h
>> >       bmAttributes:     03h
>> >       wMaxPacketSize:   1
>> >       bInterval:        32
>> >       bRefresh:         0
>> >       bSynchAddress:    0

It is very clear that you do not have an OUT Endpoint. So your
program will of course fail. Your device only has one IN endpoint,
which is 0x81.

As for the LED thingy, it can be done with a feature report
through the Control Transfer. That is indeed the case
for most USB keyboard.

For reference:
http://www.microchip.com/forums/tm.aspx?m=435855


-- 
Xiaofan http://mcuee.blogspot.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to