LDM's full name is Local Data Mode, a mode for offline user. Once this mode is enabled, the app can run offline. The users are required to apply the LDM permission to enable LDM mode for your aircraft. Normally the police department or government are interested in using this mode when they are using local ethernet.
Once you have applied succesfully, you can enable LDM by the following steps:
- Place your aircraft and installed MSDK device under an online environment. Switch on your aircraft, run your app and register in SDK, login with your DJI account.
- Call enableLDM to enable LDM, then switch off the aircraft and kill your MSDK app.
- Place your aircraft under an offline environment . Switch on your aircraft and run your app again. The app will read the local cache and register SDK without accessing internet. DJI account will never logout and remain login forever. You can fly without internet now.
- You need to use MSDK 4.16 version or above.
- If you want to run LDM with an exclusion with a certain modules to access internet, you need to call setModuleNetworkServiceEnabled before enabling LDM. For example, if you want to use RTK module under LDM, you can call DJIError error = DJISDKManager.getInstance().getLDMManager().setModuleNetworkServiceEnabled(new LDMModule.Builder().moduleType(LDMModuleType.RTK).enabled(true).build());.
- For MSDK 4.16 version or above, the exclusive modules includes RTK, USER_ACCOUNT, LIVE_STREAMING and FIRMWARE_UPGRADE.
- How to know LDM is enabled: DJISDKManager.getInstance().getLDMManager().isLDMEnabled().
- How to know my appkey has granted permission for LDM enabling: DJISDKManager.getInstance().getLDMManager().isLDMEnabled().