mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USB Transfer size on FTDI Driver

Covarians opened this issue · comments

Hello,
I would like to modify the USB Transfer size on the FTDI driver.
Would you know the params to use in the mConnection.controlTransfer() command.

Regards.

FG

all known parameters are in the source code, but I doubt you can change the size

I am using the library at 3MBbs on an android phone connected to device with FT430X, using XMODEM (1k Packets) and some time I stop receiving the 62 bytes packet in the middle of a 1024 byte XMODEM packet reception. This is why I would like to increase the packet size.

Did you consider using the FTD2XX for android driver in the usb-serial-for-android instead of writing directly to the endpoint0 ?

you could try D2XX directly, but this commercial library will not be integrated into this open source project