- Home /
Fast communication between Android and desktop via USB
Hi all,
I'd like to run a VR Unity program on my Android while I send data to it from my desktop. I'm sending the Android readings from my LEAP Motion (which will only run on a desktop), so this has to happen fast! I feel like USB is my best bet.
I've played around with Unity's TransportLayer (http://www.robotmonkeybrain.com/good-enough-guide-to-unitys-unet-transport-layer-llapi/), System.IO.Ports, and Unity Remote. TransportLayer might be the solution, but I can't get it to work.
I found a partial Java solution that does what TransportLayer is supposed to do. I use adb port forwarding and am able to send info from the phone to the desktop. (http://www.florescu.org/archives/2010/10/15/android-usb-connection-to-pc/)
Does anybody know the correct way to do this? I'd rather avoid native plugins but I understand if it's necessary. If I do need to use plugins, do you think it would be better to do Java or C++ for the Android side?
Thanks so much for your time; this is driving me nuts!
Alex
Hi Any recommended approach for PC-Android USB communication? @PennNeuro