Android external micro USB Wifi Antenna

androiddeviceusbwifi

First of all, I want to understand if is possible plug an external micro USB WiFi antenna like this to an android phone and drive it through application to communicate with another android device that have same antenna plugged.

I'm able to detect plugged external antenna in my application using USB Host API of android as specified here and establish an USB connection with it.

In this page there is also a sample that explains how to send commands to an external usb device sending data via connection like "1" "turn left", "2" "turn right".

How can I know what commands (methods/interface/api or data byte stream) I have to send to use device features?

I understand that there is the possibility that I'm saying a lot of stupid things !!! but be patient please!

I also read about this but i cant figure if it is the right way!

I have seen on youtube a Drone driven by an android phone with same antenna plugged through Andropilot application! see video here

There is some guide or tutorial to point me to the right way?

Best Answer

For something like the drone radio you probably saw, you would use the Android Open Accessory protocol to talk to devices over USB. You can prototype and experiment using boards like the Android ADK or the IOIO. Here's a page comparing those boards that has more information: http://forum.xda-developers.com/showthread.php?t=1371750

And here's a simple tutorial showing how to use the ADK to control LEDs via USB: http://www.instructables.com/id/Arduino-ADK-LED-Lighting/