Upload Access Control Event

For access control devices being configured with alarm or event rule parameters, arming schedule, linkage action, and so on, when the alarm is triggered or event occurred, the device can automatically upload the alarm or event information, and you can receive the alarms or event via platform or system.

  • Make sure you have called NET_DVR_Init to initialize the development resources.

  • Make sure you have called NET_DVR_Login_V40 to log in to device.

  • Make sure you have collected the face data, refer to Collect Face Data for details.

Figure 1 Programming Flow of Uploading Access Control Event

  1. Call NET_DVR_SetDVRMessageCallBack_V50 to set alarm callback function (MSGCallBack) and set lCommand in the callback function to "COMM_ALARM_ACS" (command No.: 0x5002) for specifying access control events to be uploaded.
  2. Call NET_DVR_SetupAlarmChan_V50 to enable alarm or event uploading connection.

    The access control alarm or event information is uploaded and called back in the structure NET_DVR_ACS_ALARM_INFO.

  3. Call NET_DVR_CloseAlarmChan_V30 to disconnect uploading connection.
    Figure 2 Event Uploading Example Page

Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.