Search for Access Control Events

If the access control alarms or events are received and stored in access control device, you can search for the alarms or events by setting different search conditions.

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

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

Figure 1 Programming Flow of Searching for Access Control Events

  1. Call NET_DVR_StartRemoteConfig with "NET_DVR_GET_ACS_EVENT" (command No: 2514) and set IpInBuffer to NET_DVR_ACS_EVENT_COND for enabling persistent connection to start searching for access control events.
    Note:

    The status callback function fRemoteConfigCallback in NET_DVR_StartRemoteConfig should be set to "null".

  2. Call NET_DVR_GetNextRemoteConfig to get information of searched access control event one by one.

    The information of access control event is returned in the structure NET_DVR_ACS_EVENT_CFG by lpOutBuff.

  3. Call NET_DVR_StopRemoteConfig to disconnect the persistent connection.
    Figure 2 Event Search Example Page

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