libftdi Archives

Subject: Empty read response with no timeout taking into account

From: Anton Smirnov <dev@xxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 3 Sep 2013 17:20:15 +0600
hi. i'm trying to understand why avrdude for android does not work.

The code sends read bulk transfer with 5000ms timeout and empty response is returned instead of soma data.

Actually ftdi_read_data() is invoked and it invokes libusb_bulk_transfer() and actual_length is 2. But next they are just ignored:

else if (actual_length <= 2)
        {
            // no more data to read?
            return offset;
        }
The problem is that timeout is not respected and it returns empty buffer almost instantly,  but some data is expected to be read. Not sure that timeout is the problem, but data missing is the problem.
Can anybody help me with it?
Regards, Anton.


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


Current Thread
  • Empty read response with no timeout taking into account, Anton Smirnov <=