M3E MSDK / PSDK (RTOS) communication
Hello,
TLDR:
Is there any recommended way to exchange binary data in both ways (psdk <-> msdk) on M3E when psdk is installed on RTOS?
---
We are trying to establish communication between PSDK and MSDK and the device is Mavic 3 Enterprise.
Our PSDK device is a stm32 running FreeRTOS and we were exploring available options.
It seems that the recommended way would be to use SDK interconnection, however it's available only on linux.
There is a method on PayloadManager (MSDK side) IPayloadManager#sendDataToPayload that looks promising, however we couldn't find a coresponding method on the PSDK side.
The only option that seems to fit on the psdk side is DjiHighSpeedDataChannel_SendDataStreamData, however the high speed data channel is available only on linux as well as M3E doesn't support it, according to the documentation.
It seems that there was PsdkDataTransmission_SendDataToMobile in psdk v2 but on v3 it no longer exists.
Thanks in advance.
-
Never mind. I initially thought that LowSpeed and HighSpeed data transfer protocols are two different things, but it seems they are just an "implementation detail" built on top of simple communication between various channels (one of them being Remote Control - RC), so we can choose only one of them.
The
DjiLowSpeedDataChannel_SendData
method, withchannelAddress = E_DjiChannelAddress#DJI_CHANNEL_ADDRESS_MASTER_RC_APP
, works perfectly. By invoking this method, I can see the messages displayed on the "TESTING TOOLS -> PSDK Test -> OPEN PAYLOAD DATA PAGE -> LEFT_OR_MAIN" screen. Additionally, messages invoked from this screen are successfully received by theDjiLowSpeedDataChannel_RegRecvDataCallback
method.
Please sign in to leave a comment.
Comments
2 comments