Get Registration Information of Door Station

  • 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.

Figure 1 Programming Flow of Getting Registration Information of Door Station

  1. Call NET_DVR_StartRemoteConfig with "NET_DVR_GET_VIS_REGISTER_INFO" (command No.: 16027) and set cbStateCallback to "null" for enabling persistent connection to search for registration information of door station.
  2. Call NET_DVR_GetNextRemoteConfig to get search result one by one.

    Each search result is returned in the structure NET_DVR_VIS_REGISTER_INFO by lpOutBuff, and the getting status is also returned by the API.

  3. Perform one of the following operations after checking the returned getting status.
    • If the getting status value is "1000" or "1001", call NET_DVR_GetNextRemoteConfig to get the next result.

    • If the getting status value is "1002" or "1003", continue to perform the following steps.

  4. Call NET_DVR_StopRemoteConfig to disable the persistent connection and stop getting registration information of door station.

Call NET_DVR_Logout and NET_DVR_Cleanup to log out of the device and release the development resources.