Can I read and write directly under the authorization of serial port files? For example,/dev/ttyS0
qeadsw opened this issue · comments
StupidScholar commented
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.
kai-morich commented
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