Support for Mobile SDK


Firmware Upgrade
Currently, the firmware upgrade on the product page is for all users. This firmware supports DJI GO and some functions available in the SDK. The firmware upgrade on the SDK page is for developers only and supports more advanced functions, such as intelligent flight modes and waypoints.
Did this help answer your questions?Yes/No
Aircraft manufactured after April 15, 2015 cannot be upgraded to the latest version because the firmware version (Inspire 1 V1.2.1.06, P3P V1.2.6) is higher than that provided on the developer page (Inspire 1 V1.2.1.2, P3P V1.1.1003). You can download the latest firmware upgrade kit when it is available on the developer website.
Did this help answer your questions?Yes/No
Product Application
No. You must modify the API to use the new SDK.
Did this help answer your questions?Yes/No
The maximum image size is 720p and the maximum frame rate is 30 fps.
Did this help answer your questions?Yes/No
Software Configuration
Use ADB over Wi-Fi to debug the Mobile SDK on an Android device. First, use the simulator to check the flight controller information.
Then connect your mobile device to a PC and run the following commands:
1. adb shell
2. setprop service.adb.tcp.port 5555
3. exit
4. adb tcpip 5555
Disconnect the mobile device from the PC and verify that the Wi-Fi IP address of mobile device is adb connect xxx.
Did this help answer your questions?Yes/No
You have not successfully activated your SDK. There are number of reasons this could be the case:
1. Meta Data obtained is not legitimate. This occurs when:
(a) The Meta Data field for com.dji.sdk.APP_KEY in AndroidManifest.xml is not configured; or
(b) The Meta Data field for com.dji.sdk.APP_KEY in AndroidManifest.xml is empty.
If the Meta Data is not legitimate, make sure the Package Name of your key is consistent with that in the current program.
2. You are not connected to the Internet. When using the SDK for the first time, you need a Wi-Fi Internet connection to activate your device.
3. Your JDK does not support AES256BIT. Download the JAR file for your JDK version via the following links:
JDK
6: http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
JDK
7: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
JDK
8: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Back up your data and replace the original JAR package with the downloaded one.
C:Program FilesJavajre7libsecuritylocal_policy.jar
C:Program FilesJavajre7libsecurityUS_export_policy.jar
Did this help answer your questions?Yes/No
This may be due to the following reason(s):
1. Your firmware version does not support Ground Station. If you are using the aircraft firmware version from the product page instead of the developer page, you need to upgrade your firmware to the developer version.
2. Your RC switch set to A mode instead of F mode. Make sure the RC switch is set to F mode and try calling OpenGroundStation and UploadWaypoint.
Did this help answer your questions?Yes/No
Sign up for an account at dev.dji.com. After you log in, you can apply for SDKs of different levels and we will examine your application. If we authorize you to download the SDK installation package, you will find the documentation and demo in the installation package.
Did this help answer your questions?Yes/No
Please check:
1. Mouse over DJI-SDK-DEMO(SDK V2.0) and right click it. Choose Properties -> Android. Then check whether ../../Lib/DJI-SDK-LIB has been added to the Library.
2. Change the properties for - C/C++ Build - by setting it to generate makefile automatically, or change “Build type” to “Internal Builder”.
3. Try changing the import order for LIB and DEMO.
Did this help answer your questions?Yes/No
PPS begins with 0x00 0x00 0x00 0x00 0x01 0x68 and ends with 0x00 0x00 0x00 0x01.
SPS begins with 0x00 0x00 0x00 0x00 0x01 0x67 and ends with 0x00 0x00 0x00 0x01.
Did this help answer your questions?Yes/No
Bare H264 code stream. There is no encapsulation.
Did this help answer your questions?Yes/No
All I-frame information is in the demo folder XX: \Eclipse\DJI-SDK-Android-V2.1.0\Lib\DJI-SDK-LIB\res\raw. You can add it to each frame to decode.
Did this help answer your questions?Yes/No
Others
You can find the I-frame in DJI-SDK-LIB/res/raw.
iframe_1280_ins.h264 for Inspire 1, Phantom 3 Pro, M100
iframe_960_3s.h264 for Phantom 3 advanced 4:3
iframe_1280_3s.h264 for Phantom 3 Advanced 16:9
Insert the I-frame to the front of the decoding
Did this help answer your questions?Yes/No
Ground Station is not turned on. Enable Ground Station by entering DJIDrone.getDjiGroundStation().openGroundStation(). Make sure OpenGroundStation is called back successfully. Then upload Waypoint and make sure the RC is set to F mode.
Did this help answer your questions?Yes/No
The flight controller only supports one GroundStationTask. If you want to define the aircraft attitude, you can use the joystick.
Did this help answer your questions?Yes/No