mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
MIT License
4.81k stars 1.58k forks source link

FTDI custom device stops receiving data on some (newer) Android devices #498

Closed janimm closed 1 year ago

janimm commented 1 year ago

I'm working on a custom FTDI serial device with 921600 baud rate. The serial connection works very well, is fast and stable. Recently we encountered newer, lower spec Android devices that receive data for couple of seconds and then just stops receiving any data.

Some testing on different devices:

Works:

Data stream stops intermittently:

I'm using SerialInputOutputManager with newSingleThreadExecutor to receive the data from the device. There is no debug messages/exceptions, data stream just stops.

kai-morich commented 1 year ago

maybe some android kernel usb receive buffer overflow?

janimm commented 1 year ago

Hard to say, don't see anything related on logcat.

Any tips how to troubleshoot this?

kai-morich commented 1 year ago

not really

janimm commented 1 year ago

Ahh, the never ending adventure of Android app development.