Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: junetec on March 17, 2013, 01:39:52 AM

Title: UART with ANDROID
Post by: junetec on March 17, 2013, 01:39:52 AM
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
Title: Re: UART with ANDROID
Post by: nvd on March 19, 2013, 12:40:59 PM
What OS are you using for the application?

Android or Linux?
Title: Re: UART with ANDROID
Post by: junetec on March 19, 2013, 02:42:57 PM
Android.

I don't know I need to change something in the kernel, or only install a library in Eclipse and use it.
Title: Re: UART with ANDROID
Post by: nvd on March 19, 2013, 02:52:09 PM
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.
Title: Re: UART with ANDROID
Post by: jameswong on May 10, 2013, 09:01:39 AM
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.
Title: Re: UART with ANDROID
Post by: mohammadfa91 on April 09, 2014, 11:15:30 AM
Any way to use UART in Android directly?
Title: Re: UART with ANDROID
Post by: dave-at-axon on April 09, 2014, 01:02:42 PM
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/