Skip to content

NTRIP RTK Cleanup? #553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AdamWardVGP opened this issue Apr 22, 2025 · 2 comments
Open

NTRIP RTK Cleanup? #553

AdamWardVGP opened this issue Apr 22, 2025 · 2 comments

Comments

@AdamWardVGP
Copy link

Hello,

I'm writing to inquire about recommended steps for application cleanup. I have a specific use case where the Pilot 2 app behaves different from mine, so I'm hoping for some guidance since the pilot 2 is performing better.

The place where I notice a difference is using NTRIP RTK connections.

In Pilot 2, I can enable RTK, set it to NTRIP provider, save NTRIP settings, and pilot 2 will connect, with FIX positioning.

Where I notice an issue is if I power off and back on the drone once in this state, when I do so Pilot 2 sometimes doesn't reconnect and positioning never becomes fixed.

The simplest way around this is to close Pilot 2 by swiping away, and then reopen. I can then see RTK FIX re-establish after some time.

In my app, I can follow these same steps but with API calls:

RTKCenter.setAircraftRTKModuleEnabled(true, ...)
RTKCenter.setRTKReferenceStationSource(NTRIP_NETWORK_SERVICE, ...)
RTKCenter.customRTKManager.customNetworkRTKSettings = ...
RTKCenter.customRTKManager.startNetworkRTKService(...)

When I monitor RTKCenter.customRTKManager.addNetworkRTKServiceInfoListener I reach state RTKServiceState.TRANSMITTING
and rtkCenter.addRTKLocationInfoListener will have RTKLocation.positioningSolution of FIXED_POINT

If I then power off and on the vehicle sometimes I get stuck in RTKServiceState.DISCONNECTED just like in Pilot 2.

However closing my app does not fix this, subsequent app sessions will still show RTKServiceState.DISCONNECTED state.

I've tried invoking the following APIs when my app is closed

    rtkCenter.customRTKManager.destroy()
    rtkCenter.destroy()
    // and
    SDKManager.getInstance().destroy()

This however doesn't seem to fix the issue. Can you please advice what calls Pilot 2 could be making that help with the resolution of this issue?

@dji-dev
Copy link
Contributor

dji-dev commented Apr 23, 2025

Agent comment from YIGUI LIU in Zendesk ticket #140704:

Dear Developer,

The Pilot 2 APP doesn't integrate the MSDK, so we can't know their implementation method.
You can try to add a retry mechanism. For example, close the RTK service via stopNetworkRTKService and then start it again via startNetworkRTKService.

Best Regards,
DJI Innovations SDK Technical Support Team

°°°

@AdamWardVGP
Copy link
Author

AdamWardVGP commented Apr 23, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants