Connexion State of the RTK using customize network
CompletedHello,
I am currently working on the DJI mobile SDK on Android.
I was wondering if it is possible to know the current connexion state of the RTK by using a customize Network.
I didn't find any listener in the SDK documentation able to retrieve the RTK connection state. For example, I would like to retrieve the "Converging.." state when it tries to connect to the network and the "Connected" state when it has successfully connected.
I also wonder if it is necessary to use the startNetworkRTKService and if this is the case then I would like to know a little more about the coordinate systems to put as inputs for example and its usefulness.
Kind regards
Quentin Arnaud
-
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. -
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?
-
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.
-
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. -
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. -
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. -
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. -
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. -
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. -
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. -
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. -
Hello, I would like to restart this conversation because by using the RTK, via the customizer network, on my app, I realized that after a certain time (around 10 minutes) the RTK disconnected all alone. Do you know if there is a need to mention the network we are using so that it does not disconnect us ? Or something else to do. The RTK is really new for me.
Please sign in to leave a comment.
Comments
14 comments