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 Best regards, Alexey Kosilin -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
ftdi.c.patch
Description: Binary data
