(Android application source code serial communication (JNI) example
The API is only provided here. The specific serial port should be associated with your embedded device.
This code is sorted out. I haven't checked its correctness for the time being!)