Releases: mik3y/usb-serial-for-android
Releases · mik3y/usb-serial-for-android
v3.2.0
features:
- PL2303 support non-standard baud rates
v3.1.0
features:
read
with timeout now throws error on connection lost, e.g. device disconnected- Prolific input control line methods now throw error on connection lost
SerialInputOutputManager
with configurable buffer sizeSerialInputOutputManager
with configurable threadpriority and higher default to prevent data loss
fixes:
- FTDI
read
now waits until timeout. previously returned after periodic FTDI status response (default 16 msec)
If you relied on this early return, you should adapt your timeout values
v3.0.1
features:
- restore support for FTDI FT230X, FT231X, FT234XD
(was removed in v.3.0.0 is it was untested and unclear if new FTDI implementation supports these devices)
v3.0.0
features:
- move from LGPL to MIT license, as FTDI driver is rewritten
changes:
- FTDI driver rewritten without LGPL code from libftdi
- FTDI device FT231X removed from automatically detected devices as it is untested and unknown if it is supported by the new driver
setRts, getRts, getRCts, setDtr, getDtr, getDsr, getCd, getRi, purgeHwBuffers
methods now throwUnsupportedOperationException
instead of returningfalse
if not supported
v2.3.0
features:
- added CH341A support
- implement CH34x input control lines
- implemented CP21xx input control lines
- new
getControlLines()
andgetSupportedControLines()
methodsgetControlLines()
requires less USB transfers than callinggetRTS()
+ ... +getRI()
individuallygetSupportedControlLines()
tells you, which control lines are supported by a driver. Previously you had to check the driver implementation
changes:
- open() CP21xx with RTS, DTR unset, for consistency with other drivers
v2.2.3
features:
- new
UsbSerialPort.isOpen
method
fixes:
- relax CH340 initialization
- make all
SerialPort
classes public
v2.2.2
fixes:
- fix CP2102N initialization
- align device_filter.xml with devices recognized by DefaultProber
v2.2.1
fixes
- fix CH340 initialization
v2.2.0
features:
- support multi-port CDC devices
- support FTDI control lines
- added FTDI specific
get/setLatencyTimer, getModemStatus
methods
refactoring:
- reuse
UsbRequest
to reduce LogCat output
v2.1.0
features:
- DTR and RTS support for CP21xx drivers
- reimplemented read timeout. caution: too short timeout can cause data loss, see wiki for details
- include proguard rules in .aar library to retain driver classes instantiated by
UsbSerialProber
fixes:
- improve error handling in
close
and more reliably interruptread
and terminateSerialInputOutputManager
- harmonize + cleanup error messages
- correct
purgeHwBuffers
parameter description - manage USB permission intent in sample app
- more code coverage tests
changes:
- distinguish
IllegalArgumentException
andUnsupportedOperationException
insetParameter
If you had dedicated handling forIllegalArgumentException
, you now have to handle both SerialInputOutputManager
now has infinite read/write timeout per default, to prevent data loss
If you want to useSerialInputOutputManager.writeAsync
you should set a readTimeout!=0 before starting the thread