Search code examples
iotraspberry-pi3android-things

Unable to connect Rainbow Hat/Raspberry pi3 with Android Things using adb


I'm using Pimoroni Rainbow-Hat Raspberry pi3 kit. I have loaded android things image on sdcard. I have power cable and ethernet cable connected. I can see Android things boot screen on display but i don't see the IP.

When i try to connect with adb connect Android.local it's not working(getting unknow host). I tried the ethernet cable from pi3 ethernet port to laptop , i can see the lan ip when i do ipconfig /all but when i try adb connect <-ip-:5555, still connection gets refused. but am able ping to the ip.

I am using Windows 7 OS. Tried turning off IP v6, Windows Firewall, rebooting host etc, still not able to connect. My main problem is getting the Aot device recognised on the host and load the app onto it.

I'm aware but haven't tried usb to ttl serial cable option mentioned here

I'm familiar with Android but new to iot/Aot , any help about where i am going wrong would be appreciated.


Solution

  • When i try to connect with adb connect Android.local it's not working(getting unknow host).

    I tried the ethernet cable from pi3 ethernet port to laptop

    The Raspberry Pi is a computer in its own right.

    You need to connect the ethernet cable from the Pi3 to your router aka to the local network (not into your computer directly)

    The follow the steps from the docs here and setup wifi to avoid further cable issues.