Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newer FTDI devices use a 512 byte packet which is not supported by the existing FTDISerialDevice class #350

Open
bill-chadwick opened this issue Mar 7, 2022 · 1 comment

Comments

@bill-chadwick
Copy link

It looks like newer FTDI devices use 512 byte packets rather than 64. The FTDI Class currently assumes packets that have repeats of 2 bytes of status and 62 bytes of data. The newer FTDI devices go 2 bytes of status followed by 510 bytes of data. There is a 1 bit difference in the first status byte that might be indicating 64/512 byte packets size but I have not been able to find information that confirms that.

@bill-chadwick bill-chadwick changed the title Newer FTDI devices use a 512 byte packet which is not supported by the existing FTDISerialDeviceClass Newer FTDI devices use a 512 byte packet which is not supported by the existing FTDISerialDevice class Mar 7, 2022
@kai-morich
Copy link

using the packet size instead of hardcoded 64 should solve the issue, as used in the other usb-serial library:
https://github.com/mik3y/usb-serial-for-android/blob/dea836d8cedde56a6a22d2fb9417b8f1dc33b283/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/FtdiSerialDriver.java#L167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants