mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I read and write directly under the authorization of serial port files? For example,/dev/ttyS0

qeadsw opened this issue · comments

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.

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