Closed qeadsw closed 1 year ago
this library is only for USB-serial devices, see https://github.com/mik3y/usb-serial-for-android/wiki/FAQ#how-do-i-access-devttyusb0
For native serial interfaces you could try with file io but for configuration you probably need a JNI based ioctl wrapper
In some cases, I need to directly read and write to the serial file, which can be supported in the future.
For example,/dev/ttyS0, provided that the system has already granted permissions.