Communicate Raspberry PI and Android App through Serial/USB Communication

219 views
Skip to first unread message

Rajesh P

unread,
Aug 11, 2021, 12:24:29 AM8/11/21
to Android-rpi
I've a requirement where I've send some command to Raspberry Pi to request some data and Pi will send data back to Android app. 

I want to achieve this using USB communication. I've tried creating a broadcast receiver with permission <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
, but android app is not able to detect the Pi because PI is in host mode and android device is in client mode. 

Is there any other way to achieve this ? 

Vinayak Soni

unread,
Sep 8, 2021, 11:23:40 AM9/8/21
to Android-rpi
Here, you mean one Raspberry Pi is running Android and you want to communicate to another Android device? Just FYI, this group is mainly for raspberry pi running Android.
Reply all
Reply to author
Forward
0 new messages