简体   繁体   English

DJI Android SDK桥接

[英]DJI Android SDK bridge

I working in a project with Phantom 4 advanced+, i downloaded the most recent android sdk version from github. 我在Phantom 4 Advanced +的项目中工作,我从github下载了最新的android sdk版本。 i edited the code with the developer key that asks and run it in the android studio emulator. 我使用要求在Android Studio模拟器中运行的开发人员密钥编辑了代码。 It asks WSBridge ip, but i have no idea how to find it. 它询问WSBridge ip,但我不知道如何找到它。 I did a lot of research and found different solutions, but none of them worked out for me. 我做了很多研究,发现了不同的解决方案,但没有一个适合我。 Already downloaded DJI Bridge that dji suggest and i followed the instructions step by step and still didn't found it. 已经下载了dji建议的DJI Bridge,但我已按照说明逐步进行操作,但仍然没有找到它。

Any information about how can i find it, or anything that you believe can solve my problem it would be very helpfull for me. 有关如何找到它的任何信息,或者您认为可以解决我的问题的任何信息,对我来说将非常有帮助。

Thanks a lot. 非常感谢。

  1. Install the BridgeApp in an actual Android phone ( https://github.com/dji-sdk/Android-Bridge-App ) 在实际的Android手机中安装BridgeApp( https://github.com/dji-sdk/Android-Bridge-App
  2. Connect the phone to RC and Wifi and make sure both left and right indicators are green. 将电话连接到RC和Wifi,并确保左右指示灯均为绿色。
  3. On the bridgeapp screen, you should see IP address. 在bridgeapp屏幕上,您应该看到IP地址。 That is the IP address you need to give SDK for SDK to connect to BridgeApp. 这是为SDK提供SDK以连接到BridgeApp所需的IP地址。
  4. Connect SDK to BridgeApp using the enableBridgeModeWithBridgeAppIP method inside SDKManager class. 使用SDKManager类中的enableBridgeModeWithBridgeAppIP方法将SDK连接到BridgeApp。

-This is only if you want to use DJI SDK using Bridge mode. -仅当您想通过桥接模式使用DJI SDK时。 The benefit of this is in debugging, since the app that is running DJISDK can be run in a different phone than the phone that actually connects to the RC. 这样做的好处在于调试,因为运行DJISDK的应用程序可以在与实际连接到RC的电话不同的电话中运行。 -If you don't need this, you don't have to use BridgeApp and Bridge mode of DJI SDK. -如果不需要,则不必使用DJI SDK的BridgeApp和Bridge模式。 Connect the phone that has DJI SDK app running directly to the RC and it should work. 将直接运行DJI SDK应用的手机连接至RC,即可正常使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM