subsurface/android-mobile/src/org/subsurfacedivelog/mobile
Christof Arnosti b15b9c6cd0 usb-serial-for-android: Implement timeout-handling
Since the Android USB stack and subsequently the usb-serial-for-android
driver have problems with read-timeouts, the read-timeout is now
implemented in AndroidSerial.java. Also, DC_STATUS_TIMEOUT is returned
if there are less bytes returned than expected.

Different chipsets seem to behave differently with
usb-serial-for-android. On CP210x the read blocks until there is some
data here, but on FTDI the chip seems to return whatever is currently in
the buffer (so 0 bytes if the buffer is empty). This different behaviour
should be mitigated by the changes by this commit.

Signed-off-by: Christof Arnosti <charno@charno.ch>
2020-03-08 11:22:55 -07:00
..
AndroidSerial.java usb-serial-for-android: Implement timeout-handling 2020-03-08 11:22:55 -07:00
SubsurfaceMobileActivity.java usb-serial-for-android: Implementation 2020-03-07 12:34:43 -08:00