Connect to Android with MQX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Connect to Android with MQX

Jump to solution
1,633 Views
sebasira
Senior Contributor I

Hi!

I hope you all have started the 2013 in the best way, and I wish you have a very good year!

I'm trying to communicate a TWRK60 with MQX 3.8.1 to an ANDROID (v2.2) tablet. The idea is to use the tablet as user interface of my custom app on the TWR. I've been looking for some information that could guide me to achieve this. Have any of you done something like that?

If I understood properly, there are two ways to communicate to and android device:

1) ADB: Android Debug Bridge

2) and the newer ADK: Accesory Development Kit

For what I've read, since ABD is supported from Android v1.5 it covers lot more of devices than ADK wich requieres Android v2.3.4.

I guess that right now my choice is using ADB (decission made from what I've read and I'm open to any suggestion)

I also have another team working on the android side, but what I need is on the MCU side. Any suggestion, guide, book, link, appnote, whatever would be greatly appreciated.

Thanks in advance!

Labels (1)
Tags (5)
0 Kudos
1 Solution
715 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Sebasira,

The communication should be through USB or Ethernet. The easier is Ethernet. You could implement a server or client in the MCU and have direct communication. An appnote on how to do this will be publish this year.

For USB is more complex. This is because it would be necessary to implement a new USB class in the MCU called Accessory. Here is more information from android about this class:

http://developer.android.com/guide/topics/connectivity/usb/accessory.html

http://developer.android.com/tools/adk/index.html

I hope this helps you. Have a nice day!

-Garabo

View solution in original post

0 Kudos
6 Replies
716 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Sebasira,

The communication should be through USB or Ethernet. The easier is Ethernet. You could implement a server or client in the MCU and have direct communication. An appnote on how to do this will be publish this year.

For USB is more complex. This is because it would be necessary to implement a new USB class in the MCU called Accessory. Here is more information from android about this class:

http://developer.android.com/guide/topics/connectivity/usb/accessory.html

http://developer.android.com/tools/adk/index.html

I hope this helps you. Have a nice day!

-Garabo

0 Kudos
715 Views
hari_arimilli
NXP Employee
NXP Employee

Hi Garabo,

You mentioned an app note being available later this year. Do you know when the app note will be available?

I did not see it in the Kinetis app note section.

Thanks,

Hari

0 Kudos
715 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi All,

The appnote was just published last week:

cache.freescale.com/files/microcontrollers/doc/app_note/AN4810.pdf

Best Regards,

Garabo

0 Kudos
715 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Hari,

The appnote should be ready before the end of June. This appnote is very cool because lets you to control de microcontroller using an Android applications. The source code will also be released (MQX code and Java project for Android app). I will be letting the community know about the release once it is ready!

Best Regards,

Garabo

0 Kudos
715 Views
kai_liu
Senior Contributor I

Is the application note available now? And which method is used in this reference design?

ADB over USB host? How to handle RSA authentication since Android 4.2.2?

ADK over USB host?

Bluetooth or BLE over USB / SPI / UART?

WiFi?

0 Kudos
715 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Kai,

The code is using Wi-Fi. Yeah, nothing fancy but it works. Since the edition is taking too long we are checking how to upload to the communities. Minor details but we are checking.

Best Regards,

Garabo

0 Kudos