Hi
In the high-end corner radar demo, the function DPM_ioctl realizes some of the DPC control.In this demo, the function sendResultsExportedCommand calls the function DPM_ioctl as belows:
void sendResultsExportedCommand(DPM_Buffer *ptrResult){
int32_t retVal;
DPC_ObjectDetection_ExecuteResult *dpcResults;
DPC_ObjectDetection_ExecuteResultExportedInfo exportInfo;
uint8_t temp[8];
UART_Transaction trans;
UART_Transaction_init(&trans);
/* Validate DPC results buffer */
DebugP_assert (ptrResult->size[0] == sizeof(DPC_ObjectDetection_ExecuteResult));
/* Translate the address: */
dpcResults = (DPC_ObjectDetection_ExecuteResult *) AddrTranslateP_getLocalAddr((uint32_t)ptrResult->ptrBuffer[0]);
/*****************************************************************
* Send notification to data path after results are handled
*****************************************************************/
/* Indicate result consumed and end of frame/sub-frame processing */
exportInfo.subFrameIdx = dpcResults->subFrameIdx;
retVal = DPM_ioctl (gMmwMssMCB.objDetDpmHandle,
DPC_OBJDET_IOCTL__DYNAMIC_EXECUTE_RESULT_EXPORTED,
&exportInfo,
sizeof (DPC_ObjectDetection_ExecuteResultExportedInfo));
Commandtime=(CycleCounterP_getCount32()-Commandtime)/300;
if (retVal < 0) {
test_print ("Error: DPM DPC_OBJDET_IOCTL__DYNAMIC_EXECUTE_RESULT_EXPORTED failed [Error code %d]\n",
retVal);
MmwDemo_debugAssert(0);
}
}
In the test, I conduct this problem, the return value retVal is zero in the MSS demo,but the DPC_ObjectDetection_ioctl don't recevie any command in the DSS demo.That is to say the MSS has send an command sucessfully by DPM_ioctl , but the DSS demo doesn't receive any data. What is the reason of this?How should I solve it?
Thanks,
BR
Rata