2011/3/11 Nathan Kelhos <nathankel...@gmail.com>:
> Try "lsusb -vv" and cut off everything that is not related to your device. I
> would like to give a look on your descriptor hierarchy.
>
> Heres the verbose descriptor information for my device:
>
> [nckelley@hawc02 pci0000:00]$ lsusb -vv -d 0403:6001
> Bus 004 Device 007: ID 0403:6001 Future Technology Devices International,
> Ltd FT232 USB-Serial (UART) IC
> Device Descriptor:
>   bLength                18
>   bDescriptorType         1
>   bcdUSB               1.10
>   bDeviceClass            0 (Defined at Interface level)
>   bDeviceSubClass         0
>   bDeviceProtocol         0
>   bMaxPacketSize0         8
>   idVendor           0x0403 Future Technology Devices International, Ltd
>   idProduct          0x6001 FT232 USB-Serial (UART) IC
>   bcdDevice            4.00
>   iManufacturer           1
>   iProduct                2
>   iSerial                 0
>   bNumConfigurations      1
>   Configuration Descriptor:
>     bLength                 9
>     bDescriptorType         2
>     wTotalLength           32
>     bNumInterfaces          1
>     bConfigurationValue     1
>     iConfiguration          0
>     bmAttributes         0xc0
>       Self Powered
>     MaxPower               90mA
>     Interface Descriptor:
>       bLength                 9
>       bDescriptorType         4
>       bInterfaceNumber        0
>       bAlternateSetting       0
>       bNumEndpoints           2
>       bInterfaceClass       255 Vendor Specific Class
>       bInterfaceSubClass    255 Vendor Specific Subclass
>       bInterfaceProtocol    255 Vendor Specific Protocol
>       iInterface              2
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x81  EP 1 IN
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
>       Endpoint Descriptor:
>         bLength                 7
>         bDescriptorType         5
>         bEndpointAddress     0x02  EP 2 OUT
>         bmAttributes            2
>           Transfer Type            Bulk
>           Synch Type               None
>           Usage Type               Data
>         wMaxPacketSize     0x0040  1x 64 bytes
>         bInterval               0
> cannot read device status, Operation not permitted (1)
>
> I see two endpoint addresses in there, 0x81 and 0x02, one of those?.  Is
> there a function(s) in pyusb to use this (seemingly only) interface and one
> of those endpoints?
>
> And, this is all device-specific, and not OS-dependent, right?  My goal is
> to use pyusb on a mac...(it worries me slightly to have to use a linux
> machine/commands to hunt down all this info).
>
> --
> Nathan
>
Your are trying to write to a non-existent endpoint address 1, where
you probably mean 2...
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to