I've made an Android app that makes the smartphone run in USB host mode. I did so using the Android official documentation given here:
https://developer.android.com/guide/topics/connectivity/usb/host
To test the app, I connected a pen drive via an OTG cable. The app is able to detect the pen drive and read its contents. Now basically, I want to replace the pen drive with a Raspberry Pi.
Please help me with this: How can I establish synchronous communication (basically a stream) between Raspberry Pi and an Android-powered smartphone.
I have tried UART communication but cannot use it as I am transmitting video from Raspberry Pi.
Note:I cant use WIFI due to restrictions.
There is only one USB peripheral on the BCM283x SoC. On the CM, A, and Zero that is exposed directly to the outside world, so these tricks can be played. On any B, B+, 2B, or 3B there is an SMSC951x chip connected to it to act as a USB hub and network interface. You therefore can't switch the function of the port.
from [raspberrypi.org/forums/viewtopic.php?t=143203] – Brocade