libftdi Archives

Subject: Re: _ftdi_determine_max_packet_size reports wrong value in some cases

From: Алексей Косилин <kosilin75@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sun, 26 Jun 2011 15:49:29 +0400
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 <xiaofanc@xxxxxxxxx> wrote:
On Sun, Jun 26, 2011 at 7:32 PM, Алексей Косилин <kosilin75@xxxxxxxxx> 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 libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx




libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Attachment: lsusb-output.txt
Description: Text document

Current Thread