DJI Mobile SDK Documentation

      class RTKNetworkServiceProvider

      class RTKNetworkServiceProvider
      Package:dji.sdk.network
      Description:

      This class is used to control the RTK network service. The DJIRTKNetworkServiceProvider can initiate the communication to a third-party RTK network server. The information from the server can be streamed to the RTK airsystem. SDK will not cache the settings to the disk. The provider should be configured in each life cycle of SDK. The life cycle of the network service provider is independent from the aircraft. Therefore, it can be configured before connecting to DJI aircrafts. It is only support Phantom 4 RTK.

      Class Members:
      Get Instance
      method
      method getInstance
      synchronized static RTKNetworkServiceProvider getInstance()
      Package:dji.sdk.network
      Description:

      Accessor for RTKNetworkServiceProvider object.

      Return:
      synchronized static RTKNetworkServiceProviderAn instance of the RTKNetworkServiceProvider object.
      Set Network Service Settings
      method
      method setCustomNetworkSettings
      void setCustomNetworkSettings(@NonNull final NetworkServiceSettings settings)
      Package:dji.sdk.network
      Description:

      Sets the configuration for the network service that provides network reference stations. The network service should use NTRIP (Networked Transport of RTCM via Internet Protocol).

      Input Parameters:
      @NonNull final NetworkServiceSettings settingsThe configuration to set.
      method getCustomNetworkSettings
      NetworkServiceSettings getCustomNetworkSettings()
      Package:dji.sdk.network
      Description:

      Gets the configuration for the network service that provides network reference stations. The network service should use NTRIP(Networked Transport of RTCM via Internet Protocol).

      Return:
      NetworkServiceSettingsAn instance of NetworkServiceSettings.
      Start Network Service
      method
      method startNetworkServiceWithCompletion
      void startNetworkServiceWithCompletion(@Nullable final CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.network
      Description:

      Starts the network service as the reference station. This should be called after setting the network service (setCustomNetworkSettings).

      Input Parameters:
      @Nullable final CommonCallbacks.CompletionCallback callbackThe completion block that receives the result.
      Stop Network Service
      method
      method stopNetworkServiceWithCompletion
      void stopNetworkServiceWithCompletion(@NonNull final CommonCallbacks.CompletionCallback callback)
      Package:dji.sdk.network
      Description:

      Stops the network service.

      Input Parameters:
      @NonNull final CommonCallbacks.CompletionCallback callbackThe completion block that receives the result.
      Add Network Service State Listener
      method
      method addNetworkServiceStateCallback
      void addNetworkServiceStateCallback(@NonNull final NetworkServiceState.Callback callback)
      Package:dji.sdk.network
      Description:

      Adds a listener to receive the latest network service state.

      Input Parameters:
      @NonNull final NetworkServiceState.Callback callbackThe completion block that receives the result.
      Remove Network Service State Listener
      method
      method removeNetworkServiceStateCallback
      void removeNetworkServiceStateCallback(@NonNull final NetworkServiceState.Callback callback)
      Package:dji.sdk.network
      Description:

      Removes a listener that is added by passing to addNetworkServiceStateCallback.

      Input Parameters:
      @NonNull final NetworkServiceState.Callback callbackThe completion block that receives the result.
      enum NetworkServiceChannelState
      enum NetworkServiceChannelState
      Package:dji.common.flightcontroller.rtk
      Description:

      All the possible state of NetworkServiceChannelState.

      Enum Members:
      DISABLEDThe network service is not started.
      NETWORK_NOT_REACHABLEThe network is not reachable from the mobile device.
      AIRCRAFT_DISCONNECTEDThe aircraft is not connected.
      LOGIN_FAILURESDK cannot login with the provided username and password. Check getError.
      READYThe channel from the server to the aircraft is built up. It is ready for transmission.
      TRANSMITTINGData is transmitting through the channel.
      DISCONNECTEDThe channel is disconnected and the server is not reachable now. Check getError.
      UNKNOWNUnknown.
      Class Members: