Manage Fingerprint Information

If you want to access by fingerprint, you should collect the fingerprint data via the fingerprint recorder first, and then apply the fingerprint data and parameters (e.g., fingerprint ID, type, and so on) to the fingerprint module of access control device and link the fingerprints with the card for getting the access permissions.

  • 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 the card information linked with the face picture is applied, refer to Manage Card Information for details.

Figure 1 Programming Flow of Managing Fingerprint Information
Note:

To collect the fingerprint, refer to Collect Fingerprint for details.

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

    The access control capability is returned in the message XML_AcsAbility by the output buffer (pOutBuffer).

    If the node <FingerPrint> is returned in the message, it indicates that managing fingerprint information is supported by device, and you can perform the following steps.

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

  2. Perform the following operation(s) to get or apply fingerprint information.
    Option Description

    Get Fingerprint Information

    Call NET_DVR_StartRemoteConfig with NET_DVR_GET_FINGERPRINT_CFG (command No.: 2150) and set the input buffer (lpInBuffer) to NET_DVR_FINGER_PRINT_INFO_COND_V50 for setting up persistent connection and setting callback function (fRemoteConfigCallback).

    Note:

    The fingerprint information is returned in the structure NET_DVR_FINGER_PRINT_CFG_V50 by the output buffer (lpBuffer) of callback function.

    Apply Fingerprint Information

    1. Call NET_DVR_StartRemoteConfig with NET_DVR_SET_FINGERPRINT_CFG (command No.: 2151) and set input buffer (lpInBuffer) to NET_DVR_FINGER_PRINT_INFO_COND_V50 for setting up persistent connection and setting callback function (fRemoteConfigCallback).

    2. Call NET_DVR_SendRemoteConfig, specify data type (dwDataType) to "ENUM_ACS_SEND_DATA", and set sending buffer (pSendBuf) to NET_DVR_FINGER_PRINT_CFG_V50 for applying the fingerprint information.

      Note:

      The applying status is returned by the output buffer (lpBuffer) of callback function.

  3. Call NET_DVR_StopRemoteConfig to disconnect the persistent connection.

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