Manage Card Information

A card is a basic unit, which can link with a face picture and multiple fingerprints, for access control in this manual. So, before starting any other operations, you should add cards and apply the card information (e.g., card number, card type, group, permissions, and so on) to access control devices.

  • 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 Managing Card Information

  1. Call NET_DVR_GetDeviceAbility, specify dwAbilityType to "ACS_ABILITY" (macro definition value: 0x801), and set pCondBuffer to XML_Desc_AcsAbility for getting access control capability to check if managing card information is supported by device.

    The access control capability is returned in the message XML_AcsAbility by pOutBuffer.

    If supports, the node <Card> is returned in the message, and then you can perform the following steps.

    Otherwise, managing card information is not supported, please end this task.

  2. Perform one of the following operations to get, apply, or delete card information.
    Note:

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

  3. Call NET_DVR_StopRemoteConfig to disconnect the persistent connection.
    Figure 2 Card Management Example Page

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