dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
998 stars 580 forks source link

Cant get the MSDK 4.16.2 to to work on the M300 RTK #1180

Closed Salabda closed 2 years ago

Salabda commented 2 years ago

Hi, I'm trying to run the sample code MSDK 4.16.2 . I have only updated the manifest to write the app key, I have done nothing else to it. The app registers successfully. Shortly after a toast appears on screen ""db load success ! get version error : The execution could not be executed."

I have tried on two phones. The android versions are 10 and 11.

I have no idea what to try with this. Screenshot_20220918_225630

DJI-William commented 2 years ago

This issue does not prevent you using this demo. It is a demo issue and it will fix in 4.16.3's Sample

Salabda commented 2 years ago

It does prevent me. The application never connects and it cannot be opened.

DJI-William commented 2 years ago

Then it is another problem. Which aircraft are you using and what kind of RC you are using?

Salabda commented 2 years ago

I get the same problem with both A) Phantom 4 and its controller and, B) M300 RTK and its Enterprise Smart Controller

DJI-William commented 2 years ago
  1. For Phantom 4, you must using a RC without the screen, then you can connect the RC externally with an Android device.
  2. Swipe down the M300's RC manual and you can find an USB symbol on top right corner, make sure you are using the host. Then you can connect to the external device. Or you can just install your MSDK Sample inside the M300 RC. I suspect you are meeting a physical connection problem because you have successfully registered the MSDK.
Salabda commented 2 years ago

I'm using the Phantom 4 without an external screen. This problem only occurs with the 4.16. version. I 'm planning to build an android app, so I need to use the phone with M300 RTK.

DJI-William commented 2 years ago

When the cable is connected, have you seen a window pops up and ask you to select the app? Please select your Sample app and the sample will automatically pops up and register. If you have linked the RC with the aircraft and the aircraft is switched on, the open button should be enabled.

Salabda commented 2 years ago

It worked when I plug the controller and the phone to be before registering the app. But it only worked on one phone (vivo x70 pro plus) on the other one(Samsung galaxy j8) the app is unstable.