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?