Hello all,
After solving an earlier issue (also posted on this forum a few posts down), I was able to connect to the DS-KD8003 via the C++ SDK provided by HikVision. I can do live viewing, record video, etc., all programmatically.
The problem I am running into now is that I want to listen for a doorbell press, so I can start doing something when someone presses the actual button. Reading through the SDK documentation, it looks like this has to be done using Alarm Events. There is an alarm called COMM_ALARM_BUTTON_DOWN_EXCEPTION, which is described as "Press button alarm information (IP main door station)" - which sounds like the thing I want.
The problem is that I cannot seem to use NET_DVR_StartListen_V30, NET_DVR_SetupAlarmChan_V30 or NET_DVR_SetupAlarmChan_V41 - I tried them all, they all return error code 109. According to the error code documentation, that means "Load Alarm component Failed."
Does this mean the DS-KD8003 does not HAVE an "alarm component"? Is there another way to detect a button press? Since iVMS-4200 CAN read the button press, I assume there must be. I also looked into enabling the web ISAPI thing, but even if I change the port from 80 to something else, it just keeps being blocked, so that appears to be a dead end.
Does anyone have any idea how to listen for a button press event on this device?
Thanks!
After solving an earlier issue (also posted on this forum a few posts down), I was able to connect to the DS-KD8003 via the C++ SDK provided by HikVision. I can do live viewing, record video, etc., all programmatically.
The problem I am running into now is that I want to listen for a doorbell press, so I can start doing something when someone presses the actual button. Reading through the SDK documentation, it looks like this has to be done using Alarm Events. There is an alarm called COMM_ALARM_BUTTON_DOWN_EXCEPTION, which is described as "Press button alarm information (IP main door station)" - which sounds like the thing I want.
The problem is that I cannot seem to use NET_DVR_StartListen_V30, NET_DVR_SetupAlarmChan_V30 or NET_DVR_SetupAlarmChan_V41 - I tried them all, they all return error code 109. According to the error code documentation, that means "Load Alarm component Failed."
Does this mean the DS-KD8003 does not HAVE an "alarm component"? Is there another way to detect a button press? Since iVMS-4200 CAN read the button press, I assume there must be. I also looked into enabling the web ISAPI thing, but even if I change the port from 80 to something else, it just keeps being blocked, so that appears to be a dead end.
Does anyone have any idea how to listen for a button press event on this device?
Thanks!