Hi :
I use scd alg have two question.
1. scd support passive get the data(just like event or callback,if scd event (tamper or detect event happen auto call API to get the event data)
2. I use Vsys_registerEventHandler(__demo_eventHandler,NULL); register a functon to handle the SCD event,but it never(but I can get the event data use the API Vcap_getAlgResultBuffer()
my callback function:
static int __demo_eventHandler(unsigned int eventId,void *prm,void *appdata) { if(eventId == VSYS_EVENT_TAMPER_DETECT) { AlgLink_ScdChStatus *pscdsat=(AlgLink_ScdChStatus *)prm; if(pscdsat->frmResult == ALG_LINK_SCD_DETECTOR_CHANGE) { xeLOG_WARNING("[TAMPER DETECT] channelId=%d",pscdsat->chId); } else if(pscdsat->frmResult == ALG_LINK_SCD_DETECTOR_NO_CHANGE) { xeLOG_WARNING("[TAMPER MOVED] channelId=%d",pscdsat->chId); } return 0; } if(eventId == VSYS_EVENT_MOTION_DETECT) { AlgLink_ScdResult *pscdresult=(AlgLink_ScdResult *)prm; xeLOG_WARNING("[MONTION DETECT] channelId=%d",pscdresult->chId); return 0; } return 0; }
current rdk350 not support register callback for event?