I want to develop a whitch application controlling a serial device via usb on Linux Android.
Android OS 3.1, which supports a USB host.
Q1: Please let me know how to get the port on which the serial device is installed.
I got information about a USB device when I received a βDump Device Statusβ on the Dalvik debug monitor.
And I checked / dev / tty * on an Android device using adb.
I do not know which one (/ dev / tty ??) is a serial device.
adb shell
$ ls / dev / tty *
/ Dev / terminal
/ Dev / ttyFIQ 0
/ Dev / ttyHS 0
/ Dev / ttyHS 2
/ Dev / ttyHS 3
/ Dev / ttyHS 4
/ Dev / ttyS 0
/ Dev / ttyS 1
/ Dev / ttyS 2
/ Dev / ttyS 3
Q2: Please let me know how to control a serial device on Android without root permission.
I have an application (exe) that can control a serial device on linux.
I tried to do this on android, but I could not do this for failure.
And I tried redirecting to the serial port (maybe)
$ ls> / dev / ttyS0
But I could not.
cannot create / dev / ttyS 0: permission denied.
Please let me know how to manage and access the serial device.
android serial-port usb usbserial
Kate g
source share