You can try setting lower timeout periods, either for the FTDI chip or libusb (or both).
ftdi_set_latency_timer() allows you to specify how long the FTDI chip keeps data in its internal buffer. You can use ftdi_get_latency_timer() to see what the current latency value is for the FTDI chip. You can also access the usb_read_timeout and usb_write_timeout members of the ftdi_context structure; these control the actual read and write timeout periods passed to libusb when performing bulk data transfers, although if you set these values too low the timeout will hit before any data can be read/written so be careful with them (I don't think you should have to mess with these too much...). Ultimately due to the nature of USB, if you are looking to get the most speed out of your data transfers you'll want to transfer as many bytes at a time as possible instead of just one byte at a time. -- View this message in context: http://libftdi.141977.n3.nabble.com/latency-in-read-time-tp3585190p3585633.html Sent from the libFTDI mailing list archive at Nabble.com. -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to [email protected]
