vladistan / gnu.io.android Goto Github PK
View Code? Open in Web Editor NEWGNU IO Library for Android
Home Page: http://www.v-lad.org/projects/gnu.io.android/
GNU IO Library for Android
Home Page: http://www.v-lad.org/projects/gnu.io.android/
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!
Hi,
i am trying to add RS485 support.
to do that, i need to understand how you modified the RxTx lib. I see that you modified 3 or 4 files to make it work on Android (mainly the log functions, and some conf for the path to the device, ...).
What i don't get is how you generated the gnu_io_***.h files. Can you give me some hints? Plus, how do you compile the whole thing afterwards?
Hi, thanks for your work.
I compiled successfully your code but when I try to connect to ttyACM0 i've got this error:
I/GNU.IO ( 1428): JNI_OnLoad called.
I/GNU.IO ( 1428): Testing the version.
I/GNU.IO ( 1428): entering RXTXCommDriver:getDeviceDirectory
I/GNU.IO ( 1428): TestREAD.
I/GNU.IO ( 1428): /dev/ttyUSB3
I/GNU.IO ( 1428): entering RXTXPort:testRead
I/GNU.IO ( 1428): testRead() open failed
I/GNU.IO ( 1428): leaving RXTXPort:testRead
I/GNU.IO ( 1428): TestREAD.
I/GNU.IO ( 1428): /dev/ttyUSB4
I/GNU.IO ( 1428): entering RXTXPort:testRead
I/GNU.IO ( 1428): testRead() open failed
I/GNU.IO ( 1428): leaving RXTXPort:testRead
I/GNU.IO ( 1428): TestREAD.
I/GNU.IO ( 1428): /dev/ttyACM0
I/GNU.IO ( 1428): entering RXTXPort:testRead
I/GNU.IO ( 1428): testRead() open failed
I/GNU.IO ( 1428): leaving RXTXPort:testRead
I/GNU.IO ( 1428): entering RXTXCommDriver:getDeviceDirectory
I/GNU.IO ( 1428): TestREAD.
I/GNU.IO ( 1428): /dev/ttyUSB3
I/GNU.IO ( 1428): entering RXTXPort:testRead
I/GNU.IO ( 1428): testRead() open failed
I/GNU.IO ( 1428): leaving RXTXPort:testRead
I/GNU.IO ( 1428): TestREAD.
I/GNU.IO ( 1428): /dev/ttyUSB4
I/GNU.IO ( 1428): entering RXTXPort:testRead
I/GNU.IO ( 1428): testRead() open failed
I/GNU.IO ( 1428): leaving RXTXPort:testRead
I/GNU.IO ( 1428): TestREAD.
I/GNU.IO ( 1428): /dev/ttyACM0
I/GNU.IO ( 1428): entering RXTXPort:testRead
I/GNU.IO ( 1428): testRead() open failed
I/GNU.IO ( 1428): leaving RXTXPort:testRead
How can I fix this?
Cheers
Giorgio
Hi,
I made a diff between the actual RxTx lib and your version, and i don't see any modification except for the deletion of the parallel port (if i remember correctly) and the modification of a line to add /dev/.
I use the official rxtx lib and if i remember correctly, unix systems are already supported (with /dev/).
So my question is: what did you do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.