Skip to content
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

Pipeline or setOnboardSDKDeviceDataCallback #1279

Open
danilofariadutra opened this issue Apr 1, 2024 · 5 comments
Open

Pipeline or setOnboardSDKDeviceDataCallback #1279

danilofariadutra opened this issue Apr 1, 2024 · 5 comments

Comments

@danilofariadutra
Copy link

What is the best way to send/receive data from an onboard device?
I currently use the "setOnboardSDKDeviceDataCallback" method, however, searching on the DJI website, I found a Class called Pipelines that contains an interface called Pipeline. Inside it, there are methods for writing and reading data. What is the most recommended way by DJI?

@dji-dev
Copy link
Contributor

dji-dev commented Apr 2, 2024

Agent comment from yating.liao in Zendesk ticket #104061:

Not all drones support pipeline.
For the models supported by Mobile SDK V4, it only works on the M300. The prerequisite for using pipeline is that PSDK or OSDK has enabled the MOP function. Through this function, larger data transfers can be made between MSDK and O/PSDK.

°°°

@danilofariadutra
Copy link
Author

danilofariadutra commented Apr 2, 2024

I have a Matrice 300 RTK. What option do you suggest for sending/receiving data, the method "setOnboardSDKDeviceDataCallback" or the Pipeline class?

@dji-dev
Copy link
Contributor

dji-dev commented Apr 3, 2024

Agent comment from yating.liao in Zendesk ticket #104061:

If you need to transfer a large amount of data, such as transferring one hundred KB per second, you may want to consider using Pipeline. On the other hand, if you require stable and lightweight data transfer, you can opt for setOnboardSDKDeviceDataCallback.

°°°

@danilofariadutra
Copy link
Author

Is there a difference in transfer rate and data quality loss between the two methods?

@dji-dev
Copy link
Contributor

dji-dev commented Apr 7, 2024

Agent comment from yating.liao in Zendesk ticket #104061:

The transmission rate of Pipeline may be higher than that of callbacks. In terms of stability, the stability of callbacks may be better than Pipeline, as callbacks are based on UART transmission.

°°°

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