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

Release Date: 2019-10-12 // over 4 years ago
  • ๐Ÿ”€ merged back changes collected in kai-morich's fork

    ๐Ÿ†• new features:

    • support ft_232h, cp210_ multiport devices
    • CH34x: data bits, parity, stop bits
    • CP21xx: mark+space
    • ๐Ÿ‘Œ support USB devices with other non CDC related endpoints
    • ๐Ÿ‘ CH34x: support more baudrates

    ๐Ÿ”„ changes:

    increased minimum Android version to 4.3 (API 17)

    ๐Ÿš€ Always use async read (UsbDeviceConnection.requestWait), as bulkTransfer (UsbDeviceConnection. bulkTransfer) can cause data loss at high baud rates. Before this release only the CdcAcm driver used async read.

    With async read currently read timeout != 0 is ignored. read blocks until data is available (except Ftdi, where status data is available each 16msec).

    ๐Ÿ’ป Instead of using read you can use the asynchronuos SerialInputOutputManager to be notified on available data. SerialInputOutputManager.writeAsync is also affected, as the loop blocks in a read. Instead you can write directly in your UI thread.