UART with ANDROID

Started by junetec, March 17, 2013, 01:39:52 AM

Previous topic - Next topic

junetec

Hello,

I need to use the serial port of A13Wifi to connect with a microcontroler board, using rx and tx signals, not USB.

Whitch it's the way to go?

I had googeling some hours and I don't have a clear idea do in a simple way.

It's that the way to go?
https://code.google.com/p/android-serialport-api/

or that one
http://antipastohw.pbworks.com/w/page/41729078/How-to%20use%20a%20serial%20port%20with%20Android,%20Liquidware%20Ambrosia%20edition

or that
http://v-lad.org/projects/gnu.io.android/#binariesDL

Anyone has an idea, example or experience to share about that?

regards,

Enric

nvd

What OS are you using for the application?

Android or Linux?

junetec

Android.

I don't know I need to change something in the kernel, or only install a library in Eclipse and use it.

nvd

I do not have enough experience of Android.

If you can identify the device, possibly "/dev/ttyS0", you can open it and write to it.

Make sure that "getty" is not active on this port by having a look at "/etc/inittab".

I am not sure if "getty" and / or that file exists in Andriod setup.

jameswong

I found in FTDI there are 2 ways to do that, Android Open accessory mode or OTG mode. I also found an APK on google play, the android hyperterminal(English version), I tested it, seems it only supports FTDI's IC.

mohammadfa91

Any way to use UART in Android directly?

dave-at-axon

Quote from: mohammadfa91 on April 09, 2014, 11:15:30 AM
Any way to use UART in Android directly?

Yes, it's easy but you need to use this and JNI and if you need to compile it, you need the Android NDK.

https://code.google.com/p/android-serialport-api/