Reputation: 850
I am trying to write a native program (in C, using NDK) that reads and writes data to the serial port in Android. However, I am not sure which serial port to use. There are so many of them under /dev (tty0 to tty63). Please let me know which port I need to use. I am able to view the system logs using putty (connected to a com port in my PC), but not the output from my program.
Thanks.
Upvotes: 0
Views: 7074
Reputation: 850
Found that android has a serialport-api and the sample app provided in the project site helped me find out the port number of my android device.
Upvotes: 1