1、DSP端发送消息
目录/home/dvrrdk/DVRRDK_04.00.00.03/dvr_rdk/mcfw/src_bios6/links_c6xdsp/alg_link/swosd
osdLink_alg.c中AlgLink_OsdalgProcessFrame(AlgLink_OsdObj * pObj, FVID2_Frame *pFrame)函数里添加
System_linkControl(SYSTEM_LINK_ID_HOST,VSYS_EVENT_MOTION_DETECT, scdResultBuff, sizeof(AlgLink_ScdResult),TRUE);
2、arm端接收消息
在目录/home/dvrrdk/DVRRDK_04.00.00.03/dvr_rdk/demos/mcfw_api_demos/mcfw_demo
下的demo.c里的函数Demo_eventHandler(UInt32 eventId, PtrpPrm, Ptr appData)
参数pPrm就是dsp中的scdResultBuff
if(eventId==VSYS_EVENT_TAMPER_DETECT)
{
printf(" The A8 Result is %s
", (char*)pPrm);
//Demo_captureGetTamperStatus(pPrm);
}