-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Connect ttyS0? #4
Comments
I compile this code success ,and my android device has an RS232 port, it works on my device.you can set the SerialPortId as "/dev/ttyS0" to connect ttyS0,As the result of "Can't find USB Serial Port" I Think you haven't create the properties file named gnu.io.rxtx.properties in /system/etc/ directory. The properties file has to contain the following text.
That is import to make sure your program has the permission to read and write the directory of "/data/local/". |
|
Hi,
my android device has RS232 com port(not USB to RS232),and Android-serialport-api can work in my deivce,I compile the source success,but the GNUIOtest.apk Always display "Can't find USB Serial Port",
How do I Modify the source to Connect ttyS0?
and in the source "CommPortIdentifier.getPortIdentifiers();" is return new CommPortEnumerator() ,the result is portIdentifiers always have not any Elements;the app can not find any port?
thank you very much!
The text was updated successfully, but these errors were encountered: