usb-serial-for-android v2.2.0 Release Notes

Release Date: 2020-01-11 // 16 days ago
  • 🔋 features:

    • 👌 support multi-port CDC devices
    • 👌 support FTDI control lines
    • ➕ added FTDI specific get/setLatencyTimer, getModemStatus methods

    ♻️ refactoring:

    • reuse UsbRequest to reduce to reduce LogCat output

Previous changes from 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 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
    • 0️⃣ 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