Thank you for the prompt reply!

Output of the lsusb is attached to this mail.

Best regards,
Alexey Kosilin

On Sun, Jun 26, 2011 at 3:43 PM, Xiaofan Chen <[email protected]> wrote:

> On Sun, Jun 26, 2011 at 7:32 PM, Алексей Косилин <[email protected]>
> wrote:
> > Hi!
> >
> > As i have discovered, in some cases (at least in my hw config) the
> function
> > reports zero max packet size. I'm not sure what exactly happens (i'm not
> a
> > expert in libusb and low-level USB programming), but i definitely see,
> that
> > field wMaxPacketSize of the first device endpoint is "0" while second
> > endpoint has normal packet size - 64.
> >
> > So, i suggest to cycle through all endpoints of the given device config /
> > interface / altsetting to find first non-zero max packet size instead of
> > just using wMaxPacketSize of the first endpoint.
> > Patch file with the changes i've attached to this mail.
> > lsusb output:
> > Bus 003 Device 005: ID 0403:6001 Future Technology Devices International,
> > Ltd FT232 USB-Serial (UART) IC
> >
>
> What does "lsusb -vvv" say about the device? You can post the
> output of "lsusb -vvv -d 0403:6001" of your device.
>
> --
> Xiaofan
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [email protected]
>
>


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   

Bus 003 Device 005: ID 0403:6001 Future Technology Devices International, Ltd 
FT232 USB-Serial (UART) IC
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  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            6.00
  iManufacturer           1 FTDI
  iProduct                2 FT232R USB UART
  iSerial                 3 NOTASERIAL
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    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 FT232R USB UART
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0000  1x 0 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
Device Status:     0x0000
  (Bus Powered)

Reply via email to