Skip to content

Releases: mik3y/usb-serial-for-android

v3.2.0

30 Sep 12:19
Compare
Choose a tag to compare

features:

  • PL2303 support non-standard baud rates

v3.1.0

12 Sep 19:23
Compare
Choose a tag to compare

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 size
  • SerialInputOutputManager 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

24 Aug 15:36
4f2d6c7
Compare
Choose a tag to compare

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

01 Aug 08:23
57d10a0
Compare
Choose a tag to compare

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 throw UnsupportedOperationException instead of returning false if not supported

v2.3.0

05 Jul 13:13
Compare
Choose a tag to compare

features:

  • added CH341A support
  • implement CH34x input control lines
  • implemented CP21xx input control lines
  • new getControlLines() and getSupportedControLines() methods
    • getControlLines()requires less USB transfers than calling getRTS() + ... + getRI() individually
    • getSupportedControlLines() 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

10 Jun 18:05
Compare
Choose a tag to compare

features:

  • new UsbSerialPort.isOpen method

fixes:

  • relax CH340 initialization
  • make all SerialPort classes public

v2.2.2

01 Mar 12:58
Compare
Choose a tag to compare

fixes:

  • fix CP2102N initialization
  • align device_filter.xml with devices recognized by DefaultProber

v2.2.1

11 Feb 20:52
Compare
Choose a tag to compare

fixes

  • fix CH340 initialization

v2.2.0

11 Jan 16:28
Compare
Choose a tag to compare

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

15 Nov 21:36
Compare
Choose a tag to compare

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 interrupt read and terminate SerialInputOutputManager
  • harmonize + cleanup error messages
  • correct purgeHwBuffers parameter description
  • manage USB permission intent in sample app
  • more code coverage tests

changes:

  • distinguish IllegalArgumentException and UnsupportedOperationException in setParameter
    If you had dedicated handling for IllegalArgumentException, you now have to handle both
  • SerialInputOutputManager now has infinite read/write timeout per default, to prevent data loss
    If you want to use SerialInputOutputManager.writeAsync you should set a readTimeout!=0 before starting the thread