2016-01-25 16:28:29 +08:00
|
|
|
# Serial Communication Library for android (JNI API)
|
2016-01-21 17:59:55 +08:00
|
|
|
|
2016-01-25 16:28:29 +08:00
|
|
|
This is the Android support for Cross-platform, Serial Port library (JNI API).
|
2016-01-21 17:59:55 +08:00
|
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
|
2016-01-25 16:28:29 +08:00
|
|
|
To build the code:
|
|
|
|
|
* NDK r10 (http://developer.android.com/intl/ndk/downloads/index.html)
|
2016-01-21 17:59:55 +08:00
|
|
|
|
2016-02-14 18:00:50 +08:00
|
|
|
The following linux headers are imported AS-IS to fix build breaks:
|
|
|
|
|
|
|
|
|
|
/usr/include/linux/serial.h
|
|
|
|
|
/usr/include/linux/tty_flags.h
|
|
|
|
|
/usr/include/sys/signal.h
|
|
|
|
|
/usr/include/sysexits.h
|
|
|
|
|
|
2016-01-25 16:28:29 +08:00
|
|
|
### Build
|
2016-01-21 17:59:55 +08:00
|
|
|
|
2016-01-25 14:28:12 +08:00
|
|
|
cd android
|
2016-01-21 17:59:55 +08:00
|
|
|
ndk-build
|
|
|
|
|
|
2016-01-25 16:28:29 +08:00
|
|
|
### About Java API
|
2016-01-21 17:59:55 +08:00
|
|
|
|
2016-01-25 16:28:29 +08:00
|
|
|
If you need to use Java API in android, have a look at https://github.com/chzhong/serial-android.
|
2016-01-21 17:59:55 +08:00
|
|
|
|
2016-01-25 16:28:29 +08:00
|
|
|
### License and Author
|
2016-01-21 17:59:55 +08:00
|
|
|
|
2016-02-14 18:00:50 +08:00
|
|
|
serial:
|
|
|
|
|
See README.md at the root directory.
|
|
|
|
|
|
|
|
|
|
Linux headers:
|
|
|
|
|
See file header for detail.
|