MOP on multiple threads
We have an aplication using the connection through the old OSDK. We use the MOP function to upload/download a few bytes of telemetry every few seconds. We encounter the problem when we now use the PSDK simultaneously, where a command is sent and a file is received (about 150 bytes). We use a different channel ID. When the msdk client connects, the PSDK throws the error "Execution timeout. Suggestion: Please contact DJI for help." just to establish the connection. I can send commands to the PSDK, but the file download is constantly interrupted by timeouts. Of course, when I kill the OSDK, everything works correctly. On DJI SDK forum there are other developer that have the "same issue". He is trying to have two communication threads using only the PSDK, but he has exactly the same problem: timeouts sending downstream. DJI says : " from a design point of view, it is possible for the two channels to send and receive data independently without affecting each other" But it seems there must be some kind of incompatibility
Agent comment from Leon in Zendesk ticket #145898:
Hello, your question is, are PSDK, OSDK, and MSDK sending and receiving data to each other at the same time? Can you provide the drone firmware number and the version numbers of these SDKs?
°°°
hello. i have two threads on MSDK:
- one connect with OSDK for receiving some telemetry (few bytes per 3 seconds) and sending some command.
- other thread connected to PSDK is for send a "requestfile command" and receive a file.
MSDK is version 5.13.0 (we will update to lastest) PSDK is 3.11.0 Firmware dron are 10.01.0801 (lastest for 2024-10-11) / controller 3.4.18.68 OSDK i think is 4.1.0 because the lastest commit is
If MOP communication between MSDK-OSDK is establishes, then the MSDK establishes its communication with PSDK and the log of PSDK shows this error before send anything
This timeout does not occur if the MSDK-OSDK connection is not established.
it works ok, i can send command and receive the file from PSDK.
But when other channel is stablished, i can upload commands to drone but I have timeouts when download.
other developer says that have same problem but with two threads (two channel ID) on same connection MSDK-PSDK. https://sdk-forum.dji.net/hc/en-us/community/posts/45750739365913-DJI-sdk-interconnection-MOP-channel-simultaneuous-read-send?page=1 thanks
@dji-dev hello, do you have some feedback about this problem? thank