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 asynchronuosSerialInputOutputManager
to be notified on available data.SerialInputOutputManager.writeAsync
is also affected, as the loop blocks in aread
. Instead you canwrite
directly in your UI thread.