subsurface/android-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
..
res usb-serial-for-android: add PID/VIDs 2020-03-07 12:34:43 -08:00
src/org/subsurfacedivelog/mobile usb-serial-for-android: Implement timeout-handling 2020-03-08 11:22:55 -07:00
AndroidManifest.xml Android: update the target SDK Version to 28 2019-09-21 15:13:10 -07:00
build.gradle usb-serial-for-android: add dependency 2020-03-07 12:34:43 -08:00
font.qrc Android: bundle default font for use in OnePlus devices 2019-09-21 15:13:10 -07:00