Connexion State of the RTK using customize network

Completed

Comments

12 comments

  • DJI Developer Support
    You can use INetworkServiceInfoListener to monitor the status of network RTK. When it shows "TRANSMITTING," it means a successful connection to the RTK server for transmitting RTK data. On the other hand, "CONNECTING" indicates that the connection to the RTK server is in progress. It is essential to call startNetworkRTKService to initiate the connection to the RTK server for data retrieval, which essentially starts the RTK process. If there are no specific coordinate system requirements for the flight mission, you can set the coordinate system to WGS84 by default, as it is the same coordinate system used for waypoint missions. CGCS2000 refers to the Chinese Geodetic Coordinate System. It is important to note that a successful RTK connection does not necessarily mean that the aircraft is using RTK data. The aircraft will evaluate the quality and stability of the RTK data before using it for navigation. When using RTK navigation, RTKSystemState.isRTKHealthy will be true.
    0
    Comment actions Permalink
  • Quentin Arnaud

    Thank you for your reply.

    I have a question following this answer regarding the startNetworkRTKService.
    Should we call it as soon as we activate RTKPositioning?

    For example, I launch the connection, I take off and I am using RTK Navigation. Then, I decide to deactivate RTKPositioning and then reactivate it. So I have to stop the RTK service when I disabled the positioning RTK and restart it when I reactivate RTKPositioning, is that right?

    0
    Comment actions Permalink
  • DJI Developer Support
    Yes, if you need to disable RTK positioning, you will need to turn off the RTK service. If by RTK Positioning you mean the position solution of RTK, then when the aircraft is properly connected to the RTK service, RTK Positioning will be activated automatically.
    0
    Comment actions Permalink
  • Quentin Arnaud

    Ok thanks.

    I assume if I have to use the mobile RTK station, the method will be the same using "startConnectToRTKStation", is this correct?

    I have another question regarding your implementation which can be found here https://github.com/dji-sdk/Mobile-SDK-Android-V5/blob/dev-sdk-main/SampleCode-V5/android-sdk-v5-uxsdk/src/main/java/dji/v5/ux/accessory/RTKEnabledWidgetModel.kt  which uses the RtkMobileStationKey.KeyRTKEnable key which is not documented. I wanted to know what it was because my goal is only to know if we are connected to the RTK or not (mobile station or network it doesn't matter). Any connection will be made in the DJI Pilot app.

    0
    Comment actions Permalink
  • DJI Developer Support
    Could you please let me know the model of the drone you are using? I assume if I have to use the mobile RTK station, the method will be the same using "startConnectToRTKStation", is this correct? --> The function startConnectToRTKStation is used to connect to the RTK base station. If you are using D-RTK 2, you will need to use this interface. If you are using network RTK, you will need to use a different interface. Here is a tutorial that provides different connection methods for various RTK services:https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/rtk.html The function of RtkMobileStationKey.KeyRTKEnable is to activate the RTK antenna on the aircraft. The RTK antenna must be activated before connecting to RTK.
    0
    Comment actions Permalink
  • DJI Developer Support
    Could you please let me know the model of the drone you are using? I assume if I have to use the mobile RTK station, the method will be the same using "startConnectToRTKStation", is this correct? --> The function startConnectToRTKStation is used to connect to the RTK base station. If you are using D-RTK 2, you will need to use this interface. If you are using network RTK, you will need to use a different interface. Here is a tutorial that provides different connection methods for various RTK services:https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/rtk.html The function of RtkMobileStationKey.KeyRTKEnable is to activate the RTK antenna on the aircraft. The RTK antenna must be activated before connecting to RTK.
    0
    Comment actions Permalink
  • DJI Developer Support
    Could you please let me know the model of the drone you are using? I assume if I have to use the mobile RTK station, the method will be the same using "startConnectToRTKStation", is this correct? --> The function startConnectToRTKStation is used to connect to the RTK base station. If you are using D-RTK 2, you will need to use this interface. If you are using network RTK, you will need to use a different interface. Here is a tutorial that provides different connection methods for various RTK services:https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/rtk.html The function of RtkMobileStationKey.KeyRTKEnable is to activate the RTK antenna on the aircraft. The RTK antenna must be activated before connecting to RTK.
    0
    Comment actions Permalink
  • DJI Developer Support
    Could you please let me know the model of the drone you are using? I assume if I have to use the mobile RTK station, the method will be the same using "startConnectToRTKStation", is this correct? --> The function startConnectToRTKStation is used to connect to the RTK base station. If you are using D-RTK 2, you will need to use this interface. If you are using network RTK, you will need to use a different interface. Here is a tutorial that provides different connection methods for various RTK services:https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/rtk.html The function of RtkMobileStationKey.KeyRTKEnable is to activate the RTK antenna on the aircraft. The RTK antenna must be activated before connecting to RTK.
    0
    Comment actions Permalink
  • DJI Developer Support
    Could you please let me know the model of the drone you are using? I assume if I have to use the mobile RTK station, the method will be the same using "startConnectToRTKStation", is this correct? --> The function startConnectToRTKStation is used to connect to the RTK base station. If you are using D-RTK 2, you will need to use this interface. If you are using network RTK, you will need to use a different interface. Here is a tutorial that provides different connection methods for various RTK services:https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/rtk.html The function of RtkMobileStationKey.KeyRTKEnable is to activate the RTK antenna on the aircraft. The RTK antenna must be activated before connecting to RTK.
    0
    Comment actions Permalink
  • DJI Developer Support
    Could you please let me know the model of the drone you are using? I assume if I have to use the mobile RTK station, the method will be the same using "startConnectToRTKStation", is this correct? --> The function startConnectToRTKStation is used to connect to the RTK base station. If you are using D-RTK 2, you will need to use this interface. If you are using network RTK, you will need to use a different interface. Here is a tutorial that provides different connection methods for various RTK services:https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/rtk.html The function of RtkMobileStationKey.KeyRTKEnable is to activate the RTK antenna on the aircraft. The RTK antenna must be activated before connecting to RTK.
    0
    Comment actions Permalink
  • Quentin Arnaud

    I use the M300 and the M350.
    But actually to be more clear about my use of RTK, I would just like to implement something that allows me to check whether or not RTK is in use (whether with a mobile station or a custom network). I imagine that the whole process of the diagrams in the link you sent me is done when connecting with the DJI Pilot application? If that's the case, then I probably won't need to do all these steps and just want to know if "isRTKHealthy" is true.
    Or even by going through DJI Pilot beforehand, I have to create an interface that allows the service to begin. Here is my first question.

    0
    Comment actions Permalink
  • DJI Developer Support
    If you are using Pilot 2 for the connection, then the tutorial I sent you earlier is indeed invalid for you. They describe the entire connection process. If you are only using MSDK to observe the RTK situation, then you just need to set up the RTK listener, without the need to make any other settings through the SDK.
    0
    Comment actions Permalink

Please sign in to leave a comment.