使用 adb 连接到 Raspberry Pi 3 [英] connect to Raspberry Pi 3 using adb

查看:29
本文介绍了使用 adb 连接到 Raspberry Pi 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用 adb 连接到运行 的 Raspberry Pi 3Android 事物?

How do I connect w/ adb to the Raspberry Pi 3 running Android Things?

推荐答案

Android Things for Raspberry Pi 仅支持通过以下命令使用 adb-over-ip 连接到 adb:<代码>adb connect ``

Android Things for Raspberry Pi only support connecting to adb using adb-over-ip with the following command: adb connect `<raspberry-pi-ip-address>`

根据您的 Pi 设置,您有多种选择来查找您的 IP 地址:

You have multiple options to find your IP address depending on your Pi setup:

  • 如果您的 Pi 连接到以太网和屏幕:它应该会在 Android Things 启动器屏幕上向您显示其 IP 地址.
  • 如果你有一个连接到以太网的无头 Pi:如果你有 mDNS/Bonjour 支持,你可以直接 ping Android.local,或者查看 https://learn.pimoroni.com/tutorial/raspberry-pi/finding-your-raspberry-pi有关如何使用第三方工具查找 Pi IP 地址的信息.
  • 如果您没有任何屏幕或以太网连接,您可以在 UART0 连接器上连接 USB 转 TTL 串行电缆(查看引脚分配并键入以下命令以连接到 WiFi 网络并获取 Pi IP 地址:

  • If your Pi is connected to Ethernet and a screen: it should show you its IP address on the Android Things launcher screen.
  • If you have a headless Pi connected to Ethernet: you can directly ping Android.local if you have mDNS/Bonjour support, or see https://learn.pimoroni.com/tutorial/raspberry-pi/finding-your-raspberry-pi for info on how to find your Pi IP address using third-party tools.
  • If you don't have any screen or Ethernet connection, you can connect a USB to TTL serial cable on the UART0 connector (see pinout and type the following command to connect to a WiFi network and get the Pi IP address:

am startservice -n com.google.wifisetup/.WifiSetupService 
    -a WifiSetupService.Connect 
    -e ssid '<NETWORK_SSID>' -e passphrase '<NETWORK PASSPHRASE>'
ifconfig

这篇关于使用 adb 连接到 Raspberry Pi 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆