Mobile-SDK-Android icon indicating copy to clipboard operation
Mobile-SDK-Android copied to clipboard

MSDK build-in simulator module for Mini2

Open Lionas opened this issue 3 years ago • 10 comments

I found the following description in the release notes, but I don't know how to. Is there a document showing how to do this?

Note for DJI Mini 2: 2. Due to hardware limitation, the DA2 simulator cannot be used, please use the MSDK build-in simulator module for debugging.

Lionas avatar Dec 31 '21 07:12 Lionas

Agent comment from DJI SDK in Zendesk ticket #58633:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev avatar Dec 31 '21 07:12 dji-dev

The build-in simulator means simulator module, check this link. Link:https://github.com/dji-sdk/Mobile-SDK-Android/blob/master/Sample%20Code/app/src/main/java/com/dji/sdk/sample/demo/flightcontroller/VirtualStickView.java

DJI-William avatar Dec 31 '21 09:12 DJI-William

@DJI-William Thank you for your reply. I understand the meaning of the simulator.

However, I'm having trouble connecting to Mini2 and I'm stuck on this screen. What should i do? (Of course, the API key has already been added to AndroidManifest.xml.)

com.dji.sdk.sample.internal.view.MainContent: mProduct: null

Lionas avatar Dec 31 '21 09:12 Lionas

Have you register app correctly? Could you take a video record show your process? Link:https://pan-sec.djicorp.com/s/HnoSaQ9iSsPqEfx dji123

DJI-William avatar Dec 31 '21 09:12 DJI-William

@DJI-William I record a video and uploaded it. If you can confirm it, please delete the video.

Lionas avatar Dec 31 '21 09:12 Lionas

@DJI-William I'm sorry. I didn't understand that I had to simply press "Register APP" after launching the app.

However, the first click does not have enough permissions, so ActivityCompat.requestPermissions() in MainContent.java#checkAndRequestPermissions() is called, but it seems that the process is stopped here. When I restart the sample app, it passes missingPermission.isEmpty (), so it doesn't seem to cause any problems.

Lionas avatar Jan 01 '22 14:01 Lionas

@Lionas The key is correct. But in the video and didn't see you press the Register App so I don't know the error message. Is your Github Sample the latest? Because we just update it end of last week.

DJI-William avatar Jan 04 '22 03:01 DJI-William

The README only state that the APP KEY is needed. But what about the Bundle Identifier??

Screenshot_20220104-125924_DJI SDK Sample

frippe75 avatar Jan 04 '22 12:01 frippe75

But solved this by creating an App with the same bundle name as used in the sample app and now the registration succeeds.

frippe75 avatar Jan 04 '22 12:01 frippe75

image Your bundle identifier is matched with the package name, this is correct. I am not sure if your WIFI is good in signal quality. Maybe change to LTE network and try again.

DJI-William avatar Jan 05 '22 02:01 DJI-William