Android Things:连接到 Raspberry Pi 3 [英] Android Things: Connect to Raspberry Pi 3

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

问题描述

完全是新手,我有一个 Raspberry Pi 并且已经安装了 Android Things 磁盘映像并启动了它,但是我无法从 Raspberry Pi 连接到它em>Windows 10 PC 通过以太网或 USB 运行 Android Studioadb.exe?Pi 屏幕有一个绿色和灰色的androidthings"标志,但显示未连接".

Total newbie, I have a Raspberry Pi and have put the Android Things disk image on and booted it up, but I can't connect to it from a Windows 10 PC running Android Studio, adb.exe via Ethernet or USB? The Pi screen has a green and grey "androidthings" logo, but says "Not Connected".

如果我连接 USB 电缆并使用 adb devices 命令,则未检测到任何内容.如果我连接以太网电缆并使用 adb connect android.local 命令,它会显示 unable to connect to android.local:5555?

If I connect a USB cable and use the adb devices command, nothing is detected. If I connect an Ethernet cable and use adb connect android.local command it says unable to connect to android.local:5555?

我尝试了两个 Pi 的结果相同.

I have tried two Pi's with the same result.

推荐答案

Pi 屏幕有一个绿色和灰色的AndroidThings"徽标但显示未连接".

The Pi screen has a green and grey "AndroidThings" logo but says "Not Connected".

"Not Connected" 消息意味着您的 RPi3 不在您的本地网络中,这很可能是由于直接连接RPi3 与您的 PC/笔记本电脑.你应该做的如下.

The "Not Connected" message means your RPi3 is not in your local network, which most likely caused by directly connecting the RPi3 with your PC / laptop. What you should do is as follows.

为了显示分配的IP地址.

  • 使用显示的IP通过adb连接到RPi3:

 adb connect rpi3_ip_address

  • 设置 Wi-fi 设置按照文档:

     adb shell am startservice -n com.google.wifisetup/.WifiSetupService -a WifiSetupService.Connect -e ssid network_SSID -e passphrase network_passcode
    

  •     adb connect Android.local
    


    注意事项:

    • network_SSIDnetwork_passcode 区分大小写
    • 如果您的网络没有密码,请删除 -e 密码 network_passcode

    连接到串行调试控制台并按照上述设置Wi-Fi设置,只需使用am startservice etc... 这次.

    Connect to Serial Debug Console and setup Wi-Fi settings as above, just using am startservice etc... this time.

    如果我连接了 USB 电缆并使用 adb devices 命令,则没有检测到任何内容.

    If I connect a USB cable and use the adb devices command, nothing is detected.

    RPi 的微型 USB 并不意味着通过它传输数据:感谢@Fabio 的评论 (不要忘记投票).

    Micro USB of RPi isn't meant to transfer data over it: a credit goes to @Fabio's comment (don't forget to vote it up).

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

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