Wykres commitów

30 Commity (master)

Autor SHA1 Wiadomość Data
Kai Morich 83646d6955 gradle 8.2 2024-02-18 12:19:46 +01:00
kai-morich a9c835bcb0 gradle 8.0 2023-07-04 20:52:08 +02:00
kai-morich fbe64fe4be gradle update, coverage working again 2023-03-11 17:42:12 +01:00
kai-morich cf9bada887 use optimal write buffer size by default + revert gradle update
write buffer: SerialTimeoutException from write() has valid ex.bytesTransferred
gradle 7.1.x creates empty coverage results
2022-04-26 21:40:49 +02:00
kai-morich 1f35587739 target-sdk + dependency update 2022-04-19 20:55:34 +02:00
kai-morich d319879386 jitpack with gradle 7 2021-09-21 20:38:32 +02:00
kai-morich 21cf775281 fix PL2303G product IDs (#383) 2021-08-17 17:29:49 +02:00
kai-morich 7ffbc73919 restore FT2232C support 2021-07-01 07:45:24 +02:00
kai-morich 22a685e738 target-sdk-version update from 29 to 30 2021-05-09 08:50:29 +02:00
kai-morich f4166f34a0 read w/o timeout now throws exception on connection lost or buffer to small
SerialInputOutputManager already returned connection lost exception, as the next read failed
2021-03-26 18:11:23 +01:00
kai-morich f60414f8ec improve write timeout handling
Return type of write() method changed to void. The return value was redundant before, as it always was the request length or an exception was thrown.

If timeout is reached, write() now throws a SerialTimeoutException with ex.bytesTransferred filled with known transferred bytes.

Added CommonUsbSerialPort.getReadEndpoint() and .getWriteEndpoint() to assist in setting the optimal write buffer size with port.setWriteBufferSize(port.getWriteEndpoint().getMaxPacketSize()).

By default the write buffer size is > MaxPacketSize and the Linux kernel splits writes in chunks. When the timeout occurs, it's unknown how many chunks have already been transferred and the exception typically stores 0. With optimal write buffer size, this value is known and stored in SerialTimeoutException, but due to more kernel round trips write() might take slightly longer().
2021-02-07 16:37:01 +01:00
kai-morich fc610a9764 IntDef Parity for better warnings
but no @Intdef for databits, stopbits as these are frequently used with numbers instead of constants
remove redundant modifiers
2021-01-16 23:21:10 +01:00
kai-morich 115fb407b4 coverage fix, gradle update 2020-10-14 20:36:49 +02:00
kai-morich 1e75f91467 slightly more coverage, local coverage report, dependency update 2020-10-12 21:28:50 +02:00
kai-morich 8eaf3f5c5f tests UsbDeviceConnection close behavior
and extract test utilities
2020-07-18 20:48:27 +02:00
kai-morich 735fa3d70f make all SerialPort classes public
and test FtdiSerialPort methods
2020-06-10 19:09:34 +02:00
kai-morich ca78840144 example app with event-based or direct read 2020-04-08 22:21:26 +02:00
kai-morich 17c3d40605 align device_filter.xml with devices recognized by DefaultProber 2020-02-29 19:15:14 +01:00
kai-morich ce97a3408b reuse UsbRequest
less LogCat output
2019-12-13 21:13:48 +01:00
Kai Morich 54a3db115f show code coverage 2019-10-20 22:41:55 +02:00
Kai Morich 2bee5b930b build with jitpack 2019-10-06 17:52:17 +02:00
Kai Morich 0d48ed04e7 Always use async read, as bulkTransfer can cause data loss. Increase API version to 17 because async read only works reliably since Android 4.2 (http://b.android.com/28023) 2019-10-05 10:35:15 +02:00
Kai Morich e527afdf35 compile+target sdk 28, gradle 4.6 2019-10-05 10:35:15 +02:00
Kai Morich 61b272b8b6 support ft_232h, cp210_ multiport devices
harmonize claimInterface() error handling
cancel read() on close()
2019-10-05 10:27:11 +02:00
Kai Morich 0ea5b282b7 implement async read for all devices 2019-10-05 10:27:11 +02:00
Kai Morich adb22f718e build tools update; instrumented device test 2019-10-05 10:27:11 +02:00
SJ 9d48757285 - Updating Gradle project to > 1.0.0
- Updated .gitignore with Github ignore settings
- Updated build tools and SDK versions to 22
- Migrated .gradle files from pre-1.0.0 to post-1.0.0
2015-06-23 00:24:43 -04:00
mike wakerly 06582e68ad Add Maven Central `uploadArchives` target.
Issue #70.
2014-09-08 11:02:45 -07:00
mike wakerly 0b65b42f84 Update build tools. 2014-09-08 11:02:45 -07:00
mike wakerly 95592f984a Convert to gradle. 2014-06-14 12:55:24 -07:00