I have an Android application that can communicate with a device connected to OTG port in the android tab (via direct USB connection). It works fine. Now I want the Raspberry Pi to act as a repeater(just forward data coming from USB connection with tablet to another USB device or the other way around). My Android app is programmed to make the tablet work as the host. Is there any method to make this work using only two USB cables between the tablet and the rPi and between the rPi and the USB device?
Asked
Active
Viewed 1,893 times
0
-
Hello and Welcome to Stack Exchange! Have you written this Android application yourself? If yes, the most likely route to follow is to write your own rPi application (in Python, C, C++, Java, whatever language you are most familiar with) to do exactly what the Android app already does regarding receiving and sending USB messages. – Phil B. Oct 07 '15 at 12:16
-
Thanks for your comment.Android app is not written by me. I have written an application using serialPi(available on wiringPi) in C++ for the Pi. when I connect the tab to Raspberry pi it detect the tab and create a file ttyACM0 in /etc/dev. Using this file I tried to communicate with tab but tab doesn't respond. – viranka Oct 08 '15 at 05:32
1 Answers
1
My Android app is programmed to make the tablet work as the host.
In this case the answer is no; the micro USB connector is power only (no data) and the other USB jacks work in host mode only.

goldilocks
- 58,859
- 17
- 112
- 227